# Different txt in the same area

**URL:** https://forum.kirupa.com/t/different-txt-in-the-same-area/10282
**Category:** Uncategorized
**Created:** [December 28, 2002, 4:30pm UTC](https://forum.kirupa.com/t/different-txt-in-the-same-area/10282 "2002-12-28T16:30:13Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![flash\_newbie](https://avatars.discourse-cdn.com/v4/letter/f/fbc32d/32.png) [@flash\_newbie](https://forum.kirupa.com/u/flash_newbie)
#### Post date: [December 28, 2002, 4:30pm UTC](https://forum.kirupa.com/t/different-txt-in-the-same-area/10282/1 "2002-12-28T16:30:13Z")

</div>

…if u don’t know wot i mean go to [http://www.kirupa.com/developer/mx/usingtext.asp](http://www.kirupa.com/developer/mx/usingtext.asp)

if u click on GOOD…a text appears…click on POOR a different text (well, type in this case) appears…help:\*(

---

<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 28, 2002, 5:48pm UTC](https://forum.kirupa.com/t/different-txt-in-the-same-area/10282/2 "2002-12-28T17:48:30Z")

</div>

whats wrong?? what u asking??

its like 5am here ,maybe im just too tired to understand!!

:sigh:

---

<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 28, 2002, 6:09pm UTC](https://forum.kirupa.com/t/different-txt-in-the-same-area/10282/3 "2002-12-28T18:09:37Z")

</div>

Yeah, I am not sure I understand either.

Unless you are talking about how Good and Bad are Verdana and the Ugly is Times New Roman.

---

<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 28, 2002, 6:19pm UTC](https://forum.kirupa.com/t/different-txt-in-the-same-area/10282/4 "2002-12-28T18:19:44Z")

</div>

If that was what you were wondering… I did something sorta like it, but with font size.

[http://www.kirupaforum.com/showthread.php?s=&threadid=10133](http://www.kirupaforum.com/showthread.php?s=&threadid=10133)

(took me a while to find the thread…lol).

Ok, If you follow that, you can do the same thing, but you will just have to add something like…

myformat.font = “Verdana”

---

<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 28, 2002, 8:03pm UTC](https://forum.kirupa.com/t/different-txt-in-the-same-area/10282/5 "2002-12-28T20:03:27Z")

</div>

good.onRelease = function () {  
textFieldVariableName = “your text”;  
}

bad.onRelease = function () {  
textFieldVariableName = “your text again”;  
}  
ugly.onRelease = function () {  
textFieldVariableName = “your text again for the third time”;  
}

—to change the size…i think there’s --\>  
new TextFormat (size, 8);

i’m not that sure about the last one…haven’t used it… 😛

---

<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 28, 2002, 10:13pm UTC](https://forum.kirupa.com/t/different-txt-in-the-same-area/10282/6 "2002-12-28T22:13:04Z")

</div>

nah, guys thanks anyways: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: [December 28, 2002, 11:20pm UTC](https://forum.kirupa.com/t/different-txt-in-the-same-area/10282/7 "2002-12-28T23:20:08Z")

</div>

Too advanced for now???

It is a tad bit advanced in a way, but if you practice you will be up there soon enough 🙂

---

<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 29, 2002, 10:12am UTC](https://forum.kirupa.com/t/different-txt-in-the-same-area/10282/8 "2002-12-29T10:12:36Z")

</div>

okay…here goes nothing…

have 3 buttons on with instance names good, bad and ugly respectively. also, you should have a dynamic text with a variable name view and is multiline. on frame 1 on the main timeline, paste this codes:

good.onRelease = function () {  
view = “your text”;  
}

bad.onRelease = function () {  
view= “your text again”;  
}  
ugly.onRelease = function () {  
view= “your text again for the third time”;  
}

just try it…

---

<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 29, 2002, 11:28am UTC](https://forum.kirupa.com/t/different-txt-in-the-same-area/10282/9 "2002-12-29T11:28:07Z")

</div>

My best attempt…goto [www.apocalypseclan.net/main.html](http://www.apocalypseclan.net/main.html)

Do you mean if you click on a link have flash load different text into the same text area? If you are then I can help there, since I made the above site.

---

<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 30, 2002, 3:29pm UTC](https://forum.kirupa.com/t/different-txt-in-the-same-area/10282/10 "2002-12-30T15:29:45Z")

</div>

> \*Originally posted by TitrationX \*  
> \*\*My best attempt…goto [www.apocalypseclan.net/main.html](http://www.apocalypseclan.net/main.html)

Do you mean if you click on a link have flash load different text into the same text area? If you are then I can help there, since I made the above site. \*\*

yes yes yes!!..than k you…anyway…can u tell me how?

---

<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 30, 2002, 3:38pm UTC](https://forum.kirupa.com/t/different-txt-in-the-same-area/10282/11 "2002-12-30T15:38:16Z")

</div>

> \*Originally posted by ultramarc \*  
> \*\*okay…here goes nothing…

have 3 buttons on with instance names good, bad and ugly respectively. also, you should have a dynamic text with a variable name view and is multiline. on frame 1 on the main timeline, paste this codes:

good.onRelease = function () {  
view = “your text”;  
}

bad.onRelease = function () {  
view= “your text again”;  
}  
ugly.onRelease = function () {  
view= “your text again for the third time”;  
}

just try it… \*\*

it worked 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 30, 2002, 7:48pm UTC](https://forum.kirupa.com/t/different-txt-in-the-same-area/10282/12 "2002-12-30T19:48:45Z")

</div>

wow! i actually helped someone! 😛 hehehe…no prob. man…

---

<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 31, 2002, 6:26am UTC](https://forum.kirupa.com/t/different-txt-in-the-same-area/10282/13 "2002-12-31T06:26:46Z")

</div>

I will atach a file to show you how:

```php

on (release) {
	loadVarsText = new loadVars();
	loadVarsText.load("filename.html");
	// assign a function which fires when the data is loaded:
	loadVarsText.onLoad = function(success) {
		if (success) {
			trace("done loading");
			// Now that we know the data is loaded,
			// set the text content of the Text Field
			// with the instance name "scroller" equal to the
			// contents of the variable
			scroller.Text = this.text;
		} else {
			trace("not loaded");
		}
	};
}

```

The attatchment should help explain it all to you better. Hope this helps.
