Search Tutorials
In this tutorial I will explain how to do an advanced music button in flash MX
2004 and MX,
insert 3 frame
then go in the second frame and put a button that say MUSIC OFF Go in the third frame and put a button that say MUSIC ON. Import your song (i recommend a small loopable beat) Now go in the library, right-click on your song and choose Linkage... check the EXPORT FOR ACTIONSCRIPT box (it will automaticaly check the last box too) in the identifier text-field, type music. leave everything else blank. press OK right-click on the second frame (or the first if you didnt included a preloader) and select ACTION, put this code in
in the last line, you see music.start(0,1); the "1" is the number of time the music will loop, so change it to the number you want, you CANT make the music loop infinite....sorry. now right-click on your MUSIC OFF button and select ACTION. Put this code in
if you didnt included a preloader, change the gotoAndStop(3); for gotoAndStop(2); now go in the last frame and go in the action window for the MUSIC ON button and type in
now test your movie, and it should work! if you want to replace a song, delete the old one and upload a new one, do the linkage trick again
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|