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.

Note: This method is supported in Flash Lite only if System.capabilities.hasMouse is<br />

true or System.capabilities.hasStylus is true.<br />

Example<br />

The following code, placed in the main Timeline, stops the drag action on the movie clip<br />

instance my_mc when the user releases the mouse button:<br />

my_mc.onPress = function () {<br />

startDrag(this);<br />

}<br />

my_mc.onRelease = function() {<br />

stopDrag();<br />

}<br />

See also<br />

startDrag function, _droptarget (MovieClip._droptarget property), startDrag<br />

(MovieClip.startDrag method), stopDrag (MovieClip.stopDrag method)<br />

String function<br />

String(expression:Object) : String<br />

Returns a string representation of the specified parameter, as described in the following list:<br />

■ If expression is a number, the return string is a text representation of the number.<br />

■ If expression is a string, the return string is expression.<br />

■ If expression is an object, the return value is a string representation of the object<br />

generated by calling the string property for the object or by calling Object.toString() if<br />

no such property exists.<br />

■ If expression is a Boolean value, the return string is "true" or "false".<br />

■ If expression is a movie clip, the return value is the target path of the movie clip in slash<br />

(/) notation.<br />

If expression is undefined, the return values are as follows:<br />

■ In files published for Flash Player 6 or earlier, the result is an empty string ("").<br />

■ In files published for Flash Player 7 or later, the result is undefined.<br />

Note:Slash notation is not supported by ActionScript 2.0.<br />

Parameters<br />

expression:Object - An expression to convert to a string.<br />

80 ActionScript language elements

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

Saved successfully!

Ooh no, something went wrong!