mediaholic
July 18th, 2003, 06:18 AM
as u probably know TextFormat has no global style
like FStyleFormat so i thought i could make one?
1. idea)
i could wrap createTextField() in some fns which then assigns automaticly some TextField-propertys and sets setTextFormat.
THE PROBLEM
with that is that not all of my TextFields are generated via script, some r created by authoring-time.
2. idea)
is to change the prototype."someproperty" of the TextField,
THE PROBLEM
TextField is not created via standard "new" constructor
so something like TextField.prototype.embedFonts=true;
DOES NOT WORK as well.
3. idea)
i could simply traverse all instances on stage and ask if the instanz is TextFeld and then assgin some fns which makes the formating
THE PROBLEM
i dont know how to do that?:)
couse if i ask
trace(typeof t_txt.__proto__);
it just givs "object" not TextField or so
---------------------------------------------
does anybody knows how to make kind of global TextFormat
for createTextField()-generated as well as for authoring-time generated TextFields?
this is very general problem, so i think i can't be the only one with that problem:
like FStyleFormat so i thought i could make one?
1. idea)
i could wrap createTextField() in some fns which then assigns automaticly some TextField-propertys and sets setTextFormat.
THE PROBLEM
with that is that not all of my TextFields are generated via script, some r created by authoring-time.
2. idea)
is to change the prototype."someproperty" of the TextField,
THE PROBLEM
TextField is not created via standard "new" constructor
so something like TextField.prototype.embedFonts=true;
DOES NOT WORK as well.
3. idea)
i could simply traverse all instances on stage and ask if the instanz is TextFeld and then assgin some fns which makes the formating
THE PROBLEM
i dont know how to do that?:)
couse if i ask
trace(typeof t_txt.__proto__);
it just givs "object" not TextField or so
---------------------------------------------
does anybody knows how to make kind of global TextFormat
for createTextField()-generated as well as for authoring-time generated TextFields?
this is very general problem, so i think i can't be the only one with that problem: