Title: Message
I think I've already logged the bug for this (bug #84502) and it is addressedin the doc in Creating Custom Components in Flash section as follow:
 
If your custom SWC has properties typed Array, do not use data-binding to supply initial values
for that array properties. For example, if your custom SWC has a labels property which is typed
Array, do not use data-binding in the MXML as shown below:
<yourSWC labels={myArray}/>
<mx:Script>
<![CDATA[
var myArray=["cat", "dog", "bird"];
]]>
</mx:Script>
The problem is that Flex instantiates the SWC before data binding occurs. Instead, you define the
the array using the <mx:Array> tag, as the following example shows:
<yourSWC>
<labels>
<mx:Array>
<mx:String>cat</mx:String>
<mx:String>dog</mx:String>
<mx:String>bird</mx:String>
</mx:Array>
</labels>
</yourSWC>
 
Thank you,
-Yukari
-----Original Message-----
From: Matt Chotin [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 03, 2004 10:05 AM
To: '[email protected]'
Subject: RE: [flexcoders] Bindings and custom properties

OK, sounds bug-worthy.  Can you send a bug report into [EMAIL PROTECTED] with your class and an example of how it doesn't highlight along with your workaround?

 

Thanks,

 

Matt

 

-----Original Message-----
From: Dirk Eismann [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 03, 2004 4:55 AM
To: [email protected]
Subject: RE: [flexcoders] Bindingsand custom properties

 

I already tried doLater() but tono effort - even after the doLater call
the inner controls don't seem to be finished. My workaround right now is
to set up a timer with setInterval that after a few ms calls the
highlightDays() method.

Dirk.

> As far as the events firing before internal components are ready I'm
> honestly not sure why that would be.  In general
> creationComplete means that everything is good to go,
> but maybe you need towait a little after that
> using a doLater?



Reply via email to