Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-18-2009, 07:57 PM   #1
davej
Senior Member
 
Join Date: Dec 2005
Posts: 263
Default netStream remove or kill???

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
davej is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kill button on a loaded swf (remove self that is) wolcotter ActionScript 3.0 3 01-22-2009 09:28 PM
netstream buffering diggz ActionScript 3.0 3 01-19-2009 08:52 PM
NetConnexion & NetStream freyssinet ActionScript 3.0 1 08-29-2008 03:11 PM
NetStream onMetaData Flash Gordon ActionScript 3.0 5 06-16-2008 09:25 AM
remove child with if statement GoneNuts ActionScript 3.0 5 12-06-2007 05:32 PM


All times are GMT. The time now is 05:13 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.