Wednesday, May 18, 2011

my 9th flash class

1st: mouse pointer
1) create two shape (1square, 1round)
2) F8 and make the square 'button'
3) F8 and make the round 'movie'
4) double click the square into 'symbol 1', F6 twice (until the 'Down')
5) return to scene 1
6) double click the round into 'symbol 2', F6 at any keyframe and 'create shape tween'
7) make the round shape from big to small and reverse back
>>> F6 at the btw keyframe > press Q to resize
8) return back to scene 1
9) name the round shape (ttt)
10) click on the round, F9 > Button > onClipEvent (load) > startDrag ("_root.ttt",true) > Mouse.hide();

2nd: adding text using notepad
1) change the 'stage' color
2) create a shape for button
3) F8 > Button
4) Text tool > create a text box > Dynamic text > 'square box icon' show border around text > Multiline
>>> Dynamic means can adjust the size of box
5) save it
6) open notepad
7) type a title in the notepad (all the notepad must be in same title and a "=" behind the text, example 'detail=')
8) type the info
9) save the notepad (different name, example "about")
10) click on the textbox, Flash, Properties > Option > Variable > title in the notepad (detail)
11) click on the round, button, F9 > Button > on (release) > loadVariablesNum ("about.txt",0)
>>> loadVariables > URL > type in the notepad file name (at the window file there)
** everything must save in same folder (notepad & flash)


3rd: menu bar
1) create a menu bar
2) F8 to make it as 'movie'
3) double click it into 'symbol 1'
4) small part of the menubar, F8 to make 'button'
5) whole menubar F8 to make 'graphic'
6) F6 at any keyframe and create 'classic tween'
7) between the keyframes, F6 at the middle and make the menu bar at the middle
8) at the 1st & middle keyframe, F9 > Frame > stop
9) create another layer
10) at the middle of keyframe, F6
11) put the song name, F8 to make it as 'button'
*** must break apart twice before F8 to 'button'
12) at the next keyframe of the song name keyframe, right click and choose 'insert blank keyframe'
13) double click the song name, F6 until 'down' & import the song in (same step each song)
>>> pull the song out from 'properties', paste any where; click the 'down', at 'Sync' change to 'start'
*** when paste the song that time must click at the 'down' only paste it
14) return to scene 1 and name the menubar at 'properties'
15) double click back into 'symbol 1'
16) F9 > click on the button, Button > on (release) > _root.mb.play();
>>> mb is the name for the menubar at 'properties'
17) same goes to the part of the menubar, F9 > Button > on (release) > _root.mb.play();
>>> double click the menubar into 'symbol 3', click on the part of the menubar
18) return to scene 1
19) create a shape as stop button and name it at properties (example, ct)
20) F8 > Movie
21) double click the stop button
22) F6 1time
23) F9 > Frame > stop (for both keyframe)
24) F8 > Button (for both)
25a) F9 > 1st keyframe button, Button > on (release) > _root.ct.play();
25b) F9 > 2nd keyframe button, Button > on (release) > stopAllSounds();
26) return back to 'scene 1'
27) create a shape and name it at properties (example, pp)
28) double click it
29) F6 at any keyframe and make it as 'shape tween'
>>> make the box change different color
30) F9 >1st keyframe, Frame > stop
31) F9 > last keyframe, Frame > gotoAndPlay(2);
>>> (2) means back 2nd keyframe, so the color changing wont stop
32) back to 'scene 1'
33) double click the menubar
34) F9 > song name, Button > _root.ct.play(); > _root.pp.gotoAndPlay(2);
>>> same to all the song
35) back to 'scene 1'
36) F9 > 2nd keyfrane button, Button > _root.pp.gotoAndPlay(1);
>>> (1) means to stop the color changing of the box

No comments: