Abdul will probably be able to figure out how to do this but there are several other options:

  • Have the data in an Object or Array and pass that.
  • Pass in a reference to the parent, and in the component do myParent.getData()
  • Pass in a typed reference to the paren and use binding text=”{myParent.getData()}”

 

Tracy

 


From: erik katerborg [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 14, 2005 5:40 AM
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

Reply via email to