|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
preloader affecting scene change and/or stop()
Hi, I created a small flash movie to play music with a website, it loads in a popup, and has a on/off button to start/stop the music.
FOr some reason now that I've added a preloader, when its done loading and nextscene() takes it to the actual scene with the player, it doesnt work like it had. before it would stop on frame 1 since that was the music on frame. when you clicked the button it went to frame2. i used stop() before to keep it at frame 1 but for some reason it doesnt work now. any ideas? thanks, duke |
|
#2
|
|||
|
|||
|
bump
|
|
#3
|
|||
|
|||
|
Re: preloader affecting scene change and/or stop()
Quote:
what doesn't work? the music don't play? |
|
#4
|
|||
|
|||
|
no, it skips over the music_on frame and goes to the music_off frame, so the music is playing but the button is off, so when you click it, the music starts playing overtop of the previously playing music. after you turn it off and on again it works.
|
|
#5
|
|||
|
|||
|
hmm dunno.
maybe try another method. give your 2nd scene a name, (I used musicScene as example). then, back on the script of your preloader where it says "nextScene()", replace it with: gotoAndStop("musicScene", 1) |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > preloader affecting scene change and/or stop() |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|