Groups | Blog | Home
all groups > flash (macromedia) > august 2004 >

flash (macromedia) : MP3 & Screens Quirk?


JohnJ
8/23/2004 11:59:37 PM
Ok mayby this is a "quirk" and might be upgraded to an "issue" but never a "bug"

Using an mp3 file using the media components. Audio plays and at time points
in the audio displays a given screen. Problem is when the audio file is done it
rapidly flashes all previous screens then returns to the last one. Hard to
describe but it seems like it rewinds the first screen then rapidy within less
than a second flashes all the screens and lands back at the last one.

Anyone else have a problem like this or should I seek professional help?

John
MailManUSA
8/24/2004 12:19:06 AM
This is what it sounds like to me:

IF, when the song finishes, you are at the last frame in your movie, there
doesn't seem to be any stop(); command to tell the play head "I'm done! Stop
playing!". You may also have the movie set to Loop continuously in which case,
once it reaches the last frame, it automatically starts playing at Frame 1.
You also said,

Audio plays and at time points in the audio displays a given screen.

There may be a script issue which is undetected in your code at the beginning
of the movie...or you may have something like, if(timeInterval >= actualTime) {
....display this screen...; }. Since you're at the end of the song, obviously
your timeInterval will in fact be greater than the actualTime of the song, thus
returning true for every frame that has that if() { ... } statement in it.

If what I say makes sense and is indeed how you've coded your movie, simply
give the timeInterval variable a value of zero indicating that the song has
finished and we are now ready to play at the beginning of the song if we want.

If what I say is wrong and does not make any sense, disregard what I
suggested, wait for someone else to reply AND seek professional help. Once
you've found your solution, it would be cool if you could give us the 411 on
your solution to your problem.

Good luck!

Adam
JohnJ
8/26/2004 4:51:12 AM
All I did is drag and drop the media components onto the stage. Didn't do any actionscript but sounds like I should? I'll give this a try and see if it works.

Thanks for the idea

AddThis Social Bookmark Button