質問編集履歴

1

処理順の追記

2015/09/12 15:22

投稿

hanamaru
hanamaru

スコア13

test CHANGED
File without changes
test CHANGED
@@ -49,3 +49,97 @@
49
49
 
50
50
 
51
51
  宜しくお願い致します。
52
+
53
+
54
+
55
+ 以下は処理順についての追記になります。
56
+
57
+ ①<body onLoad="**onLoad();**" >
58
+
59
+ ②function onLoad() {
60
+
61
+ ~~~
62
+
63
+ if(**imgPreload()**){
64
+
65
+ if(soundPreload()){
66
+
67
+ if(scenarioLoad(scenario)){
68
+
69
+ if(topDisplay()){
70
+
71
+ document.getElementById("id_button1").style.visibility="visible";
72
+
73
+ }else{
74
+
75
+ alert("topDisplay未完了");
76
+
77
+ }
78
+
79
+ }else{
80
+
81
+ alert("scenarioLoad未完了");
82
+
83
+ }
84
+
85
+ }else{
86
+
87
+ alert("soundPreload未完了");
88
+
89
+ }
90
+
91
+ }else{
92
+
93
+ alert("imgPreload未完了");
94
+
95
+ }
96
+
97
+ }
98
+
99
+
100
+
101
+ ③function **imgPreload()** {
102
+
103
+ //画像のプリロード
104
+
105
+ if(bgImageURL()){ //画像のurlを配列に
106
+
107
+ if(charImageURL()){
108
+
109
+ if(**bgimgloopImageLoader(0)**){
110
+
111
+ if(charimgloopImageLoader(0)){
112
+
113
+ return true;
114
+
115
+ }else{
116
+
117
+ alert("charimgloopImageLoader未完了");
118
+
119
+ }
120
+
121
+ }else{
122
+
123
+ alert("bgimgloopImageLoader未完了");
124
+
125
+ }
126
+
127
+ }else{
128
+
129
+ alert("bgImageURL未完了");
130
+
131
+ }
132
+
133
+ }else{
134
+
135
+ alert("bgImageURL未完了");
136
+
137
+ }
138
+
139
+ }
140
+
141
+
142
+
143
+ ④**function bgimgloopImageLoader(i)**へ
144
+
145
+ 処理内容は『①プリロード処理』をご参照ください。