EasyManua.ls Logo

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE - Url (Textfield._Url Property); Variable (Textfield.variable Property)

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
1378 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
TextField 1221
this.createTextField("password_txt", this.getNextHighestDepth(), 10, 40,
100, 22);
password_txt.border = true;
password_txt.type = "input";
password_txt.maxChars = 16;
password_txt.password = true;
password_txt.text = "world";
The MovieClip.getNextHighestDepth() method used in this example requires Flash Player
7 or later. If your SWF file includes a version 2 component, use the version 2 components
DepthManager class instead of the
MovieClip.getNextHighestDepth() method.
_url (TextField._url property)
public _url : String [read-only]
Retrieves the URL of the SWF file that created the text field.
Availability: ActionScript 1.0; Flash Player 6
Example
The following example retrieves the URL of the SWF file that created the text field, and a
SWF file that loads into it.
this.createTextField("my_txt", 1, 10, 10, 100, 22);
trace(my_txt._url);
var mclListener:Object = new Object();
mclListener.onLoadInit = function(target_mc:MovieClip) {
trace(target_mc._url);
};
var holder_mcl:MovieClipLoader = new MovieClipLoader();
holder_mcl.addListener(mclListener);
holder_mcl.loadClip("best_flash_ever.swf",
this.createEmptyMovieClip("holder_mc", 2));
When you test this example, the URL of the SWF file you are testing, and the file called
best_flash_ever.swf are displayed in the Output panel.
The MovieClipLoader class used in this example requires Flash Player 7 or later.
variable (TextField.variable property)
public variable : String
The name of the variable that the text field is associated with. The type of this property is
String.
Availability: ActionScript 1.0; Flash Player 6

Table of Contents

Related product manuals