Unable to get flash header not to reload on a new page

I am trying to get my flash header / nav menu to stop reloading on everypage and only show the intro part of it only on the main page. I've looked through some previous questions on EE and came across this solution which seemed to make a lot of sense (http://www.experts-exchange.com/Software/Photos_Graphics/Web_Graphics/Macromedia_Flash/Q_21590935.html?sfQueryTermInfo=1+flash+gono+reload)

The code specified was the following:

"Within your <object></object> tags add:
<param name="FlashVars" value="goNo=<?php echo $goOrNo; ?>">

Anywhere in the <embed> tag add: FlashVars="goNo=<?php echo $goOrNo; ?>"

In index.php declare at the top of the page:
<?php $goOrNo = "go"; ?>

On all your other pages:
<?php $goOrNo = "no"; ?>

First frame in flash movie:
if (goNo == "no") {
gotoAndStop(#); // Put frame number or label to jumpt to to skip intro
} else {

I followed the accepted solutions technique however as you can see in www.mcxlphotography.com/mcxl.php , the header stops but not at the frame it should (this isn't the main page by the way so it should go straight past the intro). This is stopping on approximately frame 20 (which is part of the intro) and not frame 190 where it should be stopping as I've specified on the first frame of the flash file (gotoAndStop(190) )

This shows that the code itself is working as its reading the stop(); and checking the variable but it doesn't gotoAndStop at the right frame! How can I fix this!?
Who is Participating?
Jakob_EConnect With a Mentor Commented:
Ok I've now looked at the file and the problem is not in your script...
It is in the properties of your png image (pic01).

To fix it right click on the pic01 in your library then select properties.
Now check the use document default quality and clock ok....
Then it works :)

I'm not sure why it acts this way - but perhaps it is due to a png
image being treated as a jpg while overriding the default.

~ Jakob E

Ps. If you find your flash getting stuck on a wrong frame you can
trace the specific frame by adding this script to the first frame
of your movie: this.onEnterFrame=function(){trace(_currentframe)}

Pps. Since you are not using playanimation=true simply check if it is false

What you do should work...

Try using session cookies and flashvars to control your animation.
Then your flash will play only once... no matter what page the
user hits first.

// If no session cookie named showanimation exists create one
// with a true value. Else set the the value to false
if(!isset($showanimation)){ $showanimation="true";}
else{ $showanimation="false";}

Add the following to the tags including your flash movie on the page:
Object tag:
<PARAM NAME=FlashVars VALUE="playanimation=<?=$showanimation ?>">

Embed tag:
<EMBED src="yourflashfile.swf" FlashVars="playanimation=<?=$showanimation ?>"
... (other parameters)></EMBED>

In your flash movie add something like this (no stop() added):
  // Play the animation (just let flash play)
 // Don't play (jump to frame 190)

Give it a shot and see if it also solves your problem.
~ Jakob E

Best, Jakob E
TheFuteballerAuthor Commented:
hmm it does work better than the previous version but it still doesn't stop on the right frame (stops at about frame 60 or so) and also it never plays full intro from the beginning (even if i clear my cache and cookies and refresh the page)
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

Can you upload your flv file - then I'll take a look

~ Jakob E
TheFuteballerAuthor Commented:
the swf file is at


if you want the source send me an email through my profile
Your e-mail isn't public - or perhaps it's just me beeing blind...
You'll find mine in the comment text on my profile - hope you can see it :)
TheFuteballerAuthor Commented:
hmm it seems it is still not working for me :(

although it just checking that did cut down about 30 kb from the swf file (thanks for that haha) it still has the same problem. Oddly enough it seems to switch between stopping at frame 20 and frame 60 everytime I refresh, try for yourself (www.mcxlphotography.com/mcxl.php)
I've made the changes in the file and mailed it to you - try it out.

~ Jakob E
TheFuteballerAuthor Commented:
hmm it seems it's not working.. thanks for the effort though, I will make sure you get a split of the points at least Jakob!
TheFuteballerAuthor Commented:
I have decided to just go with the frames method as it seems to be a problem with my flash file. Thank you for all of your help Jakob!
Hallo Jakob
could you try with my file?
i also do not want to reaload this in my header every time i see my pages?

the file is there:

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.