| Package | com.adobe.viewsource |
| Class | public class ViewSource |
| Inheritance | ViewSource Object |
| Language Version: | ActionScript 3.0 |
| Product Version: | Flex 3 |
| Runtime Versions: | Flash Player 9, AIR 1.1 |
viewSourceURL property of the application container
to the URL of your source code,
the user can view the source code by selecting the
"View Source" context menu item.
See also
| Method | Defined By | ||
|---|---|---|---|
[static]
Adds a "View Source" context menu item
to the context menu of the given object. | ViewSource | ||
![]() |
Indicates whether an object has a specified property defined. | Object | |
![]() |
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | |
![]() |
Indicates whether the specified property exists and is enumerable. | Object | |
![]() |
Sets the availability of a dynamic property for loop operations. | Object | |
![]() |
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | |
![]() |
Returns the string representation of the specified object. | Object | |
![]() |
Returns the primitive value of the specified object. | Object | |
| addMenuItem | () | method |
public static function addMenuItem(obj:InteractiveObject, url:String, hideBuiltIns:Boolean = true):void| Language Version: | ActionScript 3.0 |
| Product Version: | Flex 3 |
| Runtime Versions: | Flash Player 9, AIR 1.1 |
Adds a "View Source" context menu item to the context menu of the given object. Creates a context menu if none exists.
Parameters
obj:InteractiveObject — The object to attach the context menu item to.
| |
url:String — The URL of the source viewer that the "View Source"
item should open in the browser.
| |
hideBuiltIns:Boolean (default = true) — Optional, defaults to true.
If true, and no existing context menu is attached
to the given item, then when we create the context menu,
we hide all the hideable built-in menu items.
|