You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by Saju Thankathurai <sa...@gmail.com> on 2014/08/01 07:01:17 UTC
Flex button default down state?
Hi,
Is it possible to create a Flex spark button with default down state?
--
Regards
Saju
RE: Flex button default down state?
Posted by Kessler CTR Mark J <ma...@usmc.mil>.
Well I believe you could go about this a few ways. Trying overriding the getCurrentSkinState[1] and return the state you would like. Maybe use a togglebutton [2]
[1] http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/supportClasses/SkinnableComponent.html#getCurrentSkinState()
override protected function getCurrentSkinState():String
{
//use any conditions and return a state string;.
return "down";
}
[2] http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/ToggleButton.html
-Mark
-----Original Message-----
From: Saju Thankathurai [mailto:sathikeshjith@gmail.com]
Sent: Friday, August 01, 2014 1:01 AM
To: users@flex.apache.org
Subject: Flex button default down state?
Hi,
Is it possible to create a Flex spark button with default down state?
--
Regards
Saju