Hi Om, Thanks. Unfortunately, that skinClass suggestion didnt work :( Hope its appropriate to post the following code - Ive reduced it to the minimum:
CustomToggle.mxml <?xml version="1.0" encoding="utf-8"?> <s:View xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" creationComplete="view1_creationCompleteHandler(event)"> <fx:Style> @namespace s "library://ns.adobe.com/flex/spark"; myTog { skinClass: ClassReference("skins.MyToggleSwitchSkin"); } </fx:Style> <fx:Script> </fx:Script> <s:VGroup id="group" top="30" /> </s:View> and this is MyToggleSwitchSkin.as package skins { import spark.skins.mobile.ToggleSwitchSkin; public class MyToggleSwitchSkin extends ToggleSwitchSkin { public function MyToggleSwitchSkin() { super(); selectedLabel="Yes"; unselectedLabel="No"; } } } Hope thats okay to post. As its unlikely that Im the first person to need to add custom toggle labels via code, Im guessing Im going about this in completely the wrong way! Ready to be enlightened... Thanks -- View this message in context: http://apache-flex-development.2333347.n4.nabble.com/Custom-ToggleSwitch-in-code-tp46201p46206.html Sent from the Apache Flex Development mailing list archive at Nabble.com.