6/9/2010 3:32:48 AM
Title:
Navigation control
Hi,
I want to create a flex app with few pages of text and navigation buttons (next and back) to navigate between different pages of the code.
Any Sample around this or suggestions about the approach to be taken would be useful.
I am totally new to the flex world.
Thanks !
6/9/2010 6:40:56 AM
you can use the states provided in flex , to create multiple pages and place buttons to navigate between them . Check this tutorial to create such interface
http://askmeflash.com/tutorial/0/how-to-create-website-in-flex-tutorial-my-first-flex-website
6/9/2010 7:22:47 AM
i will recommend you using states . but if you have a few pages then you can simply hide show your continers. Like on button click of button1, button2 and button3 you can simply hide the other containers and show the related container. The containers here refer to Canvas,VBox,Hbox etc which can contain your other components
private function button1Click(evt:Event):void{
container1.visible=true;
container2.visible=false;
container3.visible=false;
}
private function button2Click(evt:Event):void{
container1.visible=false;
container2.visible=true;
container3.visible=false;
}
private function button3Click(evt:Event):void{
container1.visible=false;
container2.visible=false;
container3.visible=true;
}