03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Specifies the type of text field. There are two values: "dynamic", which specifies a dynamic<br />

text field that cannot be edited by the user, <strong>and</strong> "input", which specifies an input text field.<br />

Example<br />

The following example creates two text fields: username_txt <strong>and</strong> password_txt. Text is<br />

entered into both text fields; however, password_txt has the password property set to true.<br />

Therefore, the characters display as asterisks instead of as characters in the password_txt<br />

field.<br />

this.createTextField("username_txt", this.getNextHighestDepth(), 10, 10,<br />

100, 22);<br />

username_txt.border = true;<br />

username_txt.type = "input";<br />

username_txt.maxChars = 16;<br />

username_txt.text = "hello";<br />

this.createTextField("password_txt", this.getNextHighestDepth(), 10, 40,<br />

100, 22);<br />

password_txt.border = true;<br />

password_txt.type = "input";<br />

password_txt.maxChars = 16;<br />

password_txt.password = true;<br />

password_txt.text = "world";<br />

_url (TextField._url property)<br />

public _url : String [read-only]<br />

Retrieves the URL of the SWF file that created the text field.<br />

Example<br />

The following example retrieves the URL of the SWF file that created the text field, <strong>and</strong> a<br />

SWF file that loads into it.<br />

this.createTextField("my_txt", 1, 10, 10, 100, 22);<br />

trace(my_txt._url);<br />

var mclListener:Object = new Object();<br />

mclListener.onLoadInit = function(target_mc:MovieClip) {<br />

trace(target_mc._url);<br />

};<br />

var holder_mcl:MovieClipLoader = new MovieClipLoader();<br />

holder_mcl.addListener(mclListener);<br />

holder_mcl.loadClip("best_flash_ever.swf",<br />

this.createEmptyMovieClip("holder_mc", 2));<br />

648 ActionScript classes

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!