Can't remove MovieClip

Hello
I'm having lots of trouble removing a MovieClip that was created using createEmptyMovieClip. I've tried everything, unloadMovie, removeMovieClip with various varations (I've checked the references and the variables are well defined), the movieclip will just not go away!
Inside this MovieClip there are several other movieclips with associated classes and objects spawned from there, does this matter?
Does anyone have any idea about why is it so difficult to just remove a MovieClip?
Thanks a lot again, this forum has been really usefull, I'm trying to be helpfull too, but you're just too fast answering questions I'll be here more often from now on

swapdepths worked! That's realy odd because it's the only movieclip in its parent and it was already created with getHighestDepth... anyway, thanks for your help!

Similar Messages

  • Can you specify movieclips as cache as bitmap, inside one large loaded movieclip?

    at this point I'm not sure if i have to individualy add cacheasbitmap/cacheasbitmapmatrix to true to each display object that needs it and load them seperatly
    or if i can load the movieclip that they are in first and specify their properties later then add it to the stage when it is all loaded.
    can anyone tell me the best way to do this or maybe some tutorials to check out?
    the AS for the loading is
    var PLoading:Bitmap = new Bitmap (new PlaneLoading());
    addChild(PLoading); //loading screen
    var PLevel:PlaneLevel = new PlaneLevel();
    this.addEventListener(Event.ENTER_FRAME, loading); //reoccuring event listener happens as often as is set by FPS
    function loading(e:Event):void //
        var total:Number = this.stage.loaderInfo.bytesTotal;
        var loaded:Number = this.stage.loaderInfo.bytesLoaded;
        var percent:Number = loaded/total * 100;
        trace (percent);
        if (total == loaded) //checks if all bytes for all movieclips have been loaded
            this.removeEventListener(Event.ENTER_FRAME, loading);
            onComplete();
    function onComplete ():void //removes loading picture, and loads level movieclip
        removeChild(PLoading);
        addChild(PLevel);
        PLevel.x = 475.15;
        PLevel.y = 315.35;

    It is the same do it individually for each MovieClip or all contained in a MovieClip. What you should know is that a movie clip with cachebitmap = true consume resources whenever it is drawn and if a movie clip is an animation, each frame will be redrawn. 
    look this:
    http://help.adobe.com/en_US/as3/mobile/WS4bebcd66a74275c36c11f3d612431904db9-7ffc.html

  • Can't remove clip

    I can't kill it!
    I have a library clip with a window UI object in it. I place
    the attached code into the window.
    Now another script attaches the said clip into the storyline.
    When I click the 'close' button, it says "clicked" and tells me the
    object I'm trying to remove does exist. But it doesn't go away.
    Is it me or are windows evil?

    components are evil.
    in this situation you're using a v2 component that occupies
    the greatest depth (2**20) at which movieclips can be removed using
    actionscript. you then instantiated _root.view_mc and set its depth
    using getNextHighestDepth() which placed it at a non-removable
    depth.
    to remedy, use swapDepths() to move it down to a removable
    depth (anything between 0 and 2**20 that's not already occupied).
    or, maybe you placed view_mc on-stage in the authoring
    environment so it has a depth of about -2**14 which isn't removable
    either.
    again, to remedy, use swapDepths to move it to a removable
    depth.

  • How can I remove my account on an iPad and add an existing one

    how can I remove my account on an iPad and add an existing one

    Or, how can I change the account on an existing iPad without restoring / formatting it?

  • How can I remove LABELS from my gmail account?

    How can I remove unwanted LABELS from the side bar unsung gmail?

    I assume you're using GMail as your primary e-mail account?  Try this.  This is how I am setup.  Not only will it move all your contacts to your phone but any changes made in GMail or on the iPhone will be sync'd with the server.
    http://www.google.com/support/mobile/bin/answer.py?answer=138740
    Note... I think this will delete your existing contacts from your device.  You will want to use iTunes to back them up and get them imported into GMail before you sync your device wtih GMail.

  • How can we remove the scroll bars from the table?

    Hi,
    I have a dynamic table. Currently the table appears with the scroll bars. But there is a requirement that the scroll bar should not appear and the table should stretch in the entire page. How can this be achieved.
    Thanks in advance
    Nita

    Thanks Mohammad for the reply.
    Was able to remove the scroll bars by using only the styleClass as AFStretchWidth. But there is a default partition in middle of the page still? Can i remove that too by any way.

  • How can we remove the following zeros from quantity field ?

    Hi All.
    how can we remove the following zeros from quantity field while populating ALV by using FM REUSE_ALV_GRID_DISPLAY ?
    eg:getting output zqty = 2.000
    but i need           zqty = 2.
    help me to reslove this issue.
    Regards.
    jay

    Hi,
      While populating the field catlog do the following thing to   avoid zeros.
      wa_fieldcat-tabname = 'I_OUTPUT'.    " Curr
      wa_fieldcat-fieldname = 'FWAER'.
      wa_fieldcat-seltext_l = text-023.
      wa_fieldcat-no_zero = 'X'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR  wa_fieldcat.
    Thanks,
    Khushbu.

  • How can we remove asterix from the amount

    i have problem wen i am trying to get amount it uis coming in this manner
    ***100000**
    how can i remove it
    pls let me know

    Here is one logic:
    data text type string.
    text = '**1000**'.
    replace all occurrences of '*' in text with ''.
    write text.
    Check out this link too:
    do not want asterix to be padded in left of currency value..
    Hope it helps you.

  • Can't remove my credit card from account.

    Why i can't remove my credit card from my account. when i remove credit card (select none)already after abt 5-10 min i check my account again my creditcardd will be appear. I try to remove from PC and on my iphone.

    Answered here:
    https://discussions.apple.com/message/24655077#24655077
    So, either do as directed, or don't get anything from the iTunes/app store.

  • How can we remove the key from the dataset which has json

    uid
    id
    Json
    4588
    51
    { "key": "1/0/234", "element1":{ "a":10 "b": "test1" } }
    4589
    52
    { "key": "1/0/234", "element1":{ "a":10 "b": "test1" } }
    4590
    53
    { "key": "1/0/234", "element1":{ "a":10 "b": "test1" } }
    I have the above dataset resulting from merge operation .
    UID -Integer data type
    ID- Integer data type
    Json- String data type holding json document
    How can I remove  the " key" element from the json field  and make my dataset look like 
    Expected output which will strip of key value pair from the json column
    uid
    id
    Json
    4588
    51
    { "element1":{ "a":10 "b": "test1" } }
    4589
    52
    { "element1":{ "a":10 "b": "test1" } }
    4590
    53
    { "element1":{ "a":10 "b": "test1" } }
    Mudassar

    Hello Mudassar,
    In SQL Server / T-SQL we don't have a native JSON support, so you would have to implement a solution on your own = parsing the string and remove the "Key" + it's value.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • How can we remove the commas from the Formula value in SAP BW BEx query

    Hi All,
    How can we remove the commas from the Formula value in SAP BW BEx query
    We are using the formula replacing with characteristic.The characteristic value needs to be display as number with out commas.
    Regards
    Venkat.

    Do you want to remove the commas when you run the query on Bex Web or in RSRT?
    Regards

  • How can i remove a card from iTunes ?

    How can i remove a card from iTunes ?

    If you want to remove a credit/debit card from your account then on your computer's iTunes you should be able to edit your payment info by going into the Store > View Account menu option and logging into your account, and on your account's details page there should be a payment link.  If you are doing it on your iOS device then tap on your id in Settings > iTunes & App Store and tap on 'View Apple ID' on the popup and log into your account  - that should also give you a payments link on your account's page.
    Changing payment info : Change or remove your payment information from your iTunes Store account (Apple ID)
    If you don't get the 'none' option on the payment details screen : Why can’t I select None when I edit my Apple ID payment information?

  • How can I remove a card from my apple account I have an IPhone4

    I entered a card to make a purchase it was successful but now when I went to update some things it's saying it's an issue and I can't remove the card unless I add a new card. i don't understand why it would go thru if it didn't actually go thru???? Can someone help me?

    Try to contact iTunes support and see what they can do for you
    http://www.apple.com/support/itunes/contact/

  • How can i remove credit card info from apple id?

    How can i remove credit crad info from my apple id?

    I tried to enter it as "none" but it didnt work. It keeps saying i need a card number and all that. But then, i clicked "same as shipping information" and just entered my name and all the adress stuff, put my credit card number as 0 and my security code as 0, put in a random date and clicked save.
    -Just a tip for anyone else who couldnt figure it out like me

  • HT202667 how can I remove credit card from apple id ?

    i don't want to use apple id with credit card anymore i purchased enough apps for my apple device so now i wanna remove it so how can i remove credit card from apple id

    On your computer's iTunes you should be able to edit your payment info by going into the Store > View Account menu option and logging into your account, and on your account's details page there should be a payment link.  If you are doing it on your iPhone then tap on your id in Settings > iTunes & App Store and tap on 'View Apple ID' on the popup and log into your account  - that should also give you a payments link on your account's page.
    Changing payment info : http://support.apple.com/en-gb/HT1918
    If you don't get the 'none' option on the payment details screen : http://support.apple.com/en-gb/TS5366

Maybe you are looking for