EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 648

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 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...
648 Chapter 12: ActionScript Dictionary
Example
This code stops the drag action on the instance my_mc when the user releases the mouse button:
on(press) {
startDrag("my_mc");
}
on(release) {
stopdrag();
}
See also
MovieClip._droptarget
, MovieClip.stopDrag(), startDrag()
" " (string delimiter)
Availability
Flash Player 4.
Usage
"text"
Parameters
text
A character.
Returns
Nothing.
Description
String delimiter; when used before and after characters, quotation marks indicate that the
characters have a literal value and are considered a string—not a variable, numerical value, or
other ActionScript element.
Example
This example uses quotation marks to indicate that the value of the variable yourGuess is the
literal string “Prince Edward Island” and not the name of a variable. The value of
province is a
variable, not a literal; to determine the value of
province, the value of yourGuess must
be located.
yourGuess = "Prince Edward Island";
on(release){
province = yourGuess;
trace(province);
}
// displays Prince Edward Island in the Output panel
See also
String class, String()

Table of Contents

Related product manuals