A Flash Developer Resource Site

Search:

Type: Posts; User: jkell

Search: Search took 0.02 seconds.

  1. Replies
    4
    Views
    2,307

    The if statement needs to be inside your...

    The if statement needs to be inside your function...

    function playFile(e:keyboardEvent){
    //trace statement
    //if statement
    }

    Look at your opening and closing curly braces.
  2. Replies
    4
    Views
    2,307

    I would do a trace inside of your function and...

    I would do a trace inside of your function and see what the e.keyCode is:



    stage.addEventListener(KeyboardEvent.KEY_UP, playfile);
    function playfile(e:KeyboardEvent):void {
    trace(e.keyCode)...
Results 1 to 2 of 2




Click Here to Expand Forum to Full Width

HTML5 Development Center