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"; width="100%"
height="100%">
<Validattors ...>
<Images..>
<Panels...>
<Etc..>
<mx:Script>
        <![CDATA[
               blah
               blah
            private function gotoNext():void
            {

                this.parentApplication.viewStack1.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