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 Miguel Panos
»  Title: Tarta
»  Description: It is a circle graph or pie chart that takes the data entered by user
»  More by Miguel Panos


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

Featured Site

»  AuthorDeft Creative Ltd
»  Link: Home Page
»  Description: Portfolio site for .DeftCreative Ltd. A UK based web design studio specialising in flash websites, games and interactive CDROMs. With an emphasis on making things different.


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

» Making Automatic Training Screen Capture Easily
» Create Undersea Life Animation
» Making Deinterlace Video with a low bitrate Easily
» 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
» Unknown Tag: Title10
Random Tutorial | Add Site


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

Search Tutorials


Tutorials Tutorials » Audio

Categories Flash MX Sound Object Tutorial
Author: Kenny Bellew

 
Page 21
«prev ... 8 9 10 11 12 13 14 15 16 17 18 19 20 21

How to Troubleshoot Sound Objects

Most problems experienced with sound objects involve a sound object that won't start or, when you try to stop one, more sounds stop than was intended. If a sound will not start, here are a few things to check:

Sound Will Not Start

  1. Make sure that the proper path to the sound object is included in the start command. The proper path is wherever the sound object was defined. For example, if the sound object is defined in a button located in a movie clip named "mc02" which is in another movie clip called "mc01", the ActionScript would appear as follows:
    on (press) {
     _root.mc01.mc02.mySoundObject.start();
     }
    
    As stated earlier, if the sound objects are all defined in one frame on the _root, the path would always be the same, and this would not be something you didn't need to track.
  2. If you're trying to start a dynamically loaded MP3 that is configured as streaming with the mySoundObject.start() method, and it will not start, the Flash player probably needs to be updated to the latest version.

  3. For non-dynamically loaded sound objects, make sure that the linkage identifier is properly typed - both where the sound object was defined and in the linkage properties in the Flash library. Also make sure that the identifier is a unique name. Remember that names are case sensitive and cannot start with a number. Check for typos.

Stopping one Sound Stops Multiple Sounds

This is nearly always due to how or where the sound object was defined. One easy way to resolve this is to specify the linkage identifier name as part of the stop command:

    mySoundObject.stop("mySoundObject01");

In the above example, "mySoundObject01" is the linkage identifier name that is set in the Flash library by right-clicking (or control-clicking for Macs) on the sound file and selecting "Export for ActionScript".

Sound Object Error Messages

  • "One or more files were not imported because there were problems reading them."
    A common reason to get this error message is that the file being loaded was encoded at over 160kbps. Flash cannot import MP3's with a bit-rate over 160kbps.

Miscellaneous Sound Object Issues

There is currently a limitation of having no more than eight sounds playing simultaneously.

This document copyright © 2002 by Kenny Bellew, kennybellew@hotmail.com

«prev ... 8 9 10 11 12 13 14 15 16 17 18 19 20 21

» Level Intermediate

Added: : 2002-08-13
Rating: 9.11 Votes: 663
Hits: 3054
» Author
Kenny Bellew is a technical writer in Minneapolis, MN. He's currently interested in becoming involved in other writing-related Flash projects.
» Download
Download the files used in this tutorial.
Download (6170 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