Robybob
03-16-2002, 05:30 PM
Hi,
I have a Flash site, and when you navigate to one page within the Flash site, a disclaimer audio plays. But I only want it to play once, just the first time the user goes to that page. When the user goes to that page again, I don't want it to play.
Here is my code:
-----------
Frame 1
-----------
if (_root.discPlayed == false) {
_root.discPlayed == false;
gotoAndPlay (3);
} else {
stop ();
}
-----------
Frame 3
-----------
audio is played
-----------
Frame 15
-----------
audio stops
-----------
Frame 16
-----------
_root.discPlayed == true;
stop();
--------------------------------------
Now that _root.discPlayed == true, the audio should not play again while the user remains on the site.
It's not working, what do I need to do?
I have a Flash site, and when you navigate to one page within the Flash site, a disclaimer audio plays. But I only want it to play once, just the first time the user goes to that page. When the user goes to that page again, I don't want it to play.
Here is my code:
-----------
Frame 1
-----------
if (_root.discPlayed == false) {
_root.discPlayed == false;
gotoAndPlay (3);
} else {
stop ();
}
-----------
Frame 3
-----------
audio is played
-----------
Frame 15
-----------
audio stops
-----------
Frame 16
-----------
_root.discPlayed == true;
stop();
--------------------------------------
Now that _root.discPlayed == true, the audio should not play again while the user remains on the site.
It's not working, what do I need to do?