Results 1 to 2 of 2

Thread: action script 3.0 video traversal

  1. #1
    Registered
    Join Date
    Jun 2013
    Location
    florida
    Posts
    1
    Rep Power
    0

    action script 3.0 video traversal

    I need some help I am running into a few issues

    I have a video it is an instance of FLVPlayback

    the instance name is movie

    I want to traverse forward and backwards through the video using the

    KeyboardEvent.KEY_DOWN - event

    but I can't get access to the movies frames

    I thought I could do something like this

    stage.addEventListener(KeyboardEvent.KEY_DOWN, fl_KeyboardDownHandler);

    function fl_KeyboardDownHandler(event:KeyboardEvent):void
    {


    if(event.keyCode== 39)
    {
    movie.gotoAndStop(movie.currentFrame + 1);
    }
    if(event.keyCode== 37)
    {
    movie.gotoAndStop(movie.currentFrame - 1);
    }

    }

  2. #2
    on hiatus
    Join Date
    May 2015
    Location
    Between MagicPicker and MixColors
    Posts
    1
    Rep Power
    0
    Does it work if you try something like
    if (event.keyCode == Keyboard.LEFT) ?

    Also make sure the movie is a global variable.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •