First time here? First time here? Newsletter Signup Newsletter
Login | Register | 651326 Members and growing!
Search tutorials
Author: Gonzalo Alustiza


It is not new that a single Flash Movie can be employed to sonify a web site; usually you assign each link and image in a web page a start frame number inside the Flash movie and play the movie from the selected frame in response to a mouse (or keyboard) event. This method involves calling the Flash movie from an event handler and passing the frame number from which you want to start playing.

One caveat of this approach is that whenever you modify the Flash movie to incorporate new sounds or replace or modify existing sounds you might experience that the frame numbers you are referencing from your code are no longer valid and you have to modify your calls. This could be very annoying in big web sites and a huge waste of time.

Our approach is to use Movie Clips inside a Flash movie to store sounds and use scripting for the Flash ActiveX control or Plug-In to start and stop those sounds. Also, these Movie Clips will not be referenced by frame number but instead will be referenced by name and the whole idea is to have a unique name for each movie clip that naturally relates to some attribute in the HTML tags (in this case <A> and <IMG> tags).

In case you have to add sounds or modify the existing sounds, the relationship between the HTML elements and the Movie Clips won’t be broken and you won’t have to worry about frames misplaced.

We think that our approach is more natural than referencing frame numbers and, using attributes from HTML tags eases updates. Also you will see the benefits of storing programming logic inside external code libraries so the amount of modifications to the HTML code is minimal.

» Level Intermediate

Added: 2001-02-20
Rating: 5.83 Votes: 30
(10 being the highest)
» Author
My name is Gonzalo Alustiza and I work as a chief developer at Soundtown Argentina. Soundtown is a ten year old music production company specializing in music for advertising and TV which started to develop sonification solutions for the Internet.
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!


  • There are no comments yet. Be the first to comment!

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.
Featured Flash FLA
» Author: Inocreato
» Title: RaiseTheBlocks
» Description: Raise all the blocks to win the game
Featured Sound Loops
Image for equalize

Audio Player

» Author: TomCat Carty
» Title: The Wood
» Description: Just a little game ending or it can maybe be looped. Recorders with music box and percussion to give the feel of well, I don't know, the woods? Free to use, just credit me. thank you
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: Davisigner
» Description: Hmm... what to say about this one? It's reminiscent of the closing notes of the opening music from the Three Stooges done in a church organ style with a closing cymbal crash. I'll give this one away gratis, but feel free to check out my free loops and potential upcoming license-mandated ones over in the respective part of Flashkit.