header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Raman
Points:10
Posts:0

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 !



1
Andrid
Points: 720
Posts:0
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

2
Warrior
Points: 420
Posts:0
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;
}



Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 6+6 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions