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: [email protected]
Sent: Friday, February 29, 2008 4:24:11 PM
Subject: [flexcoders] Re: problem having navigation betwen states

                  Could we see the code so that we can check out the 
interaction between 
your states and your tabNavigator?

--- In [EMAIL PROTECTED] ups.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
>


    
          
<!--

#ygrp-mkp{
border:1px solid #d8d8d8;font-family:Arial;margin:14px 0px;padding:0px 14px;}
#ygrp-mkp hr{
border:1px solid #d8d8d8;}
#ygrp-mkp #hd{
color:#628c2a;font-size:85%;font-weight:bold;line-height:122%;margin:10px 0px;}
#ygrp-mkp #ads{
margin-bottom:10px;}
#ygrp-mkp .ad{
padding:0 0;}
#ygrp-mkp .ad a{
color:#0000ff;text-decoration:none;}
-->

<!--

#ygrp-sponsor #ygrp-lc{
font-family:Arial;}
#ygrp-sponsor #ygrp-lc #hd{
margin:10px 0px;font-weight:bold;font-size:78%;line-height:122%;}
#ygrp-sponsor #ygrp-lc .ad{
margin-bottom:10px;padding:0 0;}
-->

<!--

#ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, 
sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
font-family:Georgia;
}
#ygrp-text p{
margin:0 0 1em 0;}
#ygrp-tpmsgs{
font-family:Arial;
clear:both;}
#ygrp-vitnav{
padding-top:10px;font-family:Verdana;font-size:77%;margin:0;}
#ygrp-vitnav a{
padding:0 1px;}
#ygrp-actbar{
clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;}
#ygrp-actbar .left{
float:left;white-space:nowrap;}
.bld{font-weight:bold;}
#ygrp-grft{
font-family:Verdana;font-size:77%;padding:15px 0;}
#ygrp-ft{
font-family:verdana;font-size:77%;border-top:1px solid #666;
padding:5px 0;
}
#ygrp-mlmsg #logo{
padding-bottom:10px;}

#ygrp-vital{
background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;}
#ygrp-vital #vithd{
font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;}
#ygrp-vital ul{
padding:0;margin:2px 0;}
#ygrp-vital ul li{
list-style-type:none;clear:both;border:1px solid #e0ecee;
}
#ygrp-vital ul li .ct{
font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;}
#ygrp-vital ul li .cat{
font-weight:bold;}
#ygrp-vital a{
text-decoration:none;}

#ygrp-vital a:hover{
text-decoration:underline;}

#ygrp-sponsor #hd{
color:#999;font-size:77%;}
#ygrp-sponsor #ov{
padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;}
#ygrp-sponsor #ov ul{
padding:0 0 0 8px;margin:0;}
#ygrp-sponsor #ov li{
list-style-type:square;padding:6px 0;font-size:77%;}
#ygrp-sponsor #ov li a{
text-decoration:none;font-size:130%;}
#ygrp-sponsor #nc{
background-color:#eee;margin-bottom:20px;padding:0 8px;}
#ygrp-sponsor .ad{
padding:8px 0;}
#ygrp-sponsor .ad #hd1{
font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;}
#ygrp-sponsor .ad a{
text-decoration:none;}
#ygrp-sponsor .ad a:hover{
text-decoration:underline;}
#ygrp-sponsor .ad p{
margin:0;}
o{font-size:0;}
.MsoNormal{
margin:0 0 0 0;}
#ygrp-text tt{
font-size:120%;}
blockquote{margin:0 0 0 4px;}
.replbq{margin:4;}
-->






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

Reply via email to