Skip to main content
Participant
October 12, 2014
Answered

Arrow KEYS required click LMB

  • October 12, 2014
  • 1 reply
  • 485 views

Hi everyone,

I've got a problem with my script. In first frame I have 3 image:

First image = go to frame 2

Second image = go to frame 3

Third image = go to frame 4

I can use arrow keys (left/right) to go  from frame 1 to frame 2 (example). But when I click in first frame (frame with 3 images) on image, for example 1, script go me to frame 2, I must first click LBM inside my swf, so that use arrow keys left/right.

My script in frame 1.

qrPA.addEventListener(

    MouseEvent.CLICK,

    function(e:MouseEvent):void

    {

        gotoAndPlay(2);

    }

);

qrKM.addEventListener(

    MouseEvent.CLICK,

    function(e:MouseEvent):void

    {

        gotoAndPlay(3);

    }

);

qrGK.addEventListener(

    MouseEvent.CLICK,

    function(e:MouseEvent):void

    {

        gotoAndPlay(4);

    }

);

This topic has been closed for replies.
Correct answer kglad

try adding

stage.focus=this;

on your main timeline.

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
October 12, 2014

try adding

stage.focus=this;

on your main timeline.

pozdro600Author
Participant
October 13, 2014

Thanks, but it's not working.

kglad
Community Expert
Community Expert
October 13, 2014

what's lbm?