tween(plugin[sound_controls].bgalpha,0.75,1);
tween(plugin[sound].alpha,1,1);
stopallsounds();
set(is_playing, true);
show_slider();
set(plugin[volume_level_indicator].width,plugin[slider_bg].width);
set(volume_level, 1);
copy(plugin[slider_grip].x, plugin[slider_bg].pixelwidth);
set(plugin[sound].visible, false);
set(plugin[playing].visible, true);
set(activesound,%3);
playsound(%1,%2, 1,
set(plugin[sound].visible, true);
set(plugin[playing].visible, false);
set(plugin[sound].onclick, play_sound_1());
set(is_playing, false);
hide_slider();set(activesound,none); );
tween(plugin[sound_controls].bgalpha,0,1);
tween(plugin[sound].alpha,0,1);
tween(soundinterface.volume, 1, 0.25, easeOutQuint, pausesound(%1));
set(is_playing, false); hide_slider();
set(plugin[playing].visible, false);
set(plugin[sound].visible, true);
set_(plugin[sound].onclick, resume_sound_1());
resumesound(%1);
set(is_playing, true);
show_slider();
tween(soundinterface.volume, get(volume_level), 0.25, easeInQuint);
set(plugin[sound].visible, false);
set(plugin[playing].visible, true);
set(soundinterface.volume, %1)
set(HIDESLIDER,false);
tween(plugin[sound_controls].width, get(plugin[sound_controls].maxwidth), 0.15, linear);
set(HIDESLIDER,true);
if(is_playing, wait(0.5));
delayedcall(0, if(HIDESLIDER, tween(plugin[sound_controls].width, 36, 0.15, linear); ); );
if(volume_level == 0,
set(plugin[playing].crop, 72|36|36|36)
);
if(volume_level == 0,
set(plugin[playing].onovercrop, 36|36|36|36));
if(volume_level GT 0.001,
set(plugin[playing].crop, 36|0|36|36));
if(volume_level GT 0.4,
set(plugin[playing].crop, 72|0|36|36));
if(volume_level GT 0.7,
set(plugin[playing].crop, 108|0|36|36));
if(volume_level GT 0.001,
set(plugin[playing].onovercrop, 36|36|36|36));