Skip navigation
Currently Being Moderated

Unable to unload flv ( Intro video ) from the stage

Jul 21, 2012 3:07 AM

Tags: #remove #flv #stop #to #from #how #unable #stage #unloadandstop #the #unload

Hi,

 

I'm developing a project. I have kept an intro video and using the below code to stop everything from the stage and go to next swf.

 

loader.unloadAndStop();

 

In this case, It stops everything including the sound of the video. It starts playing the 2nd swf but the last frame of video stays on the stage while it starts playing 2nd swf.

 

I can hear the audio of the 2nd swf but on the stage last frame of the flv video. How to remove flv completely from the stage?

 

Any help would be appreciated.

 

Thanks.

 
Replies
  • Currently Being Moderated
    Jul 21, 2012 4:48 AM   in reply to kumar0607

    What is the relationship of the loader to the flv?  How was the flv brought in to be displayed?

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 21, 2012 6:17 AM   in reply to kumar0607

    When I build a set of files using what you described the code works properly... when the flv is done it triggers a function which executes the command to load demo3 and the demo2 file is unloaded before the demo3 file loads.  Maybe you should rebuild using what you just described to test and then compare how it differs from what you actually implemented.

     

    You should place traces in your functions to see if your conditionals and other code are executing as expected.

     

    The way you have it, demo2 is dependent on demo1 existing - files should be able to stand on their own so that they are more portable. The more proper way of doing this is to just have demo2 dispatch an event when the flv completes.   Have demo1 assign an event listener for that event when demo2 is finished being loaded.  Let demo1 catch the event and deal with unloading demo2. 

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points