[virtualcommons-svn] SF.net SVN: virtualcommons:[229] mentalmodels/trunk/flex/src/StartGame.mxml
Status: Beta
Brought to you by:
alllee
From: <see...@us...> - 2009-08-07 18:36:47
|
Revision: 229 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=229&view=rev Author: seematalele Date: 2009-08-07 18:36:30 +0000 (Fri, 07 Aug 2009) Log Message: ----------- Added the StartGame.mxml Added Paths: ----------- mentalmodels/trunk/flex/src/StartGame.mxml Added: mentalmodels/trunk/flex/src/StartGame.mxml =================================================================== --- mentalmodels/trunk/flex/src/StartGame.mxml (rev 0) +++ mentalmodels/trunk/flex/src/StartGame.mxml 2009-08-07 18:36:30 UTC (rev 229) @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> + +<mx:Script> + <![CDATA[ + import actionscript.Block; + + import mx.rpc.events.ResultEvent; + import mx.rpc.events.FaultEvent; + import mx.controls.Alert; + + + public function faultHandler(event:FaultEvent):void + { + Alert.show(event.fault.getStackTrace()); + } + + + ]]> +</mx:Script> + + <mx:Button label="Start Game" id="btnStartGame" horizontalCenter="-6" verticalCenter="-46" click="feed.start()"/> + <mx:RemoteObject id="feed" destination="feed" fault="{faultHandler(event)}" /> +</mx:Application> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |