Flash Player 7
TextSatellite.controls : Array
Allows customizing of control bar
Controls can be:
The following code will change text editor's control bar to contain "bold" and "italic" buttons in two rows with 5 pixels distance
TextSatellite.controls = ["bold", ">5", "italic"];
The following code will change text editor's control bar to contain "bold" and "italic" buttons with 4 pixels distance, divider and "underline" button
TextSatellite.controls = ["bold", 4, "italic", "mc:divider", "underline"];
Flash Player 7
myTextSatellite.gotoPage(no)
Boolean value. True if page after or before exists. Valid only if parameter passed to the function is "next" or "prev"
Method; displays content of the page.
The following code will display the content of the next page and it will return true if content for the page after next exists:
myTextSatellite.gotoPage("next");
Flash Player 7
myTextEditor.palette : Array
Allows changing of palette used by Flash Text Editor;
With following code, when "Font Color" button of the Flash Text Editor is clicked, color palette will display red and blue only.
myTextSatellite.palette = [0xff0000,0x0000ff];
Flash Player 7
myTextEditor.current : Number
Returns number of page currently displayed;
Following code will output number of the currently displayed page in output window.
trace( myTextSatellite.current );
Flash Player 7
myTextEditor.hasPrev : Boolean
Returns true if previous page exists, false if does not;
Following code will disable Button instance named "prev_btn" if there is no content for the pages before currently displayed page.
prev_btn.enabled = myTextSatellite.hasPrev;
Flash Player 7
myTextEditor.hasNext : Boolean
Returns true if next page exists, false if does not;
Following code will disable Button instance named "next_btn" if currently displayed page is the last one that exists.
next_btn.enabled = myTextSatellite.hasNext;
Flash Player 7
listenerObject = new Object();
listenerObject.load = function( eventObject ){ //
insert your code here
trace(eventObject.data);
}
myTextSatellite.addEventListener("load", listenerObject )
Event; broadcast to all registered listeners when content(or content meta data) of the satellite is loaded.
The following code handles the load event:
myLoadListener = new Object();
myLoadListener.load = function( eo:Object ){
trace("Content Loaded!");
}
myTextSatellite.addEventListener("load", myLoadListener);