PDA

View Full Version : How to remove external file text ....



xcute
October 7th, 2003, 11:40 PM
Here i insert the code for a button..when the mouse rollsover a button the text will be called...how to remove the text when the mouse rolls out ?

on (rollOver){
loadText = new loadVars();
loadText.load("yellow.txt");
loadText.onLoad = function() {
colorname.text = this.colorname;
};
}

on (rollOut) {


i can't figure this part out ... Help please :(
}

kode
October 8th, 2003, 12:00 AM
on (rollOut) {
colorname.text = "";
}
?? :P

xcute
October 8th, 2003, 12:10 AM
lols..thanks alot ...i remember trying that and it didn't work..maybe spelt wrongly :P

xcute
October 8th, 2003, 12:11 AM
by the way..is it possible to set the text color in the external file?
thought of changing the color of the text when different buttons are moused over... using the same dynamic text box...

kode
October 8th, 2003, 12:12 AM
No problem. :P

Yeah, you could set the html property of the text field to true, and use the <font> tag to specify the color. :)

xcute
October 8th, 2003, 12:33 AM
but if its not a web based product ?

kode
October 8th, 2003, 01:02 AM
Doesn't matter, you can still use HTML tags.

xcute
October 8th, 2003, 03:04 AM
so its gonna be
<html>
<body>
<font color = "red">
colorname = red
</font>
</body>
</html>
?

kode
October 8th, 2003, 03:12 AM
Nope, only use the <font> tag.

Here's a quick example:

this.createTextField("my_txt", 0, 0, 0, 0, 0);
my_txt.autoSize ="left";
my_txt.html = true;
my_txt.htmlText = "<font face='verdana' size='10' color='#FF0000'>red text</font>";

xcute
October 8th, 2003, 08:05 AM
thanks..will try that..looks really complex though ..lols..
now i need help on how to print a certain movie clip on the frame...triedd goin thru all the tutorials and forum q...but unfortunately nothing helped...

kode
October 8th, 2003, 08:18 AM
It's not that complex once you get the hang of it. ;)

And I've never printed anything in Flash, I can't help you with that. Start a new thread and someone might help you. :P

xcute
October 8th, 2003, 07:36 PM
thanks...
i've already managed...after printing like i have no idea how many...drove me nuts the whole nite thru.......:P
finally ...:D

kode
October 9th, 2003, 12:13 AM
You're welcome, glad it worked out. =)