Aghhh (Flash)
- Started
- Last post
- 11 Responses
- Jamie
Ok, I am making a music player in flash.
I have a player.swf that plays song1.swf and song2.swf.
When in the actual .fla of song1.swf I have streched the .mp3 out until it finishes, how ever it finshes about 200 frames to early when i play it as an .swf... why is this so?
I thought it might be to do with my frame rate - but it is set at 12 throught each of the .swfs?
Please help!
- sauerbraten0
stream it?
- o0o0
did you put the mp3 on the timeline, or are you using the actionscript sound object?
- arlo0
Is there any scripting to do with once the song ends?
- Robo0
I have the mp3 on the timeline and when it finishes i simply Stop the .swf, uload it and then load the new song2.swf.
However, when I play the movie the song finishes well before it reaches the end of my .swf - when it does reach the end of the swf this code work fine.
It is almost as if the .mp3 is playing faster than the rest of the .swf??
- Robo0
By the way Robo = Jamie
- sauerbraten0
make sure your sound is on 'stream' setting, this makes Flash manipulate FPS to pace the playhead to match the sound being played.
maybe i'm being dumb and that's way too obvious.. i don't know.
- Robo0
Yip my .mp3 is set for stream, can anyone help?
- neuarmy™0
i'm sort of having the same problem...
is your mp3 playing at the same time something is being tweened?
are you preloading the mp3 or anything?
am i way off track?
- Robo0
No, not exactly, its just a very simple .mp3 player i am trying to create.
I have made one before but I never had this issue.
The .mp3 finishes in the .swf at alot earlier as it does in the the .fla (about 300 frames to early) leaving a a slient gap before the rest of the .swf finishes.
Very strange.
- o0o0
I've always had bad luck when putting sounds on the timeline.
I recommend using the actionscript sound object, here's a tut:
http://www.actionscript.org/acti…
another:
http://actionscript-toolbox.com/…but you also needed to know when to unload the swf playing the tune, right? if you're not using the end of a given timeline you can use sound.onSoundComplete
http://www.macromedia.com/suppor…
that's an event that gets fired when you sound stops.....hope that helps
- arlo0
Are you comparing _currentframe to _totalframes?