flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Mclean <jus...@classsoftware.com>
Subject Re: [FlexJS] click event of Label is not working in javascript mode
Date Sun, 05 Mar 2017 05:40:21 GMT
HI,

> I'm trying to remember whether Flex Label had a click event or not.

It does. By default the cursor doesn’t change.

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
			   xmlns:s="library://ns.adobe.com/flex/spark" 
			   xmlns:mx="library://ns.adobe.com/flex/mx">
	
	<fx:Script>
		<![CDATA[
			import mx.controls.Alert;
			protected function clicked(event:MouseEvent):void
			{
				Alert.show("hello");
			}
		]]>
	</fx:Script>
	
	<s:Label text="Hello" click="clicked(event)" />
</s:Application>


Thanks,
Justin
Mime
View raw message