Flash CS5 - .swf file playing before preloader finishes

Using a preloader, but the audio (FLVPlayback component) starts before preloader finishes.

How do I stop that FLVPlayback component (instance name = aud01) from playing until the entire .swf file is loaded?

Here is my AS3:

import fl.video.MetadataEvent;
aud01.addEventListener(MetadataEvent.CUE_POINT, fl_CuePointHandler);

function fl_CuePointHandler(event:MetadataEvent):void
      if (event.info.name=="Cue Point 1")
      {trace(event.info.name + ", Time = " + aud01.playheadTime + ", Frame " + (this.currentFrame +1));}
      if (event.info.name=="Cue Point 2")
      if (event.info.name=="Cue Point 3")


Who is Participating?
tlengnickAuthor Commented:
I figured it out...

In general, I did the following:

() Unchecked "autoplay" in the properties panel of the FLVPlayback file
() Made sure there was no AS3 on frame 1 telling it to play
() In my preloader, in the "load complete" function, I told it to play the video
Do you have your preloader set to progressive load? If so, it will play before the entire item is loaded.
tlengnickAuthor Commented:
How do check that? Flash cs5
tlengnickAuthor Commented:
tlengnickAuthor Commented:
no comments/help added after one initial inquiry.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.