There is no standard flash context menu

31 views
Skip to first unread message

Aldvin Bek

unread,
Nov 7, 2016, 5:06:43 AM11/7/16
to Genome2D
Hi. I have problem with showing standard context menu (Settings, About FlashPlayer etc) after Genome initialization. It just does not show.
I am try to set mouseEnabled=true and mouseChildren=true to g2 root node. Also I am try to change value of enableNativeContentMouseCapture property. No effect.
Stage event MouseEvent.RIGHT_CLICK dispatch successfully.
RightClick on Display List objects also no effect (context menu absent). What am I doing wrong? Maybe my problem is in the Genome settings?

PS My only goal to allow the user could enable hardware acceleration in "Setting".

Aldvin Bek

unread,
Nov 7, 2016, 7:28:58 AM11/7/16
to Genome2D
I solved the problem by calling Security.showSettings(SecurityPanel.PRIVACY); on event stage.addEventListener(MouseEvent.RIGHT_CLICK

sHTiF

unread,
Nov 7, 2016, 11:25:39 AM11/7/16
to Genome2D
Not sure which Genome2D version you are using, some versions had

public var useRightClick:Bool = true;

by default in GContextConfig this resulted in Genome2D automatically assigning RIGHT_CLICK event listeners on stage which will disable context menu in Flash by default. Latest Genome2D version has this property set to false by default.

P.

Aldvin Bek

unread,
Nov 9, 2016, 2:16:18 AM11/9/16
to Genome2D
Thanks for the answer.
On another topic:
Not sure if relevant in the current version of the Genome. My version of the genome updated about a month ago. Then I saw a little mistake. After creating SubTexture I should set g2d_atfType. Here is an example.
subTexture = GTextureManager.createSubTexture (subTextureId, texture, bounds, null, false);
subTexture.g2d_atfType = texture.g2d_atfType;
I think this code should be moved to the core of Genome

sHTiF

unread,
Nov 9, 2016, 1:12:43 PM11/9/16
to Genome2D
Thanks fixed in last commit.
Reply all
Reply to author
Forward
0 new messages