5 Replies Latest reply on Dec 20, 2006 2:09 PM by Derrick_Simpson

    States bug in x64?

    pixolpower Level 1
      I have this code from a tutorial on lynda.com but on my desktop it gives an error.. i tried reinstalling flex but i had the same error... on my laptop it does work ok the only difference is that my laptop is 32 bit and desktop XP x64 could it be that it is a bug in Flex 2?

      This is the error:
      http://img60.imageshack.us/img60/522/1qw8.jpg

      And here is the code:

      [code]
      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">
      <mx:states>
      <mx:State name="registerForm">
      <mx:AddChild relativeTo="{controlbar1}" position="before">
      <mx:HBox width="100%">
      <mx:Label text="Name:" width="75"/>
      <mx:TextInput id="nameInput"/>
      </mx:HBox>
      </mx:AddChild>
      <mx:SetProperty target="{myPanel}" name="title" value="Please Register"/>
      <mx:SetProperty target="{submitButton}" name="label" value="Register"/>
      <mx:SetProperty target="{linkbutton1}" name="label" value="Login"/>
      <mx:SetEventHandler target="{linkbutton1}" name="click" handler="this.currentState=''"/>
      </mx:State>
      </mx:states>
      <mx:Panel id="myPanel" title="Please Log In"
      paddingLeft="10" paddingRight="10"
      paddingTop="10" paddingBottom="10">

      <mx:HBox width="100%">
      <mx:Label text="User Name:" width="75"/>
      <mx:TextInput id="userName"/>
      </mx:HBox>
      <mx:HBox width="100%">
      <mx:Label text="Password:" width="75"/>
      <mx:TextInput id="password"/>
      </mx:HBox>
      <mx:ControlBar id="controlbar1">
      <mx:Button label="Login" id="submitButton"/>
      <mx:Spacer width="100%"/>
      <mx:LinkButton label="New User?" click="this.currentState='registerForm'" id="linkbutton1"/>
      </mx:ControlBar>
      </mx:Panel>

      </mx:Application>
      [/code]