Professional Web Applications Themes

getURL parameter passing bug? - Macromedia Flash Actionscript

I'm using getURL with "_blank" as the second parameter to open a new window to return the results of a cgi query. The user can close that second window and click the submit button on the original flash movie to do another query and open that second window again. When using getURL I'm relying on the "GET" (or "POST" they both exhibit this problem) parameter to pass a number of local variables as parameters to the cgi script. This all works perfectly, the first time. But when the second window is closed and the button is clicked to execute the ...

  1. #1

    Default getURL parameter passing bug?

    I'm using getURL with "_blank" as the second parameter to open a new window to return the results of a cgi query. The user can close that second window and click the submit button on the original flash movie to do another query and open that second window again. When using getURL I'm relying on the "GET" (or "POST" they both exhibit this problem) parameter to pass a number of local variables as parameters to the cgi script.

    This all works perfectly, the first time. But when the second window is closed and the button is clicked to execute the getURL command again, it fails. The values of all the parameter variables are passed as "undefined." What gives? It does this on Macs and Windows boxes, in the development environment and running inside a web browser. I'm using Flash MX and the plugin version 7.

    Is flash dumping all the values thinking getURL is loading a new movie in the same window? Is there an alternative function I can use? Can I work around it?

    Thanks!

    Dan


    1dan webforumsuser@macromedia.com Guest

  2. #2

    Default Re: getURL parameter passing bug?

    Perhaps you don't set new values of variables the second time, is it?

    HTH,

    -c.


    CesareRocchi webforumsuser@macromedia.com Guest

  3. #3

    Default Re: getURL parameter passing bug?

    Nope, thanks for asking though. The button script sets all the values right before calling the getURL function. I also peppered all the variables with "this." to see if that might help. Nope. It's almost as though the Flash plugin is dumping all the variables when it sees the getURL thinking it's going to get nuked when the page comes in.

    Later,

    Dan


    1dan webforumsuser@macromedia.com Guest

  4. #4

    Default Re: getURL parameter passing bug? Fixed! My bad...

    I found the problem. I had some local variables (street, city, state, zip) that were the same name as my fields and they were apparently colliding with each other. Interesting how it worked the first time but not the second. No matter, I changed the names of the fields and all is right with the world.

    Later,

    Dan


    1dan webforumsuser@macromedia.com Guest

Similar Threads

  1. Passing Variable in getURL
    By amy_jo in forum Coldfusion Flash Integration
    Replies: 1
    Last Post: July 1st, 11:29 PM
  2. cfselect and getURL with a parameter
    By knalle in forum Coldfusion Flash Integration
    Replies: 4
    Last Post: May 19th, 04:19 AM
  3. PASSING VARIABLES WITH getURL
    By drforbin1970 in forum Coldfusion Flash Integration
    Replies: 3
    Last Post: August 6th, 10:17 PM
  4. Passing a parameter in SWF
    By Kesab in forum Macromedia Flash Flashcom
    Replies: 0
    Last Post: March 11th, 03:33 PM
  5. Passing in a parameter
    By Jon in forum ASP.NET Building Controls
    Replies: 3
    Last Post: February 9th, 03:39 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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