10/7/2010 4:19:07 AM
Title:
addChild Vs addElement
Hi Everyone
I am adding the sprite visual element in the BorderContainer using addElement() method.I have assigned the name to each sprite element.
When I try to retrieve the elements in the BorderContainer, the method getChildByName(name as parameter) return me null and I dont get any method like getElementByName()...
How can I get the elements in the BorderContainer using their names?
10/7/2010 4:41:18 AM
try using rawChildren.getElementByName(), since sprite is added as a raw children and is not a flex component it can be get using rawCHildren only
10/7/2010 4:59:58 AM
use getElementAt() and give the index number of the element you want to access.