View Full Version : ME no understand loops, help
Troll_axethrowe
March 20th, 2003, 01:49 PM
I cant figure out how to use actionscript loops to loop things, like sounds for example. Can someone show me how to create an infinit loop for a sound. If you can a step by step thing would be nice since i am a TOTAL newb at actionscript, i can do the other things in flash but the actionscript messes me up.
And for the loops, what frame do i put it in in the actionscript if i want to to go throught the entire scene?
Troll_axethrowe
March 21st, 2003, 10:24 PM
come on someone take a stab at answering me
UNFLUX
March 21st, 2003, 10:31 PM
I'm sure there's a ton of tutorials to do exactly this. Try and
search the forums here as well. I know you'll find what you need,
because a tutorial is basically what you're asking someone to type
all out for you. ;)
davidchang
March 21st, 2003, 10:37 PM
when you say loop, do you mean "loop" or "enterframe", if you have no idea what enterframe is, i suggest you look into 'onClipEvent (enterFrame)' this is probably the answer to your question, if you wish i can walk u through something
lostinbeta
March 21st, 2003, 10:54 PM
Yeah, by what you are saying, you want sound looping, not actionscript looping.
In that case.... check this tutorial...
http://www.kirupa.com/developer/actionscript/sound.htm
Where it says "kirupaSound.start(0, 99);" change that to "kirupaSound.start();" (removing the 0, 99 part) being these are optional parameters. Read the tutorial to find out what they do.
Troll_axethrowe
March 22nd, 2003, 09:52 AM
Thanks for the info, but the tutorial showed me only how to make sound work on a button click, how do i make the sound work on the frame starting?
lostinbeta
March 22nd, 2003, 01:14 PM
Put the code on a frame. And remove the on handler code (on (release) or whatever it uses)
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.