yup, any MXML file is a class in the end...with a empty constructor.
In fact, any AS class can be instantiated with MXML too provided it
has a empty constructor.  ....well, you can sneak around the empty
requirement with arg = null :)

DK

On Thu, Jul 3, 2008 at 3:32 PM, Dave Watts <[EMAIL PROTECTED]> wrote:
>> Does anyone have resources on how to call an mxml
>> actionscript with Actionscript. In my project I am wating to
>> have the user click a button which then displays a
>> TitleWindow and having troubles creating this same component
>> strictly in actionscript which only has 2 DataGrids and each
>> datagrid has 3 columns.
>
> I'm pretty sure you can do this by just calling an empty constructor. If I
> recall correctly, when your MXML is compiled to AS, it'll have a constructor
> even though you (obviously) didn't create one in MXML.
>
> Of course, you will need to specify the appropriate package notation, based
> on where your MXML file is, I think.
>
> You might find it helpful to post some code.
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
>
> Fig Leaf Software provides the highest caliber vendor-authorized
> instruction at our training centers in Washington DC, Atlanta,
> Chicago, Baltimore, Northern Virginia, or on-site at your location.
> Visit http://training.figleaf.com/ for more information!
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:5373
Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to