What im trying to do is very simple. I have a flash movie as teh header of a page and it has an intro animation. Well I want the intro to play only once so i am using a session variable to check if the user has seen it already.
u can see teh following code in action here
View the link in IE and Firefox
here is teh PHP code:
<?php
session_start();
if (empty($_SESSION[flash])){
$jump_to="intro";
$_SESSION[flash]="nointro";
} else {
$jump_to=$_SESSION[flash];
}
?>
HTML Code to put the flash movie in:
<object ...
...
<param name="movie" value="header.swf?start=<?php echo $jump_to; ?>
...
</object>
the actionscript:
test = _URL;
if ( _level0.start == undefined) {
main.gotoAndPlay(1);
} else {
if (_level0.start == "intro") {
main.gotoAndPlay(1);
} else if (_level0.start == "nointro") {
main.gotoAndPlay(16);
}
}
the test variable is to show you the problem.
This code works PERFECTLY in IE - it doesnt play the intro or anything.
in IE the url of the movie is header.swf?start=intro
Firefox however it does not. I have no idea why. Maybe firefox treats GET variables differently.
in Firefox the url is header.swf
what happened to the string??
How do i access GET variables in Flash when they are from FF??
Thanks