Link to home
Start Free TrialLog in
Avatar of doctorbill
doctorbillFlag for United Kingdom of Great Britain and Northern Ireland

asked on

flash cs6

Flash Action Script:

_root.getCurrentText(thisText0, 0);
_root.getCurrentText(thisText1, 1);
_root.getCurrentText(thisText2, 2);
_root.getCurrentText(thisText3, 3);
_root.getCurrentText(thisText4, 4);
_root.getCurrentText(thisText5, 5);
_root.getCurrentText(thisText6, 6);
_root.getCurrentText(thisText7, 7);
_root.getCurrentText(thisText8, 8);
_root.getCurrentText(thisText9, 9);
_root.getCurrentText(thisText10, 10);
_root.getCurrentText(thisText11, 11);
var format1:TextFormat = new TextFormat();
format1.letterSpacing = 0;

var format2:TextFormat = new TextFormat();
format2.letterSpacing = 0;


thisText0.setTextFormat(0, 10000, format1);
thisText1.setTextFormat(0, 10000, format1);
thisText2.setTextFormat(0, 10000, format2);
thisText3.setTextFormat(0, 10000, format1);
thisText4.setTextFormat(0, 10000, format1);
thisText5.setTextFormat(0, 10000, format1);
thisText6.setTextFormat(0, 10000, format1);
thisText7.setTextFormat(0, 10000, format1);
thisText8.setTextFormat(0, 10000, format1);
thisText9.setTextFormat(0, 10000, format1);
thisText10.setTextFormat(0, 10000, format1);
thisText11.setTextFormat(0, 10000, format1);

Re. the script:
My question is relativvely simple
I need to be able to define a text size for format1 and format2
ASKER CERTIFIED SOLUTION
Avatar of quizengine
quizengine
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of doctorbill

ASKER

Adding this to my code does not have any effect at all
Managed to sort it:

var format2:TextFormat = new TextFormat();
format2.letterSpacing = 0;
format2.size = 12;
format2.color = 0xFFFF00;
format2.font = "Tahoma";
solution