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
Perhaps you don't set new values of variables the second time, is it? HTH, -c.
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
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
Don't see what you're looking for? Try a search.
|