I’ve got a question for all of you FLASH-masters out there.
I’m currently working on a website, based on ASP and a database. It loads the content on the page from a database.
Now to the problem. I’ve got a flash menu/image viewer at the top of the page. ( ex. When I klick on “About” the menu/movie clip shows an “About” image). The problem is that the website is based on only ONE page (default.asp) So, whenever I klick on a link, let’s say “About” the page reloads and the About page is shown, BUT! the flash menu/movie is reloaded and moves back to the start of the timeline ( In this case the “welcome” image).
My question is: Is there a way to tell what part of the movie clip to be shown based on the explorer address, or is there another way around this problem?
I don’t want to use frames on my website because then the scroller is “miss placed”.
I hope I have explaind my problem fairly well, so you all can understan what the h*ll I’m talking about.
Yes there is a way, you have to add something to the embed html. Can’t remember off the top of my head how to do it, I’m sure someone else will post the process. If not I have some examples at home I can post when I get off of work.
if (_root.page == "home") {
menu.gotoAndStop(5);
if (_root.page == "products")
menu.gotoAndStop(6);
if (_root.page == "other stuff")
menu.gotoAndStop(7);
}
//Or maybe
menu.gotoAndStop(_root.page);
//Or if your menu is dynamic and loops call a function
MovieClip.prototype.checkPage = function(){
if(this.ttext.text == _root.page) {
this.ttext.setTextFormat(color2);
this.enabled = false;
}
}