Stage - 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

Parameters
[optional] - A parameter specifying a specific sound to stop playing. The
linkageID:String
parameter must be enclosed in quotation marks (" ").
idName
Example
The following example uses two buttons,
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
618
ActionScript classes
and
stop_btn
play_btn
, to control the playback of

Advertisement

Table of Contents
loading

Table of Contents