I'm modifying a template (flash menu with html pages), when you click on the flash menu (about us for example) the corresponding html page is displayed, and the "about us" flash menu is highlighted.
This is already done with the template I bought, they have HTML files named ad index-1.html index-2.html, etc...
The problem is that they didn't have a link to the home page, so I modified one of the already existing menu and put "home page" which will link to index.html, but I am not able to highlight the "home page" flash menu.
here is the action script that's already there:
Expand|Select|Wrap|Line Numbers
- onClipEvent (load) {
- num = 1;
- }
- on (rollOver) {
- if (_root.link<>num) {
- gotoAndPlay("s1");
- }
- }
- on (releaseOutside, rollOut) {
- if (_root.link<>num) {
- gotoAndPlay("s2");
- }
- }
- on (release) {
- if (_root.link<>num) {
- _parent["bt"+_root.link].gotoAndPlay("s2");
- _root.link = num;
- }
- getURL("index-1.html")
- }
I don't know flash much. Are the numbers in the html pages names related to the action script? What should I change to highlight the menu when index.html is displayed?
If I change
Expand|Select|Wrap|Line Numbers
- getURL("index-1.html")
Expand|Select|Wrap|Line Numbers
- getURL("index.html")
Thank you for your help.