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.

this._parent.prevFrame();<br />

}<br />

}<br />

The following example uses onClipEvent() with the load <strong>and</strong> mouseMove movie events.<br />

The _xmouse <strong>and</strong> _ymouse properties track the position of the mouse each time the mouse<br />

moves, which appears in the text field that's created at runtime.<br />

onClipEvent (load) {<br />

this.createTextField("coords_txt", this.getNextHighestDepth(), 0, 0, 100,<br />

22);<br />

coords_txt.autoSize = true;<br />

coords_txt.selectable = false;<br />

}<br />

onClipEvent (mouseMove) {<br />

coords_txt.text = "X:"+_root._xmouse+",Y:"+_root._ymouse;<br />

}<br />

See also<br />

Key, _xmouse (MovieClip._xmouse property), _ymouse (MovieClip._ymouse<br />

property), Constants<br />

ord function<br />

ord(character) : Number<br />

Deprecated since Flash Player 5. This function was deprecated in favor of the methods <strong>and</strong><br />

properties of the String class.<br />

Converts characters to ASCII code numbers.<br />

Parameters<br />

character:String - The character to convert to an ASCII code number.<br />

Returns<br />

Number - The ASCII code number of the specified character.<br />

See also<br />

String, charCodeAt (String.charCodeAt method)<br />

parseFloat function<br />

parseFloat(string:String) : Number<br />

Global Functions 69

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

Saved successfully!

Ooh no, something went wrong!