belotte
11-23-2009, 06:43 AM
I have a question about referencing sound from a nested clip.
In my first frame on the root level I have this function:
function snd(iSnd:Sound):void {
var sndV:SoundChannel = iSnd.play(0, 0, sndTrans);
}
On the second frame of a nested clip I have this:
MovieClip(this.root).snd(MovieClip(this.root).loca tionSound);
I don't get any errors, but my sound doesn't play either. The function works fine when I am referencing it from the root level, but unfortunately I can't do that with this particular instance.
Any ideas?
In my first frame on the root level I have this function:
function snd(iSnd:Sound):void {
var sndV:SoundChannel = iSnd.play(0, 0, sndTrans);
}
On the second frame of a nested clip I have this:
MovieClip(this.root).snd(MovieClip(this.root).loca tionSound);
I don't get any errors, but my sound doesn't play either. The function works fine when I am referencing it from the root level, but unfortunately I can't do that with this particular instance.
Any ideas?