EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE - Play Function

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE
780 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...
Global Functions 75
The following example returns 4:
parseInt("4foo")
The following example shows a hexadecimal conversion that returns 1016:
parseInt("0x3F8")
The following example shows a hexadecimal conversion using the optional radix parameter
that returns 1000:
parseInt("3E8", 16)
The following example shows a binary conversion and returns 10, which is the decimal
representation of the binary 1010:
parseInt("1010", 2)
The following examples show octal number parsing and return 511, which is the decimal
representation of the octal 777:
parseInt("0777")
parseInt("777", 8)
See also
,
parseFloat function
play function
play() : Void
Moves the playhead forward in the Timeline.
Availability: ActionScript 1.0; Flash Lite 1.0
Example
In the following example, there are two movie clip instances on the Stage with the instance
names
stop_mc and play_mc. The ActionScript stops the SWF file's playback when the
stop_mc movie clip instance is clicked. Playback resumes when the play_mc instance is
clicked.
this.stop_mc.onRelease = function() {
stop();
};
this.play_mc.onRelease = function() {
play();
};
trace("frame 1");
See also
gotoAndPlay function, gotoAndPlay (MovieClip.gotoAndPlay method)

Table of Contents

Related product manuals