(viewStack.selectedChild as <the class you expect>).namedObject would
work

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Libby
Sent: Monday, November 27, 2006 12:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 2 - Locate a document within a document

 

I have a viewstack that has as children some complex mxml objects. I
would like to get a reference to a named object on one of those
children. I have tried all the relevant DisplayObject and
DisplayObjectContainer methods on the return value from
ViewStack.getSelectedItem() but no luck. Could someone give me a hint,
or a tiny example?

Thanks,
Libby

 

Reply via email to