# Having a strange tellTarget problem

**URL:** <https://forum.kirupa.com/t/having-a-strange-telltarget-problem/12594>\
**Category:** flash\
**Created:** [February 2, 2003, 8:08am UTC](https://forum.kirupa.com/t/having-a-strange-telltarget-problem/12594 "2003-02-02T08:08:30Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Freddythunder](https://avatars.discourse-cdn.com/v4/letter/f/8edcca/32.png) [@Freddythunder](https://forum.kirupa.com/u/Freddythunder)\
**Post date:** [February 2, 2003, 8:08am UTC](https://forum.kirupa.com/t/having-a-strange-telltarget-problem/12594/1 "2003-02-02T08:08:30Z")

</div>

Alright, so I have these buttons that I want other animation to play when I rollOver and then again when I rollOut. I made a MC and named the instance. I have stop();s on frames 1 (empty), 15 and 30 (the last one). Here are my AS for the button:  
on(rollOver){  
tellTarget("/song1ani"){  
gotoAndPlay(2);  
}  
}  
on(rollOut){  
tellTarget("/song1ani"){  
gotoAndPlay(16);  
}  
}

Here’s the clincher!! It works fine, but when I hit Ctrl+Enter to test the movie; the output window tells me that the stop(); on frame 15 needs an onClipEvent handler.

Of course, I gave it one and made everything worse.  
Should I ignore the output window? Cause it works fine. Just figured I’d ask.  
Thanks!!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 2, 2003, 8:17am UTC](https://forum.kirupa.com/t/having-a-strange-telltarget-problem/12594/2 "2003-02-02T08:17:54Z")

</div>

Well for one, you’re using telltarget which is depreciated in MX and the new sintax for you script above should look like this:

```php
on(rollOver){
	_root.song1ani.gotoAndPlay(2);
}
on(rollOut){
	_root.song1ani.gotoAndPlay(16);
}

```

But I don’t think that is the cause of the error, could you copy and paste the exact error message that you recieved?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 2, 2003, 8:29am UTC](https://forum.kirupa.com/t/having-a-strange-telltarget-problem/12594/3 "2003-02-02T08:29:17Z")

</div>

I didn’t expect a responce so fast - thank you!!

Here is the message:

Symbol=song1tell, Layer=Layer1, Frame=15: Line 1: Statement must appear within on/onClipEvent handler  
stop();

So I finished the other tellTargets the same way and now two errors come up (same errors) but all five work - they’re identical. Is it becuase I’m using old code?

Thanks!!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 2, 2003, 8:32am UTC](https://forum.kirupa.com/t/having-a-strange-telltarget-problem/12594/4 "2003-02-02T08:32:06Z")

</div>

well it’s saying that there is a statment that needs to be in a event handler, but it’s definitely not the stop action. Try switching over to the new sintax like how I showed you above and see if the errors go away.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 2, 2003, 8:36am UTC](https://forum.kirupa.com/t/having-a-strange-telltarget-problem/12594/5 "2003-02-02T08:36:03Z")

</div>

Your script works but the error still comes up. I just don’t know.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 2, 2003, 8:36am UTC](https://forum.kirupa.com/t/having-a-strange-telltarget-problem/12594/6 "2003-02-02T08:36:46Z")

</div>

could you post your fla so I can take a look? You probably have a script laying somewhere it’s not suppose to.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 2, 2003, 8:48am UTC](https://forum.kirupa.com/t/having-a-strange-telltarget-problem/12594/7 "2003-02-02T08:48:47Z")

</div>

Okay, here it is:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 2, 2003, 8:50am UTC](https://forum.kirupa.com/t/having-a-strange-telltarget-problem/12594/8 "2003-02-02T08:50:22Z")

</div>

I can’t, it’s too big. It’s 5 meg.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 2, 2003, 8:51am UTC](https://forum.kirupa.com/t/having-a-strange-telltarget-problem/12594/9 "2003-02-02T08:51:51Z")

</div>

goodness that’s huge, could you upload it to a webserver somewhere and send me the link?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 2, 2003, 9:05am UTC](https://forum.kirupa.com/t/having-a-strange-telltarget-problem/12594/10 "2003-02-02T09:05:27Z")

</div>

Okay, It the fla is here:

[http://busineplex.com/fred/test/coppers.fla](http://busineplex.com/fred/test/coppers.fla)

Sorry it’s so big (and probably really messy to you) but I’m still just starting.

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 2, 2003, 9:54am UTC](https://forum.kirupa.com/t/having-a-strange-telltarget-problem/12594/11 "2003-02-02T09:54:35Z")

</div>

Ok after about 20 mins of going through your fla which is a complete jungle for me, I had no idea what was going on…ahhahah, I finally found the source of the error messages. Inside these 2 movieclips, you’ve accidently placed a stop action on the object inside that movieclip itself and so it caused the error to appear. The 2 movieclips are “Symbol 142” and “song1tell”. So just open your library find those movieclips, double click on them to open them up and go to each frame and select the object on each of those frames and make sure there isn’t a stop action placed on those objects. I noticed you have stop actions on the frames which are ok, but on the object on those frames, you have a stop on the object itself.

I tested it out and the errors are gone, I would post the file back but I don’t have room on my server right now. So go ahead and do that and let me know how it goes.

I hope I didn’t confuse you.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 2, 2003, 10:18am UTC](https://forum.kirupa.com/t/having-a-strange-telltarget-problem/12594/12 "2003-02-02T10:18:55Z")

</div>

Perfect!

Rest assured, you didn’t confuse me. However what does confuse me is how I got those stops on the object…Hmm. Sorry it was so much of a mess; I’m still learning.

That worked! Thank you - I appreciate the time spent. The best part is now I can go to sleep!!

Thanks again!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 2, 2003, 10:20am UTC](https://forum.kirupa.com/t/having-a-strange-telltarget-problem/12594/13 "2003-02-02T10:20:41Z")

</div>

I’m glad you found the stops and got things working. You probably accidently placed them there while placing the stops on the frames, pretty common mistake. =)
