Create 10 new mxml components, create a new name space in your Application Tag as below and then instantiate them as new components:

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
                                xmlns:view="components.*"
                                layout="absolute">
        
        
        <view:Component1 id="comp_one" />

        <view:Component2 id="comp_two" />
        
        <!-- .... and so on -->

</mx:Application>

Cheers,

Simon

newtriks.com

On 3 Jul 2008, at 16:30, Tiago Santarosa wrote:


Hi, I have 10 states in the application main.mxml, I would divide the code in 10 other files mxml being included by main.mxml.

I would thank any help!

tks, Tiago



Reply via email to