TBoyB
07-29-2001, 07:32 PM
I know I've asked this before, but I just can't find an answer.
I have four buttons, each button will launch an MC. An instance of each MC of corresponding button is place in it's own layer on the stage with a stop on the first frame in each MC so it does not play till told to via the button click.
on (release) {
tellTarget ("mc-vis-menu") {
gotoAndPlay ("vis-menu");
}
}
mc-vis-menu is the instance name of that MC.
vis-menu is the frame label name of frame 2 for that mc that will start it playing since frame 1 has a stop action.
How do I with one click of a button load the MC into an "empty" MC then use tellTarget to tell the corresponding MC in the empty MC to goto frame label and play?
I want to use one empty MC to load each of the button MCs into it so that each button click loads into the same empty MC in effect replacing the MC that was in it previously, regardless of whether the currently loaded MC in the empty MC is finished playing or not.
I have tried using the loadMovie action but that does not work. I get an error telling me it can not find file://blah blah blah. That doesn't surprise me since i'm not loading a movie, simply an MC.
Am I getting this using empty MC as a placeholder thing all wrong? Do I place all my button MCs into the "empty" first then refer to them via tellTarget? Does anyone understand what I'm trying to do?
I have four buttons, each button will launch an MC. An instance of each MC of corresponding button is place in it's own layer on the stage with a stop on the first frame in each MC so it does not play till told to via the button click.
on (release) {
tellTarget ("mc-vis-menu") {
gotoAndPlay ("vis-menu");
}
}
mc-vis-menu is the instance name of that MC.
vis-menu is the frame label name of frame 2 for that mc that will start it playing since frame 1 has a stop action.
How do I with one click of a button load the MC into an "empty" MC then use tellTarget to tell the corresponding MC in the empty MC to goto frame label and play?
I want to use one empty MC to load each of the button MCs into it so that each button click loads into the same empty MC in effect replacing the MC that was in it previously, regardless of whether the currently loaded MC in the empty MC is finished playing or not.
I have tried using the loadMovie action but that does not work. I get an error telling me it can not find file://blah blah blah. That doesn't surprise me since i'm not loading a movie, simply an MC.
Am I getting this using empty MC as a placeholder thing all wrong? Do I place all my button MCs into the "empty" first then refer to them via tellTarget? Does anyone understand what I'm trying to do?