header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
flexxx
Points:150
Posts:0

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?



1
Friend
Points: 710
Posts:0
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

2
Harry Crist
Points: 0
Posts:0
10/7/2010 4:59:58 AM



use getElementAt() and give the index number of the element you want to access.


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 0+2 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions