Copy link to clipboard
Copied
I've created a simple actionscript animation with several MC's - each with nested MC's that perform their own functions. Each frame/MC has a hotkey assigned to it in order to navigate to it and jump around the animation. When I publish as a flash projector the app works perfectly. BUT when I publish as an AIR app, I'm stuck on the first frame and non of my keyboard commands work. Is there something I'm missing? Is the AC3 script for AIR somehow different in terms of keyboard Event Listeners, etc.?
Thanks in advance for any help you can lend!
Best,
Copy link to clipboard
Copied
no, the as3 is the same. you may need to click something on stage before keyboard presses will be detected, but i think air works the same as a projector and that's not necessary. try it, though.
Copy link to clipboard
Copied
KGlad thanks for jumping in... so I tried to clicking on the app after launch and still the same result.
I do have a line of script in the first frame 'stage.DisplayState = stageDisplayState.FULL_SCREEN;'.
The app does launch full screen as directed ... no control... If I click ESC the app kicks out of Fullscreen mode and I can control it. I tried commenting out this line and republishing... now the app launhes in a window and works correctly. I do want the app to run full screen though.
Can anyone suggest a work around? Note: in flash apps, using stage.DisplayState = stageDisplayState.FULL_SCREEN; in the first line has always worked perfectly. Not sure why it's an issue with AIR?
Copy link to clipboard
Copied
You may have typed that line in here, rather than copy and paste, DisplayState should be displayState, and stageDisplayState should be StageDisplayState.
In any case, the line should be this:
stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
Copy link to clipboard
Copied
Correct Colin - looked closer and I was not using that command... what I typed is what I've been using for Fullscreen... works in flash. I tried subbing instage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE; and this cured the issue.
Thank you!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now