TextField._url
Availability
Flash Player 6.
Usage
.
my_txt
_url:String
Description
Read-only property; retrieves the URL of the SWF file that created the text field.
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're testing, and the file called
best_flash_ever.swf are displayed in the Output panel.
TextField._url
931
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers