Hi there
would be able to help, I have this script that loads in an .flv and I want to beable to remove(unload movie) on a click. I’m using this code to remove the movie,
function destroyMe(object:*):void {
if(object.parent != null){
var parentDisplayObjectContainer = object.parent;
parent.removeChild(object);
}
}
is there another way to remove a .flv and stop playing
Whats happening is when the movie first removes then you go back to play and then remove again it seems like it loads a new .flv of the movie, in a sense then running two .flv’s causing the movie to slow down when playing. Can anyone offer any solutions for this?
Many thanks for your help!