Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
cubicus #1
stop a sound from looping
Can someone tell me how to stop a sound from looping.
this is my script :
onEnterFrame = function () {
bus_mc._x += 20;
wave_sound = new Sound();
wave_sound.attachSound("bob");
};
if (bus_mc._x>=200) {
wave_sound.start(0, 1);
}
if (bus_mc._x>=850) {
bus_mc._x = 0;
getURL("http://www.cube.be", "_self");
}
};
cubicus Guest
-
Stop a Looping .SWF
hi there, you can stop the flash movie from looping by adding the following param <param name="loop" value="false"> -
SWF movies- stop looping
Hi I have a SWF file and it I have it playing in a html page. I DO NOT want it to loop as after its done you go to a diffrent page. I have managed... -
How to stop looping
I am trying to create a banner to a web page. I have the flash movie created, but I cannot figure out how to get the animation to play once and then... -
MX Prof 2004 - Unable to stop movie from looping
Hello, My Flash document is a product demo and many subsequent scenes include AVI movie clips. My problem is that the AVIs keep looping and I... -
How can I get my Flash video to stop looping and...
How can I get my Flash video to stop looping and play the same on all computers. What I have is 4 introduction videos playing in different... -
Peter Blumenthal #2
Re: stop a sound from looping
well, what you have there is how to play a sound once (ie without looping):
wave_sound.start(0, 1);
The problem is that it's in an onEnterFrame handler - once your 'if'
condition is true, i would expect the sound to be started over and over
again, each time the enterframe handler is executed, and maybe this is why
it appears to be looping. You need to set a flag saying the sound has
already been started:
if (bus_mc._x>=200) {
if (!this.bSoundDone){
this.bSoundDone = true;
wave_sound.start(0, 1);
}
}
hth
}`¬P
--
---------------------------------------
[url]http://www.phageinteractive.com[/url]
PhageInteractive Ltd.
remove mm_ to mail
---------------------------------------
'I wish we lived in a world where it was possible to be religious and think
at the same time.' - Jonh Graves
Peter Blumenthal Guest
-
-
Peter Blumenthal #4
Re: stop a sound from looping
cool...
}`¬P
--
---------------------------------------
[url]http://www.phageinteractive.com[/url]
PhageInteractive Ltd.
remove mm_ to mail
---------------------------------------
'I wish we lived in a world where it was possible to be religious and think
at the same time.' - Jonh Graves
"cubicus" <webforumsuser@macromedia.com> wrote in message
news:c24mcd$42a$1@forums.macromedia.com...> that did the trick, many thanks...
>
> greetz,
Peter Blumenthal Guest



Reply With Quote

