Lol.
No, OF COURSE, i've tried
_root.pagina.setStyle("marginLeft", 20);
even if i was trying
_root.pagina.setStyle("marginLeft", "20");
implicit conversion would be OK.
Words of Macromedia masters:
"Only the numeric part of the value is used. Units (px, pt) are not parsed;
pixels and points are equivalent."
LOL
so i supposed that this kind of "setStyle" propertie is a bug.
In another case, applying an external CSS it's ok.
Thanks anyway
2006/4/17, julian atienza <[EMAIL PROTECTED]>:
>
> It's strange...
> color and other css properties that i have writed with setStyle doesn't
> goes ok (except backgroundColor, borderStyle that it's ok)
>
> Now i'm making something like (pagina=my textArea component):
>
> _root.pagina.text = "<span class='tipo'><BR>Este es un ejemplo de
> <BR>texto</span>";
>
> import TextField.StyleSheet;
> var css_str:String = ".tipo {font-family: Arial; font-size: 24px;
> margin-left: 120px; }";
> var my_styleSheet:StyleSheet = new StyleSheet();
> if (my_styleSheet.parseCSS(css_str)) {
> pagina.styleSheet = my_styleSheet;
> }
>
> And then marginLeft It's OK!!!!
>
> what's a strange ... it's setStyle commands full of bugs===????
>
>
> 2006/4/17, julian atienza <[EMAIL PROTECTED]>:
>
> > Hi,
> >
> > i only have in scene one textArea component, and in my actionscript this
> > code:
> >
> > stop();
> > //TEXTAREA
> > _root.pagina.setStyle("backgroundColor" , 0xFFFFFF);
> > _root.pagina.setStyle("color" , 0x302513);
> > _root.pagina.setStyle("borderStyle", "none");
> > _root.pagina.setStyle("line-height", "20px");
> > _root.pagina.setStyle("fontSize", 14);
> > _root.pagina.setStyle("embedFonts", "true");
> > _root.pagina.setStyle("fontFamily", "Arial");
> > _root.pagina.setStyle("marginLeft", "20");
> > _root.pagina.text = "<BR>this is an example of <BR>text";
> >
> >
> >
> > marginLeft is ignored always...
> >
> > i've tried
> > _root.pagina.setStyle("marginleft", "10");
> > _root.pagina.setStyle("margin-left", "10");
> > _root.pagina.setStyle("margin-Left", "10");
> >
> > NOTHING APPEARS TO BE AFFECTED
> >
> >
> > somebody knows the problem?
> >
> > thank u in advance!!!
> >
> >
> >
> >
>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com