Flash and Invisible CFM interaction

I have a SWF that i want to interact with a database.  I am very familiar with CFMX but I don't really want to embed the swf in a HTML file.  I would rather it run as a exe.  Therefore is there a way to have Flash and CF interact without having to display a CFM page?  Or more succintly, can Flash interact with a database using CF as the medium but not display the cfm file?

I also may be barking up the wrong tree as I have read and heard that Flash will interact directly with a database but I'm not sure where to start with that.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

To have flash interact directly with a database and to run as an exe you will need an additional tool.


is such a tool. It is not free but it provides direct access to an MS Access db, mysql, you can convert your flash swf into an exe or screensaver.
Flash alone cannot do anything at all without some type of middle ware like ASP, PHP, CF, or another 3rd party application like the one mentioned above...

another web site that you should take a look at is www.flashjester.com   some of these tools may be useful as well...

so you can rest easy now...  you know the answer to your question...  it can't been done with Flash alone....

skibama1Author Commented:
That I know....

What I want to know is how to have Flash interact with a CFM or CFC but never have the CFM/C file be shown in IE.  There has to be a way to pass variables from Flash to CFM without actually displaying the CFM.
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

I have never done anything using CFM or CFC. I normally use php, here's some links that show how to do it in php, should be similar for CF


I can give you more such links if you need them. YOu can also look at the flash API docs for the LoadVars object, which you will have to use to do the whole thing.
so do you want to just have the SWF call a page online and get information?

you can create a stand alone player and as long as the user is online, you can call a page a get variables...

you should make sure to have a set of code that checks to see if the user is online, and if not display a message that says so...

you would just build the application that same way you would if it was to be used online...


"What I want to know is how to have Flash interact with a CFM or CFC but never have the CFM/C file be shown in IE.  There has to be a way to pass variables from Flash to CFM without actually displaying the CFM. "

but is the above is not what you want, then there is no way to "hide" the CFM...  why exactly are you trying to hide it anyway?


skibama1Author Commented:
Because I want it to run independently of IE.  I want to use the swf as a EXE and have all the data calls from the database invisible.  If you send or request data from a CFM page, which is easy to do, the page will open.  Then you have your standalone EXE playing and a blank IE page.
you can send and receive data from a page online using a stand alone application, and there will be no browser window involved....

but the user must be connected to the internet to do this...

all you need to do is use LoadVars();

something like this:

myData = new LoadVars();
myData.variable1 = _root.sendVariable1;
myData.sendAndLoad("http://www.domain.com/thepage.cfm", myData, "POST");

myData.onLoad = function(success){
      _root.receiveVariable2 = myData.variableFromCFMPage;
   } else {
      _root.display.text = "You are not connected.  Please log on to the internet.";

the above code will send a variable, "sendVariable1" to the "thepage.cfm" web page and then when the new information have fully loaded into the .EXE  the new variable "variableFromCFMPage" is set to a variable on the root of the timeline called "receiveVariable2"

this all takes place without any browser windows at all...

let me know if you have any questions...


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
you want to do Flash remoting..... this is where you can pass entire recordsets from a coldfusion component file to the flash file.

has someone already said this... check out macromedias files to download the remoting components

come back and let us know what is happening with this question...

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.