質問編集履歴
6
テストページをセキュリティ上削除させていただきました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,28 +10,6 @@
|
|
10
10
|
|
11
11
|
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
6/25
|
18
|
-
|
19
|
-
[テストページ](http://yohk.jp/test/test.html)
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
6/26
|
24
|
-
|
25
|
-
[テストページ2](http://yohk.jp/test/test2.html)
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
[テストページ3](http://yohk.jp/test/test3.html)
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
[テストページ4](http://yohk.jp/test/test4.html)
|
34
|
-
|
35
13
|
### 発生している問題・エラーメッセージ
|
36
14
|
|
37
15
|
・IE11でjabascriptが正常に動作しません。
|
5
更新しました。まだ解決できておりません。
test
CHANGED
File without changes
|
test
CHANGED
@@ -30,6 +30,8 @@
|
|
30
30
|
|
31
31
|
|
32
32
|
|
33
|
+
[テストページ4](http://yohk.jp/test/test4.html)
|
34
|
+
|
33
35
|
### 発生している問題・エラーメッセージ
|
34
36
|
|
35
37
|
・IE11でjabascriptが正常に動作しません。
|
@@ -82,13 +84,13 @@
|
|
82
84
|
|
83
85
|
<meta name="authoring-tool" content="Adobe_Animate_CC">
|
84
86
|
|
85
|
-
<title>test
|
87
|
+
<title>test4</title>
|
86
88
|
|
87
89
|
<!-- write your code here -->
|
88
90
|
|
89
|
-
<script
|
90
|
-
|
91
|
-
<script src="test
|
91
|
+
<script src="https://code.createjs.com/1.0.0/createjs.min.js"></script>
|
92
|
+
|
93
|
+
<script src="test4.js"></script>
|
92
94
|
|
93
95
|
<script>
|
94
96
|
|
4
keys対策をjsの64行目に記載しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -26,6 +26,10 @@
|
|
26
26
|
|
27
27
|
|
28
28
|
|
29
|
+
[テストページ3](http://yohk.jp/test/test3.html)
|
30
|
+
|
31
|
+
|
32
|
+
|
29
33
|
### 発生している問題・エラーメッセージ
|
30
34
|
|
31
35
|
・IE11でjabascriptが正常に動作しません。
|
@@ -78,46 +82,16 @@
|
|
78
82
|
|
79
83
|
<meta name="authoring-tool" content="Adobe_Animate_CC">
|
80
84
|
|
81
|
-
<title>test
|
85
|
+
<title>test3</title>
|
82
86
|
|
83
87
|
<!-- write your code here -->
|
84
88
|
|
85
|
-
<script src="https://code.createjs.com/1.0.0/createjs.min.js"></script>
|
86
|
-
|
87
|
-
<script src="test
|
89
|
+
<script type="text/javascript" src="http://ie.kis.v2.scr.kaspersky-labs.com/FD126C42-EBFA-4E12-B309-BB3FDD723AC1/main.js?attr=BBLx_qliXB-Dk5al9fe2Ho--l9wDK_GqK8TEUWME6nkkInMo4jVI_PRanwyBVB1U" charset="UTF-8"></script><link rel="stylesheet" crossorigin="anonymous" href="http://ie.kis.v2.scr.kaspersky-labs.com/E3E8934C-235A-4B0E-825A-35A08381A191/abn/main.css?attr=aHR0cDovL3lvaGsuanAvdGVzdC90ZXN0My5odG1s"/><script src="https://code.createjs.com/1.0.0/createjs.min.js"></script>
|
90
|
+
|
91
|
+
<script src="test3.js"></script>
|
88
92
|
|
89
93
|
<script>
|
90
94
|
|
91
|
-
// Global Scripts
|
92
|
-
|
93
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
94
|
-
|
95
|
-
/*keys対策*/
|
96
|
-
|
97
|
-
if(!Object.keys){
|
98
|
-
|
99
|
-
Object.keys = function(obj){
|
100
|
-
|
101
|
-
var keys = [];
|
102
|
-
|
103
|
-
for(var i in obj){
|
104
|
-
|
105
|
-
if(obj.hasOwnProperty(i)){
|
106
|
-
|
107
|
-
keys.push(i);
|
108
|
-
|
109
|
-
}
|
110
|
-
|
111
|
-
}
|
112
|
-
|
113
|
-
return keys;
|
114
|
-
|
115
|
-
};
|
116
|
-
|
117
|
-
}</script>
|
118
|
-
|
119
|
-
<script>
|
120
|
-
|
121
95
|
var canvas, stage, exportRoot, anim_container, dom_overlay_container, fnStartAnimation;
|
122
96
|
|
123
97
|
function init() {
|
3
メタタグ、keys対策をグローバルの記述箇所にうつしたものをアップし直してみました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,12 +14,18 @@
|
|
14
14
|
|
15
15
|
|
16
16
|
|
17
|
-
|
17
|
+
6/25
|
18
18
|
|
19
19
|
[テストページ](http://yohk.jp/test/test.html)
|
20
20
|
|
21
21
|
|
22
22
|
|
23
|
+
6/26
|
24
|
+
|
25
|
+
[テストページ2](http://yohk.jp/test/test2.html)
|
26
|
+
|
27
|
+
|
28
|
+
|
23
29
|
### 発生している問題・エラーメッセージ
|
24
30
|
|
25
31
|
・IE11でjabascriptが正常に動作しません。
|
@@ -72,16 +78,46 @@
|
|
72
78
|
|
73
79
|
<meta name="authoring-tool" content="Adobe_Animate_CC">
|
74
80
|
|
75
|
-
<title>test</title>
|
81
|
+
<title>test2</title>
|
76
82
|
|
77
83
|
<!-- write your code here -->
|
78
84
|
|
79
85
|
<script src="https://code.createjs.com/1.0.0/createjs.min.js"></script>
|
80
86
|
|
81
|
-
<script src="test.js"></script>
|
87
|
+
<script src="test2.js"></script>
|
82
88
|
|
83
89
|
<script>
|
84
90
|
|
91
|
+
// Global Scripts
|
92
|
+
|
93
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
94
|
+
|
95
|
+
/*keys対策*/
|
96
|
+
|
97
|
+
if(!Object.keys){
|
98
|
+
|
99
|
+
Object.keys = function(obj){
|
100
|
+
|
101
|
+
var keys = [];
|
102
|
+
|
103
|
+
for(var i in obj){
|
104
|
+
|
105
|
+
if(obj.hasOwnProperty(i)){
|
106
|
+
|
107
|
+
keys.push(i);
|
108
|
+
|
109
|
+
}
|
110
|
+
|
111
|
+
}
|
112
|
+
|
113
|
+
return keys;
|
114
|
+
|
115
|
+
};
|
116
|
+
|
117
|
+
}</script>
|
118
|
+
|
119
|
+
<script>
|
120
|
+
|
85
121
|
var canvas, stage, exportRoot, anim_container, dom_overlay_container, fnStartAnimation;
|
86
122
|
|
87
123
|
function init() {
|
2
タイトルが間違っていたので修正しました。
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
IE11でja
|
1
|
+
IE11でjavascriptが正常に動作しません。
|
test
CHANGED
File without changes
|
1
パブリッシュされたそのままのjsとhtmlをアップいたしました。長くてすみません。
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,9 +8,15 @@
|
|
8
8
|
|
9
9
|
・タッチデバイスの場合は一度タッチしてバルーンが表示され、表示されている状態であれば遷移するという仕組みです。
|
10
10
|
|
11
|
-
|
11
|
+
|
12
|
-
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
|
13
|
-
http://yohk.jp/test/test.html
|
19
|
+
[テストページ](http://yohk.jp/test/test.html)
|
14
20
|
|
15
21
|
|
16
22
|
|
@@ -34,220 +40,158 @@
|
|
34
40
|
|
35
41
|
```javascript
|
36
42
|
|
43
|
+
そのままでは長すぎてアップできませんでした。
|
44
|
+
|
45
|
+
```
|
46
|
+
|
47
|
+
```html
|
48
|
+
|
49
|
+
<!DOCTYPE html>
|
50
|
+
|
51
|
+
<!--
|
52
|
+
|
53
|
+
NOTES:
|
54
|
+
|
55
|
+
1. All tokens are represented by '$' sign in the template.
|
56
|
+
|
57
|
+
2. You can write your code only wherever mentioned.
|
58
|
+
|
59
|
+
3. All occurrences of existing tokens will be replaced by their appropriate values.
|
60
|
+
|
61
|
+
4. Blank lines will be removed automatically.
|
62
|
+
|
63
|
+
5. Remove unnecessary comments before creating your template.
|
64
|
+
|
65
|
+
-->
|
66
|
+
|
67
|
+
<html>
|
68
|
+
|
69
|
+
<head>
|
70
|
+
|
71
|
+
<meta charset="UTF-8">
|
72
|
+
|
73
|
+
<meta name="authoring-tool" content="Adobe_Animate_CC">
|
74
|
+
|
75
|
+
<title>test</title>
|
76
|
+
|
77
|
+
<!-- write your code here -->
|
78
|
+
|
79
|
+
<script src="https://code.createjs.com/1.0.0/createjs.min.js"></script>
|
80
|
+
|
81
|
+
<script src="test.js"></script>
|
82
|
+
|
83
|
+
<script>
|
84
|
+
|
85
|
+
var canvas, stage, exportRoot, anim_container, dom_overlay_container, fnStartAnimation;
|
86
|
+
|
37
|
-
|
87
|
+
function init() {
|
38
|
-
|
39
|
-
|
88
|
+
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
89
|
+
canvas = document.getElementById("canvas");
|
90
|
+
|
44
|
-
|
91
|
+
anim_container = document.getElementById("animation_container");
|
92
|
+
|
93
|
+
dom_overlay_container = document.getElementById("dom_overlay_container");
|
94
|
+
|
95
|
+
var comp=AdobeAn.getComposition("5FDE7BC209A410479D9DAFAC7D0A4B75");
|
96
|
+
|
45
|
-
|
97
|
+
var lib=comp.getLibrary();
|
46
|
-
|
47
|
-
|
98
|
+
|
48
|
-
|
49
|
-
_this.t03.visible = false;
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
/*タッチデバイス判定*/
|
54
|
-
|
55
|
-
var
|
99
|
+
var loader = new createjs.LoadQueue(false);
|
100
|
+
|
56
|
-
|
101
|
+
loader.addEventListener("fileload", function(evt){handleFileLoad(evt,comp)});
|
102
|
+
|
103
|
+
loader.addEventListener("complete", function(evt){handleComplete(evt,comp)});
|
104
|
+
|
57
|
-
|
105
|
+
var lib=comp.getLibrary();
|
58
|
-
|
106
|
+
|
59
|
-
|
107
|
+
loader.loadManifest(lib.properties.manifest);
|
60
|
-
|
61
|
-
} else {
|
62
|
-
|
63
|
-
stage.enableMouseOver(3);
|
64
108
|
|
65
109
|
}
|
66
110
|
|
67
|
-
|
68
|
-
|
69
|
-
/*ボタン挙動*/
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
var displayedBalloon = null;
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
this.btn01.addEventListener("click", btn_mc_event01);
|
78
|
-
|
79
|
-
function
|
111
|
+
function handleFileLoad(evt, comp) {
|
80
|
-
|
112
|
+
|
81
|
-
|
113
|
+
var img=comp.getImages();
|
82
|
-
|
83
|
-
|
114
|
+
|
84
|
-
|
85
|
-
_this.t01.visible = false;
|
86
|
-
|
87
|
-
displayedBalloon = null;
|
88
|
-
|
89
|
-
|
115
|
+
if (evt && (evt.item.type == "image")) { img[evt.item.id] = evt.result; }
|
90
|
-
|
91
|
-
|
116
|
+
|
92
|
-
|
93
|
-
if (displayedBalloon != null) {
|
94
|
-
|
95
|
-
displayedBalloon.visible = false;
|
96
|
-
|
97
|
-
|
117
|
+
}
|
98
|
-
|
99
|
-
|
118
|
+
|
100
|
-
|
101
|
-
displayedBalloon = _this.t01;
|
102
|
-
|
103
|
-
}
|
104
|
-
|
105
|
-
} else {
|
106
|
-
|
107
|
-
_this.t01.visible = false;
|
108
|
-
|
109
|
-
|
119
|
+
function handleComplete(evt,comp) {
|
120
|
+
|
121
|
+
//This function is always called, irrespective of the content. You can use the variable "stage" after it is created in token create_stage.
|
122
|
+
|
123
|
+
var lib=comp.getLibrary();
|
124
|
+
|
125
|
+
var ss=comp.getSpriteSheet();
|
126
|
+
|
127
|
+
var queue = evt.target;
|
128
|
+
|
129
|
+
var ssMetadata = lib.ssMetadata;
|
130
|
+
|
131
|
+
for(i=0; i<ssMetadata.length; i++) {
|
132
|
+
|
133
|
+
ss[ssMetadata[i].name] = new createjs.SpriteSheet( {"images": [queue.getResult(ssMetadata[i].name)], "frames": ssMetadata[i].frames} )
|
110
134
|
|
111
135
|
}
|
112
136
|
|
137
|
+
exportRoot = new lib.test0625();
|
138
|
+
|
139
|
+
stage = new lib.Stage(canvas);
|
140
|
+
|
141
|
+
stage.enableMouseOver();
|
142
|
+
|
143
|
+
//Registers the "tick" event listener.
|
144
|
+
|
145
|
+
fnStartAnimation = function() {
|
146
|
+
|
147
|
+
stage.addChild(exportRoot);
|
148
|
+
|
149
|
+
createjs.Ticker.framerate = lib.properties.fps;
|
150
|
+
|
151
|
+
createjs.Ticker.addEventListener("tick", stage);
|
152
|
+
|
153
|
+
}
|
154
|
+
|
155
|
+
//Code to support hidpi screens and responsive scaling.
|
156
|
+
|
157
|
+
AdobeAn.makeResponsive(false,'both',false,1,[canvas,anim_container,dom_overlay_container]);
|
158
|
+
|
159
|
+
AdobeAn.compositionLoaded(lib.properties.id);
|
160
|
+
|
161
|
+
fnStartAnimation();
|
162
|
+
|
113
163
|
}
|
114
164
|
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
}
|
138
|
-
|
139
|
-
_this.t02.visible = true;
|
140
|
-
|
141
|
-
displayedBalloon = _this.t02;
|
142
|
-
|
143
|
-
}
|
144
|
-
|
145
|
-
} else {
|
146
|
-
|
147
|
-
_this.t02.visible = false;
|
148
|
-
|
149
|
-
location.href = "02.html";
|
150
|
-
|
151
|
-
}
|
152
|
-
|
153
|
-
}
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
this.btn03.addEventListener("click", btn_mc_event03);
|
158
|
-
|
159
|
-
function btn_mc_event03(eventObject) {
|
160
|
-
|
161
|
-
if (isTouchSupported) {
|
162
|
-
|
163
|
-
if (_this.t03.visible) {
|
164
|
-
|
165
|
-
_this.t03.visible = false;
|
166
|
-
|
167
|
-
displayedBalloon = null;
|
168
|
-
|
169
|
-
location.href = "03.html";
|
170
|
-
|
171
|
-
} else {
|
172
|
-
|
173
|
-
if (displayedBalloon != null) {
|
174
|
-
|
175
|
-
displayedBalloon.visible = false;
|
176
|
-
|
177
|
-
}
|
178
|
-
|
179
|
-
_this.t03.visible = true;
|
180
|
-
|
181
|
-
displayedBalloon = _this.t03;
|
182
|
-
|
183
|
-
}
|
184
|
-
|
185
|
-
} else {
|
186
|
-
|
187
|
-
_this.t03.visible = false;
|
188
|
-
|
189
|
-
location.href = "03.html";
|
190
|
-
|
191
|
-
}
|
192
|
-
|
193
|
-
}
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
/*バルーン表示*/
|
198
|
-
|
199
|
-
_this.btn01.on('mouseover', function () {
|
200
|
-
|
201
|
-
_this.t01.visible = true;
|
202
|
-
|
203
|
-
});
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
_this.btn01.on('mouseout', function () {
|
208
|
-
|
209
|
-
_this.t01.visible = false;
|
210
|
-
|
211
|
-
});
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
_this.btn02.on('mouseover', function () {
|
216
|
-
|
217
|
-
_this.t02.visible = true;
|
218
|
-
|
219
|
-
});
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
_this.btn02.on('mouseout', function () {
|
224
|
-
|
225
|
-
_this.t02.visible = false;
|
226
|
-
|
227
|
-
});
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
_this.btn03.on('mouseover', function () {
|
232
|
-
|
233
|
-
_this.t03.visible = true;
|
234
|
-
|
235
|
-
});
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
_this.btn03.on('mouseout', function () {
|
240
|
-
|
241
|
-
_this.t03.visible = false;
|
242
|
-
|
243
|
-
});
|
244
|
-
|
245
|
-
|
165
|
+
</script>
|
166
|
+
|
167
|
+
<!-- write your code here -->
|
168
|
+
|
169
|
+
</head>
|
170
|
+
|
171
|
+
<body onload="init();" style="margin:0px;">
|
172
|
+
|
173
|
+
<div id="animation_container" style="background-color:rgba(255, 255, 255, 1.00); width:1024px; height:768px">
|
174
|
+
|
175
|
+
<canvas id="canvas" width="1024" height="768" style="position: absolute; display: block; background-color:rgba(255, 255, 255, 1.00);"></canvas>
|
176
|
+
|
177
|
+
<div id="dom_overlay_container" style="pointer-events:none; overflow:hidden; width:1024px; height:768px; position: absolute; left: 0px; top: 0px; display: block;">
|
178
|
+
|
179
|
+
</div>
|
180
|
+
|
181
|
+
</div>
|
182
|
+
|
183
|
+
</body>
|
184
|
+
|
185
|
+
</html>
|
246
186
|
|
247
187
|
```
|
248
188
|
|
249
189
|
|
250
190
|
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
251
195
|
### 試したこと
|
252
196
|
|
253
197
|
|