hi all

in flex 1.5 when i compile in a sylesheet using the following that

<mx:Style source="styles/main.css"></mx:Style>
and the stylesheet looks like this
SomeName{
top-margin:5;
botton-margin:6;
}


then if i have some mxml component somewher in my app named SomeName

i would be able to get to the stylesheet values by going getStyle('topMargin') //note the hyphen is compiled in as an upercase letter for the next word.
this does not work in flex 2, and although i realise i can have my stylesheet declarations embeded in my mxml i would much rather import it once for my whole application. (for example in index.mxml)

is this clear? and if so how does the stylesheets compile in in flex 2 then?

Thanks
j



--
j:pn


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to