Solved

Making a graphic move to selection on menuBar

Posted on 2003-11-11
10
462 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
  • 6
  • 4
10 Comments
 
LVL 27

Expert Comment

by:negatyve
Comment Utility
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
Comment Utility
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
Comment Utility
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
 
LVL 27

Expert Comment

by:negatyve
Comment Utility
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
Comment Utility
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:msparrow
Comment Utility
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
Comment Utility
>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
Comment Utility
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
Comment Utility
that's ok! :)
0
 

Author Comment

by:msparrow
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
flash cs6 4 334
bandwidth 5 64
adobe flash plugin has crashed while listening to pandora 2 62
flash in chrome 4 65
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…
I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

762 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now