ActionScript 3.0 :: Cannot Connect To Coldfusion In Flash
Mar 22, 2011trying to connect to Coldfusion through flash. i get message that server may be down. CF server is up and running. It doesn't validate the configuration also.
View 1 Repliestrying to connect to Coldfusion through flash. i get message that server may be down. CF server is up and running. It doesn't validate the configuration also.
View 1 RepliesI have a form in Flash. Would it be possible for me to send the data from that form to ColdFusion and then have ColdFusion generate a PDF with that information? What do I have to do to make it work?
I know how to send the variables from Flash to CF, but I don't know how to make ColdFusion generate a PDF with that data.
I am trying to pass an encoded JPEG from Flash/AS3 toColdfusion. The JPEG is generated in Flash with a Drawing tool, andwe want to save the JPEG on the Coldfusion server. I have written asimple CFC that saves files passed from a Flex RemoteObject, but Ican't get anything like that working in Flash.The only documentation I found that seems close to this onAdobe's site was this, am I barking up the wrong tree with this
View 1 RepliesI've built a application that communicates with Coldfusion cfc functions via Remoting. I've noticed that the NetConnection object disconnects after each call, is this expected behaviour? For some reason I was expecting the NetConnection object to stay connected until I closed it myself (I'm making about 1 request per second and had planned for it to stay open).
View 1 RepliesInside a flex app, I have a user login. The login calls a ColdFusion function as a remote object which authenticates the user and, if applicable, returns their id and access level. This works fine, but now I'm at the point where I want to also create a cookie for another ColdFusion template (called from fileReference.upload()) to be able to access later. I have tried several different methods for creating the cookie -- cfcookie, creating a cookie with JavaScript inside the ColdFusion function, and creating the cookie with JavaScript with an external interface once the coldfusion function returns to the flex result handler. All of these have been tried with a plethora of options regarding expiration, path, and domain tags.
[Code]...
I want to put one audio player in my website. For that I need to know if user's browser have flash player installed. Otherwise I will use different player to play audio file(.wav).
I will be glad to know its solution by either javascript or coldfusion.
UPDATE: Now I've moved the AMFConnection var declaration to outside the functions in Main, and commented out some trace() commands, and now it gives new errors:
Error #2044: Unhandled NetStatusEvent:. level=error, code=NetConnection.Call.BadVersion
at AMFConnection/init()[/Users/Jan/Downloads/amfphp1/AMFConnection.as:32]
at AMFConnection()[/Users/Jan/Downloads/amfphp1/AMFConnection.as:23]
[code]...
I'm trying to connect to AMFPHP on a server (with Flash AS3), and the swf borks when it reaches the .connect() stage. To make things easier (?) and more reusable (?), I've put all the NetConnection mechanics into a separate class, AMFConnection, which I call from the Main document class like this (details changed):
public function testConnection(e:*=null):void {
var conn:AMFConnection = new AMFConnection();
conn.table = "some_table";
[code]...
AMFConnection actually starts the connection and calls the AMFPHP service with the function gogogo(), and here's where the connect() NetConnection function just won't work. Here's the main section of the AMFConncection class
private var _netConnection:NetConnection;
private var _responder:Responder;
function AMFConnection()
[code]...
It also fails to display the stage, instead showing the loading dots. Now, eventually I'm going to move this application to the same server as the AMFPHP service, but even when I try it there with a relative url, instead of an absolute one, it still breaks down at connect(). I've tried changing the publish settings from local only to network only, to no avail.
In my flash application, I need to get a value from coldfusion. For this purpose, I have used flashvars. But I am not getting the value.
View 1 RepliesWe recently built a new dev server for flex builder and installed coldfusion 8. We currently have everything working on our old server using coldfusion 7. We copied the services-config.xml and our project over to the new server. It compiled fine, I updated all references to the new server. When I try to run the flex application I receive the following error:
Warning: Failed to load policy file from http://localhost/crossdomain.xml
* Security Sandbox Violation *
Connection to http://localhost/flex2gateway/ halted - not permitted from file://ourServer/folder/ourProject/bin-debug/ourProject.swf
We created a valid crossdomain.xml file on the localhost (which I wouldnt think would be necessary since everything is on the same server)
Doesn't seem to be much info out there on this. I'm consistently getting a coldFusion error on upload. (sorry, wasn't sure whether this was a coldFusion or Flash problem, but ended up posting here)I have tried several ways of uploading, the latest would be:
var request:URLRequest = new URLRequest("http://www.blabla.com/upload.cfm");
request.method = URLRequestMethod.POST;
request.contentType="application/octet-stream";
var loader:URLLoader=new URLLoader();
[code]....
I want to use Adobe's Blaze DS via ColdFusion through Ajax. I know enough ColdFusion and JavaScript to do what I want to do, but I want to add long poling into the application and it looks like the only way to do that is through Blaze DS...but I don't know enough about Flash/Flex to finish the job.
View 2 RepliesI have Flex front end talking with ColdFusion as the back end. I have to debug my application and need to: Add log support to ColdFusion where I can add my custom messages to log list.Access this log at Flex end.Is it possible? Has anyone tried it before?
View 1 RepliesSo basically what I'm trying to do is make something like this:[URL]... I've searched long and hard to find a site that would show me some pseudocode (at least) or an algorithm as to how to implement this type of application. But everything I find are only applications that take in data and do all the work for me to create the graph. I need to actually create it for myself, just a simple one for now. Does anyone know where I can find this? What I want it to do is take data from a database and use it to create the treemap, then express it in a GUI like in the link above. If any specifics are needed I can provide it. I'm trying to do this in Flash Builder using Flex and using ColdFusion as the backend.
View 1 RepliesI am doing the following in actionscript in Coldfusion Flash Forms:
90 / 3.7
Gives me:
24.3243243243243
Whereas the calculator gives me:
24.32432432432432
Note the extra 2 at the end.
So my problem occurs when I am trying to get the original value of 90 by taking the 24.3243243243243 * 3.7 and then I get 89.9999999999 which is wrong.
Why is Actionscript truncating the value and how do I avoid this so I get the proper amount that the calculator gets?
I am trying to populate a ComboBox from a ColdFusion component. The cfc is simply querying a db to get a list of products.
However, the code I am placing in the Actions panel:
function PartsList_Result(result) {
DataGlue.bindFormatStrings(test_cb, result, "#name#", "#partsID#");
}
doesn't appear to be working correctly. The only result I see is a blank box that when I hit the arrow, the first item in the query is returned. From what I have read, I thought that the code above would be all I need. So I'm not sure why:
1. The first item is not automatically selected
2. The rest of the list is not there.
I am trying to send data filled out in a form in my flash movie to send mail using CFMAIL. In my form that is in Flash I have variables set. Then when the button is pressed loadVariables("sendMail.cfm", "POST");
Then on my CF page I have this:
<cfmail from="info@mysite.com" to="#FORM.email#"
SERVER="mail.mysite.com" >
#FORM.comments# #FORM.company# #FORM.name#
</cfmail>
I can't find a tutorial on this. Everything is PHP. And I don't want to use "Flash Forms in MX7"
This is all embedded in my Flash web site.
Need to populate textfield from a mssql database using coldfusion
View 7 RepliesI'm using CF to retrieve values from a database that are then being stored in a datagrid in Flex. I then want to selectively take the value from one cell of the datagrid and store it as a string variable. I've searched around, but I haven't been able to come about a solution. The users will not be interacting at all with the datagrid as it will be hidden to them.
View 1 RepliesIs the same possible in ColdFusion? Currently I am using .Net/Fluorine to return objects to the client. Whilst in testing I like to pass strings representing the select statement and the custom object I wish to have returned from my service. Fluorine has a class ASObject to which you can set the var 'typeName'; which works great.
I am hoping that this is possible in Coldfusion. Does anyone know whether you can set the type of the returned object in a similar way. This is especially helpful with large collections as the flash player will convert them to a local object of the same name thus saving interating over the collection to convert the objects to a particular custom object.
[Code]...
I'm calling ColdFusion cfc method using RemoteObject method of the Flex.
[Code].....
So you can see that I changed the sequence of the parameter, when I call the cfc method. But it does not worked. It means that <s:arguments> does not pass the named parameter. Is there any solution for that? As you can see that I may have some of the arguments not mandatory so, it must be passed by name.
I have a Flex/CF app that sits on 2 redundant servers behind a load balancer. Both the Flex and CF side make calls to the same CFC. The Flex, CF and CFC are all in the same folder. When the CF code calls the CFC, there's not a problem. However, when the Flex code calls the CFC, it adds an explicit port "84" to the URL.This causes a problem for the load balancer which only accepts traffic from port 80. As I understand it, the load balancer would internally route requests from port 80 to 1 of the 2 servers on port 84 (but that internal routing should be invisible to the client).
[Code]...
populate textfield from a mssql database using coldfusion?
View 13 RepliesI have a scheduling application that allows users to save any changes. When the user clicks the save button, Flex sends all the information to a coldfusion script which picks the information apart and sends saves it to the database. That all works well and good, but I would like to be able to display some sort of text to the user saying something like "Your file was successfully saved" or "There has been an error.
[Code]...
Is it easy to implement Flex Ajax Bridge with ColdFusion? Where can I learn how to use it? My frontend is pure HTML+JS and I just need the push capability. I thought of using Websocket Event Gateway and Server Sent Event (aka EventSource) but seems like they don't have much browser support quite yet. Any pure jQuery short/long polling option Any good Server Sent Event polyfill solution available for older browsers?
View 3 RepliesAssuming calling the same ColdFusion web service and all other factors are identical, is there a difference in performance/speed between using the following two tags?
<s:RemoteObject id="MyService" destination="ColdFusion" source="MyWSFolder.MyService"/>
and
<s:WebService id="MyService" wsdl="http://www.myDomain.com/MyWSFolder/MyService.cfc?wsdl"/>
I hope this problem would not waste your time. I use Adobe Coldfusion 9 to create CFC to to interact with database. Generally, CFC can be generate WSDL by itself. for example:[URL]..
The WSDL was generated well. But the problem has been found when I tried to use Adobe Flash Builder 4's Data service to generate service class to connect ColdFusion's WSDL.
If you tried to invoked the remote function that return primitive data type as int or String, it works correctly.
[Code]...
I'm using a Coldfusion Dreamweaver template with cfinclude tags. The header contains a flash movie where I'd like to pass 2 variables via a query string to load the correct image and menu button based on the variables in the ActionScript.
Example: <param name="movie" value="flash/header_v8.swf?pic=1&button=1" />
pic variable can be 1 - 3 and button variable can be 1 - 7 depending on the each pages body element id. So the logic would be something like this for my flash movie:
if body id =home, then pic=1 and button=1
if body id =about, then pic=current variable and button=2
if body id =page3, then pic=1 variable and button=3
[Code].....
What's the best way to pass these variables depending on the current page body element id?
I was wondering if it is possible to "connect" Flash to C#.Would be that flash would send variables to C# and then the same C# return some variables to flash.
View 1 RepliesI want to create a login page in Flash, containing two text fields (username password) and an Enter button. The database I am using is MYSQL where is a table with username and password elements. For the connection I must use ASP.NET and not PHP.
View 1 RepliesIt`s not a secret that is very difficult to create beauty user interface using Java. Flash has powerful tools for it. We use Flash to show some nice face and Java to process business logic(DB, calculation etc). How they can connect (over HTTP or TCP/IP not important) without additional technologies?
View 3 Replies