Solved

How to stop flash menu and header  to replay every time ?

Posted on 2007-03-18
5
828 Views
Last Modified: 2008-01-09
I have bought a flash template on the web. This template includes an animated header and an horizontal menu. I have changed text buttons and assigned links with geturl function. Works fine but I don't want to replay the full header (except for home) everytime I click on a menu button. How can I do this ? Thanks for your help !
0
Comment
Question by:proximal
  • 2
  • 2
5 Comments
 
LVL 12

Expert Comment

by:SamuelRostol
ID: 18743615
We'll probably need examples from the code to answer this...
0
 

Author Comment

by:proximal
ID: 18743869
Thank you for your response. This an url where you can see the layout as-it : http://www.polynome.be/test_ee/index.html Every button has its own geturl to call another page. What I want to do is to avoid to reload the full header everytime a button is clicked.
0
 
LVL 11

Expert Comment

by:sibgig
ID: 18744954
In order to make it happen we must keep record of the visit somewhere.
There are limited options from browser -  Javascript Cookies or Macromedia Shared Object. Shared Object will store information on user drive in form of *.sol file.
On top of it it's cross OS and cross browser compatible , works as well from standalone projector. Best naive flash form of cookies.

Let me write a fast one for you , detect first visit , if first - Do action , if second or more do
another
action :

//frame action in flash movie

function VisitCheck() {
var myLocalSO = sharedobject.getLocal("visitRecord");
if (myLocalSO.data.visited == null) {
myLocalSO.data.visited = 1;
// your action for first visit here
trace("visit 1");
} else {

// your action for second and more visit to skip to diff
// frame on the timeline
trace("visit2");
}
}

VisitCheck();

you can test it locally , it will trace out.

The file with info will be store on your machine as visitRecord.sol somewhere in temporary folders.....
Using search on windows can locate the file, you na delete it for farther
tests. Also take note that if you place it on first frame it might fail
as the movie is not entirely loaded and the action won't be able to locate the
target frame . Best to make small preloader and after loader send it to frame
on which you make the check , from there play or skip .
0
 

Author Comment

by:proximal
ID: 18746656
Thank you for your reply. I am not sure to fully understand what you mean with "to make small preloader and after loader send it to frame on which you make the check".
0
 
LVL 11

Accepted Solution

by:
sibgig earned 500 total points
ID: 18748326
what i mean is its best to have a small preloader on your movie, giving time for your movie to load completely. then after the preloader is done, have the preloader go to the frame that you have the VisitCheck function on.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
cPanel is a Unix based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site. cPanel utilizes a 3 tier structure that provides functionality for administrators, rese…
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.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

910 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

17 Experts available now in Live!

Get 1:1 Help Now