Page 1 of 1
load flash once
Posted: Fri Sep 09, 2005 11:23 am
by J_Iceman05
I have a flash header / navbar at the top of a page. It loads everytime they go to the page, or a different page using the same navbar, it even reloads if they press the refresh button... is there a way to set it to only load once?
thanks in advance
Posted: Fri Sep 09, 2005 11:31 am
by feyd
I would think that Flash can handle that itself, or you could use a session marker to tell it to load in the folded out state (as I'm guessing you use animation or something as an intro). I don't know of a way to protect against refreshes, and I think that'd be VERY bad if a browser allowed changing of how refresh works by a page.
Posted: Fri Sep 09, 2005 12:28 pm
by J_Iceman05
when the flash loads, it does do an animation
i can't give you our servers web address cause the test one is only accessable from within the network.
but the template we bought can be found at
http://www.templatemonster.com/swish-te ... /8227.html
how would you set a session marker to tell it to load in the folded out state after they have seen it the first time?
(incase it isn't obvious enough, im not very familiar with flash)
Posted: Fri Sep 09, 2005 12:37 pm
by Storm
You will not be able to change the refresh acton as that is a browser issue not a Flash issue.
Since the Flash movie gets reloaded with every page refresh, you would have to track a variable that Flash reads to know it has loaded before. Flash and PHP can talk to each other, so if you store a PHP cookie, set a variable and have Flash read it. Or you can use the local Shared Object (Flash cookie....sort of). But if you're unfamiliar with Flash, you would probably be best setting and reading the cookie in PHP, setting the variable and then getting some Flash help on how to read it. These are the problems with these templates. There is no way every template can be set up to be perfect in every developer's situation. You're still going to need to have someone go into the Flash .FLA file at some point.
Thank you
Posted: Fri Sep 09, 2005 1:28 pm
by J_Iceman05
ok, well thank you for your help. I think we might have someone that is more familiar with flash that might be able to help us out. But I will do the best I can. I appreciate your comments and your help very much.
Posted: Fri Oct 21, 2005 4:44 pm
by thomas777neo
Well, as my suggestion, put the flash in a different frame than the pages you are loading.