Different txt in the same area

…if u don’t know wot i mean go to 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:*(

whats wrong?? what u asking??

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

:sigh:

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.

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

(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”

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… :stuck_out_tongue:

nah, guys thanks anyways:cowboy:

Too advanced for now???

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

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…

My best attempt…goto 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.

*Originally posted by TitrationX *
**My best attempt…goto 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?

*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!

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

I will atach a file to show you how:


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.