If you have a lot of actionscript in the mxml file, or in a Script src="" include. You should move that logic into an as class.

 

If you are re-factoring UI mxml, something  like this (maybe 600 lines):

 

<mx:Application …>

<mx:Panel id=”one”…./>

….lots of mxml

</mx:Panel>

<mx:Panel id=”two”…./>

….lots of mxml

</mx:Panel>

<mx:Panel id=”three”…./>

….lots of mxml

</mx:Panel>

<mx:Application …>

 

 

You would create mxml components One, Two, Three that extend panel and contain all the mxml for each panel.  Then your Application code would look like this (5 lines) :

<mx:Application …xmlns”*”>

<One id=”one” />

<Two id=”two” />

<Three id=”three” />

<mx:Application …>

 

 

Communication between the components is another subject.

 

Tracy


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 07, 2005 11:42 AM
To: [email protected]
Subject: Re: [flexcoders] Question about action script components

 

I think so thanks



Yahoo! Groups Links

Reply via email to