03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Modifiers Signature Description<br />

setTransform(transfo<br />

rmObject:Object) :<br />

Void<br />

Methods inherited from class Object<br />

attachSound (Sound.attachSound method)<br />

public attachSound(id:String) : Void<br />

Sets the sound transform (or balance) information,<br />

for a Sound object.<br />

setVolume(value:Numb Sets the volume for the Sound object.<br />

er) : Void<br />

start([secondOffset:<br />

Number],<br />

[loops:Number]) :<br />

Void<br />

stop([linkageID:Stri<br />

ng]) : Void<br />

Starts playing the last attached sound from the<br />

beginning if no parameter is specified, or starting at<br />

the point in the sound specified by the<br />

secondOffset parameter.<br />

Stops all sounds currently playing if no parameter<br />

is specified, or just the sound specified in the<br />

idName parameter.<br />

addProperty (Object.addProperty method), hasOwnProperty<br />

(Object.hasOwnProperty method), isPropertyEnumerable<br />

(Object.isPropertyEnumerable method), isPrototypeOf (Object.isPrototypeOf<br />

method), registerClass (Object.registerClass method), toString<br />

(Object.toString method), unwatch (Object.unwatch method), valueOf<br />

(Object.valueOf method), watch (Object.watch method)<br />

Attaches the sound specified in the id parameter to the specified Sound object. The sound<br />

must be in the library of the current SWF file <strong>and</strong> specified for export in the Linkage<br />

Properties dialog box. You must call Sound.start() to start playing the sound.<br />

To make sure that the sound can be controlled from any scene in the SWF file, place the<br />

sound on the main Timeline of the SWF file.<br />

Parameters<br />

id:String - The identifier of an exported sound in the library. The identifier is located in the<br />

Linkage Properties dialog box.<br />

Example<br />

The following example attaches the sound logoff_id to my_sound. A sound in the library<br />

has the linkage identifier logoff_id.<br />

var my_sound:Sound = new Sound();<br />

Sound 565

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!