Skip to main content
Participant
December 16, 2013
Question

Need help to unload and stop my video's

  • December 16, 2013
  • 1 reply
  • 462 views

So my last problem in this project. It is a interactive menu and and i have loaded videos on one page out of the 7 pages i have and now i found out that my videos dont UN-load after timeline navigation and i need them to or they hang out in the background and breck the movie. here is the loader code how do i remove them after navigation???

import fl.video.*;

var myVideoOct:FLVPlayback = new FLVPlayback();

myVideoOct.load("video/video1.f4v");

myVideoOct.skin = "MinimaUnderPlayBackSeekCounterVolMuteFull.swf  ";

myVideoOct.x = 200

myVideoOct.y = 100

myVideoOct.height = 325

myVideoOct.width = 550

myVideoOct.skinBackgroundColor = 0xAEBEFB;

myVideoOct.skinBackgroundAlpha = 0.3;

addChild(myVideoOct);

var myVideoOct2:FLVPlayback = new FLVPlayback();

myVideoOct2.load("video/video2.f4v");

myVideoOct2.skin = "MinimaUnderPlayBackSeekCounterVolMuteFull.swf  ";

myVideoOct2.x = 800

myVideoOct2.y = 100

myVideoOct2.height = 325

myVideoOct2.width = 550

myVideoOct2.skinBackgroundColor = 0xAEBEFB;

myVideoOct2.skinBackgroundAlpha = 0.3;

addChild(myVideoOct2);

var myVideoOct3:FLVPlayback = new FLVPlayback();

myVideoOct3.load("video/video3.f4v");

myVideoOct3.skin = "MinimaUnderPlayBackSeekCounterVolMuteFull.swf  ";

myVideoOct3.x = 200

myVideoOct3.y = 475

myVideoOct3.height = 325

myVideoOct3.width = 550

myVideoOct3.skinBackgroundColor = 0xAEBEFB;

myVideoOct3.skinBackgroundAlpha = 0.3;

addChild(myVideoOct3);

var myVideoOct4:FLVPlayback = new FLVPlayback();

myVideoOct4.load("video/video4.f4v");

myVideoOct4.skin = "MinimaUnderPlayBackSeekCounterVolMuteFull.swf  ";

myVideoOct4.x = 800

myVideoOct4.y = 475

myVideoOct4.height = 325

myVideoOct4.width = 550

myVideoOct4.skinBackgroundColor = 0xAEBEFB;

myVideoOct4.skinBackgroundAlpha = 0.3;

addChild(myVideoOct4);

This topic has been closed for replies.

1 reply

Inspiring
December 16, 2013
TylerA21Author
Participant
December 16, 2013

I looked at that and no combination of that code worked, what i found that did work was useing both removeChild (for all video players) and giving all video players a function containing SoundMixer.stopAll.