removieMovieClip();

well I hate to post help for code,but I am just lost at this…I am trying to duplicate and attach a movie clip THEN delete it to do it all over again…

but it doesn’t work…:crying:

I have read three post(and a page from senocular which was informative) so far and none of them don’t work for me…maybe its a typo…maybe I am really special and these floating devices are necessary and not a fashion sense…:h:

I just need help…

var fred:Function = function(amount:Number,mainarray:Array){//customize the function
    removeMovieClip(this._parent.NO5);
    amount;
    mainarray;//= thmb_obj.thmb_arry*;
    for(i=0;i<=amount;i++){
        trace("hi: "+i);
        var num:MovieClip = attachMovie("nav_mc","NO"+i,this.getNextHighestDepth());
        
        this["NO"+i]._x = 900;
        this["NO"+i]._alpha = 50;
        if(i==0){
            //
        }else{
            //car = this["NO"+i]._y-20;
            this["NO"+i]._y = pos*;
            this["NO"+i].loadno = i;
            this["NO"+i].empty_load.loadMovie("fotos/"+mainarray*);
            this["NO"+i].bt_w.onRelease = function(){
                trace("what");
                //_root.tp_mc.fotos.loadPIC("fotos/"+"masha4.jpg");
            }
    }
    }
}
<!-- this works ``` var barny:Function = function(prevamnt:Number,amount:Number,mainarray:Array){//customize the function car=2; if(car=2){ for(i=0;i<=prevamnt;i++){//prevamnt will be taken of from database and then pushed into array and then globalized //removeMovieClip(this["NO"+i]); //this["NO"+i].empty_load.loadMovie("fotos/"+mainarray*); this._parent.NO5.removeMovieClip(); this["NO"+"4"].removeMovieClip(); this.NO3.removeMovieClip(); //_root.NO2.removeMovieClip(); NO6.removeMovieClip(); removeMovieClip(this["NO"+6]); removeMovieClip(NO2); } /*amount; mainarray;//= thmb_obj.thmb_arry*; for(i=1;i<=amount;i++){ trace("hi: "+i); var num:MovieClip = attachMovie("nav_mc","NO"+i,this.getNextHighestDepth()); this["NO"+i]._x = 900; this["NO"+i]._alpha = 50; if(i==0){//donn't duplicate zero??? // }else{ //car = this["NO"+i]._y-20; this["NO"+i]._y = pos*; this["NO"+i].loadno = i; this["NO"+i].empty_load.loadMovie("fotos/"+mainarray*); this["NO"+i].bt_w.onRelease = function(){ trace("what"); _root.opacityTween(_root.tp_mc.fotos.pic_mc2);//duplication _root.tp_mc.fotos.loadPIC("fotos/"+_root.PICS[loadno]); //_root.tp_mc.fotos.loadPIC("fotos/"+"masha4.jpg"); } } }*/ }else{ //random error please reload the movie trace("uh-oh spaghettioes"); } } ``` <!-- this doesn't work