Sending VALUES of CF variables thru FlashVars

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

  1. #1

    Default Sending VALUES of CF variables thru FlashVars

    Hey There!

    I am testing a simple application where I am trying to send back to flash
    (AS3) some variable values from coldfusion. It works just fine when I assign
    the value in CF "by hands" i.e.

    <cfsetting enablecfoutputonly="YES">
    <cfset Return = "&Numbers=456&">
    <cfprocessingdirective suppresswhitespace="Yes">
    <cfoutput>
    #Return #
    </cfoutput>
    </cfprocessingdirective>

    Then flash accepts the value of variable Numbers of 456.

    Now I ran into a problem, when I need instead of steady 456 pass the
    VALUE of CF variable. I was trying the following way:

    <cfsetting enablecfoutputonly="YES">
    <cfset x = 123>
    <cfset Return = "&Balls=&">
    <cfprocessingdirective suppresswhitespace="Yes">
    <cfoutput>
    #Return#=#x#
    </cfoutput>
    </cfprocessingdirective>

    In this case I receive no value in flash assigned to Balls ;(

    Can anyone please let me know that is the proper way to pass VALUES of CF
    variables using flashvars?
    Or maybe you know where to find a tutorial showing how that was done.

    Thank you

    AlexVed Guest

  2. Similar Questions and Discussions

    1. Sending variables to PHP
      Hi, I am working on the contact form for a website that is done entirely in flash. The following is the code I have for sending the variables to...
    2. Sending null values in SQL statements
      I am using an authoring program called Authorware to send student scores to ASP pages which send SQL INSERT and UPDATE statements to an Access...
    3. sending values of variables to PHP
      test l=New Loadvars(); l.var=text; l.Send("script.php");
    4. sending values in textbox
      Hi I want to be able to send the vlaues that a user enters in a couple of input fields. However, my register_globals is set to off. So how do I...
    5. Popup - Sending back values
      Hi, I'm developing a website using ASP.NET. I have a calendar control which popups when the user clicks on "Show Calendar" button. Now, he...
  3. #2

    Default Re: Sending VALUES of CF variables thru FlashVars

    The same happens when I do it this way:

    <cfsetting enablecfoutputonly="YES">
    <cfset x = 123>
    <cfprocessingdirective suppresswhitespace="Yes">
    <cfoutput>
    Balls=#Tostring(x)#
    </cfoutput>
    </cfprocessingdirective>


    AlexVed Guest

  4. #3

    Default Re: Sending VALUES of CF variables thru FlashVars

    I don't know what you're trying to do. However, since the Numbers example
    works, here are the respective versions that are similar to it:

    <cfset Return = "&Balls=">
    <cfprocessingdirective suppresswhitespace="Yes">
    <cfoutput>
    #Return##x#&
    </cfoutput>
    </cfprocessingdirective>

    <cfprocessingdirective suppresswhitespace="Yes">
    <cfoutput>
    &Balls=#Tostring(x)#&
    </cfoutput>
    </cfprocessingdirective>



    BKBK Guest

  5. #4

    Default Re: Sending VALUES of CF variables thru FlashVars

    flash adobe sofeware
    gamal lydian 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