I see the light, I was wondering about that.
Thanks Gordon.
Peace, Mike
Declare that your non-visual component implements IMXMLObject. The initialize() method will be called when the MXML properties have been set on your component:
/**
* Called after the implementing object has been created and all
* component properties specified on the MXML tag have been initialized.
*
* @param document The MXML document that created this object.
*
* @param id The identifier used by <code>document</code> to refer
* to this object.
* If the object is a deep property on <code>document</code>,
* <code>id</code> is null.
*/
function initialized(document:Object, id:String):void;
- Gordon
From: [email protected] [mailto:[email protected]] On Behalf Of Claudia Barnal
Sent: Tuesday, June 13, 2006 6:33 AM
To: [email protected]
Subject: [flexcoders] Re: creationComplete on custom non UI component
So, is there no way to catch when the MXML variable values are
accessible in the AS of a custom component?
On 6/11/06, Claudia Barnal <[EMAIL PROTECTED]> wrote:
> Is there a best practice for making something similar to a
> creationComplete method on a non UI component that extends
> EventDispatcher?
>
> I am not sure this is what I need, but let me explain my situation:
>
> <!-- In the MXML -->
> <MyComponent someValue="10" >
>
> The problem is that I can't get to the "someValue" (10 in this case) i
> have set in the MXML before the component has been instantiated or
> something. So my question is really:
>
> How do I know when I have access to the someValue="10" set in MXML,
> within the AS component?
>
--
What goes up, does come down. __._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
![]()
SPONSORED LINKS
Web site design development Computer software development Software design and development Macromedia flex Software development best practice
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___
- Re: [flexcoders] Re: creationComplete on custom non UI co... Michael Schmalle
- Re: [flexcoders] Re: creationComplete on custom non ... Claudia Barnal
Reply via email to

