Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Adobe AIR Development

Reply
Contributor
shendues
Posts: 11
Registered: ‎02-06-2012
My Carrier: Orange

WHere is the buttonskin source code?

I'm trying to follow this guide on how to change the button skin  - http://blog.digitalbackcountry.com/2011/07/skinning-a-flex-mobile-button-with-bitmaps/ - but I can't find where source code is so that I can edit to to add my own custom button skin. Anyone have any idea where it is? Thanks

Please use plain text.
Developer
tensioncore
Posts: 322
Registered: ‎12-13-2010
My Carrier: Rogers

Re: WHere is the buttonskin source code?

[ Edited ]

Check these BlackBerry Articles:

http://supportforums.blackberry.com/t5/Tablet-OS-SDK-for-Adobe-AIR/How-to-Skin-QNX-UI-Components-Bas...

http://supportforums.blackberry.com/t5/Tablet-OS-SDK-for-Adobe-AIR/How-to-Skin-QNX-UI-Components-Adv...

CEO/Lead Developer - Tensioncore™ Design Studios
http://tncr.ws/ - ShortenThis!™ for Blackberry Playbook | ShortenThis!™ for BlackBerry® 10
The Periodical Toe A highly informative Table of Elements
http://www.tensioncore.com/ - Tensioncore™ Web Hosting
Please use plain text.
Contributor
shendues
Posts: 11
Registered: ‎02-06-2012
My Carrier: Orange

Re: WHere is the buttonskin source code?

Whenever I try and add this code, it just gives me the error 'Method marked override must override another method.'

 

		override protected function initializeStates():void 
		{
			var upSkin:Sprite = new BasicUpSkin();
			setSkinState(SkinStates.UP, upSkin);
			
			var downSkin:Sprite = new BasicDownSkin();
			setSkinState(SkinStates.DOWN, downSkin);
			
			var disabledSkin:Sprite = new BasicDisabledSkin();
			setSkinState(SkinStates.DISABLED, disabledSkin);
			showSkin(upSkin);
		}

 

Please use plain text.
BlackBerry Development Advisor
jdolce
Posts: 144
Registered: ‎10-25-2010

Re: WHere is the buttonskin source code?

Is your class extending UISkin?
Please use plain text.