# Using midframe script

**URL:** https://forum.kirupa.com/t/using-midframe-script/73506
**Category:** Uncategorized
**Created:** [December 17, 2004, 12:37am UTC](https://forum.kirupa.com/t/using-midframe-script/73506 "2004-12-17T00:37:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Tracy981](https://avatars.discourse-cdn.com/v4/letter/t/aca169/32.png) [@Tracy981](https://forum.kirupa.com/u/Tracy981)
#### Post date: [December 17, 2004, 12:37am UTC](https://forum.kirupa.com/t/using-midframe-script/73506/1 "2004-12-17T00:37:01Z")

</div>

i followed Kirupa’s tut on transitions b/w external movies. I have everyhting working fine except one thing… The target movieclip is called “window” on the \_root and it loads external swfs. i have download.swf loading into “window” and in download.swf (which has 3 buttons), i have another target movieclip (“empty”)loading other external swf’s into download.swf (hopefully that makes sense). One i click on the buttons in download, it will load the desired swf’s but i cant click on them for the second time, only once. here is the script that i have for those buttons (in download.swf) -

```auto
_root.window.btn_video.onRelease = function() {
	if (this.currMovie == undefined) {
		this.currMovie = "evideos";
		empty.loadMovie("evideos.swf");
	} else if (this.currMovie != "evideos") {
		if (empty._currentframe>=empty.midframe) {
			this.currMovie = "evideos";
			empty.loadMovie("evideos.swf");
			this.empty.play();
		}
	}
}

```

im not sure where im going wrong… anyone have any ideas?  
thanks  
tracy
