A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Loading and Unloading FLV

  1. #1
    Member
    Join Date
    Oct 2002
    Posts
    62

    Loading and Unloading FLV

    I am loading an external SWF into my main swf, this external swf carries a FLV video. I call this SWF by loadmovienum and then when I want to turn it off I call it off by unloadmovienum. But if I call it off in the middle of the flv the sound of this FLV stream remains On! until I quite the browser!!! How can I unload this FLV so that the video and the sound dissapear together!!!
    Last edited by nima15; 08-06-2005 at 09:59 PM.

  2. #2
    Registered User
    Join Date
    Sep 2004
    Location
    Los Angeles
    Posts
    86
    I'm having the same problem. I've tried everything!!!

    http://www.sajencorona.com/sajen_corona3.swf (videos section)

    the video goes away but the sound keeps playing with the volume at 100%

    have you found any resolution to this???

  3. #3
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,876
    Try closing the stream before unloading the swf: http://livedocs.adobe.com/flash/9.0/...=00002015.html
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

  4. #4
    Junior Member
    Join Date
    Aug 2007
    Posts
    4
    I had the same issue but found this to work:

    Create a listener for the UNLOAD event in your child swf. Create a function called by the UNLOAD event listener that stops your FLVPlayback component from continuing to play.

    function closeAllStreams(evt:Event) {
    myvideoplayer.stop();
    }

    this.loaderInfo.addEventListener(Event.UNLOAD, closeAllStreams);

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center