-
Sound Object help
hi, I have a problem regarding Sound Objects.
this is my code on the first frame of the movie.
var Theme:Sound = new Sound("GlobalSound");
Theme.attachSound("heyBlondie");
Theme.start(0,99);
Theme.setVolume(25);
later on, in a nested movie clip, I'm trying to perform the setVolume command on my Theme object, like so:
_root.Theme.setVolume(0);
and it doesnt mute the sound (I tried with and without the _root);
if you know whats the problem with the code, please help.
thank u.
-
FK'n_dog
try -
_global.Theme = new Sound();
Theme.attachSound("heyBlondie");
Theme.start(0,99);
Theme.setVolume(25);
in the movieclip -
Theme.setVolume(0);
-
thanks for your reply. it works. however, the object now controls all the sound in the swf rather than "heyBlondie" sound.
what do I do to fix it ( so it control just "heyBlondie") ?
-
FK'n_dog
try -
this.createEmptyMovieClip("s1",100);
_global.Theme = new Sound(s1);
Theme.attachSound("heyBlondie");
Theme.start(0,99);
Theme.setVolume(25);
-
thanks, it works perfect!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|