Hey, guys. I want to ask if someone can give me an example of creating child through xml. I mean creating custom components through xml (for every xml tag you create your own custom component and then add it as a child to the stage). I hope is it clear enough... :)
-
Um, isn't that called MXML? :)Robusto– Robusto2010-03-30 15:47:16 +00:00Commented Mar 30, 2010 at 15:47
-
You can use any kind of component you want, don't complicate your life, I'm not pretentious :) I appreciate any assistance you can offerKaloyan– Kaloyan2010-03-30 15:51:21 +00:00Commented Mar 30, 2010 at 15:51
-
well, no my friend :) I must do it in AS3.. I have a huge xml file which contains <frame> tags, and every <frame> tag contains <text> tags and so on... So, I've got to create custom components for each one of the tags, and then add it as a child to the stage...Kaloyan– Kaloyan2010-03-30 15:53:54 +00:00Commented Mar 30, 2010 at 15:53
Add a comment
|
2 Answers
Answered a similar question a while ago, might help :
Actionscript 3 : Creating variable objects and assigning class from parsed XML file