Source Code:
UserProfile.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" title="Cool Person Profile"> <fx:Script> <![CDATA[ protected function button1_clickHandler(event:MouseEvent):void { // TODO Auto-generated method stub navigator.pushView(views.UserNotes, {personName:personaName.text}); } ]]> </fx:Script> <fx:Declarations> <!-- Place non-visual elements (e.g., services, value objects) here --> </fx:Declarations> <s:Label id="personName" x="10" y="51" fontSize="24" text="{data.name}"/> <s:TextArea id="jobDescription" x="10" y="82" height="120" text="{data.job}"/> <s:Button x="10" y="210" label="Add notes" click="button1_clickHandler(event)"/> </s:View>
No comments:
Post a Comment