How can I connect back to a another stack component in the main 
app...see the code inside the function changeStack.  The id called 
vsl is not recognized.

Thanks

main.mxml
 <mx:Application....
 ....<mx:Panel>
        <mx:ViewStack id="vsl">
           <comp:myComp1 id="myComp1"/>
           <comp:myComp2 id="myComp2"/>
        </mx:ViewStack>
     </mx:Panel>
 
 myComp1:
 <mx:VBox....
    <mx:Script...
        function changeStack():Void{
           vsl.selectedChild = ???? //doesn't know what is vsl!!
        }

--- In [email protected], "Ghislain Simard" <[EMAIL PROTECTED]> 
wrote:
> I'm inside a component, trying to get access to another component 
and 
> passing a value at the same. Any idea?
> 
> main.mxml
> <mx:Application....
> ....<mx:Panel>
>        <mx:ViewStack id="vsl">
>           <comp:myComp1 id="myComp1"/>
>           <comp:myComp2 id="myComp2"/>
>        </mx:ViewStack>
>     </mx:Panel>
> 
> myComp1:
> <mx:VBox....
>    <mx:Script...
>        function changeStack():Void{
>           vsl.selectedChild = ???? //doesn't know what is vsl!!
>        }





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to