2

ANSWER To use this and any new features in 11.2, the swf-version needs to be turned all the way up to 15.

My setup:

  • FlashBuilder 4.6 Build instructions include "-swf-version=13"
  • Flex SDK version 4.6.0 (build 23201) playerglobal.swc (current one from Adobe's page, http://www.adobe.com/support/flashplayer/downloads.html, said to be 11.2 as well)
  • Standalone debugger projector (11.2.202.228)
  • Browser flash player plugin (11.2.202.228)

So by my reckoning, I'm up to date in everywhere I should be, to be able to use MouseEvent.RIGHT_CLICK (Adobe Documentation: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/events/MouseEvent.html#RIGHT_CLICK) but, if I do

Example of occurrence

I understand that right-click was initially supposed to be AIR only, but that's supposedly changed, which is supported by the fact that it's in the website documentation and in the class definition for MouseEvent,

MouseEvent Class Definition

I want to play around with a few right-click stuff in Flash, but it seems like something's definitely not working correctly. Anyone got an insight as to what's wrong?

I'm a bit confused by some of the comments, so in case it's me poorly explaining what's going on, so here's an example of my code running and compiled, with source attached, http://www.tymonrovers.com/seaders/asdf.html

4

1 に答える 1

3

SWF Version in build instructions need to be up at 15... as detailed http://helpx.adobe.com/flash-player/release-note/release-notes-developer-flash-player.html#main_authoring_flash_player

Damnit! I know it looks obvious now, but I do think they should probably detail that in the docs as well, they've got the specific versions of the SDKS for AIR and Flash, but not the swf version info, which while it might sound overkill, would certainly solve irritations like this when you forget that one little bit of a tweak you need to do for new features. Ah well, all working now. :/

enter image description here

-swf-version=15

于 2012-04-05T00:56:16.503 に答える