03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Custom menu items appear at the top of the context menu, above any built-in items. A<br />

separator bar always divides custom menu items from built-in items. You can add no more<br />

than 15 custom items to a context menu. Each item must contain at least one visible<br />

character; control characters, newlines, <strong>and</strong> other white space characters are ignored. No item<br />

can be more than 100 characters long. Items that are identical to any built-in menu item, or<br />

to another custom item, are ignored, whether the matching item is visible or not. Menu items<br />

are compared without regard to case, punctuation, or white space.<br />

None of the following words can appear in a custom item: Macromedia, Flash Player, or<br />

Settings.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 7<br />

Property summary<br />

Modifiers Property Description<br />

Properties inherited from class Object<br />

Event summary<br />

456 <strong>ActionScript</strong> classes<br />

caption:String A string that specifies the menu item caption (text)<br />

displayed in the context menu.<br />

enabled:Boolean A Boolean value that indicates whether the<br />

specified menu item is enabled or disabled.<br />

separatorBefore:Bool<br />

ean<br />

A Boolean value that indicates whether a<br />

separator bar should appear above the specified<br />

menu item.<br />

visible:Boolean A Boolean value that indicates whether the<br />

specified menu item is visible when the Flash<br />

Player context menu is displayed.<br />

constructor (Object.constructor property), __proto__ (Object.__proto__<br />

property), prototype (Object.prototype property), __resolve<br />

(Object.__resolve property)<br />

Event Description<br />

onSelect =<br />

function(obj:Object<br />

, menuItem:Object)<br />

{}<br />

Invoked when the specified menu item is selected from the Flash<br />

Player context menu.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!