Link to home
Start Free TrialLog in
Avatar of chaseivey
chaseivey

asked on

Pure Actionscript remoting with Coldfusion Components. Can this happen?

Hello,

I am coding in pure Actionscript 3.0 (not Flex, not Flash Authoring Tool), and I use Coldfusion 9 for my server-side scripting.  I am trying to directly access my CFC from the Flash runtime.  I assume the best way to do this is to use the URLLoader and URLRequest classes on a CFC with access="remote". ?  

(Is this the best way to do this?  I've heard a little about Flash Remoting, but I've also heard that it's only for Flex developers.??)

I have attached my simple code that I thought would work, but my trace statement outputs the ENTIRE .cfc code rather than just what I'm trying to return.  I'm clearly missing something.

Please help.  I just want to get the value RETURNED by the CFC, not the CFC itself. :)

Thank you.
CFC.txt
Class.txt
Avatar of chaseivey
chaseivey

ASKER

UPDATE:::

I realized that my URLRequest object needed to begin with "http://myhostname" rather than use a relative URL reference "../../" in order for the request to happen the right way.  

However, I noticed that Coldfusion always returns in wddxpacket, which I suppose is merely XML that can be parsed by AS3 ?

Still need to know if I'm going about this the right way, or if there is a better way for AS3 to communicate with CFCs.  :)  ?
ASKER CERTIFIED SOLUTION
Avatar of Proactivation
Proactivation
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you for your help.