# Tell Targets - Do they smell?

**URL:** <https://forum.kirupa.com/t/tell-targets-do-they-smell/6001>\
**Category:** flash\
**Created:** [September 27, 2002, 10:03am UTC](https://forum.kirupa.com/t/tell-targets-do-they-smell/6001 "2002-09-27T10:03:42Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![urbanscrawl](https://avatars.discourse-cdn.com/v4/letter/u/9fc348/32.png) [@urbanscrawl](https://forum.kirupa.com/u/urbanscrawl)\
**Post date:** [September 27, 2002, 10:03am UTC](https://forum.kirupa.com/t/tell-targets-do-they-smell/6001/1 "2002-09-27T10:03:42Z")

</div>

I am in a similar situation to csbryce - I too have five buttons that I am trying to link to separate tell targets, which are also scrolling text boxes. I notice csbryce has got no replies - is this because the question is just too darned easy and we are missing something really obvious - or because tell targets smell?

I have done the scrolling text box fine, (who needs MX?). I have created separate symbol movie clips with the boxes in and named them as per Kirupa’s tutorial. My problem is that I cannot seem to then drag them onto the stage from the library. Even if I did, I have a huge stage - where do I drag them? to different frames I assume?

Were I able to do this, would I simply link each button to the keyframe that they referred to. So that would be gotoandplay 300, 301, 302, etc?

At the moment I’m getting ‘target not found’.

Also, if I am flitting from frame to frame, how can I keep audio playing? At the moment it’s played with a simple gotoandplay command at frame x - presumably if the buttons are activating separate frames to get the text boxes changing, the music will die - Don Maclane would not be pleased.

Not so bothered about the audio - but if any of you flash gurus wouldn’t mind putting a clothes peg on your nose and helping us get these text boxes responding properly, it would be much appreciated.

---

<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:** [September 27, 2002, 12:24pm UTC](https://forum.kirupa.com/t/tell-targets-do-they-smell/6001/2 "2002-09-27T12:24:20Z")

</div>

Have you made you that all your instances that are placed on the stage have an instance name? Probably an obvious statement to make, but that could be why the code isn’t finding them.

---

<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:** [September 27, 2002, 4:23pm UTC](https://forum.kirupa.com/t/tell-targets-do-they-smell/6001/3 "2002-09-27T16:23:47Z")

</div>

Yes- they have instance names.

I can’t find a multi-button tell target tutorial either which is bizarre because I’m guessing this is common ground.

Kit, any chance I could mail you the fla for you to have a look - this is driving me nuts :crazy:

---

<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:** [September 27, 2002, 4:49pm UTC](https://forum.kirupa.com/t/tell-targets-do-they-smell/6001/4 "2002-09-27T16:49:11Z")

</div>

This is so - depressing. I’ve been trying to link this little lot up all day now and I’m not getting anywhere. Maybe I’m being a little ambitious for a first tell target effort, but I don’t see why this shouldn’t work perfectly well.

Don’t you hate it when you try and try to do something in Flash and the pieces just won’t seem to come together.

---

<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:** [October 2, 2002, 12:02am UTC](https://forum.kirupa.com/t/tell-targets-do-they-smell/6001/5 "2002-10-02T00:02:56Z")

</div>

Hoorah - it’s sorted. The problem was, though I’d named the instances I intended to include, they weren’t actually on the timeline. The only instance that was there - wasn’t named. The text boxes different parts were confusing me.

The script if anyone is remotely interested is:

on (release) {  
tellTarget (“textbox”) {  
Text = “\<P ALIGN=“LEFT”\>\<FONT FACE=“Arial” SIZE=“10” COLOR=“999999”\>text\</FONT\>\</P\>”;  
}  
tellTarget (“textbox”) {  
if (scrolling == “up”) {  
Text.scroll–;  
}  
if (scrolling == “down”) {  
Text.scroll++;  
}  
}  
}

:cowboy:

---

<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:** [October 2, 2002, 7:30am UTC](https://forum.kirupa.com/t/tell-targets-do-they-smell/6001/6 "2002-10-02T07:30:27Z")

</div>

are you using Flash 5.0?

---

<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:** [October 2, 2002, 7:34am UTC](https://forum.kirupa.com/t/tell-targets-do-they-smell/6001/7 "2002-10-02T07:34:18Z")

</div>

It is in the Flash 5 section david=)

---

<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:** [October 2, 2002, 7:51am UTC](https://forum.kirupa.com/t/tell-targets-do-they-smell/6001/8 "2002-10-02T07:51:44Z")

</div>

Yes… but we don’t have a Flash 4.0 section.

I would say that the code is outdated because tellTargets no longer look like that. With the addition of dot syntax coding in Flash 5.0 everything would be much more compact. There would be less scripting involved.

---

<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:** [October 2, 2002, 9:08am UTC](https://forum.kirupa.com/t/tell-targets-do-they-smell/6001/9 "2002-10-02T09:08:25Z")

</div>

Sorry didn’t reply sooner to this. Guess the time difference is a bit of a pain as well. 🙂

Looks like you got it sorted OK, but if you’d like me to take a quick look at it then mail it to [kitiara30@hotmail.com](mailto:kitiara30@hotmail.com).

Although I’ve just realised that I’m only here until about 5.30 (British time) today, then I’m off in Portugal for a week…

---

<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:** [October 3, 2002, 7:52pm UTC](https://forum.kirupa.com/t/tell-targets-do-they-smell/6001/10 "2002-10-03T19:52:58Z")

</div>

Well - sort of sorted, just ironing out a few niggles now.

David, hello mate, yes it’s flash five - what do you think the code should look like instead? I’d be interested to 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:** [October 3, 2002, 7:59pm UTC](https://forum.kirupa.com/t/tell-targets-do-they-smell/6001/11 "2002-10-03T19:59:32Z")

</div>

Have a sneaking suspicion that tell targets may sort out the music problem as well. Invisible object on the stage with the music looping in it sound right?

---

<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:** [October 4, 2002, 6:33am UTC](https://forum.kirupa.com/t/tell-targets-do-they-smell/6001/12 "2002-10-04T06:33:46Z")

</div>

dot syntax is similar to the tell target… but you’re not using so much code, and the slashes have been replaced by periods. Your code would look something like this

on (release) {  
textbox.Text = “text”;  
if (textbox.scrolling == “up”) {  
textbox.Text.scroll–;  
}  
if (textbox.scrolling == “down”) {  
textbox.Text.scroll++;  
}  
}

Though what effect that will have, I’m unsure of. Usually there are small nuances to switching over to OOP Dot syntax.

The basic deal is this. With Flash 5.0 you can now call out directly to any movie clip object (arrays; xmlnodes; string variables, also) and tell it to do something, or read a property of it.

so if you have an movie clip with an instance name of “textbox”, all of these commands have the following effects.

i=textbox.length(); //if this is a string var, it will set i to equal the number of characters in the string.

textbox.gotoAndPlay(2); //if this is a movie clip it will send the play head to frame 2 and start it playing.

textbox.scatterText.begin(); //calls a user defined function called “begin()” which is located inside an object called “scatterText” which is located inside the “textbox” object.

textbox.myVariable=“It was the best of times it was the worst of times.”; // sets a variable called “myVariable” in textbox object, equal to the value of the string.

Anything you could do with slash syntax tellTarget you can do with dot syntax more easily.

In slash syntax if you wanted to go backwards up the tree of objects you’d have to use …/ or something like that. In dot syntax the parent object of the object can be refered to with the word \_parent in the dot structure. The main timeline that contains all others can be called to by \_root, and any level can be called to by \_level#.

examples:  
\_root.textbox.stop();  
this.\_parent.gotoAndPlay(“startAnimation”);  
\_level2.openingClip.play();  
\_parent.\_parent.stop();

---

<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:** [October 10, 2002, 1:00am UTC](https://forum.kirupa.com/t/tell-targets-do-they-smell/6001/13 "2002-10-10T01:00:13Z")

</div>

Text box action script now adjusted.

Thank you guys - David, Kirupa and Kit especially for your kind words and vital help in getting the site finished. The beta is now up, scrolling text box action script now a la David. It all seems to work fine - just some content to go and maybe up the frame rate - depends how it loads.

The only thing re text boxes that I’d like to change is have the text box move (as well as fade) in under a mask, which it doesn’t seem to want to do… but that’s another thread.

---

<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:** [October 10, 2002, 6:47am UTC](https://forum.kirupa.com/t/tell-targets-do-they-smell/6001/14 "2002-10-10T06:47:10Z")

</div>

lol… yeah it might be.

I did forget to say one thing that I really wanted to.

tellTargets DO smell…badly. 🙂
