Welcome, Guest
  • 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
      • View Profile
      • Email
    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

    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    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.
    happy flashing
    8)
    Ronald

    Acreonte

    • Server what's that
    • *
    • Posts: 37
      • View Profile
      • Overload Studios
      • Email
    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  ;)

    Jaylada

    • Seasoned Programmer
    • ***
    • Posts: 144
      • View Profile
      • Email
    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 »