FireworksColdFusionDreamweaverFreehandFlashMXHome
Latest New Content

Latest Free Content
View All
Free Content
Accessibility
CMX Learning Guides
Hosted by enterhost

Remoting Tester Panel

By: Branden Hall

Page 1 of 1

Set for printing

Using the Community MX Remoting Tester Panel

It would often be helpful to be able to test a remote method directly in Flash in order to see it's return data or simply to make sure that the method is working properly. This extension allows you to do exactly that directly from within the Flash MX environment.

Once you've installed the extension there will be a new entry in the Window menu in Flash MX named CMX Remoting Tester. If you select this entry the CMX Remoting Tester panel will open.

CMX Remoting Tester Panel

Once you are in the CMX Remoting Tester panel you simply have to enter the URL to your Flash Remoting Gateway, the URL to the service you are connecting to, and the method call you'd like to make. Then, just hit run to test the method.

For example, if you have ColdFusion MX installed locally your gateway URL will be:

http://localhost:8500/flashservices/gateway

and the URL for the service could be the dotted path to a CFC or the full URL for a web services' WSDL:

cmx.demo.dataGetter

Finally the method call looks like a method call in ActionScript or JavaScript:

doSomething("one",2,false)

There are a few rules about the method call that you will need to know. First off, no spaces are allowed in the call unless between quotes. Secondly, you can send arrays just by using standard array syntax, i.e. [1,2,3]. Finally, you can send objects by using standard object syntax, i.e. {a:1,b:2,c:3}, just remember, no spaces! You can also include objects inside of arrays and vice-versa as deep as you'd like.

The save button next to each of the fields allows you to save often used URLs and method calls. Your saved data will be in the combo box, just click on the arrow.

Page 1 of 1 1


download
Download Extension


Keywords
Flash, Flash Remoting