# External swf transitions tutorial Question—Help Please?

**URL:** https://forum.kirupa.com/t/external-swf-transitions-tutorial-question-help-please/172604
**Category:** flash
**Created:** [December 16, 2005, 1:36am UTC](https://forum.kirupa.com/t/external-swf-transitions-tutorial-question-help-please/172604 "2005-12-16T01:36:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![popstalin](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@popstalin](https://forum.kirupa.com/u/popstalin)
#### Post date: [December 16, 2005, 1:36am UTC](https://forum.kirupa.com/t/external-swf-transitions-tutorial-question-help-please/172604/1 "2005-12-16T01:36:20Z")

</div>

Instead of using button instances on my site, I’m using movie clips as buttons from the tutorial on [gotoandlearn.com](http://gotoandlearn.com) instead. How would I change the actionscript to make the movieclip load?

```auto
**b1.onRelease = function(){**
	if (_root.currMovie == undefined) {
		_root.currMovie = "about_me";
		container.loadMovie("about_me.swf");
		} else if (_root.currMovie != "about_me") {
			if (container._currentframe >= 
				container.midframe) {
				_root.currMovie = "about_me";
				container.play();
			}
	}

}

```

After adding the bolded to the AS, I get the following error when I test the movie:  
\*\ ***Error** Scene=Scene 1, layer=buttons, frame=1:Line 1: Statement must appear within on/onClipEvent handler  
b1.onRelease = function(){

\*\*Obviously I’m a newb and I’m trying to learn as I create my site… I don’t know what to add or where. Anyone willing to help? TIA!
