all groups > flash actionscript > january 2007 >
You're in the

flash actionscript

group:

Beginner - Need Help With Soundboard


Beginner - Need Help With Soundboard FreshSince70
1/10/2007 10:04:11 PM
flash actionscript:
Hey everyone,

I'm just learning Flash, and from various online tutorials, I have managed to
get this far with the soundboard I want to make.


http://www.grabtheair.com/testloop.swf


As you can see from the example, this will be a very simple soundboard. All I
want it to do is trigger and loop sounds, like it does now. But I have a couple
things more I want it to do.

In the example, in the "Over" state of the buttons, I've added text to show
what each button will trigger (Test Loop 1, Test Loop 2).

But once the sound is triggered (via OnRelease) and the user moves the cursor
off the button - I want the Over state mode of the button to remain showing as
the audio loop plays (so the user visually sees what audio loop is currently
playing).

How would I do this?


Also, I'm considering making each button be it's own on/off control, instead
of a completely separate "Off" button.

I've found 4-5 different online tutorials to accomplish this same feature. And
have tried and succeeded at doing some of them.

But what I would like to know is, what method would be the easiest and most
compatible, inconjunction to what I would like to do above?


Last question...

On the example soundboard, I notice that if you hover the cursor over where
the text appears (Test Loop 1, Test Loop 2) it flickers the Over state of the
buttons.

Why does it do this, and can that be prevented?

I know for a lot of you, these are probably simple questions. So, Hopefully
someone can help me out. I've already done a lot searching for solutions, as
well as tried the Flash "Help". But as a beginner, I'm not sure exactly what I
need to search for.

Any help will be sincerely appreciated!

Thanks!





Re: Beginner - Need Help With Soundboard kglad
1/11/2007 12:14:44 AM
1. you need to use movieclip buttons instead of true buttons to have better
control of their up, over and down states.

2. you can make each button a toggle by using toggle variable that you have
execute one set of statements when the toggle is true and another set with the
toggle variable is false. you'll "toggle" that variable each time your button
is released

3. you're seeing those problems with the text flickering because that text
must be part of your buttons hit area..
Re: Beginner - Need Help With Soundboard FreshSince70
1/11/2007 8:32:40 PM
Ok, thanks for the reply kglad.

I'll look into those areas and see what I can come up with.

Re: Beginner - Need Help With Soundboard kglad
1/11/2007 10:10:06 PM
AddThis Social Bookmark Button