pero cuando entra en control deslizable, no se remite a sonido alguno, por lo que supuse que seguía en la biblioteca y dejé el código de esta manera, pero no funciona: pueden decirme qué error cometí? muchas gracias.
[color=]var song_sound:Sound = new Sound();
song_sound.attachSound("vivaldi");[/color] estas líneas se las dejé para seleccionar algún sonido.
this.createTextField("volume_txt", 10, 30, 30, 200, 20);
volum_mc.top = volum_mc._y;
volum_mc.bottom = volum_mc._y;
volum_mc.left = volum_mc._x;
volum_mc.right = volum_mc._x+10;
volum_mc._x += 100;
volum_mc.handle_btn.onPress = function() {
startDrag(this.parent, false, this.parent.left, this._parent.top, this.parent.right, this.parent.bottom);
};
volum_mc.handle_btn.onRelease = function() {
stopDrag();
var level:Number = Math.ceil(this._parent._x-this._parent.left);
this._parent._parent.song_sound.setVolume(level);
this._parent._parent.volume_txt.text = level;
};
volum_mc.handle_btn.onReleaseOutside = slider_mc.handle_btn.onRelease;
//play_btn.onRelease = function() {
// song_sound.start();
//};
//stop_btn.onRelease = function() {
// song_sound.stop();
//};
