Stupid error #2025 - How can I solve it?

Hi! How Are you guys! I'm having a problem while I'm trying to remove a Child.  I have a button that loads the loader and a next and back button that let you navigate through the images in it. And last the MENU button that brings into the stage the menu bar. I would like that when you click the menu an action to remove the images from the loader. I can do that, but only if there were some images there in the loader, otherwise I get this error:
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.     at flash.display:
:DisplayObjectContainer/removeChild()
It seems that the IF STATEMENT doesn't work properly. I guess that it must have an error, but I can't figure it out which.
Thanks in advance!!
Here is my code:
menuBra.addEventListener (MouseEvent.CLICK, onClickBra);
function onClickBra (event:MouseEvent):void {
if(contains(loaderBrand)) {
removeChild(loaderBrand);
var TweenPrint1:Tween = new Tween(menu_mc,"x", Strong.easeOut, -4000, 0, 1, true);
else          {
var TweenPrint2:Tween = new Tween(menu_mc,"x", Strong.easeOut, -4000, 0, 1, true);
trace ("menu was clicked"); }

It worked with this:
if(loaderBrand.parent != null && loaderBrand.parent == this) {
removeChild(loaderBrand);
var TweenPrint1:Tween = new Tween(menu_mc,"x", Strong.easeOut, -4000, 0, 1, true); }
Thanks!!

Similar Messages

  • HT1766 Itunes could not restore my iphone it told to me an unknown error 1015 how can i solve this problems.

    Dear users itune could not restore ad update my iphone it told to me it has unknown error 1015 so how can I restore it? my iphone model is 3g

    You either have jailbroken your iphone?, or you are trying to downgrade your ios?, either one is not supported by apple.

  • HT201210 When restoring and updating my iphone I received error 2003. how can I solve this problem?

    Please help!

    I read some forum like this http://modmyi.com/forums/general-iphone-chat/11606-help-i-can-t-restore-my-iphon e-error-2003-a.html it's still not working on my phone

  • HT4623 My iphone 4s memory card didn't show & mentioned "error in memory card". How can i solve??

    I can't excess my memory card on my iphone 4s. Showing "Memory Card Error". How can i solve the matter?

    If you have to ship your phone back to the US, then you will need to ship is to a friend or a relative who actually lives out there.  You CANNOT ship it directly to Apple as they will not accept it.  Send it to a relative or friend that you have there and if you don't have any, then you are out of luck as there is nothing that you can do.
    That is why is was not really a good idea to purchase an iPhone is the US when you are ultimately going to use it in China.  With no international warranty on the iPhone you are stuffed really.  You should have bought it in China and then you would not be facing this problem.
    Nothing you can do except get on a plane and fly to the US or send the phone to a friend or relative.

  • ArgumentError: Error #2025 - I can not removeChild?

    function urunlergelsin (e:MouseEvent):void {
        var urunlermenum:urunlermenu = new urunlermenu();
        bg.solurunmenusu.addChild(urunlermenum); // Added new one
        var geridonbuton:geridon = new geridon();
        bg.geridonus_mc.addChild(geridonbuton);
        bg.geridonus_mc.addEventListener(MouseEvent.MOUSE_DOWN, geridon_f);
    function geridon_f(e:MouseEvent):void {
        bg.urunbtn.removeEventListener(MouseEvent.MOUSE_DOWN, urunlergelsin);
        bg.geridonus_mc.removeEventListener(MouseEvent.MOUSE_DOWN, geridon_f);
        var urunlermenum:urunlermenu = new urunlermenu();
        bg.solurunmenusu.removeChild(urunlermenum); // But when i try ro remove it doesnt work
    Hello,
    When i try to removeChild i am getting this error message, How can i solve this problem?
    ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
         at flash.display::DisplayObjectContainer/removeChild()
         at avas_fla::MainTimeline/geridon_f()

    Your problem likely lies in declaring the object inside a function.  It will only have scope within that function when you do that.  I see where you create a new instance of the object in the function where I assume you are trying to remove the first one... the second one is the only one seen at that point, and it has not been added.  Try the following:
    var urunlermenum:urunlermenu; // declare it outside any function
    function urunlergelsin (e:MouseEvent):void {
        urunlermenum = new urunlermenu();
        bg.solurunmenusu.addChild(urunlermenum); // Added new one
        var geridonbuton:geridon = new geridon();
        bg.geridonus_mc.addChild(geridonbuton);
        bg.geridonus_mc.addEventListener(MouseEvent.MOUSE_DOWN, geridon_f);
    function geridon_f(e:MouseEvent):void {
        bg.urunbtn.removeEventListener(MouseEvent.MOUSE_DOWN, urunlergelsin);
        bg.geridonus_mc.removeEventListener(MouseEvent.MOUSE_DOWN, geridon_f);
        var urunlermenum:urunlermenu = new urunlermenu();  // remove this
        bg.solurunmenusu.removeChild(urunlermenum);

  • How can I solve this error message? Some of your photos, including the photo "IMG_0374.jpg", were not copied to the iPad "(my name's) iPad" because they cannot be displayed on your iPad.

    how can I solve this error message? "Some of your photos, including the photo “IMG_0374.jpg”, were not copied to the iPad “(my name’s) iPad” because they cannot be displayed on your iPad."
    There were 273 photos in the event syncing from my Mac, but only the last 103 made it to the ipad. Most of the photos were taken by an iphone. I would appreciate any thoughts or insights - thanks.

    Adrian-
    That error message suggests the photo is somehow corrupt.
    Do you have the Apple Camera Connection Kit?  You can set up a USB thumb drive with MS-DOS FAT-32 format and copy your photos to it into a folder named DCIM.  Assuming they have an 8 character plus suffix name, the iPad will recognize them and give you the option of transferring them via the Kit's USB adapter.
    Once they are transferred, you can find out if there is a problem with any.
    Fred

  • I bought PS, there's a download error in creative cloud, I don't see any App..how can I solve it? 2 days that I am trying...

    I got the CC and bought the PS yesterday. When I launch CC, there is a download error message telling me to retry or contact assistance...how can I solve this,pls? It's so frustrating!

    Please read https://forums.adobe.com/thread/1499014
    -try some steps such as changing browsers and turning off your firewall
    -also flush your browser cache so you are starting with a fresh browser
    http://myleniumerrors.com/installation-and-licensing-problems/creative-cloud-error-codes-w ip/
    http://helpx.adobe.com/creative-cloud/kb/failed-install-creative-cloud-desktop.html
    or
    A chat session where an agent may remotely look inside your computer may help
    Creative Cloud chat support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html

  • HT4623 I can not get connected to App Store , download or update any apps,  EVEN I DID RESET ALL SETTING , STILL I RECIEVE A MESSAGE says: YOUR REQUEST IS NOT PROCESSED ,ERROR COD: 109 !! WHAT DOSE IT MEAN? HOW CAN I SOLVE THE PROBLEM??

    I can not get connected to AppStore , DOWNLOAD OR UPDATE ANY OF MY APPS , WHEN I GO FOR INSTALLING , THE MESSAGE SAYS: YOIR REQUEST IS NOT PROCESSED ,  ERROR CODE, 1009!!! HOW CAN I SOLVE THIS PROBLEM??

    Try contacting the iTunes support staff, they do the app store also, at:  http://www.apple.com/emea/support/itunes/contact.html

  • When I try to activate my home sharing on iTune I get this error message."home sharing could not be activated because an error occurred(-2146762487)"  .How can I solve this problem?

    When I try to activate my home sharing on iTune I get this error message."home sharing could not be activated because an error occurred(-2146762487)"  .How can I solve this problem?

    I have a brand new iMac with all the newest updates etc etc, Safari logs me in without any problem but iTunes etc is just not working.. and I have the same message...Any ideas how to resolve this?
    "Home Sharing could not be activated because an error occurred (5506)."

  • I cant open my iphone 3g ,,,, needs restore and itunes cant make restore has an error... How can I solve this problem?

    I cant open my iphone 3g .... needs restore and itunes cant make restore has an error on phone .... how can I solve this problem?

    Are there any error numbers given by iTunes? If yes, solutions for those numbers can be fund in this article: http://support.apple.com/kb/TS1275 or this one http://support.apple.com/kb/TS3694

  • I'm a character error problem in firefox. How can I solve.

    I'm a character error problem in firefox. How can I solve.

    Hello haruntt, please be a little more specific about the issue. In order to better assist you with your issue please provide us with a screenshot. If you need help to create a screenshot, please see [[How do I create a screenshot of my problem?]]
    Once you've done this, attach the saved screenshot file to your forum post by clicking the '''Browse...''' button below the ''Post your reply'' box. This will help us to visualize the problem.
    Thank you!

  • Aperture (3.4.1) no longer opens and the following message appears: There was an error opening the database for the library "/ Users / Andrea / Pictures / Aperture 3 Library.aplibrary." How can I solve this problem? Thanks

    I was using Aperture (3.4.1), when he appeared a notice that asked me to stop the Mac with the power button. When I restart Aperture no longer opens and the following message appears: There was an error opening the database for the library "/ Users / Andrea / Pictures / Aperture 3 Library.aplibrary."
    How can I solve this problem?
    Thanks

    After a system crash your Aperture Library may be corrupted, because Aperture may not have been able to finish the ongoing database transactions.
    Have you tried the Aperture Library First Aid Tools?
    Aperture 3 User Manual: Repairing and Rebuilding Your Aperture Library
    Try "Repair Database", and if this does not help: "Rebuild Database"
    Regards
    Léonie

  • How can I solve the Error 110 problem when trying to modify the Description of Properties of PDF?

    Hello!
    I am trying to modify the Description of the PDF fies but I cannot do for some files because of the Error 110.  How can I solve this problem so I can succesfully modify the Description of the Properties of the PDF files?
    I also have one more question!
    Why is it impossible to modify the Description parts when the File name is missing in the Description?  There is a File name on each individual PDFs but some of them have to File names on the Description!
    Thank you very much in advance!

    Noelia, i have the same problem, did you solved it ?I had the same issue as Noelia when I investigated Noelia's issue originally (see the TwoVideos sample application in this thread: Re: How can I play different videos with only one MediaPlayer?
    I tried running the TwoVideos sample application today on Windows XPsp3, JavaFX 2.1b17, JDK7u4ea and I was unable to reproduce the problem, so it is likely fixed either 2.1 or (less likely I believe) a Windows 7 only related issue.
    http://www.oracle.com/technetwork/java/javafx/downloads/devpreview-1429449.html
    If you can reproduce the issue with the latest developer preview, then log a bug at http://javafx-jira.kenai.com with environment details, steps, sample media and code to reproduce the issue.
    Please contact me ainchilc at gmail dot com.If it is an answer to an unanswered question on a public forum, it is best to post the answer on the forum, then everybody who reads the forum will know what the answer is.

  • I cannot reactivate my e-reader with my existing Adobe ID and password which are both correct. I alwayss get the message "activation server error, Code: E_AUTH_NOT_READY" What kind of problem is this and what is most important, how can I solve it quickly.

    I cannot reactivate my e-reader with my existing Adobe ID and password which are both correct. I alwayss get the message "activation server error, Code: E_AUTH_NOT_READY" What kind of problem is this and what is most important, how can I solve it quickly. I am on holiday and want to read. Thanks for speedy reply.

    Yes, actually I talk about Digital editions. Do you know how to solve the problem as described in my first mail for Digital Editions? Thanks for your  kind assistance.

  • I used part of my name in my home network.  Now I understand this was stupid security error.  How can i change the name of my home wifi network, airport express?  Thanks.

    I used part of my name in my home network.  Now I understand this was stupid security error.  How can i change the name of my home wifi network, airport express?  Thanks.

    Open Macintosh HD > Applications > Utilities > AirPort Utility
    Click on the picture of the AirPort Express
    Click Edit in the smaller window that appears
    Click the Wireless tab at the top of the next window
    Edit the Wireless Network Name
    Keep it short.....maximum 10-12 characters or so. No blank spaces or punctuation marks in the name
    Click Update at the lower right of the window to save the new setting and wait a full minute for the AirPort to restart

Maybe you are looking for

  • Trasfer posting w.r.t material document

    Dear All, Can we do transfer posting w.r.t MIGO (GR-101) using t.code MIGO_TR or MB1B. i try do do TP but system is not allowing 1) with T.code MIGO_TR system is giving msg: Selected material document does not correspond with action to be executed Me

  • How to do media recovery from cold backup?????????/

    Hi i take cold backup of my 9i database .... in case my database is up ..... how will i recover my database if i lose a single database file and i want to recover it from cold backup...... Thanks in advance Gagan

  • Lumia 520 nokia music activation problem

    When i try to download song in nokia music it says-this phone is already registered with a nokia music unlimited subscription. I don't know how to fix this problem.

  • Who have knowledge from Femtocell technology at Sony (Xperia Z2 and Zperia Z)

    Contact request for a person who have knowledge from Femtocell technology at Sony (Xperia Z2 and Zperia Z). I have been unable to resolve mobile data connectivity issues occuring with femtocell. Me and the operator have been trying to find a resoluti

  • Automatic File Transfer

    I am looking for a way for text files to be moved from a source folder to a designated folder after it has been placed in an Indesign document. That way the same text file is not inadvertently placed more than once. Any suggestions if this can be don