03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - 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.

status_txt.htmlText += "";<br />

};<br />

var flushResult = my_so.flush(1000001);<br />

switch (flushResult) {<br />

case 'pending' :<br />

message_str = "flush is pending, waiting on user interaction.";<br />

break;<br />

case true :<br />

message_str = "flush was successful. Requested storage space approved.";<br />

break;<br />

case false :<br />

message_str = "flush failed. User denied request for additional<br />

storage.";<br />

break;<br />

}<br />

message_txt.htmlText = ""+message_str+"";<br />

The MovieClip.getNextHighestDepth() method used in this example requires Flash Player<br />

7 or later. If your SWF file includes a version 2 component, use the version 2 components'<br />

DepthManager class instead of the MovieClip.getNextHighestDepth() method.<br />

See also<br />

getLocal (SharedObject.getLocal method), onStatus (System.onStatus h<strong>and</strong>ler)<br />

Sound<br />

Object<br />

|<br />

+-Sound<br />

public class Sound<br />

extends Object<br />

The Sound class lets you control sound in a movie. You can add sounds to a movie clip from<br />

the library while the movie is playing <strong>and</strong> control those sounds. If you do not specify a target<br />

when you create a new Sound object, you can use the methods to control sound for the whole<br />

movie.<br />

You must use the constructor new Sound to create a Sound object before calling the methods<br />

of the Sound class.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 5<br />

1108 <strong>ActionScript</strong> classes

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

Saved successfully!

Ooh no, something went wrong!