PDA

View Full Version : Unload Movies



hybris
January 23rd, 2008, 10:35 PM
Hi all

I've been brave enough to make a somewhat large project as my first ever flash website.
It contains of several movie clips to be displayed in a couple of FLVPLayback components.

The problem is, however, that skipped movie clips doesn't stop loading. And eventually lag the whole thing down.
I've also noticed that if the user is fast enough, Flash will skip my playerlabel.stop(0); command and continue playing its sound in the background.

I bet there's a simple way to use unloadMovie to prevent this from happening. The only problem is I can't find an answer to it anywhere. In fact I can't figure out how to use the command at all.

I bet it's a simple syntax error. I've tried both
unloadMovie(playerlabel);
playerlabel.unloadMovie();
...and various combinations, but don't get it.

(playerlabel being the instance name of the FLVPlayback component)

Is there perhaps an even better hack to unload videos that aren't being displayed no longer?
Please help!

Felixz
January 24th, 2008, 09:01 AM
have u tried in browser or in IDE because IDE is glitchy with such cases

hybris
January 24th, 2008, 11:29 AM
have u tried in browser or in IDE because IDE is glitchy with such cases
I don't really understand, I'm afraid. Totally new at this.
Can you suggest what to write to unload a clip from an FLVplayer component with the instance name "test" for example?
Where does "in browser" come in?

Felixz
January 24th, 2008, 11:36 AM
normal web browser or standalone player
not just Ctrl+Enter in Flash

hybris
January 24th, 2008, 02:17 PM
I don't really understand your question, but the site is all-flash. The movie clips are loaded from external flv-files through the FLVPlayer component, using its parameters.