Hi Arpan
You can do this in .as file by just creating CSS classes in action script. by
contol name
Text
{
color : #ffffff;
...
};
or
.class_name
{
color : #ffffff;
...
}
and just set style Name attribut in resp. control styleName="class_name"
it will work just same as <mx:Script> tag
Amey.
Amey.
arpan srivastava <[EMAIL PROTECTED]> wrote:
Hi,
Is there anyway we can add CSS programmatically in ".as" file rather than
adding in the mxml file with <mx:style /> tag.
---------------------------------
Access over 1 million songs - Yahoo! Music Unlimited.
---------------------------------
Everyone is raving about the all-new Yahoo! Mail beta.