Advertisement

05.12.2008 at 04:12AM PDT, ID: 23394157
[x]
Attachment Details

Actionscript not working

Asked by hibridassassin in Web Development Software, Macromedia Flash

Tags: Adobe, Flash, CS3, Actionscript, CS3

I am trying to get a header to play only once...so, have it play fully on the home page but when we go to other pages, not play the whole thing.  I found the following code online and it works to the extend that if always goes to frame 100 but regardless of whether I clear the cache or cookies.  The first part never executes (gotoAndPlay(3).  Please help.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
replay = SharedObject.getLocal("save");
 
if (replay.data.name == undefined){
gotoAndPlay(3);
replay.data.name = "played";
} else {
gotoAndStop(100);
}
[+][-]05.12.2008 at 05:39AM PDT, ID: 21546317

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Web Development Software, Macromedia Flash
Tags: Adobe, Flash, CS3, Actionscript, CS3
Sign Up Now!
Solution Provided By: grafinery
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.12.2008 at 12:31PM PDT, ID: 21549837

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628