Rohan
Rohan

Reputation: 881

Adobe Flex ToggleSwitch alternative for desktop applications

I am looking for a ToggleSwitch alternative for a Adobe Flex desktop application that I am working on.

For ref:- http://help.adobe.com/en_US/flex/mobileapps/WS7dd5c1363434bb70-30e3f7e3131b54bf0ee-8000.html

This functionality has been released for Mobile development, but I couldn't find an alternative to build/have such functionality for desktop environments. The closest alternative is ToggleButton (which is same functionally, but it doesn't look anywhere similar to the ToggleSwitch.

Any help on this is greatly appreciated.

Upvotes: 1

Views: 829

Answers (2)

Rohan
Rohan

Reputation: 881

Found a solution:-

http://yonaskolb.com/blog/2012/1/18/flex-toggle-switch-spark-skin.html

Adobe still hasn't released this for desktop themes, so one would need to use the mobile component (by including them in the build path)

Upvotes: 3

ethrbunny
ethrbunny

Reputation: 10469

I didn't see the ToggleSwitch for non-air apps but you could simulate it pretty easily by doing an owner draw with the two button-states as images: http://blog.flexexamples.com/2009/02/11/styling-specific-states-in-an-fxtogglebutton-control-in-flex-gumbo/

Upvotes: 1

Related Questions