This is beautiful, thanks for sharing this nugget of VALUABLE info, this
should get me up and running, it is starting to come together, just looking
at this code, I am sure that I will be able to solve this conundrum.
<Yippykia>
<Camilo Trevino>
<Microsoft Certified System Engineer>
<Comptia A+ Computer Technician>
<ColdFusion Applications Developer>
</Yippykia>
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Schreck, Thomas (PPC)
Sent: Thursday, June 03, 2004 5:59 AM
To: [EMAIL PROTECTED]
Subject: RE: [CFCDev] CFML MX & FLMX data base connections
What type of data are you needing to bring into Flash? A recordset from
a query? A XML document? If it's a recordset, here you go:
In ColdFusion, create a CFC file containing a REMOTE function:
<CFFUNCTION name="[CFC_FUNCTION_NAME]" access="remote" displayname=""
returntype="query">
<CFARGUMENTS ...>
<cfquery name="qry">
SQL STUFF HERE
</cfquery>
<cfreturn qry>
</CFFUNCTION>
In FlashMX 2004 Pro, create the following in the first frame:
#include "NetServices.as"
#include "DataGlue.as"
var myURL = "http://127.0.0.1/flashservices/gateway";
// Connection hasn't been initialized; create connection and service
objects
if (isGatewayOpen == null) {
isGatewayOpen = true;
NetServices.setDefaultGatewayUrl(myURL);
var myConn = NetServices.createGatewayConnection();
var cfcService = myConn.getService("Path.To.CFC",this);
//CALL FUNCTION FROM CFC ABOVE
//MUST HAVE A RESPONDER THAT RECEIVES RESULTS
cfcService.CFC_FUNCTION_NAME([ARG],[ARG]);
}
// RESPONDER - FORMATED AS FUNCTION NAME_RESULT
function CFC_FUNCTION_NAME_Result(result){
trace("server responded with records: " + result.getLength());
}
This is the basic structure. Like anything there are multiple ways to
do things. I think this is pretty straight forward. Hope this helps.
Thanks -
Tom Schreck
817-252-4900
[EMAIL PROTECTED]
I have not failed. I've found 10,000 ways that won't work.
- Thomas Edison
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Camilo Trevino
Sent: Thursday, June 03, 2004 12:11 AM
To: [EMAIL PROTECTED]
Subject: [CFCDev] CFML MX & FLMX data base connections
Hello everyone!
Can anyone point me in the direction, to as where on line, where I can
grab
a tutorial regarding how to get FLMX 2004 to grab CFML output from a
data
base?
I have tried to do a load text which is a cfm document, which does work,
but
then I need the cfm document, which is compiled, now into a flash MC, to
talk to other movie clips.
Sorry if this does not pertain to the CFML members here, but I have
spent
the last 2 days, of my 3 week summer vacation on this puppy and nothing
seems to give.
What would be the best way to get FLASH to bring in cold fusion
documents?
<Yippykia>
<Camilo Trevino>
<Microsoft Certified System Engineer>
<Comptia A+ Computer Technician>
<ColdFusion Applications Developer>
</Yippykia>
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at
www.mail-archive.com/[EMAIL PROTECTED]
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at
www.mail-archive.com/[EMAIL PROTECTED]
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]