Skip to content

Instantly share code, notes, and snippets.

@robertpenner
Created February 11, 2010 02:51
Show Gist options
  • Save robertpenner/301154 to your computer and use it in GitHub Desktop.
Save robertpenner/301154 to your computer and use it in GitHub Desktop.
Signal as MXML tag in Flex 4
<?xml version="1.0"?>
<!--
~ RegFormRLSExample - RegView.mxml
~
~ Copyright (c) 2010. Newtriks Ltd <[email protected]>
~ Your reuse is governed by the Creative Commons Attribution 3.0 License
-->
<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo"
xmlns:signals="org.osflash.signals.*">
<fx:Declarations>
<signals:Signal id="submitClicked"/>
</fx:Declarations>
<s:layout>
<s:VerticalLayout />
</s:layout>
<mx:Form>
<mx:FormItem label="Email:">
<s:TextInput id="email_ti"/>
</mx:FormItem>
<mx:FormItem label="Password:">
<s:TextInput id="password_ti" displayAsPassword="true"/>
</mx:FormItem>
</mx:Form>
<s:Button label="Submit" click="submitClicked.dispatch()"/>
</s:Group>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment