Welcome, Guest. Please login or register.
Did you miss your activation email?
05/22/12, 18:51
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  Server side Scripting and Database Support
| |-+  PHP, Perl, ASP, JSP, CFM (Moderators: Flash-db, Musicman, vesa kortelainen, Ronald Wernecke, Jorge Solis, nothingGrinder)
| | |-+  A CFM hyperlink to write to a var, how do I extract that to my desired AS2 file?
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: A CFM hyperlink to write to a var, how do I extract that to my desired AS2 file?  (Read 971 times)
Jaylada
Seasoned Programmer
***
Posts: 144



View Profile WWW Email
« on: 11/16/11, 01:44 »

When I use a hyperlink to write to a variable like below, it works to extract the data from MySQL database, but not in a useful way, it just displays it to the user, which is not what I need...How do I extract the database info to my AS2 file so I can use it how I need to.

<a href="http://www.mysite.com/CustomID.cfm?ID1=444">TestThis</a><br />

So the path I want the user to take.... is Click on Hyperlink (not on my site)--->Extract data from MySQL database--->create custom AS2 page using this data

Thanks in advance
Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #1 on: 11/16/11, 13:12 »

This sounds like a cross domain question.

If the component with the button is not comming from your domain, you need a crossdomain.xml file in both the domains giving access.
Logged

happy flashing
Cool
Ronald
Acreonte
Server what's that
*
Posts: 37


View Profile WWW Email
« Reply #2 on: 11/17/11, 06:28 »

Whatever data you get from the database you need to format it in the server-side first and it should output something like xml so flash can get this xml data so you can customize the elements in the flash movie.
Check out the RSS example, it might give you some clues if in case you don't know what I'm talking about.
If you get stuck, ask again. We are here to help each other  Wink
Logged

Jaylada
Seasoned Programmer
***
Posts: 144



View Profile WWW Email
« Reply #3 on: 11/27/11, 18:15 »

So how about just doing this with a html link instead of CFM?

"http://www.mysite.com/CustomID.html?ID1=444"

Using my debugger program "charles", I see the variable sent over, but how do I access that variable in my Actionscript 2.0?  I'm not finding the right function or syntax to use within Actionscript.

OR

when I use my coldfusion link... I'm able to get get the query to work using the ID1 variable, but how can I open up the HTML file and use all those variables that I just grabbed from the MySQL database?

Thanks in advance!
« Last Edit: 11/27/11, 19:23 by Jaylada » Logged
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!