Welcome, Guest
Sign in
Create account
Home
Home Page
Components
Buy & Sell
Freelance
Marketplace
Tutorials
Flash Tutorials
Games
Free Online Games
Community
Message Board
Home
Help
Search
Login
Register
Subscribe to
Our Feed
Follow Us
On Google +
Follow Us
On Twitter
Become a fan
On Facebook
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?
« previous
next »
Print
Pages: [
1
]
Author
Topic: A CFM hyperlink to write to a var, how do I extract that to my desired AS2 file? (Read 1408 times)
Jaylada
Seasoned Programmer
Posts: 144
A CFM hyperlink to write to a var, how do I extract that to my desired AS2 file?
«
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
Global Moderator
Systems Administrator
Posts: 6203
Re: A CFM hyperlink to write to a var, how do I extract that to my desired AS2 file?
«
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
Ronald
Acreonte
Server what's that
Posts: 37
Re: A CFM hyperlink to write to a var, how do I extract that to my desired AS2 file?
«
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
Logged
http://Games-Garden.com/
Jaylada
Seasoned Programmer
Posts: 144
Re: A CFM hyperlink to write to a var, how do I extract that to my desired AS2 file?
«
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
Print
Pages: [
1
]
« previous
next »
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?