GenerateForm

GenerateForm

User interface for display, import and editing of generated script code.

Summary
GenerateFormUser interface for display, import and editing of generated script code.
Functions and Properties
GenerateFormForm constructor
ShowDialogDisplays the dialog box ensuring the displayed script is up-to-date.
InitializeComponentInitializes the user interface components on the form.
codeStyleReturns a dynamic object with code style properties.
updateFromScriptChange the shown text to the new script.

Functions and Properties

GenerateForm

public function GenerateForm()

Form constructor

ShowDialog

public function ShowDialog(parent: Sprite,  
closeHandler: Function = null):void

Displays the dialog box ensuring the displayed script is up-to-date.

Parameters

parentdisplay object to use as a parent for the dialog box
closeHandlercallback called when the dialog is closed, see DialogBox.closeHandler

InitializeComponent

public function InitializeComponent():void

Initializes the user interface components on the form.

codeStyle

public function get codeStyle():Object

Returns a dynamic object with code style properties.

updateFromScript

public function updateFromScript(script: String):void

Change the shown text to the new script.

Parameters

scriptnew script text
A base class dialog box widget.
public function GenerateForm()
Form constructor
public function ShowDialog(parent: Sprite,  
closeHandler: Function = null):void
Displays the dialog box ensuring the displayed script is up-to-date.
public function InitializeComponent():void
Initializes the user interface components on the form.
public function get codeStyle():Object
Returns a dynamic object with code style properties.
public function updateFromScript(script: String):void
Change the shown text to the new script.
public var closeHandler: Function
Callback function called when the dialog is closed.
Close