Free FlashDen file of the month. Click here to download.
Search  

ADG3 : SIMPLE SOUND CONTROLLER

HomeBrowse CategoriesMusic PlayersEqualizersADG3 : Simple Sound Controller

A simple music on/off controller, with animated levels.

The difference here is that the music fades in or out gradually, as opposed to cutting out immediately.

If you are detail oriented, you may agree, it’s a small difference that comes across as smoother, less harsh on the user’s ear.

Aside from the decor in the file, the controller is contained in a single movie clip, which can be dropped into any flash project.

If you wish to remove the rising dots animation, that’s easy too, just delete layer 2 in the mc called music player bar, in the library.

The file size of this controller is only 1 kb, but depending on the length of the loop you choose and the compression you set, the total size added to a movie will vary, naturally.

Included as a bonus here is one of my loops, which you can use as you see fit in any of your flash projects. Hope you like it :)

Further questions? Just get in touch : adrien @ adg3.com

Thanks

NOTE : To change the music, just open the library, if it’s not open hit CTRL + L ( shortcut ) and find the loop called electro 300

Right click it and choose linkage. remove the m1 identifier and untick the checkboxes.

Now right click your new loop in the library, choose linkage again on it and put m1 as the identifier there and tick the export for AS boxes. leave the 2nd box unticked. That will do the trick.

Additionally, if you don’t want the music to load in the 1st frame of your movie (if you have a preloader there ), untick the export in first frame in the linkage panel. Then on the timeline create a blank keyframe on frame 2 and drag an instance of your loop there. Click edit in the sound properties panel, and drag both lines down to the bottom (to mute that instance ) This way, your preloader will be able to start earlier, as the file size on the first frame won’t include the exported music. :)

Posted about 1 year ago

ITEM DISCUSSION

Show Comments By

One more question.

When I put this in the first scene the music plays all the way through to other scenes,

But then when I put the same controller on the other scenes it plays the same loop again. So i’m hearing double.

Then went into the actionscript and changed a few things around and got it not to repeat the music, but then it would control the music anymore.

I can’t figure it out. If there is a simple way to do it, just post it, but if it’s not is there anyway you can email me the changed version?

Please help.

Thank you

Posted 11 months ago

Thanks for this ADG3studios,

To my eyes this has been designed from a beautifully effervescent place.

Craigo

Posted 9 months ago

Thanks For the kind words Craigo :)

Posted 9 months ago

Hi ADG3studios,

I need a mp3 file to play once and stop. I did this by changing the loops to 1 from 999; however, the animation still continues after the single loop. How can I have the animation stop after the first loop?

RG

Posted 8 months ago

Hi Gstudios,

Yeah that is possible, I think the most straightforward way would be to call the fade function for the music to fade right after the first loop, (I don’t have flash here right now but if I remember the function was called volDown) and since the bars are tied to the volume, they would fade simultaneously.

Something along those lines should do the trick for you :)

Posted 8 months ago

Exactly what i was looking for. Perfect.

Posted 8 months ago

And another thing: Can I possibly import an external mp3 file? Please contact me via email.

Posted 8 months ago

nice file. good job. i have a question though. i’m using this file in a hybrid site (html shell with my swf sitting in a portion of my home page). if i kill the music, then go to another URL and then return to my home page, the sound will play. is there a way in the code to have it remember whether or not you chose to kill the music when you visit different URLs? thanks in advance.

Posted 4 months ago

Hi:

this a sweet thing. But when I change the song it does not work, and when I go back to your original song it plays both?

L

Posted 3 months ago

Hi laknar, You need to switch the linkage identifiers on the music loop in the library. The music you import to the library should be given the values of the piece that’s there when you get the file. Always in the library, right click the original music, click linkage, see the values, and put those in the linkage for your loop. Then either delete the original loop or remove its linkage identifiers.

That will do it.

Let me know if you need a hand with that :)

Posted 3 months ago

Great work! Thanks for sharing…

Posted 2 months ago

Hello ADG3 …. do you know you have the best sound controller i have yet to see! (best in FD, by FAR )

anyways, i am fearful to purchase because i dont know how to change the sound to stream from outside of the library. (my site is already too heavy)

does it involve something like this:

var url:String = “song.mp3”; var sound:Sound = new Sound(); sound.loadSound(url, true);

if i purchase it, could you please help me? :)

Thanks anyways

Posted 22 days ago