It does work the same way as previous versions of ActionScript. If you're
working with ActionScript, then stuff works just like you suggest. In MXML,
though, attributes are strings or binding statements, not simple
assignments.
Troy.
On 13 Mar 2007 10:47:44 -0700, Igor Costa <[EMAIL PROTECTED]> wrote:
Maybe you could put curly braces instead of only "".
Then passing throw outprints like this
<myComp source="{com.utils.ClasiMine}"/>
Regards.
Igor Costa
www.igorcosta.org
On 12 Mar 2007 20:28:39 -0700, Kevin <[EMAIL PROTECTED]> wrote:
>
> 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
>
>
--
----------------------------
Igor Costa
www.igorcosta.org
www.igorcosta.com
skype: igorpcosta