0 Replies Latest reply on Oct 17, 2006 6:47 AM by ForsakenBlade

    KeyUp Error

    ForsakenBlade
      Well here is my code...

      <mx:Script>
      <![CDATA[

      [Bindable]
      public var curKeyCode:int;

      ]]>
      </mx:Script>


      <mx:TileList id="tiles" width="405" height="455" useRollOver="false" selectable="false" dataProvider="{tileData}" keyUp="curKeyCode=event.keyCode" itemRenderer="tileRenderer" enabled="true" paddingBottom="0" paddingRight="0" paddingLeft="0" paddingTop="0"/>

      <mx:Text id="myKey" text="Key Pressed: {curKeyCode}"/>


      ... the error is whenever I start off by pressing the Up or Left Arrow it gives some weird error but if I start off pressing any other key it displays the key pressed correctly and then I can use the Up and Left Arrows again, help is much appreciated.