baritone87
09-20-2007, 07:21 AM
I want to have a bunch of instances of an Object Class I wrote appear in a Tile. So in my mxml I have a state that has
<mx:State name="stateA">
<mx:AddChild>
<mx:Tile>
<this is where I want to add Objects that would be instances of an Object I have in a .as file>
</mx:Tile>
</mx:AddChild>
</mx:State>
How do I add my objects? I thought maybe I need to create a namespace in the main application tag. I was going to call my namespace "qs". Then I would just add:
<qs:MyCustomObject />
in between the Tile tags. Am I way off base? Are there a lot of hoops I have to jump through to get my Object in there? I believe my custom object must extend a UIInterface object to be able to add mxml drag and drop functionality so I was planning on having it extend Canvas.
Thanks in advance for any help.
B
<mx:State name="stateA">
<mx:AddChild>
<mx:Tile>
<this is where I want to add Objects that would be instances of an Object I have in a .as file>
</mx:Tile>
</mx:AddChild>
</mx:State>
How do I add my objects? I thought maybe I need to create a namespace in the main application tag. I was going to call my namespace "qs". Then I would just add:
<qs:MyCustomObject />
in between the Tile tags. Am I way off base? Are there a lot of hoops I have to jump through to get my Object in there? I believe my custom object must extend a UIInterface object to be able to add mxml drag and drop functionality so I was planning on having it extend Canvas.
Thanks in advance for any help.
B