472,328 Members | 1,728 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,328 software developers and data experts.

Link a flash menu to HTML

roula
18
Hi,

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
  1. onClipEvent (load) {
  2.     num = 1;
  3. }
  4. on (rollOver) {
  5.     if (_root.link<>num) {
  6.         gotoAndPlay("s1");
  7.     }
  8. }
  9. on (releaseOutside, rollOut) {
  10.     if (_root.link<>num) {
  11.         gotoAndPlay("s2");
  12.     }
  13. }
  14. on (release) {
  15.     if (_root.link<>num) {
  16.         _parent["bt"+_root.link].gotoAndPlay("s2");
  17.         _root.link = num;
  18.     }
  19.     getURL("index-1.html")
  20. }
  21.  
This will highlight the menu when the page index-1.html is displayed, but I want it highlighted when index.html is displayed.

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
  1. getURL("index-1.html")
to
Expand|Select|Wrap|Line Numbers
  1. getURL("index.html")
none of the menus will get highlighted...


Thank you for your help.
Mar 10 '07 #1
3 11061
roula
18
OK everyone, I just figured this out heheh.

For anyone who doesn't know, in the HTML document itself, where you embed the flash, there is this code:

Expand|Select|Wrap|Line Numbers
  1. <param name="movie" value="flash/header_v8.swf?button=0">
the "button" value is the one that determines which menu should be highlighed, so I changed the button value in the index.html to be 1 and fixed the other values in other pages and it's working fine :)

Thanks
Mar 10 '07 #2
WOw! I am attempting the same thing but from no teplates...thanks for the code. I'd be interested in viewing your site...whats the URL?
Mar 19 '07 #3
I have the same template and had the same problem. Thank you for figuring it out!
Dec 4 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Sura | last post by:
Hi I have designed a simple DHTML menu which comes over a flash animation when it appears. I have set the window mode as transparent in the flash...
3
by: Webmaster | last post by:
I'm working on a site that will have a typical CSS drop menu appear on all pages. The menu is based on this example:...
18
by: gconrads | last post by:
OK, today is my twofer special on js questions. BTW: the method used here is working in Firefox I'm working on a script that switches the width...
26
by: Nospam | last post by:
I am trying to open a link in a new template window : <a onclick="windowopen('example.html','example');return false;" href="http://www.example.com"...
2
by: icegray | last post by:
Hi, I have been designing a web page with asp.net. I want to use flash menu and I add it to aspx page. but page can't load if i use the flash menu...
3
by: bdbeames | last post by:
I have a menu on the right side of my page and a flash object in the center. When a certain option in the menu is select a sub menu pops and floats...
1
by: Sura | last post by:
Hi I have a flash interactive window which has html links and this appears on an html page. This window can be moved with the mouse on the html...
1
by: theJonster | last post by:
Hi I am embedding a swf object. I try: <script type="text/javascript" src="../scripts/swfobject.js"></script> <script...
1
by: phpmagesh | last post by:
Hi All, I have problem in the html page I have flash banner at the top of the page and i have menu in the same flash. this flash will cover the...
0
by: tammygombez | last post by:
Hey everyone! I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
1
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.