Solved

Making a graphic move to selection on menuBar

Posted on 2003-11-11
10
467 Views
Last Modified: 2010-04-03
I have used the Flash menuBar component.
1) How do I change the color and font properties of the menubar
2) I placed a graphic next to the menu bar and I want this graphic to slide to the point on the menu bar that my cursor is over.  How do I do this?
3) I want to add sound as the cursor hits spots on the menu bar. How do I do this?
4) How do I link the items on my menu bar to the correct pages?

From these questions, I guess you can tell I am knew to this but I need to develope something in a hurry and the documentation is a little confusing at this point.
Thank you for any assistance.
0
Comment
Question by:msparrow
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 4
10 Comments
 
LVL 27

Expert Comment

by:negatyve
ID: 9728389
sample: http://www.negatyve.com/EE/menubar/menubar.html
source: http://www.negatyve.com/EE/menubar/menubar.zip

what's your graphic item like, and in what direction do you want it to move (vertical/horizontal)?
0
 

Author Comment

by:msparrow
ID: 9728466
It is a photo that I want to move across the menu bar horizontally.  The graphic will be to the left of the horizontal menu bar.  When

         ---------------------------------------------------------------------------------------
 Pict        Biography      Photos       Music   etc. is on the bar
         -------------------------------------------------------------------------------------

as one of the selections is made, the picture will travel to that point.

        ---------------------------------------------------------------------------------------
        Biography      Photos    Pict    Music   etc. is on the bar
         -------------------------------------------------------------------------------------
See how the picture icon moves to Music?  Is there a way I can get Biography and Photos to move over so Pict will fit between Photos and Music?  If not, it is okay to just have the picture cover over Photos and point to Music
0
 

Author Comment

by:msparrow
ID: 9728479
Negaytve

The menubar in your sample is just what I am using.  How did you change the color of the border, etc and the font?  Now just imagine a graphic going across it as you point to something on the bar.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 27

Expert Comment

by:negatyve
ID: 9738508
From the same link with the pict moving:

sample: http://www.negatyve.com/EE/menubar/menubar.html
source: http://www.negatyve.com/EE/menubar/menubar.zip

the code is all commented.
0
 

Author Comment

by:msparrow
ID: 9740343
Thanks Negatyve

this is just what I wanted.  Now, to answer the other question:  how do I link the things on my navigation bar to the page they should go to (i.e., click on music and it goes to music page?
0
 

Author Comment

by:msparrow
ID: 9740365
Now Negatyve:  how do I accomplish the remaining items in my question list?
1) How do I change the color and font properties of the menubar

2) I want to add sound as the cursor hits spots on the menu bar. How do I do this?
3) How do I link the items on my menu bar to the correct pages?
thanks mbs
0
 
LVL 27

Accepted Solution

by:
negatyve earned 150 total points
ID: 9741636
>1) How do I change the color and font properties of the menubar


I have changed it (look my code, this is from the sample file):

// MENU STYLE MODIFICATION
this.path.menu_mc.setStyle("color", 0xFF6600);
this.path.menu_mc.setStyle("themeColor", "haloOrange")
this.path.menu_mc.setStyle("fontSize", 10);
this.path.menu_mc.setStyle("fontFamily" , "Verdana");

>2) I want to add sound as the cursor hits spots on the menu bar. How do I do this?

Turn on your speaker, the sound is already there! :) (this code is inside the sample movie):

// CHANGE HANDLER SUBMENU SETTING
this.path.listener = {path:this.path};
this.path.listener.change = function(evt)
{
      this.path.click_sound.start(0,1);

>3) How do I link the items on my menu bar to the correct pages?

please, msparrow, look at my code, the link is already there, just commented:

this.path.listener.change = function(evt)
{
      this.path.click_sound.start(0,1);
      var item = evt.menuItem.attributes.label;
      this.path.text_area.text = "You have just clicked over '" + item + "' item!";
      // DECOMMENT THIS LINE
      //getURL(item + ".html", "_blank");
};


0
 

Author Comment

by:msparrow
ID: 9741953
thanks negatyve.

I did not look at the code because I am away from my computer with Flash on it.  I'll look at the code when I get home.  The sample works perfectly.  Thanks again.
mbs aka msparrow
0
 
LVL 27

Expert Comment

by:negatyve
ID: 9741976
that's ok! :)
0
 

Author Comment

by:msparrow
ID: 9742004
Negatyve:
I have one other question.  Is there a way to return the picture cursor back to the starting point (in this case to the left of the menu) after a selection has been clicked on?  I noticed that the picture cursor remains in the position it last moved to.  I would like to return it to the margin if possible.  Any suggestion? Also, I just purchased Flash Mx 2004 Professional.  Any suggestions on a good detailed book that can help me through this.

thanks, mbs
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Action Script commands 3 223
Flash movie or gif/animation? 3 943
Consuming WCF in Action Script 3 [ flash Develop ] 3 335
Google Chrome pepflashplayer.dll 8 208
This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question