Why not just use images and style attributes to skin the button (or use css)?  You will not see the default button “skin” at all.  You will only see the images.  If you use transparent-background png images, the button shape will be the shape the non-transparent portions of the png image.

 

<mx:Button

click="myFunction()"

id="myButton"

upSkin="@Embed('/assets/button_default.png')"

            overSkin="@Embed('/assets/ button _hover.png')"

            downSkin="@Embed('/assets/ button_down.png')"  />

 

-Andy

 

_____________________________________

Andrew Trice

Cynergy Systems, Inc.

http://www.cynergysystems.com

 

Blog: http://www.cynergysystems.com/blogs/page/andrewtrice

Email: [EMAIL PROTECTED]

Office: 866-CYNERGY 

 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of julien castelain
Sent: Tuesday, August 22, 2006 12:43 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] mx:Button but without the border

 

hi gunther,

maybe you could subclass SimpleButton, and use a Loader to for your image
just a thought ...

On 8/22/06, Gunther < gunther.vincke@yahoo.com> wrote:


How do you / what is the best way to make a button with an image or
a .swf without having the button border ?

I want an image that is clickable (Button) without the button
border ?

I use:

<mx:Style>
.nextButtonStyle {
borderStyle: none;
focusThickness: 0;
}
</mx:Style>

<mx:Button x="484" y="295" styleName="nextButtonStyle" icon="@Embed
(source='Images/GoldArrow.swf')" />

But this does not hide the button border :-(

 

__._,_.___

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