# Serious TellTarget Problem

**URL:** <https://forum.kirupa.com/t/serious-telltarget-problem/24853>\
**Category:** flash\
**Created:** [July 6, 2003, 4:02am UTC](https://forum.kirupa.com/t/serious-telltarget-problem/24853 "2003-07-06T04:02:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Russkie](https://avatars.discourse-cdn.com/v4/letter/r/6f9a4e/32.png) [@Russkie](https://forum.kirupa.com/u/Russkie)\
**Post date:** [July 6, 2003, 4:02am UTC](https://forum.kirupa.com/t/serious-telltarget-problem/24853/1 "2003-07-06T04:02:56Z")

</div>

ok I’m making a two player punching game on flash 5.

when one guy hits another guy that guy should get his face all bloody…

the code that detects the presence of that guy’s fist works.

the only problem I have is telling my target’s face to change his frame soo his face will be all messed up…

I used the code:

TellTarget (target1)  
gotoAndPlay nextframe

it worked but the face changes and goes to the first frame again of that movieclip. It refuses to make that target change frames!  
my player is a Movie Clip which has tons of motion…the face movieclip itself is set with motion inside the player.  
I tried add the same code over the motion frame but it dosen’t work. The name of the face is right.

I tried everything like other codes like:

with(target1)  
gotoAndPlay nextframe

I think the problem is that the computer dosen’t recongnize the name of the face after several frames soo it switched the face back to the first frame.

---

<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:** [July 6, 2003, 5:54am UTC](https://forum.kirupa.com/t/serious-telltarget-problem/24853/2 "2003-07-06T05:54:11Z")

</div>

Im not really sure but try  
gotoandstop instead.

---

<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:** [July 6, 2003, 6:27am UTC](https://forum.kirupa.com/t/serious-telltarget-problem/24853/3 "2003-07-06T06:27:48Z")

</div>

Ok, let’s check this out 🙂

[AS]TellTarget (target1)  
gotoAndPlay nextframe[/AS]

Alrighty. First thing is first. tellTarget is now deprecated and has been replaced by the MUCH easier dot syntax. Second this is… uhh… second… nextFrame() it a command on it’s own, so you don’t need gotoAndPlay() there, if you were going to use gotoAndPlay it would look a little something like this… [AS]gotoAndPlay(this.\_currentframe+1)[/AS] Which really wouldn’t make sense because you could always just use play() instead of that.

So ok, we determined no tellTarget and no gotoAndPlay, that would finally leave us to change… [AS]TellTarget (target1)  
gotoAndPlay nextframe[/AS] into… [AS]target1.nextFrame()[/AS]

I hope that helps 🙂

---

<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:** [July 7, 2003, 8:32pm UTC](https://forum.kirupa.com/t/serious-telltarget-problem/24853/4 "2003-07-07T20:32:05Z")

</div>

LIB, that will work in Flash 5?

---

<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:** [July 7, 2003, 8:35pm UTC](https://forum.kirupa.com/t/serious-telltarget-problem/24853/5 "2003-07-07T20:35:46Z")

</div>

Yep. Flash 5 started the generation of dot syntax.

---

<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:** [July 7, 2003, 8:37pm UTC](https://forum.kirupa.com/t/serious-telltarget-problem/24853/6 "2003-07-07T20:37:39Z")

</div>

funny, when i started flash 5 i had no idea of AS 🙂

---

<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:** [July 7, 2003, 8:40pm UTC](https://forum.kirupa.com/t/serious-telltarget-problem/24853/7 "2003-07-07T20:40:30Z")

</div>

I never used Flash 5… well except I did a basic tween in it before :beam: , but that is it.
