[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Flash CS5 - .swf file playing before preloader finishes

Posted on 2012-03-27
5
Medium Priority
?
525 Views
Last Modified: 2012-04-07
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")
      {gotoAndStop(5);}
      {trace(event.info.name + ", Time = " + aud01.playheadTime + ", Frame " + (this.currentFrame +1));}
      
      if (event.info.name=="Cue Point 2")
      {gotoAndStop(10);}
      
      if (event.info.name=="Cue Point 3")
      {gotoAndStop(15);}      

}

stop();
0
Comment
Question by:tlengnick
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
5 Comments
 
LVL 8

Expert Comment

by:Jen0910
ID: 37776612
Do you have your preloader set to progressive load? If so, it will play before the entire item is loaded.
0
 

Author Comment

by:tlengnick
ID: 37777889
How do check that? Flash cs5
0
 

Author Comment

by:tlengnick
ID: 37784178
0
 

Accepted Solution

by:
tlengnick earned 0 total points
ID: 37799117
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
0
 

Author Closing Comment

by:tlengnick
ID: 37818734
no comments/help added after one initial inquiry.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question