
TextFormat.target Property
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
904
|
ActionScript Language Reference
// Restore the original tab stops.
format.tabStops = oldTabStops;
this.setNewTextFormat(format);
}
// Example use. Create an array that will become a table.
var tableData = ["one", "two", "three", "four", "five", "six", "seven"];
// Create a text field to hold the table.
this.createTextField("theField_txt", 1, 0, 0, 250, 60);
theField_txt.border = true;
// Add some text and the table.
theField_txt.appendText("Here is the table:");
theField_txt.makeTable([50, 125, 200], tableData);
theField_txt.appendText("Isn't it pretty?");
See Also
String.fromCharCode(), TextField.replaceSel(), TextFormat.blockIndent, TextFormat.
leftMargin
TextFormat.target Property
specifies the window or frame for a hypertext link
Flash 6
read/write
theFormat.target
Description
The string target property specifies the name of the browser window or frame into which
to load the document at
theFormat.url. It can be a custom name or one of the four presets:
“
_blank”, “_parent”, “_self”, or “_top”. If theFormat.url is not specified, target has no
effect. Take special note that
url, and hence also target, works only when TextField.html
is set to true for the text field.
The
target property must be used in conjunction with the url property. To set the target
property for ...