Hi Guys


I was trying to apply some CSS on application at my development cycle and discovered a new unknown issue for Flex 2.0

Here we go.

When I create a new Style tag at the root of my Application.mxml here we have

<mx:Style>
      .MyCostumButton { 
                   icon:Embed(source="icon.png");
    }
</mx:Style>

So applying directly to my button by attribute styleName="MyCostumButton" does properly works.

<mx:Button styleName="MyCostumButton" label="Costum icon by CSS"/>

But in when we try to apply directly to a Button tag in CSS tag style doesn't really work perfectly due to If I add a new component like RichTextEditor every single button or any one who also has an costum Button wrote by Actionscript our even MXML will appear the Icon in each of them.

Here we have, take a try

<mx:Style>
    Button {
               icon:Embed(source="icon.png");
</mx:Style>

<!-- Now add whatever component you want that has some nativly events like DateChooser, RichTextEditor,  colorChooser, comboBox. ... -->

<mx:RichTextEditor>
</mx:RichTextEditor>
<mx:Button/>
<mx:DateChooser>
</mx:Datechooser>


So, please Adobe Flex team fix this dude.


Regards


--
----------------------------
Igor Costa
www.igorcosta.com __._,_.___

--
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
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to