EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE - Stage

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...
618 ActionScript classes
Parameters
linkageID:String [optional] - A parameter specifying a specific sound to stop playing. The
idName parameter must be enclosed in quotation marks (" ").
Example
The following example uses two buttons,
stop_btn and play_btn, to control the playback of
a sound that loads into a SWF file. Add two buttons to your document and add the following
ActionScript to your FLA or AS file:
var my_sound:Sound = new Sound();
my_sound.loadSound("song1.mp3", true);
stop_btn.onRelease = function() {
trace("sound stopped");
my_sound.stop();
};
play_btn.onRelease = function() {
trace("sound started");
my_sound.start();
};
See also
start (Sound.start method)
Stage
Object
|
+-Stage
public class Stage
extends Object
The Stage class is a top-level class whose methods, properties, and handlers you can access
without using a constructor. Use the methods and properties of this class to access and
manipulate information about the boundaries of a SWF file.
Availability: ActionScript 1.0; Flash Lite 2.0

Table of Contents

Related product manuals