Hi all
I am writing a custom video player as a class. I have it all working great, play, pause, stop, etc. I can instantiate that class either on main timeline or another class and all is well. The problem I have is removing it. if I have a sprite container called locContainer instantiate my class
ActionScript Code:
var locContainer = new Sprite();
addchild(locContainer )
var locPlayer:playerClass = new playerClass(locPlayer);
locContainer.addChild(locPlayer)
this works but if I remove locPlayer the audio still plays the video and custom controls are removed fine just the audio
ActionScript Code:
locContainer.removeChildAt(0)
the class is too complicate to paste here but it uses NetConnection and the video classes
ActionScript Code:
ncConnection=new NetConnection ;
ncConnection.addEventListener(NetStatusEvent.NET_STATUS,netStatusHandler);
ncConnection.connect(null);
I thought removeChild should remove all children of that child
any help would be great