Solved

Stop flash header from reloading?

Posted on 2010-09-16
3
378 Views
Last Modified: 2012-05-10
I recently used a template to customize and build a website for my brother's rugby team.  The flash header that came with the template, i was able to customize it and get all the buttons working in the action script.

My only pet peeve is that every time someone clicks on a link the page reloads the header all over again.  I've done a search and couldn't quite figure out how to stop this reload with already asked questions.  I'd really appreciate some guidance, thanks.

You can view the site at umassrugby.com
0
Comment
Question by:newmie22
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
bupper earned 500 total points
ID: 33697881
Since it is a template, you probably can't change the actionscript?

If you cannot, the only way to do it is to embed the contents of the page in an IFRAME and only have the iframe load the new content. Downside is the address bar doesn't reflect the new page.

If you CAN change the actionscript, you can use Flash cookies (or LSOs). Register a cookie when the user clicks a link in the header. When the new page loads, check for cookie. If it exists, clear it and skip the intro.

More about LSOs here:
http://www.bestflashanimationsite.com/tutorials/4/
0
 

Author Comment

by:newmie22
ID: 33697928
I would hate to use an iframe as many of the students bookmark certain pages and since you said the address bar doesn't reflect the change that would render that aspect useless for them.

I can edit the actionscript, as i was able to do so to use geturl for the button links but I'm not really too familiar with flash (we're only just starting to learn it in classes), so i may have to look up some more information on cookies and exactly how to code it into the actionscript.
0
 

Author Closing Comment

by:newmie22
ID: 33702933
Thanks for the help, I'm sure your solution would have worked but i am not that advanced.  I ended up just making the same flash header again but took out the animation and linked header2 to the other pages so only the animation plays on the index page.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now