Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 07-22-2006, 12:21 PM   #1
Registered User
Join Date: Oct 2002
Posts: 143
Question What is Flash Remoting?

I've been reading the docs at Adobe and I can't figure out what Flash Remoting would do to better my Flash applications. In fact, I can't tell what it is really.

I usually store everything in MySQL and use PHP scripts with LoadVars() objects to get data in and out of Flash. This works fine for my RIAs.

How can Flash Remoting change this for the better and what am I not seeing about this technology? Please help, thanks.

Oh and don't be afraid to go into detail, I really want to understand this. Give examples, give benchmarks, give anything. Thanks again.

Selfminded is offline   Reply With Quote
Old 07-26-2006, 02:44 PM   #2
mooska's Avatar
Join Date: Jun 2006
Location: lodz
Posts: 1,211
Send a message via ICQ to mooska Send a message via Skype™ to mooska

pebkac - problem exists between keyboard and chair

Have something to code ?

mooska is offline   Reply With Quote
Old 08-02-2006, 06:43 PM   #3
Senior Member
Join Date: Aug 2005
Location: Minnesota, USA
Posts: 216

It essentially removes having to pass data through an extra step (HTML) and lets Flash directly access data you have in a database. So rather than depending on the HTML page to update your flash data (you'll have to refresh the page, or work some tricky Javascript), you can just have Flash go out and query the database again directly.

Another bonus for me is that when my ColdFusion <cfquery> call returns a Query object, Flash understands that and can can process that data easily (and without giving me headaches ).

Here's a template that I use whenever I set up my Remoting .fla's:
// Set up the gateway to the Flash Remoting component
NetServices.setDefaultGatewayUrl("http://[site domain]/flashservices/gateway");
var gatewayConnection = NetServices.createGatewayConnection();
// direct the server to the ColdFusion component file it's using
var server = gatewayConnection.getService("[ColdFusion component path]", this);
// the server calls a function inside the component file
server.[ColdFusion Function name here]( [arguments] );

[ColdFusion Function name here]_Result = function(rs) { 	
	// get the number of results.
	max = rs.getLength();	
	trace('returned ' + max + 'results');
I'm not sure it's the fastest way to transmit data from the database to the flash app, but it works fast enough to satisfy my clients...
meddlingwithfir is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
flash remoting, Coldfusion, and apostrophes fou99004 Flash Remoting 3 02-07-2006 07:17 PM
CyanBlue's 5000th Post - Useful Threads List CyanBlue Projectors and CDs 104 02-25-2005 01:13 PM
Can't find Flash Remoting Components mcostello1 Flash Remoting 1 08-30-2004 05:30 PM
Flash MX Developers Exam VitiminJ General Chat 34 05-05-2004 01:27 PM
scrollBar on Flash Exchange cdeg Components 5 05-03-2004 07:13 PM

All times are GMT. The time now is 01:43 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.