This is a multi-part message in MIME format.
------=_NextPart_000_009A_01C7963F.06805C10
Content-Type: text/plain;
charset=''iso-8859-1''
Content-Transfer-Encoding: quoted-printable
Hello,
I have a *.swf file including sound playing and I can play
and stop =
sound like this:
on stopSound()
member(''00_CanCanan'').sound =3D FALSE
sprite(2).stop()
end
on playSound()
member(''00_CanCanan'').sound =3D TRUE
sprite(2).play()
end
This works pefect until the *.swf come to a point where it is
looping, =
like:
from frame 1 to 100 - one time playing (here the sound plays
and stops =
directly)
from frame 101 to 160 - loops (here the sound stops directly,
but plays =
only when coming at the beginning of the loop point 101)
Any idear how I can make the sound also playing directly when
inside of =
the loop?
Thank you for any hint,
Walter
------=_NextPart_000_009A_01C7963F.06805C10
Content-Type: text/html;
charset=''iso-8859-1''
Content-Transfer-Encoding: quoted-printable
%26lt;!DOCTYPE HTML PUBLIC ''-//W3C//DTD HTML 4.0
Transitional//EN''%26gt;
%26lt;HTML%26gt;%26lt;HEAD%26gt;
%26lt;META http-equiv=3DContent-Type content=3D''text/html; =
charset=3Diso-8859-1''%26gt;
%26lt;META content=3D''MSHTML 6.00.6000.16414''
name=3DGENERATOR%26gt;
%26lt;STYLE%26gt;%26lt;/STYLE%26gt;
%26lt;/HEAD%26gt;
%26lt;BODY%26gt;
%26lt;DIV%26gt;%26lt;FONT face=3DArial
size=3D2%26gt;Hello,%26lt;/FONT%26gt;%26lt;/DIV%26gt;
%26lt;DIV%26gt;%26lt;FONT face=3DArial size=3D2%26gt;I have a *.swf
file including sound =
playing and I=20
can play and stop sound like this:%26lt;/FONT%26gt;%26lt;/DIV%26gt;
%26lt;DIV%26gt;%26lt;FONT face=3DArial
size=3D2%26gt;%26lt;/FONT%26gt; %26lt;/DIV%26gt;
%26lt;DIV%26gt;%26lt;FONT face=3DArial size=3D2%26gt;on =
stopSound()%26lt;BR%26gt;member(''00_CanCanan'').sound =3D=20
FALSE%26lt;BR%26gt;sprite(2).stop()%26lt;BR%26gt;end%26lt;/FONT%26gt;%26lt;/DIV%26gt;
%26lt;DIV%26gt;
%26lt;P%26gt;%26lt;FONT face=3DArial size=3D2%26gt;on =
playSound()%26lt;BR%26gt;member(''00_CanCanan'').sound =3D=20
TRUE%26lt;BR%26gt;sprite(2).play()%26lt;BR%26gt;end%26lt;/FONT%26gt;%26lt;/P%26gt;
%26lt;P%26gt;%26lt;FONT face=3DArial size=3D2%26gt;This works pefect
until the *.swf come to =
a point=20
where it is looping, like:%26lt;/FONT%26gt;%26lt;/P%26gt;
%26lt;P%26gt;%26lt;FONT face=3DArial size=3D2%26gt;from frame 1 to
100 - one time =
playing (here the=20
sound plays and stops directly)%26lt;/FONT%26gt;%26lt;/P%26gt;
%26lt;P%26gt;%26lt;FONT face=3DArial size=3D2%26gt;from frame 101 to
160 - loops (here the =
sound stops=20
directly, but plays only when coming at the beginning of the
loop point=20
101)%26lt;/FONT%26gt;%26lt;/P%26gt;
%26lt;P%26gt;%26lt;FONT face=3DArial size=3D2%26gt;Any idear how I
can make the sound also =
playing=20
directly when inside of the loop?%26lt;/FONT%26gt;%26lt;/P%26gt;
%26lt;P%26gt;%26lt;FONT face=3DArial size=3D2%26gt;Thank you for any
hint,%26lt;/FONT%26gt;%26lt;/P%26gt;
%26lt;P%26gt;%26lt;FONT face=3DArial
size=3D2%26gt;Walter%26lt;/FONT%26gt;%26lt;/P%26gt;
%26lt;P%26gt;%26lt;FONT face=3DArial
size=3D2%26gt;%26lt;/FONT%26gt; %26lt;/P%26gt;
%26lt;P%26gt;%26lt;FONT face=3DArial
size=3D2%26gt;%26lt;/FONT%26gt; %26lt;/P%26gt;
%26lt;P%26gt;%26lt;FONT face=3DArial
size=3D2%26gt;%26lt;/FONT%26gt; %26lt;/P%26gt;%26lt;/DIV%26gt;%26lt;/BODY%26gt;%26lt;/HTML%26gt;
------=_NextPart_000_009A_01C7963F.06805C10--
play() and stop() sound inside Flash...
Hi Walter,
Have you tried sprite(X).stopAllSounds()
--
Rob
_______
Rob Dillon
Adobe Community Expert
http://www.ddg-designs.com
412-243-9119
http://www.macromedia.com/software/trial/
play() and stop() sound inside Flash...
Hello Rob,
THX for the reply.
I actually have no problem to stop() the sound. I just have a
problem to
play() it again after I have the sound stopped.
Here again the description of the problem.
on stopSound()
member(''00_CanCanan'').sound = FALSE
sprite(2).stop()
end
on playSound()
member(''00_CanCanan'').sound = TRUE
sprite(2).play()
end
This works pefect until the *.swf come to a point where it is
looping, like:
from frame 1 to 100 - one time playing (here the sound plays
and stops with
no problem)
from frame 101 to 160 - loops (here the sound stops directly,
but plays only
when coming at the beginning of the loop point 101)
Any idear how I can make the sound also playing directly when
inside of the
loop?
If you have any more idears, pls. let me know,
Thank you,
Walter
''Rob Dillon - Adobe Community Expert''
%26lt;rob@-remove-ddg-designs.com%26gt; wrote in
message
news:rob-E7BAAD.14332815052007@forums.macromedia.com...
%26gt; Hi Walter,
%26gt;
%26gt; Have you tried sprite(X).stopAllSounds()
%26gt;
%26gt; --
%26gt; Rob
%26gt; _______
%26gt; Rob Dillon
%26gt; Adobe Community Expert
%26gt;
http://www.ddg-designs.com
%26gt; 412-243-9119
%26gt;
%26gt;
http://www.macromedia.com/software/trial/
Yes, the sound property value change will only show a change
at the end
of a currently playing sound. To get greater control, you'll
have to use
a sound object in the Flash movie itself. Then you can start,
stop and
change volume as you like.
--
Rob
_______
Rob Dillon
Adobe Community Expert
http://www.ddg-designs.com
412-243-9119
http://www.macromedia.com/software/trial/
One last question:
Is there a possibilty to make the swf file playing in
Director going to the
last frame of the swf file? Like
sprite(Xswf).goToFrame(160)
Thank you,
Walter
''Rob Dillon - Adobe Community Expert''
%26lt;rob@-remove-ddg-designs.com%26gt; wrote in
message
news:rob-0F2F69.09460816052007@forums.macromedia.com...
%26gt; Yes, the sound property value change will only show a
change at the end
%26gt; of a currently playing sound. To get greater control,
you'll have to use
%26gt; a sound object in the Flash movie itself. Then you can
start, stop and
%26gt; change volume as you like.
%26gt;
%26gt; --
%26gt; Rob
%26gt; _______
%26gt; Rob Dillon
%26gt; Adobe Community Expert
%26gt;
http://www.ddg-designs.com
%26gt; 412-243-9119
%26gt;
%26gt;
http://www.macromedia.com/software/trial/
You can use some actionscript commands with Flash sprites,
for instance:
sprite(Xswf).goToAndPlay(160)
or
sprite(Xswf).goToAndStop(160)
Subscribe to:
Post Comments
(Atom)
No comments:
Post a Comment