PDA

View Full Version : [AS2] Setting a components font


redchampy
04-23-2008, 12:20 PM
Hi,

I've downloaded a component for a collapsible menu that gets its data from XML, the problem is that I need to change the font and thats not in its parameters? I know how to do that in AS 3.0 but when I switch to AS 3.0 the component no longer works. It only seems to work with Flash Player 6. Is there any ways in AS 1.0 or AS 2.0 that I can define which font the component uses?

Thanks,
Tom

atomic
04-23-2008, 01:31 PM
Have you tried...

my_comp.setStyle("fontFamily", "Arial");