Skip to main content
Participant
January 8, 2014
Answered

flash.events:StageOrientationEvent could not be found.

  • January 8, 2014
  • 1 reply
  • 515 views
Scene 1, Layer 'Layer 1', Frame 1, Line 21172: Definition flash.events:StageOrientationEvent could not be found.

What am I doing wrong?

I am using Flash Professional CS6, version 12.0. Flash reports error for line:

                    import flash.events.StageOrientationEvent;

I have barely begun a platformer and I am trying to use key presses to move the background around. Any help is much appreciated

This topic has been closed for replies.
Correct answer moccamaximum

you can only use this Event if you publish to AIR:

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/events/StageOrientationEvent.html

1 reply

moccamaximumCorrect answer
Inspiring
January 8, 2014
Gogu173Author
Participant
January 8, 2014

Oh, thanks For some reason, it imported this event automatically. I've deleted the line and it works now. Cheers!