Skip navigation
carlos zarate sandoval
Currently Being Moderated

reproduce & rewind my animation

Mar 27, 2013 7:36 AM

Tags: #help #flash #cs6 #moving #rewind #reproduce #commands.

Hi people!

 

     My name is carlos and im getting troubles with reproducing my animation. i export a job in formate .exe and it reproduce & rewind using boton ENTER & another combination of keys. but i want to move in my presentation using keys arrows like: -> to reproduce & <- to rewind or get back in animation.

 

 

Please help me !

 
Replies
  • Currently Being Moderated
    Mar 27, 2013 7:42 AM   in reply to carlos zarate sandoval

    What version of Actionscript is your file using?

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 27, 2013 12:06 PM   in reply to carlos zarate sandoval

    To use the keyboard in AS3, much like anything else in AS3, you need to assign event listeners for the keyboard and have an event handler function to process the event.

     

    stage.addEventListener(KeyboardEvent.KEY_UP, processKeyUp);

     

    function processKeyUp(evt:KeyboardEvent):void {  

       if (evt.keyCode==Keyboard.RIGHT){

            // process right key commands

       }   

       if (evt.keyCode==Keyboard.LEFT){

           // process left key commands

       }      

    }

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 28, 2013 7:02 AM   in reply to carlos zarate sandoval

    If you do not already have a layer for Actionscript, it is best to have one for it so that it does not get confused with stage content.

     

    That code alone will not do what you want.  You need to fill in the parts where is says  // process .... key commands   with whatever code your button functions use.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points