Ask a Question related to Coldfusion Flash Integration, Design and Development.
-
InfoCon_Brian #1
Remote Flash no results
Problem:
I call a function "getContactInfo" in a CFC on the server using Flash Remote,
but I get no response back.
I don't get any error messages.
Platiform:
Fedora Linux
ColdFusion 8.01 Developer's Edition 32-bit
Design:
When a user selects an item in a "tree" the selected item's data is sent to
the server for a query.
The query is sent back to Browser to fill in a series of text boxes.
Questions:
1) Is there any configuration in the ColdFusion Administrator to enable Remote
Flash?
2) Where should I be looking for a error messages?
(other than flash.log)
3) What am I doing wrong?
I have gone through the various tutorials on Flash Remote.
Code snippet:
<cfform name='MailingList' format="flash" onload="formOnLoad()" >
<cfformitem type="script">
public function formOnLoad():Void{
setUpRemoting();
}
public function setUpRemoting():Void
{
<cfoutput>
var connection:mx.remoting.Connection =
mx.remoting.NetServices.createGatewayConnection("h ttp://#cgi.HTTP_HOST#/services
/");
var componentPath:String = "services.Sample";
var listingService:mx.remoting.NetServiceProxy;
</cfoutput>
var responseHandler:Object = {};
<!--- put controls in the responseHandler's scope --->
var contactList:mx.controls.Tree = contactList;
responseHandler.onResult = function( results: Object ):Void
{
alert("Got Here");
}
responseHandler.create_Result = function( results: Object ):Void
{
alert("Got Here");
}
responseHandler.update_Result = function( results: Object ):Void
{
alert("Got Here");
}
responseHandler.remove_Result = function( results: Object ):Void
{
alert("Got Here");
}
responseHandler.onStatus = function( stat: Object ):Void
{
alert("Got Here");
}
MailingList.listingService = connection.getService(componentPath,
responseHandler );
}
public function listingTreeChanged():Void
{
var sSelected:String;
sSelected = contactList.selectedNode.getProperty('data').value ;
MailingList.listingService.getContactInfo(sSelecte d);
alert(sSelected);
contactList.setFocus();
}
</cfformitem>
<cftree name="contactList" lookAndFeel="motif" onchange="listingTreeChanged()">
<cftreeitem value="Test" display="Test" expand="no">
</cftree>
InfoCon_Brian Guest
-
Flash Form drill down into results
Is there a way to drill down into the results in a flash form like the cfgridcolumn allows. cf gridcolumn allows you to add a URL to the HREF section. -
Different results in Flash IDE and browser
I'm just playing around with Flash MX 2004 and Coldfusion MX 7 using Flash Remoting but I came accross a weird problem. I'm calling just a simple... -
Multiple results variables Flash
I need to create a webservice that returnes multiple results. Example: http://tinyurl.com/cg2gz I am able to create a web service that retunrs an... -
get results from a remote server using post
You can use curl functions. Very easy. "Kram" <kram.techie@NOSPAM.ntlworld.com> wrote in message... -
having flash form results emailed to me
Hello out there! I have created a survey and saved all the answers in variables (and array). Now, all I need is to email those answers to myself...



Reply With Quote

