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

    States bug in x64?

      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:

      And here is the code:

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">
      <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: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: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 width="100%">
      <mx:Label text="Password:" width="75"/>
      <mx:TextInput id="password"/>
      <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"/>