SchoJose
01-16-2006, 08:10 PM
I'm designing a new site, I bought a template to base it off of.
And the template has a flash animation which I turned into a header.
When your looking at the site though everytime you go to a new page the flash reloads and does its crazy musical thing. Which gets very annoying after awhile.
Is there a way to just get the flash animation to load once, and then not re-load when you browse to different pages on the site. I know there is a way to do it.
Ive spent hours searching for an answer.
So I thought why not come to WHT:lovewht:
sabian1982
01-17-2006, 08:06 AM
thats one of the reasons ive removed flash from my host design that im working on cause ud keep seeing the flash preloader on every page you go to. I gave up and decided to take all the flash out my site, however im sure there is a way of coding the preloader so if everything is already loaded the flash goes to a specific frame. Unfortunately ive got no idea how to do it off the top of my head though!
NorthWest
01-17-2006, 11:46 AM
If you really want to have that flash animation up top and not have it reload read about iframes. There are other ways to do it besides frames, but this will be the easiest and quickest way to solve your problem. Your header frame will stay constant and your content will be the only thing that will change.
SNOWmanx
01-17-2006, 08:59 PM
Get rid of the crazy musical thing? If you know how to save stuff onto the computer (the person viewing it's computer, that is), you can save something onto their computer saying something like "Page accessed at 12:46" in more of a computer language. Maybe read the difference in time, so if it's within 30 or so minutes, you don't play the song. It'll keep updating the file, so then if they keep viewing the page, they won't hear the song. Might be a bit intense for some computers, but saving doesn't take long. Especially just a few variables. If you need help with this, PM or email me.
SchoJose
01-18-2006, 05:59 PM
Yeah, everyone I've asked has said Iframes is the way to go, I've reasearched as much as I can...
I have the flash header.. the iframe.. and then the footer
And the bottom of the frame gets cut off if I don't use scroll bars. I hate sites that have a scrollbar to view the content when the browser's already got one. Thats the main reason I don't use Iframes I can never get the code write.
Faken
01-18-2006, 10:16 PM
Your other option is to edit the FLA and remove all the animation and music and just keep the final result of the flash clip... then using cookies, you can code the template to only show the full SWF once, then show the short SWF file the rest of the time.
I'm fairly sure you can do this with Javascript as well... as in, use the cookie principal and simply use javascript to send a goto frame or goto label command to the SWF.
Hope that helps give you some alternatives :)
Dan