Best way to addChild(); removeChild();?

First, I would like to thank, ptfury, magcius, dzhedzho, wvxvw, amarghosh, jwopitzand Rada for all of their help. I could not have gotten this far without their guidance .

I am getting better at AS3 but still have a while to go. I can not figure out the best way to add and remove a child from the stage in my package. Any help would be greatly appreciated.

Thanks in Advanced,
Scott

Here’s the code:


package {

    //import flash.display.*;
    //import flash.utils.getTimer;
    import flash.display.DisplayObject;
    import flash.display.MovieClip;
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    import flash.display.Sprite;
    import flash.events.*;
    import fl.motion.Animator;

    public class Duck5 extends MovieClip {
        //var duckHit_animator:removeChild;
        public var currentindex:int;
        var duckHit_animator:Animator;
        public var disposition:String = "good";
        //public var duckHit_remove:Sprite;
        //public var points:int;


        function Duck5():void {
            this.disposition = "good";
        }
        
        
        public function swim():void {
            var swimTween = new Tween(this, "x",None.easeNone,82.2,82.2, 8, true);

        }
        public function hit():void {


            var duckHit_xml:XML = <Motion duration="12" xmlns="fl.motion.*" xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
            <source>
            <Source frameRate="24" x="245.15" y="586.9" scaleX="1" scaleY="1" rotation="0" elementType="movie clip" symbolName="duckHit">
            <dimensions>
            <geom:Rectangle left="-85.65" top="-51" width="171.3" height="102"/>
            </dimensions>
            <transformationPoint>
            <geom:Point x="0.5046701692936368" y="0.5"/>
            </transformationPoint>
            </Source>
            </source>
            
            <Keyframe index="0" tweenSnap="true" tweenSync="true">
            <tweens>
            <SimpleEase ease="0"/>
            </tweens>
            <filters>
            <filters:GlowFilter blurX="0" blurY="0" color="0xFF0000" alpha="1" strength="0" quality="1" inner="false" knockout="false"/>
            <filters:DropShadowFilter distance="0" angle="45" color="0x000000" alpha="1" blurX="0" blurY="0" strength="0" quality="1" inner="false" knockout="false" hideObject="false"/>
            </filters>
            </Keyframe>
            
            <Keyframe index="4" tweenSnap="true" tweenSync="true">
            <tweens>
            <SimpleEase ease="0"/>
            </tweens>
            <filters>
            <filters:GlowFilter blurX="19" blurY="19" color="0xFF6600" alpha="1" strength="1" quality="1" inner="false" knockout="false"/>
            <filters:DropShadowFilter distance="-2" angle="233" color="0xFF9900" alpha="1" blurX="0" blurY="0" strength="3.36" quality="1" inner="false" knockout="false" hideObject="false"/>
            </filters>
            </Keyframe>
            
            <Keyframe index="7" tweenSnap="true" tweenSync="true">
            <tweens>
            <SimpleEase ease="0"/>
            </tweens>
            <filters>
            <filters:GlowFilter blurX="19" blurY="19" color="0xFF6600" alpha="1" strength="1" quality="1" inner="false" knockout="false"/>
            <filters:DropShadowFilter distance="-2" angle="233" color="0xFF9900" alpha="1" blurX="0" blurY="0" strength="3.36" quality="1" inner="false" knockout="false" hideObject="false"/>
            </filters>
            </Keyframe>
            
            <Keyframe index="11" tweenSnap="true" tweenSync="true">
            <color>
            <Color alphaMultiplier="0"/>
            </color>
            <tweens>
            <SimpleEase ease="0"/>
            </tweens>
            <filters>
            <filters:GlowFilter blurX="0" blurY="0" color="0xFF0000" alpha="1" strength="0" quality="1" inner="false" knockout="false"/>
            <filters:DropShadowFilter distance="0" angle="45" color="0x000000" alpha="1" blurX="0" blurY="0" strength="0" quality="1" inner="false" knockout="false"   hideObject="false"/>
            </filters>
            </Keyframe>
            </Motion>;

            duckHit_animator = new Animator(duckHit_xml, this);
            duckHit_animator.play();
            


        }

Thanks!