Does something like this work? (works in the latest build for Flex 2)...

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" >
<mx:Script><![CDATA[
      public function changeMyStyle1(e:Event):void {
            e.currentTarget.setStyle("textRollOverColor",0x33CCFF);
      }
]]></mx:Script>
<mx:Button label="Click Me" id="b1" click="changeMyStyle1(event)" />
</mx:Application>

You mention that you are skinning your app and it doesn't work when
using default buttons. Maybe if you explained a little more about what's
going on...

Matt Horn
Flex docs

> -----Original Message-----
> From: [email protected]
> [mailto:[EMAIL PROTECTED] On Behalf Of klumikaze
> Sent: Saturday, June 03, 2006 8:10 AM
> To: [email protected]
> Subject: [flexcoders] Re: roll-over-color CSS property
>
> Sorry, meant F2B3... I've checked all through the API docs
> and the changes from B2 to B3, etc as well.
>
> Thoughts?
>
> Thanks,
>
> Brian
>
> --- In [email protected], "Karl Johnson" <[EMAIL PROTECTED]>
> wrote:
> >
> > 1.5? textRollOverColor is the style.
> >
> > Make sure to check the API docs whenever you are not sure of what
> > style or property or method to use, very helpful!
> > http://livedocs.macromedia.com/flex/15/asdocs_en/index.html
> >
> > Karl Johnson
> >
> >
> > -----Original Message-----
> > From: [email protected]
> [mailto:[EMAIL PROTECTED]
> > On Behalf Of klumikaze
> > Sent: Friday, June 02, 2006 3:21 PM
> > To: [email protected]
> > Subject: [flexcoders] roll-over-color CSS property
> >
> > Maybe I'm missing something, but I'm skinning my
> application, and when
> > trying to use default buttons, I can't change the text
> color on a roll
> > over. I assume it's the roll-over-color property, I've looked for
> > other options but haven't found anything.
> >
> > Anybody else having issues with this?
> >
> > Thanks,
> >
> > Brian
> >
> >
> >
> >
> >
> >
> > ------------------------ Yahoo! Groups Sponsor
> > --------------------~--> Protect your PC from spy ware with
> award winning anti spy technology.
> > It's free.
> > http://us.click.yahoo.com/97bhrC/LGxNAA/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
> >
>
>
>
>
>
>
> ------------------------ Yahoo! Groups Sponsor
> --------------------~--> Protect your PC from spy ware with
> award winning anti spy technology. It's free.
> http://us.click.yahoo.com/97bhrC/LGxNAA/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
>
>
>

>
>
>


--
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