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.

inside custom component

Adobe AIR Development

Reply
Contributor
shendues
Posts: 11
Registered: ‎02-06-2012
My Device: Blackberry Playbook

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: 323
Registered: ‎12-13-2010
My Device: Bold 9900/Z10 Special Edition

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
DrawThis! A fun drawing app for the BlackBerry® PlayBook™!
http://www.tensioncore.com/ - Tensioncore™ Web Hosting
Please use plain text.
Contributor
shendues
Posts: 11
Registered: ‎02-06-2012
My Device: Blackberry Playbook

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: 172
Registered: ‎10-25-2010
My Device: Not Specified

Re: WHere is the buttonskin source code?

Is your class extending UISkin?
Please use plain text.