[flexcoders] Re: problem having navigation betwen states

2008-02-29 Thread actionscript_czar
Could we see the code so that we can check out the interaction between 
your states and your tabNavigator?

--- In flexcoders@yahoogroups.com, cool buddy [EMAIL PROTECTED] wrote:

 
 Hi all,
 
 I am using tabnavigator and states to naigate from one page to the 
other..
 
 I have defined the states for all the pages based on HOME page(base 
state).
 
 when i define to a linkbutton which i say go to home page defining it as 
click=currentState=' ' 
 
 it does n't go to home page instead it goes to the other page after home 
page defined in the order on TabNavigator.
 
 does any one have any idea..if so please post it..
 
 Thanks.
 
 
 
 
   

 Looking for last minute shopping deals?  
 Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/
newsearch/category.php?category=shopping





Re: [flexcoders] Re: problem having navigation betwen states

2008-02-29 Thread cool buddy
Sure..here it goes..

?xml version=1.0 encoding=utf-8?


mx:states
  mx:State name=FLIGHTS  
  
  /mx:State 
 
  mx:State name=CRUISES basedOn=FLIGHTS
   
   
  /mx:State 
  mx:State name=CONTACT basedOn=FLIGHTS/
  mx:State name=QUOTE basedOn=FLIGHTS/
  mx:State name=Register basedOn=FLIGHTS
  
   
   mx:AddChild id=regform
   custom:myDetails/
   /mx:AddChild 
   mx:AddChild id=home1
   mx:LinkButton id=hom2 label=HOME click=currentState=''/
  /mx:AddChild
   /mx:State 
   mx:State name=showPage basedOn=FLIGHTS
  
   mx:RemoveChild target={tn}/
  mx:RemoveChild target={cvn}/
  mx:RemoveChild target={cvs}/
  mx:RemoveChild target={footer}/
  mx:AddChild id=home3
  mx:LinkButton id=hom3 label=HOME click=currentState='' /
  /mx:AddChild
   /mx:State
 mx:State name=Passcode basedOn=FLIGHTS
  mx:RemoveChild target={tn}/
  mx:RemoveChild target={cvn}/
  mx:RemoveChild target={cvs}/
  mx:RemoveChild target={footer}/
  mx:AddChild id=forpass
   custom:myPasscode/
  /mx:AddChild
  mx:AddChild id=home
   mx:LinkButton id=hom1 label=HOME click=currentState='FLIGHTS'/
  /mx:AddChild
 /mx:State
   
 
  
  
 /mx:states
 
!--mx:FormHeading id=head label=DECCAN fontSize=30 width=280 
height=61 x=316 y=23 fontGridFitType=pixel fontStyle=normal 
kerning=true textAlign=center textDecoration=underline 
themeColor=#D76B00/
mx:FormHeading id=eco label=The Traveller focusIn=true x=300 y=45/ 
--
custom:myHeader id=myheader1/
 mx:Spacer id=spacer width=100%/
 mx:TabNavigator id=tn width=900 height=500 paddingTop=10 
paddingRight=10
  mx:Canvas id=cvn label=FLIGHTS width=100% height=100% 
paddingTop=10 paddingLeft=10 paddingBottom=10 paddingRight=10
  mx:SWFLoader x=564 y=20 width=293 height=204  id=swfloader1/
  mx:VBox x=10 y=35 width=175 height=210 borderStyle=solid 
backgroundColor=#509F00 id=vbox1
  mx:Text text=User ID: paddingLeft=10/
  mx:TextInput id=usid width=100/
  mx:Text text=PassCode: paddingLeft=10/
  mx:TextInput id=pcd width=100 displayAsPassword=true/
  mx:Button label=Login width=100 paddingRight=20/
  mx:Text text=New User ? paddingLeft=10/
  mx:LinkButton label=Sign Up width=100 paddingRight=20 
click=currentState='Register' fontSize=8 fontFamily=Arial/
  mx:LinkButton label=Forgot Password width=100 paddingRight=20 
click=currentState='PassCode' fontSize=8 fontFamily=Arial/
  /mx:VBox
  mx:VBox y=251 x=9 width=176 height=135 horizontalScrollPolicy=off 
borderStyle=solid backgroundColor=#509F00 id=vbox2
   mx:LinkButton label=Sign Up fontWeight=bold 
click=currentState='Register'/ 
   mx:Text text= to receive exclusive deal offers/
  /mx:VBox
   
  mx:Canvas id=cvs width=351 height=225 x=193 y=20 
borderThickness=1 backgroundColor=#509F00 borderStyle=solid
  mx:Text text=Travel quote in less than 15 minutes 
textDecoration=underline fontFamily=Times New Roman fontSize=10/
   mx:Label text=Starting Date: x=216 y=12 width=100%/
 mx:TextInput width=100  x=10 y=84/
mx:Label text=Returning Date: width=100%  x=216 
y=65/
 mx:Label text=Departure City: x=5 y=14 width=100% /
mx:Label text=Arrival City: width=100% id=ret_city 
x=11 y=62/
 mx:TextInput width=100 x=12 y=31/
 mx:DateField x=216 y=31 id=dep_date/
 mx:DateField x=216 y=85 id=ret_date/
 mx:RadioButton x=24 y=114 label=One-Way/
 mx:RadioButton x=155 y=114 label=Two-Way/
 mx:NumericStepper x=135 y=140/
 mx:NumericStepper x=24 y=140/
 mx:NumericStepper x=248 y=140/
 mx:Text x=27 y=163 text=Adults/
 mx:Text x=116 y=163 text=Children(2-12 yrs)/
 mx:Text x=247 y=163 text=Infant(0-2 yrs)/
 mx:Button x=240 y=194 label=SEARCH/
 
  /mx:Canvas
  mx:VBox textAlign=center  x=196 y=251 width=282 height=127 
borderThickness=1 borderStyle=solid scroll=false 
backgroundColor=#509F00 id=vbox3
  
 
 /mx:VBox
 mx:VBox textAlign=right verticalScrollPolicy=auto 
backgroundColor=#509F00 horizontalScrollPolicy=off width=304 height=120 
borderStyle=solid borderThickness=1 x=564 y=251 scroll=false 
id=vbox4
 
 /mx:VBox
 
 
  /mx:Canvas
  mx:Canvas label=CRUISES width=100% height=100% paddingLeft=10 
paddingBottom=10 paddingRight=10 id=canvas1
  custom:myCruises/
mx:LinkButton x=247 y=196  label=Search click=currentState='showPage' 
enabled=true/ 
  /mx:Canvas 
  mx:Canvas label=CONTACT width=100% height=100%
  custom:myAddress x=134 y=34/
  /mx:Canvas
  mx:Canvas label=QUOTE width=100% height=100%
  custom:mytravel x=175 y=10/
  /mx:Canvas
  /mx:TabNavigator
/mx:Application

- Original Message 
From: actionscript_czar [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, February 29, 2008 4:24:11 PM
Subject: [flexcoders] Re: problem having navigation betwen