j-man
11-23-2001, 02:08 AM
not really sure if this belongs in the newbie section...Ok, here's the deal. Im creating a "mixer" that uses sliders to change the volume and pan of multiple tracks.... Everything works when I have a sound in the main movie's library and create a sound object using it's linkage.... I'd like to have all of my sounds in external data.swfs so that i can swap in new sounds without having to modify script in the main movie....but i'm having a little bit of trouble getting the external sound objects to load.
The structure of my setup is as follows:
data.fla - this is the fla that contains the data sound. The linkage is specified as soundID the actionscript found in this movie is as follows:
mySound = new Sound(this);
mySound.attachSound("soundID"_;
data.swf - the exported movie containng the mySound sound object.
player.fla - the main movie, On the main timeline an there is an instance of controlMC to which the sound objects are attached
now for my question, how do i load that sound object into my controlMC clip? my first thought would be something along the lines of (scripted in controlMC)
loadMovieNum ("data.swf", 0);
mySound.start(0,999);
but apparently that isnt exactly the right approach.
if(anyone can help) { i'd appreciate it}
thanx - j-man
The structure of my setup is as follows:
data.fla - this is the fla that contains the data sound. The linkage is specified as soundID the actionscript found in this movie is as follows:
mySound = new Sound(this);
mySound.attachSound("soundID"_;
data.swf - the exported movie containng the mySound sound object.
player.fla - the main movie, On the main timeline an there is an instance of controlMC to which the sound objects are attached
now for my question, how do i load that sound object into my controlMC clip? my first thought would be something along the lines of (scripted in controlMC)
loadMovieNum ("data.swf", 0);
mySound.start(0,999);
but apparently that isnt exactly the right approach.
if(anyone can help) { i'd appreciate it}
thanx - j-man