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

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

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
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
and
stop_mc
play_mc
movie clip instance is clicked. Playback resumes when the
stop_mc
clicked.
this.stop_mc.onRelease = function() {
stop();
};
this.play_mc.onRelease = function() {
play();
};
trace("frame 1");
See also
gotoAndPlay function
. The ActionScript stops the SWF file's playback when the
,
gotoAndPlay (MovieClip.gotoAndPlay method)
parameter
radix
instance is
play_mc
Global Functions
75

Advertisement

Table of Contents
loading

Table of Contents