Try styleName instead of className: <mx:Application styleName="MainApplication">
regards, Muzak ----- Original Message ----- From: "Johannes Nel" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Friday, November 25, 2005 2:50 AM Subject: Re: [flexcoders] flex2: styles sheets and accessing elements this is just to weird... when i have a style named MainAnything thus the word main with anything attached to it the style does not work, however when i rename that exact style to something else it works the style MainApplication{ left-margin:50; right-margin:50; top-margin:50; botton-margin:50; background-color:#079CC0; } and here is the mxml <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*" xmlns:ctrl="net.lennel.isay.view.components.menu.*" initialize="init()" className="MainApplication" > <mx:Style source="styles/main.css"></mx:Style> ... this example does nuthink, however renaming that style to Application gives the desired result. am i really having an extremly daft thanks-giving? thanks -- j:pn ------------------------ Yahoo! Groups Sponsor --------------------~--> AIDS in India: A "lurking bomb." Click and help stop AIDS now. http://us.click.yahoo.com/VpTY2A/lzNLAA/yQLSAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

