PDA

View Full Version : keeping a movieclip from collapsing


praufet
07-07-2004, 03:02 PM
is there a way to keep a movie created using createEmptyMovieClip from collapsing on itself when using the clear function to clear its drawn contents?

senocular
07-07-2004, 03:12 PM
collapsing?

praufet
07-07-2004, 03:19 PM
shrink to a size of nothingness. right now I am creating a movieclip to sit within that movie clip as a place holder, but its not very elegant, and for some reason it won't let me remove it after I create it.

senocular
07-07-2004, 03:24 PM
... not if there's nothing in it. You cant stop nothing from being nothing :p

praufet
07-07-2004, 03:26 PM
any idea why it won't let me use removeMovieClip on the place holder?

holder = this.origClip.createEmptyMovieClip("placeHolder",-50);
holder.drawRect(0,0,this.vert._width,this.horiz._h eight,0xFF6600);
this.origClip.clear();
this.origClip.drawRect(0,0,this._width,this._heigh t,0x9900FF);
holder.removeMovieClip();
updateAfterEvent();

senocular
07-07-2004, 03:33 PM
because its set at a depth below 0.
http://www.kirupa.com/developer/actionscript/depths2.htm (page 2 of 2)

praufet
07-07-2004, 03:56 PM
oh....*sheepishly hides under desk*