| Package | com.bourre.events |
| Class | public class IterationEvent |
| Inheritance | IterationEvent BasicEvent flash.events.Event |
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
LoopCommand class
to its dedicated IterationCommand. The event
carry the iteration index, and its associated value, provided
by the Iterator used by the loop command.
See also
| Method | Defined by | ||
|---|---|---|---|
|
IterationEvent(type:String, target:Object = null, index:Number = 0, value:* = null)
Creates a new
Iteration event. | IterationEvent | ||
|
clone():Event
Clone the event
| IterationEvent | ||
|
getIndex():Number
Returns the index of the iteration in the loop
performed by the
LoopCommand. | IterationEvent | ||
![]() |
getTarget():Object
Returns the current source of this event object.
| BasicEvent | |
![]() |
getType():String
Returns the type of this event, which generally correspond
to the name of the called function on the listener.
| BasicEvent | |
|
getValue():*
Returns the value of the iteration in the loop
performed by the
LoopCommand. | IterationEvent | ||
![]() |
setTarget(oTarget:Object):void
Defines the new source object of this event.
| BasicEvent | |
![]() |
setType(en:String):void
Defines the new event type for this event object.
| BasicEvent | |
![]() |
toString():String
Returns the string representation of this instance.
| BasicEvent | |
| IterationEvent | () | constructor |
public function IterationEvent(type:String, target:Object = null, index:Number = 0, value:* = null)
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Creates a new Iteration event.
type:String — name of this event type
|
|
target:Object (default = null) — target of this event
|
|
index:Number (default = 0) — index of the current iteration
|
|
value:* (default = null) — value associated with this iteration
|
| clone | () | method |
public override function clone():Event
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Clone the event
ReturnsEvent — a clone of the event
|
| getIndex | () | method |
public function getIndex():Number
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Returns the index of the iteration in the loop
performed by the LoopCommand.
Number — the index of the iteration in the loop
performed by the LoopCommand
|
| getValue | () | method |
public function getValue():*
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Returns the value of the iteration in the loop
performed by the LoopCommand.
* — the value of the iteration in the loop
performed by the LoopCommand
|