# Can't make a movieclip play!

**URL:** <https://forum.kirupa.com/t/cant-make-a-movieclip-play/246817>\
**Category:** Uncategorized\
**Created:** [December 14, 2007, 8:01pm UTC](https://forum.kirupa.com/t/cant-make-a-movieclip-play/246817 "2007-12-14T20:01:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjwright](https://avatars.discourse-cdn.com/v4/letter/s/a183cd/32.png) [@sjwright](https://forum.kirupa.com/u/sjwright)\
**Post date:** [December 14, 2007, 8:01pm UTC](https://forum.kirupa.com/t/cant-make-a-movieclip-play/246817/1 "2007-12-14T20:01:27Z")

</div>

Hi

I’m really gettin wound up now by this. I have made the navigation for my site, and here’s some sample code for making the button animation work;

```auto
on(rollOver) {
	if (!(_global.about_a == 1)) {
		tag_about.gotoAndPlay(2);
	}
}
on(rollOut) {
	if (!(_global.about_a == 1)) {
		tag_about.gotoAndPlay(11);
	}
}
on(release) {
	if (!(_global.about_a == 1)) {
		tag_about.gotoAndStop(10);
		if (_global.contact_a == 1) {
			tag_contact.gotoAndPlay(11);
		}
		if (_global.work_a == 1) {
			tag_work.gotoAndPlay(11);
		}
		if (_global.home_a == 1) {
			tag_home.gotoAndPlay(11);
		}
		_global.contact_a = 0;
		_global.work_a = 0;
		_global.about_a = 1;
		_global.home_a = 0;
	}
}

```

The above works great, and it can be seen working here: [beta.sjwright.co.uk](http://beta.sjwright.co.uk)

problem is I can’t make the movieclip with the instance name tag\_home play when the movie has loaded. As the homepage is the default page, I want the tag\_home to play on open. HOW DO I DO THIS? I cannot see why. If need be I will upload the fla file if no working solutions can be brought up here.

I thought this might work, but it doesn;t

```auto
this.onEnterFrame = function() {
	tag_home.gotoAndPlay(2);
}

```

PLEASE HELP, gettin really frustrated now.
