sweetie1
08-22-2007, 09:57 PM
I purchased a precreated flash header - I also have other links within the pages that load. The script tells the header to show the link as active when it loads - problem is the only button that ever thinks its active is home. I don't know how to make it think otherwise.
Here is the code:
onClipEvent(load) {
num=1;
this.title1.gotoAndStop(num);
this.title2.gotoAndStop(num);
}
on(rollOver) {
if(_root.link<>num) {
this.gotoAndPlay("s1");
}
}
on(rollOut, releaseOutside) {
if(_root.link<>num) {
this.gotoAndPlay(_totalframes - _currentframe);
}
}
on(release) {
if(_root.link<>num) {
_root.link_prev=_root.link;
_parent["item" + _root.link].gotoAndPlay("s2");
_root.link=num;
getURL("index.php");
}
}
All menu items within the header are accounted for in the code, however I also have other vertical links on the pages - not included in the header. At this point I would be happy if the horizontal links - were just that - and could care less what page it is on. I don't see any other code to adjust... If someone can help it would be greatly appreciated.
Thanks so much for looking and hopefully helping...:rolleyes:
Here is the code:
onClipEvent(load) {
num=1;
this.title1.gotoAndStop(num);
this.title2.gotoAndStop(num);
}
on(rollOver) {
if(_root.link<>num) {
this.gotoAndPlay("s1");
}
}
on(rollOut, releaseOutside) {
if(_root.link<>num) {
this.gotoAndPlay(_totalframes - _currentframe);
}
}
on(release) {
if(_root.link<>num) {
_root.link_prev=_root.link;
_parent["item" + _root.link].gotoAndPlay("s2");
_root.link=num;
getURL("index.php");
}
}
All menu items within the header are accounted for in the code, however I also have other vertical links on the pages - not included in the header. At this point I would be happy if the horizontal links - were just that - and could care less what page it is on. I don't see any other code to adjust... If someone can help it would be greatly appreciated.
Thanks so much for looking and hopefully helping...:rolleyes: