[font=Trebuchet MS][size=2]Hey there
I have just completed the āTransitions Between External SWFsā tutorial and Iām now Iām at the stage of altering a few things in there to suit my needs. But Iāve run into a problemā¦
For my buttons, intead of āButtonā symbols, I want to use āMovie Clipā symbols - reason being is that Iāve got some specially animated Movie Clip buttons that I wish to use.
To get thisā¦ err āworkingāā¦ with my Movie Clip buttons I have needed to use ā_root.ā when referencing to the container Movie Clip.
Now that works to an extent, but for some reason each button plays only ā[/size][/font][font=Trebuchet MS][size=2]red.swf[/size][/font]ā even when there is no mention of it in the ActionScript and is instructed to play āblueā for example (āred.swfā happens to be the first appearing movie).
[font=Trebuchet MS][size=2]
Can anybody help me to get this working properly? I hope itās some stupid mistake on my part rather than something impossible.
Normal method with Button - works fine!
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "red";
container.loadMovie("[/size][/font][font=Trebuchet MS][size=2]red[/size][/font][font=Trebuchet MS][size=2].swf");
} else if (_root.currMovie != "[/size][/font][font=Trebuchet MS][size=2]red[/size][/font][font=Trebuchet MS][size=2]") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "[/size][/font][font=Trebuchet MS][size=2]red[/size][/font][font=Trebuchet MS][size=2]";
container.play();
}
}
}[/size][/font][font=Trebuchet MS][size=2]
[/size][/font][font=Trebuchet MS][size=2]
New method with āMovie Clip buttonā[/size][/font][font=Trebuchet MS][size=2]** - strange problemā¦**[/size][/font]
[font=Trebuchet MS][size=2]
onClipEvent(load) {
this.onRollOver = function() {
}
this.onMouseUp = function() {
if (_root.currMovie == undefined) {
_root.currMovie = "[/size][/font][font=Trebuchet MS][size=2]red[/size][/font][font=Trebuchet MS][size=2]";
_root.container.loadMovie("[/size][/font][font=Trebuchet MS][size=2]red[/size][/font][font=Trebuchet MS][size=2].swf");
} else if (_root.currMovie != "[/size][/font][font=Trebuchet MS][size=2]red[/size][/font][font=Trebuchet MS][size=2]") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "[/size][/font][font=Trebuchet MS][size=2]red[/size][/font][font=Trebuchet MS][size=2]";
_root.container.play();
}
}
}
}[/size][/font][font=Trebuchet MS][size=2]
If anybody can help me out - THANKS! :}
[/size][/font]