A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: back button close video

  1. #1
    Junior Member
    Join Date
    Mar 2011
    Posts
    2

    Angry back button close video

    Hi I'm Chris and I'm new in AS3...
    i have a problem with a back button
    when i click BACK the video of the FLV video component continue and also when i'm back in the home page i can hear the sound...how can i stop it
    here is the code of my back button

    stop();
    back_btn.addEventListener(MouseEvent.CLICK,backvid eo);
    function backvideo(event:MouseEvent):void {
    gotoAndPlay("1");
    }

    the video instance name is my_video
    I try to put
    my_video stop();
    but nothing
    If you can helpe it'll be great

  2. #2
    Senior Member b18269's Avatar
    Join Date
    Jan 2006
    Location
    London, UK
    Posts
    167
    add this to the button:

    import flash.media.SoundMixer;
    SoundMixer.stopAll();



    unload the movie clip your video is in.

    search for it there are About 142,000 results when I googled it. Hope that helps

  3. #3
    Junior Member
    Join Date
    Mar 2011
    Posts
    2

    Talking thanks

    it's working perfectly many thanks...i'm really happy
    mamma mia cool
    ciao Chris

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