[thelist] Netscape, Flash and query strings
joe
stowaway at uklinux.net
Sat Apr 3 11:04:41 CST 2004
Thanks Peter
I actually started out using loadVariablesNum when I began the project,
but then switched to xml.sendAndLoad because I needed more stuctured
info in the Flash movie than a string of variable assignments could give
me. At that point I found I couldn't use a session for some reason.
I'm starting the script I call with:
ini_set("always_populate_raw_post_data", true);
and whether I start a session_start() before or after that line, the
script fails. Don't know why yet.
Anyway, I've done some more testing and discovered that the query string
is reaching the Flash movie in Netscape, but the sendAndLoad is failing
:( Is there something weird going on in Netscape? (obviously it works
in every graphical browser I've tested _except_ NN4!).
Joe
Peter McKenna wrote:
>Hey Joe,
>
>In my dealings with Flash, I have found it easier to pass values to
>and from the movie by using scripting languages like PHP or ASP. Use
>the ActionScript function: loadVariablesNum ("somescript.php", "0");
>
>When the user logs in, you could have all login details stored in
>session variables and pass them into Flash movies like this:
>
><?php
>
>session_start();
>
>print "username=" . $_SESSION['username'] . "&someuserpreference=" .
>$_SESSION['preference'];
>
>?>
>
>This would set the username and someuserpreference vars in the Flash
>movie. Just something to think about anyway.
>
>Peter
>
>
>
More information about the thelist
mailing list