2 Replies Latest reply on Jul 3, 2007 3:24 AM by Greg Dove

    writing queries in ActionScript

    fuatsungur
      i have a book whose author is Ben Forta.
      i've looked for getting query results for ActionScript but I don't understand it. It is a bit confuse.

      in coldfusion there is no problem about getting query result, writing query result. But, when i wanna to send my queries to actionscript i encounter a problem: "undefined"

      this is mycoldfusion code:
      <cfquery name="get_content_for_flash" datasource="#dsn#">
      SELECT * FROM CONTENT WHERE CONTENT_ID = #attributes.cntid#
      </cfquery>
      <cfset FLASH.result = get_content_for_flash>

      Actionscript code :

      thisText = new LoadVars();
      var record = result.getItemAt(0);

      thisText.onLoad = function(success) {
      if (success) {
      TextHolder.text = record.CONT_BODY
      }
      };

      what can i do?
      help pls..