1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need some Flash help - Media Playback

Discussion in 'HTML, Graphics & Programming' started by Sirrel Squirrel, 15 Jan 2006.

  1. Sirrel Squirrel

    Sgarrista

    Joined: 5 Aug 2003

    Posts: 7,755

    Location: Essex

    I've been working on this site http://www.mia-media.co.uk/mickjohnson and have now got some of the client's footage so I've started adding it, most of the videos are .swf files because I've only just realised you can use .flv files and use the media components of flash :rolleyes: lol

    Now the problem I'm having is that a video will continue playing back even after you have left the page so you can still hear the audio and you can't load another video, to see what I mean click on the top middle picture in the montage, you will see the video play back nicely but when you click the back button you can still hear the audio. Anyone know how to stop or unload the video that is playing back, must be some sort of action script I can use?
     
  2. Immsy

    Wise Guy

    Joined: 18 Oct 2002

    Posts: 2,367

    Are the videos being loaded from external files? If so you can just unload them once you click another link.
     
  3. Sirrel Squirrel

    Sgarrista

    Joined: 5 Aug 2003

    Posts: 7,755

    Location: Essex

    They are being pulled from external files, the one video I'm having problems with though is the one thats linked to the top middle picture as I've set this up to play in a MediaDisplay component and it's controller using the MediaController component but I can't work out why the video will continue to play in the background after you've gone to another page.
     
  4. Immsy

    Wise Guy

    Joined: 18 Oct 2002

    Posts: 2,367

    Well if you are loading from external files you can unload the movie from the level its being loaded into when you click some of the other content.

    Use the flash help files and look up unloadMovie () function. If the videos are loaded into a level use unloadMovieNum () if not use unloadMovie ().
     
  5. Sirrel Squirrel

    Sgarrista

    Joined: 5 Aug 2003

    Posts: 7,755

    Location: Essex

    Wouldn't I use unload movie to unload an swf file though, the video that uses the Media components in Flash is an flv video, which is specified in the parameters for the MediaDisplay, the videos that are in swf format stop by themselves if you click another object but then I don't have any function buttons because they just play as a movie
     
  6. Sirrel Squirrel

    Sgarrista

    Joined: 5 Aug 2003

    Posts: 7,755

    Location: Essex

    Right I've managed to get the video to stop when you hit the back button but I now need to find a way of stopping the video when you click one of the buttons at the top of the page (home, cv, showreel etc), how would I go about doing this because the montage of videos is a seperate swf file in itself, is there a way of linking into it somehow and issuing the stop command?
     
  7. Sirrel Squirrel

    Sgarrista

    Joined: 5 Aug 2003

    Posts: 7,755

    Location: Essex

    anyone have a solution to my new problem lol?