# Action Script Headache

**URL:** <https://forum.kirupa.com/t/action-script-headache/230389>\
**Category:** flash\
**Created:** [June 25, 2007, 10:58pm UTC](https://forum.kirupa.com/t/action-script-headache/230389 "2007-06-25T22:58:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yfwmagazine](https://avatars.discourse-cdn.com/v4/letter/y/67e7ee/32.png) [@yfwmagazine](https://forum.kirupa.com/u/yfwmagazine)\
**Post date:** [June 25, 2007, 10:58pm UTC](https://forum.kirupa.com/t/action-script-headache/230389/1 "2007-06-25T22:58:50Z")

</div>

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!! 😱
