Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

controling volume of Movie Clip?

Status
Not open for further replies.

adamr1001

MIS
Jul 25, 2001
166
CA

i know i can can the colume of a 'Sound',

but what about a Movie Clip?

by the way, do dynamically loaded sounds work on all versions of Flash player 6?

i know that the streaming option requires the latest version (so says the popular sound tutorial that has been posted on this board...which by the way is awesome) - but i've been having trouble doing a simple dynamic sound load, even in Event mode.

any ideas?
 
Go to the Instance > Sound > edit. Move both bars close to the center or lower then the default settings. This will change the sound level.
 
i was refering to dynamicaly controlling the volume of a movie lips.. noy sound defined by 'new Sound()', but the volume of a 'movie clip' playing the sound ..
 
a movie clip does not have a sound property.

it may contain a sound but you cannot access that sound just from the movie clip, you can only access it through the sound object within the clip. so from the main timeline


_root.myclip.mysound etc
 
my_sound = new Sound();
my_sound.attachSound("song");
my_sound.start();

_root.pauseMe.onRelease = function(){
_root.my_sound.stop();
}
_root.playMe.onRelease = function(){
_root.my_sound.start(_root.my_sound.position/1000);

give your imported song a linkage name of "song"
you need two buttons for play and pause
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top