Getting AS3 to work with Coldfusion

Ask a Question related to Macromedia Flash Data Integration, Design and Development.

  1. #1

    Default Getting AS3 to work with Coldfusion

    Hi there,
    All I really need to do is quite simple, but I have no background w/
    Coldfusion, so I find myself Stuck.

    I need AS3 to read a number in the .cfm in which my swf is embedded. It just
    has to recognize a "0" (user has not yet seen this page and used the
    application) or a "1" (user has used application, go to frame 5 which tells
    them to take a hike b/c they have already used the one-time offer dealy).

    I am using Flash CS4 and Coldfusion 8. Anyone?

    Thanks!

    G.Bob Guest

  2. Similar Questions and Discussions

    1. ColdFusion 7 won't work
      OS: WinXP Pro (fresh install), CF 7 development machine. All firewalls and antivirus are "OFF". IIS is installed and working. When attempting to...
    2. Getting Apache 2.x to work with Coldfusion MX 7
      I have windows 2003 server and I'm running apache 2.x and coldfusion MX 7 full CD. I used to mess around with coldfusion 6.1 trail version, and...
    3. Getting ColdFusion MX 7 to work with MySql 4.1
      Hello out there. I'm having some problems with configuring ColdFusion MX 7 with MySql 4.1. Right now I downloaded the Connector J v. 3.0.17...
    4. How could make Coldfusion to work?
      Hy, I have a problem with ColdfusionMX... It does not work! I have as system a Win XP professional and I have installed the Apache 2.0.54 web...
    5. Template for ColdFusion not work
      We are trying to create a Coldfusion template with Dreamweaver MX 2004 and 2003 (we though the problem was maybe in the version of Dreamweaver)....
  3. #2

    Default Re: Getting AS3 to work with Coldfusion

    If anyone can explain the most basic way for AS3 to communicate w/ coldfusion,
    that would be most helpful. Here is my code (which doesn't work) to give you
    an idea - I just need a start, then I can go from there.

    var loader:URLLoader = new URLLoader();

    loader.dataFormat=URLLoaderDataFormat.VARIABLES;
    loader.addEventListener(Event.COMPLETE, loading);
    loader.load(new
    URLRequest("http://127.0.0.1:8501/newprism/alpha/greg/work_in_progress/spinWheel
    /flashtest.cfm"));

    function loading(event:Event):void {
    fname.text=loader.data.fname;
    }

    Here is the .cfm:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <cfset user="Julie">
    <cfoutput>
    fname=#user#
    </cfoutput>
    <body>
    </body>
    </html>

    Anyone?

    G.Bob Guest

  4. #3

    Default Re: Getting AS3 to work with Coldfusion

    Any takers? Flash remoting: There is not a wealth of material regarding this subject online nor at the book store.
    G.Bob Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139