I have this code inside a mc. I want when you click on the mc it loads a external swf into the empty mc named container. I get the following erro message:
[COLOR=Red]*[SIZE=1]Error Scene=Scene 1, layer=Layer 15, frame=2:Line 13: Statement block must be terminated by ‘}’
} else if (_root.currMovie != “section1”) {
Error Scene=Scene 1, layer=Layer 15, frame=2:Line 18: Syntax error.
Error Scene=Scene 1, layer=Layer 15, frame=2:Line 9: Statement block must be terminated by ‘}’
orb1.onRelease = function() {
Error Scene=Scene 1, layer=Layer 15, frame=2:Line 18: Syntax error.
Error Scene=Scene 1, layer=Layer 15, frame=2:Line 9: Statement must appear within on/onClipEvent handler
orb1.onRelease = function() {
Total ActionScript Errors: 5 Reported Errors: 5[/SIZE]*[/COLOR]
This is the code I have inside my as on the mc button:
on (rollOver) {
gotoAndPlay(“start”);
_parent.about.gotoAndPlay(“start”);
}
on (rollOut) {
gotoAndPlay(“end”);
_parent.about.gotoAndPlay(“end”);
}
orb1.onRelease = function() {
if (_root.currMovie == undefined) {
_root.currMovie = “section1”;
container.loadMovie(“section1.swf”);
} else if (_root.currMovie != “section1”) {
if (container._currentframe>= container.midframe) {
_root.currMovie = “section1”;
container.play();
}
PLEASE HELP!!