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.

knob_mc._x = my_sound.getVolume();<br />

with (knob_mc) {<br />

lineStyle(0, 0x000000);<br />

beginFill(0xCCCCCC);<br />

moveTo(0, 0);<br />

lineTo(4, 0);<br />

lineTo(4, 18);<br />

lineTo(0, 18);<br />

lineTo(0, 0);<br />

endFill();<br />

}<br />

knob_mc.createTextField("volume_txt", knob_mc.getNextHighestDepth(),<br />

knob_mc._width+4, 0, 30, 22);<br />

knob_mc.volume_txt.text = my_sound.getVolume();<br />

knob_mc.onPress = function() {<br />

this.startDrag(false, this.left, this.top, this.right, this.bottom);<br />

this.isDragging = true;<br />

};<br />

knob_mc.onMouseMove = function() {<br />

if (this.isDragging) {<br />

this.volume_txt.text = this._x;<br />

}<br />

}<br />

knob_mc.onRelease = function() {<br />

this.stopDrag();<br />

this.isDragging = false;<br />

my_sound.setVolume(this._x);<br />

};<br />

See also<br />

setVolume (Sound.setVolume method)<br />

id3 (Sound.id3 property)<br />

public id3 : Object [read-only]<br />

Provides access to the metadata that is part of an MP3 file.<br />

MP3 sound files can contain ID3 tags, which provide metadata about the file. If an MP3<br />

sound that you load using Sound.attachSound() or Sound.loadSound() contains ID3 tags,<br />

you can query these properties. Only ID3 tags that use the UTF-8 character set are supported.<br />

Sound 573

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

Saved successfully!

Ooh no, something went wrong!