Hey everyone, I hope someone has some prior experience on this one...
Here's what I wanted to do. I want to trigger events in a presentation-like Flash movie using dynamic mp3 files.
So, in Flash MX, I created a sound object from a dynamically loaded mp3 file. Using the sound.position property, I want to cue in certain events. For example, I have a stop() command at frame 100 and I don't want the playhead to advance to frame 101 onwards until sound.position is at a specified spot in the mp3 file.
So,...what I did was, I created an empty while loop that executes after the stop(), and right below the loop is a play() command. This worked accurately, but the problem is, the loop seems to be eating so much CPU, that the whole thing slows down. The audio plays fine, but all movies become choppy and consequently, off-mark on those triggers.
Does anyone have any suggestions besides using a loop?
Could it be the streaming, dynamically-loaded mp3 file that is really slowing down the CPU?
I'd appreciate any insight. Thanks in advance.
minsan
Here's what I wanted to do. I want to trigger events in a presentation-like Flash movie using dynamic mp3 files.
So, in Flash MX, I created a sound object from a dynamically loaded mp3 file. Using the sound.position property, I want to cue in certain events. For example, I have a stop() command at frame 100 and I don't want the playhead to advance to frame 101 onwards until sound.position is at a specified spot in the mp3 file.
So,...what I did was, I created an empty while loop that executes after the stop(), and right below the loop is a play() command. This worked accurately, but the problem is, the loop seems to be eating so much CPU, that the whole thing slows down. The audio plays fine, but all movies become choppy and consequently, off-mark on those triggers.
Does anyone have any suggestions besides using a loop?
Could it be the streaming, dynamically-loaded mp3 file that is really slowing down the CPU?
I'd appreciate any insight. Thanks in advance.
minsan