tags:

views:

21

answers:

0

My Code:

var TextStyleDeclaration:CSSStyleDeclaration=new CSSStyleDeclaration(".ImageElement");
TextStyleDeclaration.defaultFactory=function():void
{    
    leftMargin=50;
}
StyleManager.setStyleDeclaration(".ImageElement",TextStyleDeclaration,true);
var page_rich_text:spark.components.RichText=new spark.components.RichText();
page_rich_text.styleName="ImageElement";