Skip to main content
gmarkowski
Participating Frequently
May 14, 2010
質問

fscommand( "trapallkeys", "true" ); not working under CS5

  • May 14, 2010
  • 返信数 2.
  • 8157 ビュー

Hi,

this code:

stage.displayState = StageDisplayState.FULL_SCREEN;
fscommand( "trapallkeys", "true" );

is not working when publishing to Windows Projector under Flash Pro CS5. The ESC key on keyboard is minimalizing the projector window.

When using the same code in Flash CS4 with exactly the same settings (Player: Flash Player 10 in both situations is selected) everything goes like it should, and the ESC key is blocked.

is it a bug or just a new "feature"?

or mabye I should change sth in the as3 code?

このトピックへの返信は締め切られました。

返信数 2

Participant
April 27, 2016

Use Flash Player 8 in Target drop down in Publish Settings.

Participating Frequently
May 23, 2010

I am seeing this problem as well. I am running Adobe Master CS5 on Windows 7 64-bit and publishing to Windows projector. Input textfields also do not work in Windows projectors published with CS5.

Current workaround: save as CS4 and publish from Flash CS4.

dikuno10
Known Participant
May 23, 2010

You're right - Input and dynamic text boxes don't really work in CS5.

If you want an input text box in CS5 without having to work in CS4, use TLF Text as the engine and select "Editable". Hope that helps, iheart2code.

Sorry grzegorz.markowski, but I don't know why "trapallkeys" doesn't work. If you like, though, you could create a "toggle full screen" if you want the user to be able to choose whether or not they want the animation full screen. (That's what I'm doing for the game I'm developing right now.)

Participating Frequently
May 24, 2010

Classic input text works fine as long as you aren't in Fullscreen mode.