# I'm stumped!

**URL:** https://forum.kirupa.com/t/im-stumped/38173
**Category:** Uncategorized
**Created:** [December 19, 2003, 1:07am UTC](https://forum.kirupa.com/t/im-stumped/38173 "2003-12-19T01:07:03Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![elion](https://avatars.discourse-cdn.com/v4/letter/e/4491bb/32.png) [@elion](https://forum.kirupa.com/u/elion)
#### Post date: [December 19, 2003, 1:07am UTC](https://forum.kirupa.com/t/im-stumped/38173/1 "2003-12-19T01:07:03Z")

</div>

I have two movie clips, and for each I want certain text to be displayed in a certain area. This is the problem:

```
if (_root.rah.hitTest(_root.maze.walls.key)) {
	_root.text = "Blah blah blah.";
} else {
	_root.text = "";
}

```

}

This script on ONE of the two movie clips, which makes it possibal for only one movie clip to display text because of the “else” command, which makes it display no text if it’s not on that movie clip in particular. If the ‘else’ command is _not_ there, then the text remains where it is. I was thinking of just making multiple text boxes on eachother, but I was wondering if there was an easier way to do this.

---

<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: [December 21, 2003, 7:28pm UTC](https://forum.kirupa.com/t/im-stumped/38173/2 "2003-12-21T19:28:14Z")

</div>

Okay, when one MC hitTests a different MC, text is displayed on the bottom of the screen. The script for this hitTest tells the dynamic text box to display the text, and when the first MC isn’t touching it, to not display anything (See script above). Since nothing is displayed when the first MC isn’t touching the second MC, the ‘else’ command is told to display nothing in the dynamic text box. Because of this, if the first MC touches any other MC’s that I want to cause to put in different text in the dynamic text box, nothing happends because of the else command in the first hitTest. **The problem is, I need that else command there, or else the text will continue to be displayed on the bottom of the screen even when theres no hitTest.**.

Er, I hope that helps a bit. ;(

---

<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: [December 22, 2003, 4:11am UTC](https://forum.kirupa.com/t/im-stumped/38173/3 "2003-12-22T04:11:31Z")

</div>

…Wee 🙂

---

<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: [December 22, 2003, 4:47pm UTC](https://forum.kirupa.com/t/im-stumped/38173/4 "2003-12-22T16:47:28Z")

</div>

_Cough_ :hat:

---

<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: [December 22, 2003, 7:27pm UTC](https://forum.kirupa.com/t/im-stumped/38173/5 "2003-12-22T19:27:24Z")

</div>

If I need to rephrase AGAIN, just ask \>\_\<

Edit: Nevermind, I’m just doing it the hard way instead.:hair:

---

<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: [December 22, 2003, 8:09pm UTC](https://forum.kirupa.com/t/im-stumped/38173/6 "2003-12-22T20:09:20Z")

</div>

Something like this?  
Drag the green ball around…

scotty:?)

---

<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: [December 22, 2003, 8:28pm UTC](https://forum.kirupa.com/t/im-stumped/38173/7 "2003-12-22T20:28:27Z")

</div>

Yeah, 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: [December 22, 2003, 8:33pm UTC](https://forum.kirupa.com/t/im-stumped/38173/8 "2003-12-22T20:33:08Z")

</div>

no problem:thumb:
