Set the text format AFTER you set the text or htmlText.


On Mar 26, 2006, at 4:49 PM, Laurent CUCHET wrote:

There is a var and a textfield with style, var don't get the style, do you
know why ??

Thank you, Laurent

var style1 = new TextFormat();
style1.url = "http://www.macromedia.com";;
style1.font = "Verdana";
style1.italic = true;
style1.size = 17;
var pre1="Click here";

var style2 = new TextFormat();
style2.url = "http://www.flash.com";;
style2.font = "arial";
style2.size = 12;
style2.bold = true;
var pre2="or Click here";


pre1.setTextFormat(style1);
pre2.setTextFormat(style2);
texteCliquable_inst.text = pre1+pre2;
delete style1;
delete style2;




_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to