If you use the -keep-generated-actionscript option you can see that it 
generates .as for those things and copy it

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of 
skuteboarding
Sent: Sunday, November 23, 2008 5:49 AM
To: [email protected]
Subject: [flexcoders] Can you embed a stylesheet in an actionscript project or 
actionscript module?


Hi, I've got a module which is written mainly in actionscript. The
module can contain some css style declarations for changing the
appearance of the main app. My question is, can I embed a stylesheet
within the module using actionscript, similar to the following mxml code:

<mx:Style source="..\stylesheets\default.css"/>

I can get the style declarations out at runtime easily, if I use the
mxml tag, but I don't want to rely on mxml in my module. Is there any
way to achieve this in pure actionscript?

Thanks,

Mark Ingram

Reply via email to