A Flash Developer Resource Site














Internet Commerce

Partners & Affiliates














Developer Channel

internet.com


Featured Flash FLA
Gallery Downloads 11337 Flash Movies | 1 New Flash Movies Added
What's New | Top 100

Featured FLA

» Author: Bugra Ozden
» Title: Skatalog v9 - product catalog
» Description: Create your product catalog easly and publish on your website or Create your image gallery, documents list, portfolio. Fully XML Driven
» More by Bugra Ozden


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

Featured Site

» Posted in the Flash Kit Links section
» Title: Creative DW Image Show PRO
» Description: Creative DW Image Show PRO is a Dreamweaver extension which enables the user to create multimedia presentations. It combines the features of the popular Creative DW Image Show with the ability to add professional text effects to slides (similar to After Effects). The product is very customizable: the user can choose the duration of the transition effects, the slide motion start and end position, zoom and panning type for both images and texts.


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

» Make a Flash Slide Show Screen Saver
» Simple flash making tutorial for thanksgiving
» Create flash banner for website
» Create xml slideshow with free template
» How to Insert a Multilingual Subtitle Into Your Flash Video Studio
» How to Create Cool Halloween Slideshow
» Debugging flash using the Firebug console
» Create Flash Slideshow on Blogger
» FLASH TRICKS IN WEB ADVERTISING: FLASH BANNERS
» Unknown Tag: Title10
Random Tutorial | Add Site

Trading Customer Accounting (IL)
Next Step Systems
US-IL-Chicago

Justtechjobs.com Post A Job | Post A Resume


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: 4674
» 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
 
   
 

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs