1 Reply Latest reply on Mar 8, 2011 9:37 AM by Stefan Horochovec

    Hero "Long Press" Event?

    GenuineJD

      Is this a supported event in the Flex Hero SDK?  I cannot find any information on this anywhere.

        • 1. Re: Hero "Long Press" Event?
          Stefan Horochovec

          No JDMinster, this event dont exists on Flex Hero

           

          The only two options to work with events at KeyBoard:

           

          <?xml version="1.0" encoding="utf-8"?>

          <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"

             xmlns:s="library://ns.adobe.com/flex/spark"

             xmlns:mx="library://ns.adobe.com/flex/mx"

             creationComplete="application1_creationCompleteHandler(event)">

          <fx:Script>

          <![CDATA[

          import mx.events.FlexEvent;

           

          protected function application1_creationCompleteHandler(event:FlexEvent):void

          {

          this.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDownHandler);

          this.addEventListener(KeyboardEvent.KEY_UP, onKeyUpHandler);

          }

           

          protected function onKeyDownHandler(event:KeyboardEvent) : void

          {

           

          }

           

          protected function onKeyUpHandler(event:KeyboardEvent) : void

          {

           

          }

           

          ]]>

          </fx:Script>

           

           

          </s:Application>

           

          Regards

          1 person found this helpful