dcmike27
08-13-2008, 02:18 PM
Flex newbie here, stuck on what should be a simple task.
My application consists of a viewStack of 3 vBoxes. Each vBox consists of a component.
Within the first vBox, I have a button that will take the user to the next viewStack container, whose id is "search". The button calls handler goToSearch():
<mx:Script>
<![CDATA[
public function goToSearch():void
{
myViewStack.selectedIndex = 1
}
]]>
</mx: Script>
This causes FlexBuilder to give this error:
1120: Access of undefined property of myViewStack.
Could anyone take a moment to steer this newbie in the right direction? Many thanks.
My application consists of a viewStack of 3 vBoxes. Each vBox consists of a component.
Within the first vBox, I have a button that will take the user to the next viewStack container, whose id is "search". The button calls handler goToSearch():
<mx:Script>
<![CDATA[
public function goToSearch():void
{
myViewStack.selectedIndex = 1
}
]]>
</mx: Script>
This causes FlexBuilder to give this error:
1120: Access of undefined property of myViewStack.
Could anyone take a moment to steer this newbie in the right direction? Many thanks.