# gotoAndPlay won't control externally loaded swf animation

**URL:** <https://forum.kirupa.com/t/gotoandplay-wont-control-externally-loaded-swf-animation/85589>\
**Category:** Uncategorized\
**Created:** [April 5, 2005, 9:43pm UTC](https://forum.kirupa.com/t/gotoandplay-wont-control-externally-loaded-swf-animation/85589 "2005-04-05T21:43:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LittleFenris](https://avatars.discourse-cdn.com/v4/letter/l/b5ac83/32.png) [@LittleFenris](https://forum.kirupa.com/u/LittleFenris)\
**Post date:** [April 5, 2005, 9:43pm UTC](https://forum.kirupa.com/t/gotoandplay-wont-control-externally-loaded-swf-animation/85589/1 "2005-04-05T21:43:44Z")

</div>

I have my main movie that has a container movieclip called vulture\_container\_mc. That container MC loads “vulture\_mc.swf” into it. There is a button on the main movie that loads that swf into the container MC. I did the if statement in the beginning so the person couldn’t keep reloading the animation when you click on the button over and over. It works so they can’t do that, but now they can only press the button once, after that one time the button doesn’t work.

Here is the main movie I’m talking about:

\>\>[Main Movie](http://www.littlefenris.com/Files/Rocco_Egypt_Test.html)\<\<

The vulture animation when you click the email button is the external swf file. I would like to make it where they can’t keep reloading the animation (which works with the if statement, but I also need it so you can press the email button again after the animation is done to cause the vulture animation and email link to work again.

Here’s the code in the email button:

```auto
on (release) {
	if (vultureClicked == 0) {
		loadMovie("vulture_mc.swf", "_root.vulture_container_mc");
		vultureClicked = 1;
	}
	trace(vultureClicked);
}
on (release) {
	if (vultureClicked == 2) {
		_root.vulture_container_mc.gotoAndPlay(1);
		vultureClicked = 3;
	}
	trace(vultureClicked);
}

```

Any help is much appreciated. I’ve been trying all kinds of things for hours now. I’m an artist, not a programmer, so this stuff is pretty foreign to me.
