This content has been marked as final.
Show 1 reply
-
1. Re: parallelElement clean all - Osmf
leaflashdev Apr 8, 2010 10:55 AM (in response to leaflashdev)I found a way to erase everything, If it can helps
Here is my function
_mainMc.removeChild(mediaContainer);
_mainMc.addChild(mediaContainer);
mediaContainer.removeMediaElement(parallElement);
mediaContainer.addMediaElement(parallElement);
mediaPlayer.media=undefined;
if(parallElement.numChildren){
var count:uint = parallElement.numChildren;
for(var i:uint=0;i<count;i++){
parallElement.removeChildAt(0);
}
}
