Package | Top Level |
Class | public class Plugin |
plugin
global object.
This class dispatches the following events:
Name | Type | Dispatched... |
---|---|---|
preferenceChange | PreferenceChange | when the preferences of the plugin have been changed |
See also
Method | Defined by | ||
---|---|---|---|
This method lets you register event listener functions with the specified control or object.
| Plugin | ||
getDirectory():String
Gets the plugin directory.
| Plugin |
addEventListener | () | method |
public function addEventListener(eventName:String, callback:String):void
This method lets you register event listener functions with the specified control or object.
The event listener functions always receive an event
object as a parameter. This
event has, among other, a sender
property which is a reference to the object that has
dispatched the event. This object may also have additional properties which depend on the
the event.
eventName:String — The event you wish to listen to.
|
|
callback:String — The Lua function to call when the event is triggered.
|
getDirectory | () | method |
public function getDirectory():String
Gets the plugin directory.
ReturnsString — The plugin directory.
|