Welcome to WebmasterWorld Guest from 54.162.168.187

Forum Moderators: not2easy

Message Too Old, No Replies

Using the Sound Object in Flash

It seems that "sound" is a reserved keyword in flash.

     

carmo

12:23 pm on Dec 7, 2001 (gmt 0)

Inactive Member
Account Expired

 
 


It seems that "sound" is a reserved keyword in flash. I made a sound movie clip and gave it the variable name "sound". BUT the object would never work when I called methods on it (EX : setVolume())....then I decided to rename the variable, and voila! the methods worked perfectly. Has anyone else ever experienced this problem?

12:29 pm on Dec 7, 2001 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 8, 2001
posts:690
votes: 0


Sound is a flash object

"The Sound object allows you to set and control sounds in a particular movie clip instance, or for the global Timeline, if you
do not specify a target when creating a new sound object. You must use the constructor new Sound to create an
instance of the Sound object before calling the methods of the Sound object.

The Sound object is only supported for the Flash 5 Player. "

- Taken From Flash 5 Actionscript Dictionary -

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members