Hi guys,

I'm trying to add an effect when changing the positioning (order) of
some GridItems in a GridRow. In my move function, I remove the child,
and add it back at a different index. This works fine with no effect,
however if I have a removeEffect and addEffect, I get an error. 

If I comment out the line that adds the child back in, it works (to
remove the child with the effect).

When it trips the debugger on the error (see stack trace below), it
thinks that there's one more child than there really is! (one more
than the total number, not the number after one is removed) I even
tried calling the addChild in a callLater(), but that didn't work either.

Any ideas anyone?
thanks,
Thunder

RangeError: Error #2006: The supplied index is out of bounds.
at flash.display::DisplayObjectContainer/getChildAt()
at
mx.core::Container/getChildAt()[C:\dev\GMC\sdk\frameworks\mx\core\Container.as:2384]
at
mx.containers.utilityClasses::BoxLayout/measure()[C:\dev\GMC\sdk\frameworks\mx\containers\utilityClasses\BoxLayout.as:88]
at
mx.containers::Box/mx.containers:Box::measure()[C:\dev\GMC\sdk\frameworks\mx\containers\Box.as:250]
at
mx.core::UIComponent/mx.core:UIComponent::measureSizes()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:5360]
at
mx.core::UIComponent/validateSize()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:5306]





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to