this[componentIdName].reload(), although I think sending component names
from ColdFusion is a terrible idea.
Patrick
2006/12/18, Paul Whitelock <[EMAIL PROTECTED]>:
I have a ColdFusion component that passes a string with the id of an
Flex component to a Flex application (the component is instantiated in
the Flex application). I want to call a method in the Flex component
by using the id contained in the string. Is there any way to use the
string value to lookup the actual object so that a function call can
be made?
For example, the string that is sent to the Flex application from
ColdFusion is "rowEditor" and a component with that id exists in the
application:
...
var componentIdName:String = event.result[0].component;
...
How can I use the string value to call a function named "reload" in
"rowEditor" (i.e. rowEditor.reload())? I can't do this:
componentIdName.reload()
Is there a way to convert componentIdName to an object reference?
Thanks for any help!