SelectionRange (FlashPaper.SelectionRange)

FlashPaper.SelectionRange
class SelectionRange

Several methods in FlashPaper use or return an object of this type.

Availability:

ActionScript 1.0; Flash Player 6

Property summary

Property Description
headPageIdx:Number

The page to start selecting text.

headCharIdx:Number

The character to start selecting text.

tailPageIdx:Number

The page to end selecting text.

tailCharIdx:Number

The character to end selecting text.

Method summary

Method Description
equals(that:FlashPaper.SelectionRange) : Boolean

Compares two SelectionRange objects to see if they are equal.

SelectionRange()

Usage

var mySelectionRange:FlashPaper.SelectionRange = new FlashPaper.SelectionRange();

Description

Creates an instance of the SelectionRange class.


equals(that:FlashPaper.SelectionRange) : Boolean

Usage

mySelectionRange.equals(anotherSelectionRange);

Parameters

that:FlashPaper.SelectionRange - SelectionRange object to compare against.

Returns

Returns true if the two SelectionRange objects are the same and false if they are not.

Description

Compares two SelectionRange objects to see if they are equal.


headPageIdx : Number

Usage

mySelectionRange.headPageIdx = pageNumber;

Description

The page to start selecting text.


headCharIdx : Number

Usage

mySelectionRange.headCharIdx = charNumber;

Description

The character to start selecting text.


tailPageIdx : Number

Usage

mySelectionRange.tailPageIdx = pageNumber;

Description

The page to end selecting text.


tailCharIdx : Number

Usage

mySelectionRange.tailCharIdx = charNumber;

Description

The character to end selecting text.