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

Archive for the ‘Flash Remoting’ Category

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: , , , , ,

Today I attended an online meeting where Tom Jordahl of Adobe presented BlazeDS.

Here is a description of BlazeDS provided by Tom Jordahl:

Recently Adobe announced the release of BlazeDS which will make some key server technologies open source and free to use in any application. These technologies are critical to building great applications with Flex and AIR. Tom will talk about exactly what you get in BlazeDS and how it relates to LiveCycle Data Services and will detail some of the reasons why you might want to use these server technologies. He will also explain how ColdFusion developers can take advantage of BlazeDS in their applications.

The presentation lasted almost an hour and it was really fun. It was a great presentation and I'm looking forward for another BlazeDS related presentation.

The whole meeting was recorded. If you're interested, you can view the presentation here.

Tags: , ,

Here's how I managed to setup BlazeDS on my windows local machine.

Steps:

1. Download the latest BlazeDS.
2. Extract it.
3. Download the latest Java Development Kit (JDK), Install it.
4. Set JAVA_HOME environment variable.

Setting up Environment Variable in Windows

1. Open Control Panel
2. Click the System icon then a window will pop up
3. Go to the Advanced tab
4. Click the "Environment Variables"
5. Select "New" in System Variables.
6. In the Variable Name textbox type JAVA_HOME
7. In the Variable Location textbox type the JDK directory

you should be able seeing this:

jdk.jpg

8. Click Ok.
9. Click Ok.

4. You're done installing BlazeDS.

Running Installed Sample Applications.

1. Start Tomcat by double clicking [blazeds directory]tomcat\bin\startup.bat
2. Now, check if it works by running http://localhost:8400/ in your browser.

You should be able to see this in your browser

Read the rest of this entry...

Tags: , , ,

Wade Arnold posted new additions in AMFPHP project. There are updates in the documentations and has put together basic examples using AMFPHP.

Current Examples:

HelloWorld ? Passing strings to and from AMFPHP in Flash CS3
Counter ? Using PHP sessions in AMFPHP with Flash CS3.

These updates to AMFPHP is very good news indeed. Lets just hope AMFPHP 2.0 will be released soon.

The site amfphp.org expires. A new link has been put up and you can find it here.

sorry... I have to pull the flex blog for now... I'll be updating it and hopefully it will run in parallel with this blog soon.

I have created a blog written in Adobe Flex 2. This blog uses wordpress framework, and AMFPHP for remoting The blog is still in beta stage. A lot of functionalities is still not integrated but hopefully a lot of updates will be added in the next few days.