blog.ashier.com flash / flex / air development
rss rss comment

Posts Tagged ‘AMFPHP’

I still don’t know what new updates there may be, but I’m really glad that there are changes being done.

I’m looking forward to the changes in AMFPHP.

Thanks Wade.

Tags: , ,

There are alot of ways to connect to a remote service in Flex / Flash.

You can do it tag based:

Actionscript:
  1. <mx:Application
  2.     xmlns:mx="http://www.adobe.com/2006/mxml"
  3.     layout="absolute">
  4.    
  5.     <mx:RemoteObject id="blazeService" fault="onFault(event)" source="hello.Hello" endpoint="http://localhost:8400/hello/messagebroker/amf/" destination="Hello">
  6.         <mx:method name="sayHello" result="onResult(event)" />
  7.     </mx:RemoteObject>
  8.  
  9.     <mx:Script>
  10.    
  11.         <![CDATA[
  12.             import mx.messaging.channels.AMFChannel;
  13.             import mx.rpc.events.ResultEvent;
  14.             import mx.rpc.events.FaultEvent;
  15.            
  16.             private function onResult(e:ResultEvent):void {
  17.                 trace("Result" + e.result);
  18.             }
  19.            
  20.             private function onFault(e:FaultEvent):void {
  21.                 trace("fault");
  22.             }
  23.         ]]>
  24.     </mx:Script>
  25.    
  26. </mx:Application>

or actionsript based:
Read the rest of this entry...

Tags: , , , , ,

I've been getting my hands dirty studying PureMVC. I created a helloworld basic application that uses PureMVC framework and uses AMFPHP using Flash CS3. I still want to develop more applications that uses PureMVC so I can get really familiar using it.

While getting familiar with the framework, I also recommend you to look into some of these links:

10 tips for working with PureMVC
SilVaFUG Flex Application Frameworks Presentation

I also suggest if you have time, you might want to signup to PureMVC Courseware Beta Test Program

(Either JavaScript is not active or you are using an old version of Adobe Flash Player. Please install the newest Flash Player.)

download source here

Tags: , ,