Title: Message
I could be wrong, but from my experience I found that binding with functions doesn't work if there are no arguments that are passed into the function that Flex can watch.
 
So.
 
myClass.myFunc() -> Flex doesn't know that it should recheck the function
myClass.myFunc( myClass.att1 ) -> only recalls function on change to myClass.att1
 
I havn't tried goofing around with what happens if class raises change events like dispatchEvent({type:'myFuncChanged'}).
 
 
-----Original Message-----
From: Abdul Qabiz [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 14, 2005 12:25 PM
To: [email protected]
Subject: RE: [flexcoders] beginners question about sending data to custom flex components

Hi Matthew,
 
It would really help, if you can give me a test-case where you see mixed result...It would really help us...
 
Thanks
 
-abdul


From: [email protected] [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 14, 2005 8:57 PM
To: [email protected]
Subject: Re: [flexcoders] beginners question about sending data to custom flex components

I'm fairly new at this data binding stuff... but I thought you were only able to bind properties, or getters/setters.  I have had mixed results when I try to bind to a function.  Is this wrong?

-- Matthew

On 4/14/05, Abdul Qabiz <[EMAIL PROTECTED]> wrote:
Hi,

Can you post the code so that we look at it? IMO this shouldn't happen?
 
 
-abdul
 

From: erik katerborg [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 14, 2005 3:10 PM
To: [email protected]
Subject: [flexcoders] beginners question about sending data to custom flex components
Importance: High

hi,
 
This may be a beginner's question but I just can't figure one thing out: how to send dynamic data to a custom flex component.
what I want to do is the following:
 
<myCustomSWC myDataToBeUsed="{myActionscriptClass.getData();}" />
 
the problem is that the function is not executed but simply passed as a string to the component. Another problem is that the actionscript class may not have initialised yet so the function would not work at all.
 
does anyone have a suggestion on how to do this ???
 
thanks very much !!!
 
a confused flex coder,
 
erik.


Erik Katerborg
<Multimedia Designer>

t: <050 - 575.78.88>
f: <050 - 575.88.89>
e: <[EMAIL PROTECTED] >
w: <www.thefactore.com>
<theFactor.e>
Friesestraatweg 215a
Postbus 2010
9704 CA Groningen

Business Partner for Mediasurface
Alliance Partner for Macromedia


Yahoo! Groups Links


Yahoo! Groups Links

Reply via email to