ActiveDen

AS3 Spectrum Analyzer Class with 16 presets

  • Has been a member for 2-3 years
  • Won a Competition
  • Exclusive Author
  • Sold between 5 000 and 10 000 dollars
  • Bought between 10 and 49 items
  • Singapore
  • Referred between 1 and 9 users
dexterous says

This is awesome. Great work alexxcz.

2 years ago
  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 1 and 9 items
  • Referred between 10 and 49 users
baklach says

Great job!!! like the Fireflyes one :)

2 years ago
  • Has been a member for 3-4 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Contributed a Tutorial to a Tuts+ Site
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 1 and 9 items
  • Europe
  • Referred between 1 and 9 users
alexxcz says
Author

Thanks! :)

2 years ago
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 1 and 9 items
  • Referred between 1 and 9 users
Quantax says

great file :)

2 years ago
  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Romania
  • Referred between 1 and 9 users
w0lf says

Great job! Nice presets!

2 years ago
  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
amindiary says

nice job! i wish to can make it but i’m AS2 flasher, not AS3 ! it can be done with AS2 ? :(

2 years ago
Author
alexxcz alexxcz replied

Thank you! Of course this could have been done in AS2 but I’m not a very good at AS2 . Sorry!

2 years ago
  • Has been a member for 2-3 years
  • Author had a File in an Envato Bundle
  • Exclusive Author
  • Sold between 100 000 and 250 000 dollars
  • Elite Author
  • Bought between 10 and 49 items
  • Referred between 10 and 49 users
ZoomIt says

Spectrum analyzers cannot be made in AS2 !


Nice job. best spectrums on AD

2 years ago
Author
alexxcz alexxcz replied

Didn’t know that :P Told you that I’m not that good at AS2 . Thanks for sharing!

2 years ago
  • Has been a member for 2-3 years
  • Bought between 10 and 49 items
  • Brazil
krlosed says

It’s possible to use it as a spectrum of a player? I have a player and wanted to implement it!

2 years ago
Author
alexxcz alexxcz replied

Yes. The spectrum is like a sprite so you can add it as a child of the player. It will extract the sound data automatically from the player.

2 years ago
  • Has been a member for 2-3 years
  • Bought between 10 and 49 items
dave9621 says
Purchased

Alexxcz,

I purchased this Spectrum thingy and it works GREAT . Really easy to customize exactly the way I want it to look. My problem/question is this.

Sometimes, maybe 1/3 of the time when I generate my SWF in Flash CS4 Pro I get the following output error:

SecurityError: Error #2121: Security sandbox violation: SoundMixer.computeSpectrum: file:///C|/Documents%20and%20Settings/David%20Muhr/My%20Documents/Websites/Cindy%20Alexendar%20v.3/mp3Player.swf cannot access . This may be worked around by calling Security.allowDomain. at flash.media::SoundMixer$/computeSpectrum() at spectrumAnalyzer.frequencyAnalyzer::BarSpectrum/onEnterFrame()

I think this is because I’m running this locally, but I’m not sure. When I run it off of a server in FireFox I don’t get any errors, but it’s not Flash’s Output window is there either. While testing my site FireFox has crashed a couple of times but I have no idea if this is because of the above error or something unrelated. So I’d like to fix any problems I have before going live…any help, thoughts or advise you can lend on Error #2121 and your analyzer would be greatly appreciated. Thanks.

2 years ago
Author
alexxcz alexxcz replied

Hello Dave and sorry for the late reply.

Error #2121 happens when you try to call the computeSpectrum function when another flash file with sound is loaded from a different domain.

For example: you have youtube magevideo open or when trying to view a flash file that uses computeSpectrum, it will fail because youtube did not grant your domain access to get its sound info. When this happens flash doesn’t return the bytes for the sound it can access but throws an error. I will modify the class to fix this issue but in thea meantime you can modify the class with a try-catch block where you find SoundMixer.computeSpectrum if you don’t have time to wait until the file gets updated.

If you need more help please send me an email from here an ActiveDen. And thanks for your feedback.

Edit: With the browser crash I don’t know if it’s from the spectrum. I know I’ve tested it in several browsers (IE, Firefox, Chrome) and I’ve never got any crashes.

2 years ago
  • Has been a member for 1-2 years
  • Bought between 1 and 9 items
windsurf says

alexxcz, Nice work I’m getting my sound from http://scfire-ntc-aa07.stream.aol.com:80/stream/1022;stream.nsv

I got zoomit’s little micro analyzer and I’ll be happy to purchase yours too or pay you to solve this or at least indicate where the problem might be.

I implement this player/analyzer using an mp3 and fine (see yoyo.html)

http://www.2c2b.net/tezt/yoyo.html

I implement using the stream at top of this comment and it functions as a player, but doesn’t analyze or render the spectrum. Before posting/publishing I use flash/testMovie and it works = plays & renders the spectrum http://www.2c2b.net/tezt/index.html

Any clue what’s happening?

Rustin

2 years ago
  • Has been a member for 1-2 years
  • Bought between 1 and 9 items
windsurf says
Purchased

re: above comment the stream works in the above index.html when it resides on my computer, just doesn’t won’t render the spectrum when it’s on the host’s server even though it plays the stream

2 years ago
Author
alexxcz alexxcz replied

Hello,

Regarding your question the problem is the security restriction due to the stream from a different domain. To fix this you would need a cross-domain policy file added to the streaming server. Quoting from Adobe’s documentation on SoundLoaderContext class:
Certain operations dealing with sound are restricted. The data in a loaded sound cannot be accessed by a file in a different domain unless you implement a cross-domain policy file. Sound-related APIs that fall under this restriction are the Sound.id3 property and the SoundMixer.computeSpectrum(), SoundMixer.bufferTime, and SoundTransform() methods.
2 years ago
  • Has been a member for 1-2 years
  • Bought between 1 and 9 items
windsurf says
Purchased

alexxcz,

thankyou

2 years ago
  • Has been a member for 3-4 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Contributed a Tutorial to a Tuts+ Site
  • Community Superstar
  • Interviewed on the Envato Notes blog
  • Grew a moustache for the Envato Movember competition
  • Community Moderator
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 1 and 9 items
  • Europe
  • Referred between 10 and 49 users
Enabled says

WOW . Very nice and useful item! Felicitari! :)

2 years ago
Author
alexxcz alexxcz replied

Multumesc! :)

2 years ago
  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
onesound says
Purchased

This is great spectrum source. if you ever using another music player & spectrum source, you can use it easy. and this spectrum so smooth like Winamp visualization. another spectrum is not.

10 months ago
Author
alexxcz alexxcz replied

Thank you for your kind words. :)

10 months ago

by
by
by
by
by