-
Can anyone enlighten me on using the "load variables" function in a locally executed projector file that will retrieve data from a perl script from an external server?
I have several movies that use this action. Some of them work fine others don't!
Right now I am having big trouble in getting an Online database with user input to load correctly into the projector.
This is what I found so far:
If the value of a scalar is manually set in the Perl script Flash can load the variables into the MC of the local projector file correctly.
If the perl script reads through the database and dynamically sets the variables according the database these specific dynamically set variables are not loaded into the MC!
If I upload the same flash movie to the server and run it from there it does load the contents correctly!
Another projector file (a game) is able to communicate with the online database of high scores so in this case the dynamically generated scalars are sent correctly to the projector file.
I am kind of lost here!
Anyone knows what's happening?
Raoul
-
This is a "feature" of the Flash plugin. Macromedia says... For security reasons, a Flash movie playing in a Web browser is not allowed to access data that resides outside the Web domain from which the SWF originated.. It works from a projector because the projector runs locally and not from any particular domain. Here's a link to the full technote...
External data not accessible outside a Flash movie's domain
http://www.macromedia.com/support/fl...s_security.htm
-
I am sorry but I am working with a projector movie locally!
It just doesn't make any sense:
If the movie is published as a swf and opened locally in an html file then it does load all variables (those manually set and those set dynamically in the Perl script) correctly.
If the swf itself or the projector file is executed only those variables that are set manually in the perl script will load correctly. All flash variables representing data taken from the database are empty!
How is this possible?
Raoul
-
Sorry, I read your post too quickly the first time and misunderstood. I'll read it again, for comprehension this time :)
How are you sending the query to the perl script? Are you specifying the optional METHOD parameter in your loadVariables() call? If so are you using "GET" or "POST"?
-
That's okay Northcode actually I had another look at it after I posted to Flashkit and the answer to my problem is exactly in the direction of what you were asking in your last answer! I was using "Post" and obviously I have to use "Get" in the case of a projector file as this is working!
Thanks for helping!
Raoul
-
ah
When in the heck do you think macromedia will release a new player that will support a DANG "POST" and not just a "GET" . it says in the tech note that they are working on it. that has been for AGES!!!!!
sorry but ive been waiting for this for ages. does anyone know when they will fix this????
THANKS
-
Check this out... http://www.northcode.com/cgi-bin/dlo...es/getpost.zip
It's a projector created with SWF Studio (www.northcode.com) that uses GET and POST. It calls a simple CGI script at northcode.com that returns the method used (GET or POST) and displays it.
The FLA is included so you can rebuild the SWF and try it as a regular projector and watch it fail when you press the POST button :)