I kinda accidentally sent it before I finished. I would use those two to define the icon depicting that nothing is selected, and downAndSelected + upAndSelected to define the "selected" icon. Plus you might need to fix the icon for other states see [1].
[1] http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/supportClasses/ToggleButtonBase.html#SkinStateSummary On Thu, Jul 25, 2013 at 5:19 PM, Martin Miko <[email protected]> wrote: > In this case you have the states predefined in the component and I would > use down and up states. > > > On Thu, Jul 25, 2013 at 5:11 PM, mark goldin <[email protected]>wrote: > >> In case of a ToggleButton what states would I use? selected and normal? Or >> I need to creates states first? >> >> >> On Thu, Jul 25, 2013 at 10:08 AM, Martin Miko <[email protected]> >> wrote: >> >> > Edit to the example: >> > >> > it should be the otherway around, correct notation is: >> > >> > icon.styleName="your_desired_icon" >> > >> > sorry for the confusion >> > >> > >> > On Thu, Jul 25, 2013 at 5:06 PM, Martin Miko <[email protected]> >> > wrote: >> > >> > > If I recall it correctly use the icon style [1] in mxml it should be >> > > something similar to >> > > >> > > stateName.icon="your_desired_icon" >> > > >> > > [1] >> > > >> > >> http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/supportClasses/ButtonBase.html#style:icon >> > > >> > > >> > > On Thu, Jul 25, 2013 at 5:01 PM, mark goldin <[email protected] >> > >wrote: >> > > >> > >> How can I provide different images for ToggleButton's states without >> > >> modifying its skin (if possible)? >> > >> >> > >> Thanks >> > >> >> > > >> > > >> > > >> > > -- >> > > Martin Miko >> > > >> > >> > >> > >> > -- >> > Martin Miko >> > >> > > > > -- > Martin Miko > -- Martin Miko
