How can I access values from the component?
I tried the following but it didn't work:
My component "colors.mxml" has the following:
<mx:SolidColor id="test" color="#000000"/>
My main app has this:
... xmlns:custom="comp.*" ...
<custom:colors/>
...fill="{test}"
but it doesn't work.
I'm trying to clean out my main MXML code in seperate files...
Thanks.
--- In [email protected], SAAGAR SHETTY
<[EMAIL PROTECTED]> wrote:
>
> Yes there is.
> You can create a mxml component and use that.
> The only difference is that this mxml will not have
<mx:Application> tag in it.
> Instead it will start with a container like panel or vbox etc.
> To include this in your application all you have to do is include
its namespace and use the name of the mxml file in which you have
created your component.
> If you are using flex builder it will take care of name space
declaration.
>
> Regards,
> Saagar Shetty
> www.xoriant.com
>
>
>
>
> ________________________________
> From: sailorsea21 <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Friday, 28 November, 2008 7:56:30 PM
> Subject: [flexcoders] Is there a way to include MXML inside another
MXML like "PHP include" ?
>
>
> Is there a way to include MXML inside another MXML like "PHP
include" ?
>
> Thanks.
>
>
>
>
> Add more friends to your messenger and enjoy! Go to
http://messenger.yahoo.com/invite/
>