Hi All,
Here’s my thought and I’m going to use basic buttons to display my concept.
Ok, scene 1 2 buttons, 1 red 1 green.
Each button links to the same frame, say 30.
Each button sets a different response to the same global var.
Ie
On the red button
on (release) {
_global.butColour = “red”;
gotoAndPlay(30);
}
On the greenbutton
on (release) {
_global.butColour =“green”;
gotoAndPlay(30);
}
Ok, so far so easy. Now on frame 30 I want to have the global var produce the selected global object on the stage.
eg
if (_global.butColour ==“red”) {
insert red button on center of stage
}
if (_global.butColour ==“green”) {
insert green button on center of stage
}
So what’s the missing code? ( insert green button on center of stage)
Any help would be greatly appreciated.
Thanks.