I would look at ArrayCollection

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Josh McDonald
Sent: Sunday, April 20, 2008 6:35 PM
To: [email protected]
Subject: [flexcoders] Help with non-visual MXML components and getting
the syntax I want

 

Hi Guys,

I'm building some non-visual MXML components, and I want to keep the
MXML syntax as nice as possible. What I'd like is something like this:

<custom:Garden id="foo">
 <custom:fruits>
  <apple id="delicious"/>
  <apple id="grannySmith"/>
  <strawberry />
 </custom:fruits>
</custom:Garden>

Can it be done? How do I define my get / set functions in
au.company.custom.Garden? Can I use [ArrayElementType()] with this to
enforce that everything in "fruits" extends "au.company.custom.Fruit"?

If there's a good example of what I'm trying to do, please point me in
the right direction!

Any tips much appreciated!

-J

-- 
"Therefore, send not to know For whom the bell tolls. It tolls for
thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  

 

Reply via email to