I suspect you meant to say that trace(source) is tracing out the string
"model.someObject.currentObject".
 
I think you want
 
   <comp:SomeCustomComponent source="{model.someObject.currentObject}"/>
 
- Gordon

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Kevin
Sent: Monday, March 12, 2007 8:22 PM
To: [email protected]
Subject: [flexcoders] Passing an object reference as a property



I would like to pass an object path through a property of another 
class, but can't figure out how to do it.

model.someObject.currentObject (the ML variable)

<comp: SomeCustomComponent source="model.someObject.currentObject" />

class SomeCustomComponent{

public var source:Object;

function test(){

trace(model.someObject.currentObjec);

}

}

This outputs the string "model.someObject.currentObject" rather than 
the variable value at - model.someObject.currentObject

thanks for the insight.

- kevin



 

Reply via email to