RemoveChildAt with removedEffect and MoveEffect doesnt work properly

Hi all,
RemoveChildAt is not removing all the childs when i use within a loop.
How can i remove all the children one by one (using loop) while using the Effects like removedEffect and MoveEffect.
Please execute following example to experience the problem.
Thanks in advance
Main Application
RemoveChildProblem.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" viewSourceURL="srcview/index.html">
    <mx:Script>
        <![CDATA[
            private function addChildren():void{
                for(var i:Number = 0 ; i < 10; i++){
                    var node:Node = new Node();
                    nodesArea.addChild(node);
            private function removeChildren():void{
                for(var i:Number = 0 ; i < nodesArea.numChildren; i++){
                    nodesArea.removeChildAt(i);
        ]]>
    </mx:Script>
    <mx:Button label="Add Children" click="addChildren()"/>
    <mx:Button label="Remove Children" click="removeChildren()"/>
    <mx:HBox width="100%" id="nodesArea">
    </mx:HBox>
</mx:Application>
Node Component
Node.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas moveEffect="Move" showEffect="Fade" removedEffect="Fade" xmlns:mx="http://www.adobe.com/2006/mxml" width="100" height="100" backgroundColor="#B6A3FF">
</mx:Canvas>

private function removeChildren():void {
  for(var i:Number = 0; i < nodesArea.numChildren; i++){
    nodesArea.removeChildAt(i);
should be:
private function removeChildren():void {
  for (var i:Number = nodesArea.numChildren - 1; i >= 0; i--){
    nodesArea.removeChildAt(i);

Similar Messages

  • HT3529 Why is my iMessage not working with wifi and my wifi works properly with everything else and with three bars?

    My iMessage is not properly working and I need help.Just look at the question and give me a response. thanks.

    iOS: Troubleshooting Messages
    Using FaceTime and iMessage behind a firewall
    Did it ever work?
    Does it work when connected to another network?

  • Help me! I have a new iPad mini that won't turn on. It was working fine this morning then i turn it off and it never turns back on. it doesnt register with iTunes and resetting isnt working either.

    Help me! I have a new iPad mini that won't turn on. It was working fine this morning then i turn it off and it never turns back on. it doesnt register with iTunes and resetting isnt working either. All I did is download instagram and snapchat and poof doesnt work. I have had these apps before!

    Make sure it's plugged into the charger.
    Frozen or unresponsive iPad
    Resolve these most common issues:
        •    Display remains black or blank
        •    Touch screen not responding
        •    Application unexpectedly closes or freezes
    http://www.apple.com/support/ipad/assistant/ipad/
    iPad Frozen, not responding, how to fix
    http://appletoolbox.com/2012/07/ipad-frozen-not-responding-how-to-fix/
    iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
    http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
    Black or Blank Screen on iPad or iPhone
    http://appletoolbox.com/2012/10/black-or-blank-screen-on-ipad-or-iphone/
    What to Do When Your iPad Won't Turn On
    http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    Home button not working or unresponsive, fix
    http://appletoolbox.com/2013/04/home-button-not-working-or-unresponsive-fix/
    Fixing an iPad Home Button
    http://tinyurl.com/om6rd6u
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
     Cheers, Tom

  • HELP!  just a b & w screen with "do not disconnect" and restore doesnt work

    i dont know whats wrong with my ipod, its just got a b & w version of the normal "do not connect" screen, even when iTunes hasnt recognised it being plugged in, and if i reset it, it just has that folder picture, and the aple.com/support/ipod thing on the screen, before going back to the "do not disconnect" again in black and white. and restore doesnt work, it just says some error, and quits. Does anyone have any idea whats wrong? thanks
    (its a 5th gen ipod with video, which should be colour)
    Windows XP

    Same thing here!!

  • How can I stick an accordion navigation MENU on top of a mobile scrolling page and make it work properly? As I can't pin it, I keep it on top of the page with scroll effect 0. It collapse, shows the menu buttons but doesn't close back once it reaches the

    How can I stick an accordion navigation MENU on top of a mobile scrolling page and make it work properly?
    As I can't pin it, I keep it on top of the page with scroll effect 0.
    It collapse, shows the menu buttons but doesn't close back once it reaches the anchorpoint.

    Muse won't let you, at least not that I know of. You could find the class in the code that muse gives it position: fixed…I think. You could paste it into the head area of your page properties to override the class. I believe something like this would give you persistent nav bar, pinned at the very top, on mobile:
    #youmuseclass {position: fixed;}
    I wouldn't use any parallax on mobile either, the performance is terrible.

  • I cant go on youtube with the wifi from airport express, its alway show that the webpage not found so I try to connect the lan to my mac ,its work. Anyone know why amd how to fix it. (only youtube and google doesnt work)

    Is this an airport express problem?? Only Youtube and google doesnt work. Its not work only on wifi from airport express. I really have no idea about technical problem.

    After the last upgrade, my itunes doesn't open (this happen only the first time after the start of my pc). It seems frozen.To re-open Itunes i need to terminate APS deamon every time from task manager.
    What is Apple doing to solve this problema? Thank you.

  • My GX630 doesnt work properly on Windows Vista 64 bit

    Hi,
      I have problem with my GX630, its doest work properly at W Vista 64 bit, exactly Sleep mode ... its imposible to awake my computer nd I have to turn it off and than on to wake it up ...
      those buttons Turbo nd Eco mode doesnt work.
      sometimes happen that i get blue error screen and reset but I dont know why ... it wrotes something with some .dll file ...
    some people told me that its error is caused by that thing that there are no drivers for 64 vista yet ...
    I would be pleased if someone could help me up to this topic or to my email (removed to protect user privacy) or ICQ (115-378-414)  thank to all of you Jabu

    "sometimes happen that i get blue error screen and reset but I dont know why ... it wrotes something with some .dll file ... "
    What is the BSOD error code? What .dll ? Write down the exact error.
    Do you OC your notebook?
    "some people told me that its error is caused by that thing that there are no drivers for 64 vista yet ... "
    Install Drivers from MSI web:
    http://global.msi.eu/index.php?func=downloaddetail&type=driver&maincat_no=135&prod_no=1513
    "those buttons Turbo nd Eco mode doesnt work."
    You need SCM: http://global.msi.eu/index.php?func=downloaddetail&type=utility&maincat_no=135&prod_no=1513
    But x64 bit is N/A.
    Why you use x64bit version anyway? Why not 32bit?

  • Replace content smart objects doesnt work properly.

    Hello fellow Photoshoppers,
    Currently i am working on reusable album templates with smart objects. At first i was very enthusiastic but this was soon to end. as the replacing doesnt work properly.
    I made the smart object by using:
    1. > file
    2. > place
    then i try to replace the content by using.
    1. > layer
    2. > smart objects
    3. > replace contents
    the old image should get replaced by the chosen file and matching size, smart layers etc. However when i perform the same actions my image gets replaced but it is not the same size as the smart object it replaced. This makes the entire template useless as it would take far too much time resizing every single image. inspired by another video I also tried double clicking the layer and tried replacing the image in the editing sceen by dragging another file on top of the smart object. Again, it does not spread out to the full smart object size and i'm stuck with a small image in need of extra work.
    Needless to say, very frustrating.
    Any thoughts?

    Are you sure you understood how it is intended work?
    That is an interesting question, i have no experience with photoshop as i bought CS5,5 just a week ago and have no experience with any of the previous versions either. All info regarding how to make such a template i found from various tutorials, i posted one below. When they do it the image get scaled perfectly. Now since they use some smart filters in the tutorial i applied them aswell to see if this would fix the problem but it did not.
    http://www.picturesocial.com/video/wedding-photo-album-templates
    Are the images you want to switch in at least always of the same width to height-relation?
    I checked both files for consistency and discovered they were shot on different camera's. One file ( the origional smart object ) was cropped form a 21,0MP file and the other was croped from a 10,1 MP file. Both images were cropped to a 2x1 ratio. Having discovered the difference in pixel amount i cropped a different 21,0 MP file to 2x1 ratio and checked both files for their exact dimensions (both images are equal in size with 5616 x 2808 pixels) and replaced the content with the newly cropped file which gave a much better result. However, the image was slightly smaller in photoshop leaving a small gap where the origionally placed smart object lined up perfectly. I turned the situation around and placed the 10,1MP cropped image as the smart object and replaced the content by a 21,0 MP cropped image. As to be expected i ended up with a new image much larger then the smart object. So the smart object does not constrain the files to the dimensions set. As it turns out it only scales the replaced content relative to the size of the origional content of the smart object.
    I just need a reusable template with objects that:
    - cannot be moved once locked ( if possible) but can have its content replaced
    - scales the replaced content to the predefined dimensions
    - needs no prework like cropping to the same aspect ratio as the smart object content. ( i want to be able to place a landscape sized raw (3x2) on any landscape format  (2x1 / 16x9 / 4x3 or whatever) i find it acceptable to having to crop a portret to landscape orientation first before being able to replace a landscape.
    now ive been searching for more info and some people say indesign is much faster in making album pages so I am installing the program as we speak hoping this will be the solution.

  • Ejecting external discs doesnt work properly, no spin down of disc. why?

    ejecting my external discs doesnt work properly anymore in 10.6, no spin down of disc happens, the finder unmounts the disc(s) and then the disc spins on and on. thats weird, because, in 10.5 i ejected discs and then they went spinning down the drive, as it has to be.
    when i unplug the disc, which is unmounted from desktop, and still spinning, it makes a terrible noise in the disc. like a high pitched short tone.
    any idea whats going wrong here?
    thanks!

    you probably mean "causing the fail to spindown"
    you maybe mean software like techtoolpro5 or drive genius3?
    yes i disabled these helper apps on the discs, but first i used it (like monitoring
    all discs if they are nearly full, or working s.m.a.r.t and so on. yes its useful,
    but obviously it causes problems. i must mention, that i tested my 4 external drives again,
    and i found out that i can eject all discs, like said before, but only 2 of the discs are spinning down, after ejecting, BUT only when i use the button "eject" in harddisctoolkit, they dont spin down, when ejecting from desktop (apple+E), and the other 2 of the 4 drives refuse to spin down, after ejecting, even with pressing eject in harddisctoolkit....
    i can also state, that these 2 discs, which refuse to spin down, are FW800/400 discs and connected via FW800. and the 2 discs which spin down succesfully are UBS2 discs, if thats worth mentioning...
    Message was edited by: purepeter

  • Five version of BootCamp and @ still doesnt work?

    Seriously, am I the only one thinking that it's kind of embarrassing that the @ still doesnt work properly in bootcamp. Or rather, that the AltGr doesnt seem to. Yes, I know there is input remapper, and I am using it, but I can't really understand how this still haven't been fixed. Or am i missing something?
    /pJ

    Hi,
    AltGr is usually achieved with 'Control'+'Alt/Option'-key combo.
    Stefan

  • Just moved my email from entourage to Mail. Having real problems with getting my signatures to work properly. When adding in a small company logo, windows computers only receive signature as an attachment. Am sending email as Rich Text. Any ideas on a fix

    Just moved my email from Entourage to Mail. Having real problems with getting my signatures to work properly despite sending email as Rich Text.
    When adding in a small company logo to the signature, PC's / windows computers only receive signature and logo as attachments.
    I've tried all possible fixes I can find including getting a PC user to format the logo but no joy. Has anyone experienced this and any ideas on a fix gratefully received.

    Send it as html so the signature is an image source URL

  • After installing Maverick on my macbook pro, imessage on my ipad and Iphone stopped working properly.  Is there a fix/test.

    After installing Maverick on my macbook pro, imessage on my ipad and Iphone stopped working properly. 
    What I get is a RED exclamation and "Not Delivered".  It happens even if i resend it over and over.
    I have made sure that the 3 devices all have the same settins in iMessage.
    I have made sure to try doing it from the same network and from the cell provider network.
    I have tried rebooting all three devices.
    The only way to get it to work on my iphone and iPad is to dissable it in Mavericks on my MacBook Pro.
    Is this a "feature" of the new OS?

    Hi,
    On the iOS devices remove the Apple ID.
    Set the device in to Airplane Mode (this breaks with the server)
    Start with the iPhone to add back the Apple ID - only after you see the iPhone Number is Verified.
    The Restart the Mac Version
    Accept the pops ups that state what the iPhone  is using.
    Do same on iPad.
    8:31 pm      Wednesday; April 2, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • I manage 60 ipads for a school using Apple Configurator. Need to update to iOS7 and AC1.4.3...Is it best to use Mountain Lion or Mavericks, as I also need to update from Lion 10.7 for the new AC and iOS to work properly.

    I manage 60 ipads for a school using Apple Configurator. Need to update my devices to iOS7 and Apple Configurator to 1.4.3...Is it best to use Mountain Lion or Mavericks, as I also need to update from Lion 10.7 for the new Apple Configurator and iOS7 to work properly.

    I always run a Time Machine backup before updating anything and recommend you run a backup as well. Paid apps should migrate over without any problem. If you have problems with VPP codes not transfering over properly, you can talk to your Apple SE or contact VPP for Education support and they can help you. While I haven't experienced any problems with updating, its never a guarantee that others will have the same experience.
    Good luck!
    ~Joe

  • Having problem with my iphone camera,doesnt work when i click the camera app,but it does work when i double click when my phone is off.

    having problem with my iphone camera,doesnt work when i click the camera app,but when i double click when my phone is locked it works.

    The Basic Troubleshooting Steps are:
    Restart..  Reset..  Restore...
    Reset your phone:
    Press the sleep/wake button & home button at the same time, keep pressing until you see the Apple logo, then release the buttons...
    Restart / Reset
    http://support.apple.com/kb/ht1430
    Backing up, Updating and Restoring
    http://support.apple.com/kb/HT1414

  • Have to keep resetting my password and still doesnt work to login

    my macbook pro needs a new adobe reader update and every time i go to install it says to login so i do as normal and it always says my password is wrong. so i reset my password n still says wrong. i have changed my password 7 times and still doesnt work! it works to get on the website but not to log on my comp sometimes n to install. can any1 help me with this plzzz?

    Are you sure your keyboard is working? Is the caps-lock key down? Are there any unusual characters in your password?

Maybe you are looking for

  • Install failure - Windows 8.1

    I have the subscription version and tried to install Lightroom 5 however it fails with Exit Code 7. Error: Install MSI payload failed with error: 1624 - Error applying transforms.  Verify that the specified transform paths are valid. MSI Error messag

  • Is there anyway to import a flash file to keynote 09?

    Is there anyway to import a flash file to keynote 09?

  • I can't activate after updating unknow icloud account password

    i bought iphone 5(Global) Singapore reg from my friend used.now i update to 7.0.2 to 7.0.4 via iTune offline update.i didn't backup and forget to remove ''the icloud account'' what's the one of my friend icloud account.NOW i can't activate my phone w

  • How do you set "All" sequence?

    I have two iPods - an 8G Nano and an 80G iPod. Say I go to Music, then Genre and I select a genre, say Classical . . . I puts me on a page called Artists. If I hit "All" again it gives me "All Albums" and if I hit "All" again it gives me "All Songs".

  • Automatic Logout after inactivity

    I am trying to figure out the best way to 'kick' students off our lab machines at the end of the day. As it is right now, the machines are set to 'log out after 30 minutes of inactivity' and to shutdown at 10:00pm each night. What happens is someone