Stick Page Forums Archive

[Flash 8][Part 2] How To Play Music And Animation On A Play Button At The Same Time

Started by: Vion | Replies: 2 | Views: 596

Vion
2

Posts: 391
Joined: Nov 2012
Rep: 10

View Profile
Mar 10, 2013 3:45 AM #910071
Part 1: How To Create A Menu

Part 2: How To Play Music And Animation On A Play Button At The Same Time

After you done part 1, you can now paste music and moving animation
Note: I've deleted the "Credits" and "More" button..

Music
Note: You should use a short music

1. Add a new layer above "action script" layer.

2. Open "File" > "Import" > "Import To Library" > Select a music and click 'Open'

3. Add the music from "Library" to stage at 'layer 3', make the frame longer to the end if you want to (i'll make it to the end of the music). Look at other tutorials about making the music sound clearly.

4. At the end of your music (at frame) make sure you press F7, click the frame and add this action script

gotoAndPlay(1);


This'll automatic-ly go to the frame 1 (according to where the menu frame is at)
Info: You can only set the "(1)" at the action script (you can change the number)
Caution: Do Not Edit The "gotoAndPlay", you can only edit the "(1)" numbers ONLY.

Animation

1. Make a simple stick man (doing something) > Use 'Free Transform Tool' to select it > "Convert To Symbol" > Select 'Graphics' (for moving animation) > Press ok

2. Double click the stickman > (Don't get shocked if you see it) Now make an animation > After you done that, (look up) and click 'Scene 1' > Set to 'Loop'

Frame (Important)

1. Click your button and press F9 and set a action script

on (release) {
gotoAndPlay(3968);
}

Note: If you see the frame is '(3968)' actually where the animation is beginning
Note: You can edit '(3968)' (according to where the first animation is beginning)

Button

1. Click "Play" button and click "Properties" > Make sure you set it to "Track As Menu Item" (Do noo why)

Download this .fla file if you don't under stand or the example of the Movie

Image

That all folks, thank you for learning :D
Hitsuit
Banned

Posts: 1,301
Joined: Nov 2012
Rep: 10

View Profile
Mar 10, 2013 3:53 AM #910085
Wew nice tut Vion :D
Vion
2

Posts: 391
Joined: Nov 2012
Rep: 10

View Profile
Mar 10, 2013 10:10 AM #910361
Special Thanks to you for teaching me..
Website Version: 1.0.4
© 2025 Max Games. All rights reserved.