Internet Commerce

Partners & Affiliates

Developer Channel


Featured Flash FLA
Gallery Downloads 11401 Flash Movies | 5 New Flash Movies Added
What's New | Top 100

Featured FLA

»  Author: Nick Kouvaris
»  Title: Znax
»  Description: Znax is a board game. Click 4 tiles of the same color and form squares as big as you can. You will erase all the tiles inside the square and collect points. Get maximum score if you make a square with game edges.
»  More by: Nick Kouvaris


Random FLAs | Add Flash Movie
Featured Flash Site
Gallery Downloads 4941 Flash Sites | 1 New Flash Links
What's New | Top 100 Flash Site

Featured Site

»  Author Agence WOP Digital Agency
»  Title: Electricdrum
»  Description: French WOP Agency, 3D websites, Flash (Papervision, Away 3D), event or institutional projects. The agency operates on all digital projects: consulting, design, graphic design, development, online communication. The WOP agency follows you on the implementation of original, creative and optimized digital projects.


Random Links | Add your own Flash Related Links
Flash Tutorials 1481 Tutorials 7 New Tutorials Added!
What's New | Top100

» How To Make A Simple Animation Using Christmas Clips
» Simple Step by step flash game tutorial Spot the diffrence
» How To Make A Moving Text Slide
» Create Flash Banner With Text Float Effect
» How To Make Zoo Photos Slideshow
» How To Make A Dolphin Photos Slideshow
» How To Make A Fathers Day Slideshow
» How To Make A Transparent Background of Your Flash File
» Create Flash Banner With Text Disco Light Effect Today we will introduce you a Text Disco Light eff
» Unknown Tag: Title10
Random Tutorial | Add Site


Tutorials Home What's New Top Rated Submit myTutes Random!

Search Tutorials


Tutorials Tutorials » Audio

Categories Flash Sound for Dynamic Sites
Author: Gonzalo Alustiza

 
Page 11
«prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 next»

The function will be called ‘sound’ and will take two arguments:

    1. An event object. This is an object.
    2. A play or stop flag. This argument is a string and can take a ‘true’ value or can be an empty string meaning ‘false’ or a different string meaning ‘false’ too.

The logic behind the function is as follows:

    1. First detect the browser. This will help to branch the code to support NE and IE.
    2. Using the Event object, retrieve the URL that is referenced by the HTML tag that called the function upon an event.
    3. Use a JavaScript Regular Expression to split the URL you retrieved and pick up the part you’ll use. In our case you will use the name of the HTML file without the .htm or .html extension in the same way you acted when giving names to the Movie Clips.
    4. Check if the play flag equals ‘true’ if the answer is yes, see next step. Else see step f.
    5. Once you have the name of the web page, instruct the Flash ActiveX control or plug-in to play the Movie Clip whose name matches with the web page.
    6. Stop the Movie Clip and move to its first frame.

Before diving into the code, I think that it is fair to note that it was tested only on the following browsers and platforms:

        Internet Explorer 5.5 on Intel PCs.

        Netscape Communicator 4.5 on Intel PCs.

        Netscape Communicator 4.7 on Power Macintosh.

No further testing of the code was performed since its writing (several months ago) so I am almost sure that this will break under Netscape 6 or older versions of each browser. Also keep in mind that as I said in the foreword, only the essential code is provided. It is up to you to tailor it to your needs. In fact the original code was much more complex but, it dealt with issues specific to the project it was developed for, so It has no place here.

«prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 next»

» Level Intermediate

Added: : 2001-02-20
Rating: 6.34 Votes: 29
Hits: 4685
» 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.
Download (89 kb)
Get conversion and unzipping tools for PC and Mac here!

» Forums
More help? Search our boards for quick answers!

Please rate this tutorial, 10 is the top rating, you can also click the comments link to read/write a review.
10 9 8 7 6 5 4 3 2 1
Read or Post Comments