StringEvent

Kind of class:class
Inherits from:BasicEvent
Version:1.0
Author:Francis Bourre
Classpath:com.bourre.events.StringEvent
File last modified:Wednesday, 31 October 2007, 07:35:29
StringEvent defines specific event structure to work with
String value.

Based on BasicEvent class, StringEvent add access
to his specific String property with getString and
setString methods.

Summary

Constructor
Instance properties
Instance properties inherited from BasicEvent
Instance methods
Instance methods inherited from BasicEvent

Constructor

StringEvent

function StringEvent (
e:EventType, s:String)
Constructs a new NumberEvent instance.

Example

var e : StringEvent = new StringEvent(MyClass.onSomething, "pixlib");
Parameters:
e:
an EventType instance (event name).
s:
a String value

Instance methods

getString

function getString (
) : String
Returns instance String value.

Example

var e : StringEvent = new StringEvent(MyClass.onSomething, "pixlib");
trace( e.getString() );
Returns:
a String value

setString

function setString (
s:String) : Void
Defines instance String value.

Example

var e : StringEvent = new StringEvent(MyClass.onSomething);
e.setString("pixlib");
Parameters:
n:
Number value

toString

function toString (
) : String
Returns the string representation of this instance.
Returns:
String representation of this instance