473,399 Members | 2,146 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 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 11137
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 project. This menu is showing fine when seen...
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: http://www.htmldog.com/articles/suckerfish/dropdowns/example/bones1.html Some...
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 of a Flash movie between 100% and 812 pixels...
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" target="_blank"example link</a> such that...
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 when i trying the page on my computer. I try...
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 left. The problem is, depending on the browser...
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 page. The html page has an iFrame too. When the...
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 type="text/javascript"> var flashvars = { ...
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 content area. so to access content area i used...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.