Hi, I've got a seriously odd problem with a Flash 5 nav bar I've been amending. The site is simple and the Flash movie has buttons for the main site links.
When you click on a button the Flash movie does a geturl and then an ASP pages amends the Flash navbars querystring telling it which page is displaying; this way the Flash movie 'knows' which button to highlight.
This all works fine.
At the start of the movie I have a bit of code like...
var initialising = false;
if (thisPage == "/biography.asp"
{
initialising = true;
gotoAndPlay ("Biography", 1);
}
if (thisPage == "/services.asp"
{
initialising = true;
gotoAndPlay ("Services", 1);
}
if (thisPage == "/approach.asp"
{
initialising = true;
gotoAndPlay ("Our Approach", 1);
}
if (thisPage == "/cuisine.asp"
{
initialising = true;
gotoAndPlay ("Cuisine", 1);
}
if (thisPage == "/contact.asp"
{
initialising = true;
gotoAndPlay ("Contact", 1);
}
This code looks at the "thisPage" variable set from the querystring and plays the corresponding movie to make the option highlighted.
However....
There is ALWAYS one menu option which displays the incorrect highlight (e.g. you click on contact in the FLash movie, the contact page appears but biography is highlighted in the Flash movie). Now, which menu option plays up is dependent on the order of the list of scenes within the Flash FLA file. The last scene is always the problem one.
The source can be found at
Any ideas at all?
cheers
Joel
Joel
When you click on a button the Flash movie does a geturl and then an ASP pages amends the Flash navbars querystring telling it which page is displaying; this way the Flash movie 'knows' which button to highlight.
This all works fine.
At the start of the movie I have a bit of code like...
var initialising = false;
if (thisPage == "/biography.asp"
initialising = true;
gotoAndPlay ("Biography", 1);
}
if (thisPage == "/services.asp"
initialising = true;
gotoAndPlay ("Services", 1);
}
if (thisPage == "/approach.asp"
initialising = true;
gotoAndPlay ("Our Approach", 1);
}
if (thisPage == "/cuisine.asp"
initialising = true;
gotoAndPlay ("Cuisine", 1);
}
if (thisPage == "/contact.asp"
initialising = true;
gotoAndPlay ("Contact", 1);
}
This code looks at the "thisPage" variable set from the querystring and plays the corresponding movie to make the option highlighted.
However....
There is ALWAYS one menu option which displays the incorrect highlight (e.g. you click on contact in the FLash movie, the contact page appears but biography is highlighted in the Flash movie). Now, which menu option plays up is dependent on the order of the list of scenes within the Flash FLA file. The last scene is always the problem one.
The source can be found at
Any ideas at all?
cheers
Joel
Joel