swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] How to stop sounds ?


From: Rumán Sándor
Subject: Re: [Swftools-common] How to stop sounds ?
Date: Mon, 23 Jan 2012 12:39:44 +0100

Mon, 23 Jan 2012 12:06:43 +0100 -n
"Luc A." <address@hidden> írta:

> Hello, I'm trying to use "buttons" to manage mouse events. I've wrote
> that code :
> ----------------
> .flash filename="/tmp/ella-temp.swf" version=8 fps=4  bbox=240x200
> background="#c3e440"
> .frame 1
> .sound W1 "/tmp/14 Martin Circus-Le Matin Des Magiciens-1969.mp3"
> .play W1 loop=1
> .box D2_idle 93 74 color=#000000 fill=#ff0000 line=1
> .box D2_hover 93 74 color=#ffffff fill=#ff0000 line=1
> .box D2_pressed 93 74 color=#000000 fill=#ff0000 line=1
> .box D2_area 93 74 color=#000000 fill=#ff0000 line=1
> .button D2
>    .show D2_idle as=idle
>    .show D2_hover as=hover
>    .show D2_pressed as=pressed
>    .show D2_area as=area
> .on_press:
>     stopAllSounds();
> .end
> .end
> .put D2 x=118 y=112 pin=center
> .frame 105
> .stop W1
> .frame 106
> .end # End swf movie
> ----------------
> 
> But the sound don't stop when I click on the button ; why ?
> 
> Regards
> 
> Luc

Hi!

Try it! (attachement)

-- 
Üdvözlettel:
Rumán Sándor
http://alex56.hu

Bakonysárkány honlapja:
http://bakonysarkany.hu

BKTV képújság:
http://bakonysarkany.hu/bktv

Attachment: ella-temp.sc
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]