Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6638165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:24:10+00:00 2026-05-25T23:24:10+00:00

I have set up a nice Flash audio visualization which can load an audio

  • 0

I have set up a nice Flash audio visualization which can load an audio file and play it and display a spectrum of flashing coloured bars in time to the music. I don’t want to have to list and control the playback of songs from with in the swf though. I wold prefer to have the songs listed in the HTML of the page, preferably in a non-flash format. I am hosting my audio on Soundcloud and have found their javascript player, which suits my purposes nicely. Now how could I integrate these two things?

It seems that either I would need a way to pipe the audio that is produced by the javascript player into the swf, if that is even possible, or else mute the sound in one of the two locations (preferably the js so that the vis is optimally in sync) and pass all play/stop/seek commands from the js player to the flash vis. Is this going to be too difficult to even bother with?

Update:
Let me be more specific. Assuming that the “piping audio into the swf” approach couldn’t work, I will need to pass many different messages between swf and js. I understand how to start the swf audio from js I think. Would somebody be able to demonstrate how to do the following?

  • signal from flash back to js that the audio has started
  • signal from flash to js the current time of the audio
  • pause or stop the flash audio from js

You can assume the following code is present:

var url:String = "mysong.mp3"; 

var song:SoundChannel;
var request:URLRequest = new URLRequest(url);  
var s:Sound = new Sound();  
s.addEventListener(Event.COMPLETE, onLoadComplete );  
s.load(request);

function onLoadComplete(event:Event):void 
{    
  song = s.play(33000);
  song.addEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);   
  s.removeEventListener( Event.COMPLETE, onLoadComplete );
}  

function soundCompleteHandler(event:Event):void 
{    
   song.removeEventListener( Event.SOUND_COMPLETE, soundCompleteHandler );
}

I don’t understand the strange separation between the Sound class and the SoundChannel class and why different methods seem to be scattered between them.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T23:24:11+00:00Added an answer on May 25, 2026 at 11:24 pm

    Wow! Thanks to some awesome Adobe voodoo my flash audio visualizer is actually picking up audio that is played on the same webpage automatically! I assume it has to do with the fact that I am using SoundMixer.computeSpectrum(). I didn’t even understand how that works but apparently it can see outside flash itself to whatever audio is playing in the browser window. So I don’t have to worry about “piping audio into flash” or passing functions between the swf and javascript at all!

    Usually programming endeavors require getting all sorts of variables to just right for anything to work at all. How awesome is it when everything works without even trying!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a nice plugin, which incoporates some generated java sources. I can
I have set of scripts for doing scripted installs. You can use the scripts
I have a set of interfaces which are used in close conjunction with particular
I have set of Visual Studio solutions which have unit tests. I want to
I have set up a nice table with fixed height and weight like this:
I have a set of classes which I am using for a Data Access
I would like to have a set of nice tools in JavaScript for creating
We have set up a system where notifications get sent to a user with
I have set a canvas' background to an image of a company logo. I
I have set up transactional replication between two SQL Servers on different ends of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.