DispatchableTextField
| Kind of class: | class |
|---|---|
| Inherits from: | CoreTextField < CoreMovieClip < MovieClip |
| Implements: | |
| Known subclasses: | |
| Version: | 06/21/07 |
| Author: | Aaron Clinger |
| Classpath: | org.casaframework.textfield.DispatchableTextField |
| File last modified: | Sunday, 19 August 2007, 13:43:28 |
Base "TextField" that includes org.casaframework.event.EventDispatcher and extends CoreTextField.
See also:
Summary
Instance properties
Instance properties inherited from CoreTextField
antiAliasType autoSize background backgroundColor border borderColor bottomScroll condensWhite embedFonts field_txt gridFitType height hscroll html htmlText length maxChars maxhscroll maxscroll menu mouseWheelEnabled multiline password restrict scroll selectable sharpness styleSheet tabEnabled tabIndex text textColor textHeight textWidth thickness type variable width wordWrap
Instance properties inherited from CoreMovieClip
Class methods
Class methods inherited from CoreTextField
Class methods inherited from CoreMovieClip
Instance methods
- addEventObserver
- removeEventObserver
- removeEventObserversForEvent
- removeEventObserversForScope
- removeAllEventObservers
- dispatchEvent
- destroy
Instance methods inherited from CoreTextField
Instance methods inherited from CoreMovieClip
Event handlers
Event handlers inherited from CoreTextField
Class methods
create
static function create (target:MovieClip,
instanceName:String,
depth:Number,
width:Number,
height:Number) : DispatchableTextField
Creates an empty instance of the DispatchableTextField class. Use this instead of a traditional
new constructor statement due to limitations of ActionScript 2.0.Parameters:
target :
Location where the TextField should be attached.
instanceName:
A unique instance name for the TextField.
depth :
[optional] The depth level where the TextField is placed; defaults to next highest open depth.
width :
A positive integer that specifies the width of the new text field.
height :
A positive integer that specifies the height of the new text field.
Returns:
Returns a reference to the created instance.
Example:
var myText_mc:DispatchableTextField = DispatchableTextField.create(this, "text_mc", null, 250, 50);Since:
Flash Player 7
Instance methods
addEventObserver
function addEventObserver (scope:Object,
eventName:String,
eventHandler:String) : Boolean
Registers a function to receive notification when a event handler is invoked.
#Returns:
Returns
#true if the observer was established successfully; otherwise false.destroy
function destroy () : Void
Removes any internal variables, intervals, enter frames, internal MovieClips and event observers to allow the object to be garbage collected.
Always call
#Always call
destroy() before deleting last object pointer.Overrides:
Specified by:
dispatchEvent
function dispatchEvent (eventName:String) : Boolean
Reports event to all subscribed objects.
#Returns:
Returns
#true if observer(s) listening to specifed event were found; otherwise false.removeAllEventObservers
function removeAllEventObservers () : Boolean
Removes all observers regardless of scope or event.
#Returns:
Returns
#true if observers were successfully removed; otherwise false.removeEventObserver
function removeEventObserver (scope:Object,
eventName:String,
eventHandler:String) : Boolean
Removes specific observer for event.
#Returns:
Returns
#true if the observer was successfully found and removed; otherwise false.removeEventObserversForEvent
function removeEventObserversForEvent (eventName:String) : Boolean
Removes all observers for a specified event.
#