welcome to my space

03/15/2010 (5:20 pm)

Quick removeMC problem

Filed under: nappedeptrole.com edit
  • if (this.Delete == true) {
    this.swapDepths(6666666);
    this.removeMovieClip();
    }

    The MC i'm tring to delete was not dynamically made. I heared i had to swap the depth to a positive # for the removeMovieClip(); command to work.
    What did i do wrong?

    thanx in advance:thumb2:


  • Removable depths: 0 - 1,048,575 ;)
    http://www.kirupa.com/developer/actionscript/depths2.htm

    scotty(-:


  • Delete is not a resrved word ;)

    Problem is that Flash doesn't have 6666666 depth levels but rather something closer to 16000, try this:
    if (this.Delete == true) {
    this.swapDepths(1928);
    this.removeMovieClip();
    }:cowboy:


  • I don't know if I'd use the reserved word "Delete" try using deleteClip as as your var name, and then in the if statement, trace "this" and make sure its referencing the correct mc - I've had some issues w/ removeMovieClip as well, and sometime have resorted to simply placing the mc offstage, hope this helps

    creatify







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Quick removeMC problem , Please add it free.