parentDocument

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of YOGESH JADHAV
Sent: Wednesday, March 05, 2008 8:13 PM
To: [email protected]
Subject: [flexcoders] How to change viewStack.selectedChild from canvas
component.

 

Hi all, 
             I have viewStack and custom canvas based components ( mxml
) as views. My problem is that when i change my view inside function of
one of custom views, i get error. How to access
parent.viewStack.selectedChild = nextComponent ?

<mx:ViewStack  id="viewstack1" width="100%" height="100%">
        <my:fistView/>
        <my:secondView/>
        <my:thirdView/>
   </mx:ViewStack>

This is my custom view
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml
<http://www.adobe.com/2006/mxml> " width="100%" height="100%">
<Validattors ...>
<Images..>
<Panels...>
<Etc..>
<mx:Script>
        <![CDATA[
               blah 
               blah
            private function gotoNext():void
            {
               
                this.parentApplication.viewStac

k1.selectChild  = this.parent.viewStack1.secondView ;
                
            }

I know that syntax is wrong, but u can get idea what i wanna do .

Thanx in advance
-- 



-- 


Regards,
Yogesh 

 

Reply via email to