Ciao a tutti, volevo chiedervi come mai non riesco a rimuovere un oggetto creato correttamente?
Questo è il codice:
stage.addEventListener(FullScreenEvent.FULL_SCREEN , fullScreenRedraw);
function fullScreenRedraw(event:FullScreenEvent):void {
if (event.fullScreen){
var bg_mc = new bg();
stage.addChildAt(bg_mc, 0);
bg_mc.x = -223.6;
bg_mc.y = -96;
}else{
stage.removeChild(bg_mc);
}
}
praticamente quando il video è in fullsize aggiungo uno sfondo, quando è normale non lo riesco a rimuover però

Rispondi quotando