Packageorg.flashapi.swing.text
Classpublic class LoremIpsum
InheritanceLoremIpsum Inheritance Object

Language Version : ActionScript 3.0
Product Version : SPAS 3.0
Runtime Versions : AIR 1.0, Flash Player Player - 9

The LoremIpsum class is a utility class that generates a filler text (aka placeholder text) to help developers to demonstrate the graphic elements of a SPAS 3.0 application, such as font, typography, and layout.

The following text represents the lorem ipsum text used by the LoremIpsum class: "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."



Public Methods
 MethodDefined By
  
Constructor.
LoremIpsum
  
substr(startIndex:int = 0, wordsNum:uint = 19):String
Returns a substring consisting of the words that start at the specified startIndex and with a number of words specified by wordsNum.
LoremIpsum
  
toString():String
Returns the string representation of the LoremIpsum object.
LoremIpsum
Constructor Detail
LoremIpsum()Constructor
public function LoremIpsum()

Constructor. Creates a new LoremIpsum object.

Method Detail
substr()method
public function substr(startIndex:int = 0, wordsNum:uint = 19):String

Returns a substring consisting of the words that start at the specified startIndex and with a number of words specified by wordsNum.

Parameters

startIndex:int (default = 0) — An integer that specified the index of the first words to be used to create the substring.
 
wordsNum:uint (default = 19) — The number of words in the substring being created. The default value allows to retreive the first sentence of the lorem ipsum text.

Returns
String — A substring based on the specified parameters.
toString()method 
public function toString():String

Returns the string representation of the LoremIpsum object.

Returns
String — The entire lorem ipsum text.