You are not logged in.

1

Tuesday, May 12th 2009, 10:05pm

Modify the Context Menu from Actionscript

I have been looking for an example on how to modify the context menu from actionscript code and I was unable to find one. I have a plugin that I would like to have add custom options to the context menu whenever it is loaded. Thanks for any help.

- Adam

Zephyr

Professional

Posts: 1,003

Location: Netherlands

Occupation: Web developer

  • Send private message

2

Wednesday, May 13th 2009, 9:51am

you can either add it through xml ( http://krpano.com/docu/xml/#contextmenu)

or use the AS3 class (http://livedocs.adobe.com/flash/9.0/Acti…ontextMenu.html)
tutorial : http://www.republicofcode.com/tutorials/…as3contextmenu/

Btw make sure you always add krpano.com to the list. Because its probably possible to remove the link through as3.

3

Wednesday, May 13th 2009, 3:09pm

Thanks that is exactly what I need.