Stage - MACROMEDIA FLASHLITE2 ACTIONSCRIPT-LANGUAGE Reference

Actionscript language reference
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
Need help?

Need help?

Do you have a question about the FLASHLITE2 ACTIONSCRIPT-LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash lite 2

Table of Contents