actionscript2 thai.pdf
-
Upload
pipatboontasang -
Category
Documents
-
view
227 -
download
0
Transcript of actionscript2 thai.pdf
-
Action Script 2.0
-
AdobeFlash ACTIONSCRIPT
:
Layer Flash 1 Flash 3 Flash 6 Symbol 7 10 16
-
AdobeFlash ACTIONSCRIPT
:
1
1. Layer Flash 1.1. Layer1
1.2.
1.3.
1.4. new layer
1.5.
-
AdobeFlash ACTIONSCRIPT
:
2
1.6. F5
1.7. F6
1.8. New Folder
1.9.
NewFolder
-
AdobeFlash ACTIONSCRIPT
:
3
2. Flash Symbol
2.1. Graphic Symbol
Graphics Symbol Properties
Graphic Symbol
Stage Graphic Symbol
-
AdobeFlash ACTIONSCRIPT
:
4
2.2. Movie Clip Symbol
Movie Clip Symbol Properties
Movie Clip Symbol
Stage Movie Clip Symbol
-
AdobeFlash ACTIONSCRIPT
:
5
2.3. Button
Button Properties
Button UP Button Over Button Button Down Button Hit
Stage Button
-
AdobeFlash ACTIONSCRIPT
:
6
3. Flash
Flash 3.1. F9
ACTIONS-FRAME
stop();
3.2. (Button Symbol) F9 ACTIONS-BUTTON
on(release)
-
AdobeFlash ACTIONSCRIPT
:
7
{ ;
} 3.3. Movie Clip Movie Clip F9 ACTIONS-MOVIE CLIP
Movie Clip onClipEvent() { ; }
4. Symbol Instance Name Instance Name properties < Instance Name>
-
AdobeFlash ACTIONSCRIPT
:
8
Movie Clip Instance Name flower flower
Instance Name flower Scene 1 Movie Clip Instance Name flower Movie Clip
flower.stop();
-
AdobeFlash ACTIONSCRIPT
:
9
4.1. Instance Name
Instance Name flower rose jasmine rose flowerrosejasmine jasmine
_root ( scene 1 ) _parent play(); play jasmine _root.flower.rose.play(); play rose _parent.play(); play rose
-
AdobeFlash ACTIONSCRIPT
:
10
5.
Learning Object
Learning Object 1 11 start.fla
1. Movie Clip MovieClip movie Instance Name Movie Clip mc Movie Clip (stage)
MovieClip
InstanceName
-
AdobeFlash ACTIONSCRIPT
:
11
2. 1 script F9
mc.loadMovie(1.swf); Movie Clip mc 1.swf 1.swf 1.swf
stop(); start.swf 1.swf
Layer 13 label menu.swf
-
AdobeFlash ACTIONSCRIPT
:
12
menu.swf
menu.swf label start.swf
_parent.gotoAndPlay("one"); _parent start.swf start.swf label one one 1
-
AdobeFlash ACTIONSCRIPT
:
13
label label properties label Frame label
label two label two
label three label three menu.swf label _parent menu.swf start.swf start.swf menu.swf menu.swf start.swf _parent
-
AdobeFlash ACTIONSCRIPT
:
14
start.fla button
button
f9
on (release) {
prevFrame(); }
start.swf 1
-
AdobeFlash ACTIONSCRIPT
:
15
on (release) {
nextFrame();
}
start.swf 1
on (release) {
gotoAndPlay("home");
}
start.swf label home start.fla label home menu.swf
-
AdobeFlash ACTIONSCRIPT
:
16
6. start.swf
mc.loadMovie("exam1.swf");
stop();
exam1.swf
exam1.fla 4 5 1(Layer1) 1
-
AdobeFlash ACTIONSCRIPT
:
17
1 1 1
mark (_global) 2 (Layer2) 3 (next) 4 (sign) 1
1
-
AdobeFlash ACTIONSCRIPT
:
18
1 2 4
wrong._visible=true; subnext._visible=true; next
f1._visible=false; f1 f2._visible=false; f2 f3._visible=false; f3
-
AdobeFlash ACTIONSCRIPT
:
19
c._visible=false; c
_global.mark++; _global.mark 1
correct._visible=true; subnext._visible=true; next
f1._visible=false; f1 f2._visible=false; f2 f3._visible=false; f3 c._visible=false; c
-
AdobeFlash ACTIONSCRIPT
:
20
Instance Name f1 f2 f3 c 2 1
(correct) (wrong) next(subnext) 2 2 4
3 2 NEXT
NEXT
-
AdobeFlash ACTIONSCRIPT
:
21
4 2
4 Instance Name wrong Instance Name correct
2
subnext._visible=true; NEXT
NEXT 1 2 exam1.swf 3
-
AdobeFlash ACTIONSCRIPT
:
22
3 Layer 1
correct._visible = false; wrong._visible = false; subnext._visible = false; NEXT f1._visible = true; f2._visible = true; f3._visible = true; c._visible = true; stop(); 3
-
AdobeFlash ACTIONSCRIPT
:
23
2 1 2
3 NEXT 5
5 Layer1
(correct) (wrong) NEXT(subnext)
-
AdobeFlash ACTIONSCRIPT
:
24
Dynamic Text Var properties _global.mark Dynamic Text _global.mark
properties Dynamic Text f9 properties
next NEXT start.swf 1
-
AdobeFlash ACTIONSCRIPT
:
25
NEXT
1 start.swf 1
7. Publish Flash Publish
0.1. stage properties PUBLISH Edit
-
AdobeFlash ACTIONSCRIPT
:
26
0.2. Publish Settings
0.3. Formats
Flash HTML
-
AdobeFlash ACTIONSCRIPT
:
27
0.4. Flash
Player Flash Player
Script ActionSctipt Flash Player
0.5.
Set
Audio stream stream Audio event event
-
AdobeFlash ACTIONSCRIPT
:
28
Compression mp3 Bit rate Quality
0.6. Window Projector(.exe)
flash FlashPlayer FlashPlayer
-
AdobeFlash ACTIONSCRIPT
:
29