Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Help Rollover Menu



Hi! i really want some help
Well, i'm doing a new project for my school and i have many problems with my menu, because i have buttons with the rollover action, but those buttons did not work because they are inside a movie clip. why is that?

the other problem
what i want is that when you put the mouse over the button a sub-menu cames out, but i didn't get it.
i used this code in this .fla
somebody could tellme or send me an example of roll over menu...

please... i will thank you a lot.



FlashKit > Flash Help > Flash General Help
Posted on: 09-13-2003, 06:11 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Menu Fades In On Rollover, But Buttons In Menu Not Working.
Hi,

My menuMC fades in to 100% when rollover the transparent button and fades outs upon rollout the transparent button.
However, the buttons in my menuMC is not working. Logically speaking, with the transparent button on top of my menu bar, it sorta blocked out my menu buttons. Any suggestions/other way around it ?

this script goes to my transparent button

ActionScript Code:
on(rollOver)
{
     _root.menuMC.fade = "in";
}

on(rollOut)
{
     _root.menuMC.fade = "out";
}

this script goes to my menuMc with buttons inside

ActionScript Code:
onClipEvent(load)
{
     this._alpha = 0;
     fade = 0;
}

onClipEvent(enterFrame)
{
     if(fade == "out")
     {
          if(this._alpha > 0)
          {
               this._alpha -= 5;
          }
          else
          {
               fade = 0;
          }
     }
     else if(fade == "in")
     {
          if(this._alpha < 100)
          {
               this._alpha += 5;
          }
          else
          {
               fade = 0;
          }
     }
}

Appreciate what helps i get.

Menu Fades In On Rollover, But Buttons In Menu Not Working.
Hi,

My menuMC fades in to 100% when rollover the transparent button and fades outs upon rollout the transparent button.
However, the buttons in my menuMC is not working. Logically speaking, with the transparent button on top of my menu bar, it sorta blocked out my menu buttons. Any suggestions/other way around it :confused: ?

this script goes to my transparent button

ActionScript Code:
on(rollOver){_root.menuMC.fade = "in";} on(rollOut){_root.menuMC.fade = "out";}


this script goes to my menuMc with buttons inside

ActionScript Code:
onClipEvent(load){this._alpha = 0;fade = 0;} onClipEvent(enterFrame){if(fade == "out"){if(this._alpha > 0){this._alpha -= 5;}else{fade = 0;}}else if(fade == "in"){if(this._alpha < 100){this._alpha += 5;}else{fade = 0;}}}


Appreciate your help. Thanks

Rollover Menu?
I am trying to make a menu that when you rollover each individual item it brings up a seperate page of info but only while over. i have tried using the "tell target" comand assigned to each object on the menu to call the relevant movie clips for each page of info (the first frame being blank w/ a "stop" action) the problem is that the "tell target" is not specific to the menu item. so if you click any where you get all of the different pages at once. any help would be greatly apreciated.
thanks

Menu Help..rollover/out..
hey guys..

i am building a menu like this

--ABOUT-- on mouse over..do below.

-news-

-history

-roster-

-etc-


so on mouse over of about, the news history and roster drop down.

those 2 links are not set up adjacent to eachother so each time i roll off one of the buttons I restart the animation of the menu.

is there a way so that once i mouse over about, no matter where i am around the other links, it stays up.
kinda like it extends the button ABOUT so that that if you roll off one of the links, it doesnt reset the animations

any suggestions?

thanks
dan

Rollover Menu
I am trying to create a navigation menu that pulls down when rolled-over and retracts on mouse out. Can anyone help me??

Rollover Menu
I'm looking for a tutorial that would show me how to create a horizontal menu of buttons that when you move the mouse over a button, a submenu fades in or drops down. And when you move the mouse out, the submenu rolls up or fades out.

I really need some help for this one. If someone could just point me in the right direction that would be killer.

Thanks for your time,
doc

Rollover Menu
Hi folks,
I've just started playing with Flash and I want to do something I think should be fairly simple.

If you have a look at the SWF file, this is what I want to my NAV2.FLA to do.

Unfortunately I'm having some problems. When I rollover the main menu, the sub-menu appears with no problem. However, if I then rollover quickly on another main menu item, it's submenu appears while the first submenu is still open.

Can you see where I'm going wrong?

Kind regards,
Steven

Help Rollover Menu
Hi! i really want some help
Well, i'm doing a new project for my school and i have many problems with my menu, because i have buttons with the rollover action, but those buttons did not work because they are inside a movie clip. why is that?

the other problem
what i want is that when you put the mouse over the button a sub-menu cames out, but i didn't get it.
i used this code in this .fla
somebody could tellme or send me an example of roll over menu...

please... i will thank you a lot.

RollOver Menu
Im working on a menu, and i want it so when you move your mouse away from the menu it will close again. Right now it only closes if you choice one of the other buttons. If i do a rollOut script on the button then it will close before you can click on anything. I've attached it, so you can see what im talking about. Any help would be appriciated.

MX Rollover Menu. Help
I new in flash and i made an roll over menu , but i dont know how to make the rollout command for the menu to go in the first place.

http://www.swouxhall.com/work/mayday/rollover_menu.html

I made a background button("bt bck") under the buttons,with the rollout action on it, but when i go over the buttons the rollout comand is executed so i cant use that.
Also the menu is the same size like the stage and i cant rollout at the top and buton of the stage.

After many hours of thinking i have make a frame button("bt_rollout") with the rollout action on it and its working,the probles is that if i move the mouse to quick the rollout script will
not be executed and the menu will remain open.

Can u please tell me what are my other options to make my menu working, can it be done with action script?
I attached the fla to uderstand what my poor english is trying to say...
Any ideea will help...
THANK You Very Much...

Rollover Menu Help
i used the tutorial for rollover menus to make my portfolio site. I understand the concept completely except I am having a problem.

take a look at the site right now:
www.thinkingimpaired.com/kelsey/gallery.html

as you can see. if you move your cursur too fast. the buttons are not triggered and the menus do not return to their "off" state.

right now, some of the buttons that return the menu to its "off" state are only as wide as the the space in between those columns. while others over lap (i had figured that it would give the person a greater chance to actuallly hit it) but the problem still occurs..

does anyone have an suggestions, purhaps an enterly new way of making these type of menus? for those who do not know of the tutorial. each column is a movie clip that has a button on frame 1. the button has a mouse-over command saying play frame two - in which the menu opens up and stops. then in the area surrounding the menu is another button saying on mouse over go and stop on frame 1.

Rollover Nav Menu
I'm working on creating a nav menu, and really like the concept behind the one on this site.

www.journeychurch.cc

I know how to make the movie clip follow the cursor, but I don't know how to get the submenus to work on the rollover. I've made each of the submenus in Fireworks and they are formatted how I want them to, but is there a way to get them to work as the submenu for the nav bar on the rollover, as on the site?

Rollover Menu
how would you make a menu like this one http://www.designtwist.com/flash%20files/nu3.html

Rollover Menu
hi all im newbie

i currently need to do a flash menu rollover but i have problem doing it. Below is my attached .fla file

can anyone help me with the rollover button so that when i mouse over buttons will come down..

thanxs a million in advance....

Help With Rollover Menu
Running Flash 4 at home, Flash MX in the office.

I'm pretty sure I should be able to do this in 4, but definitely in MX. I'm working on a nav menu that looks something similar to what you see at the top of this page:

http://www.trans-siberian.com

I'm having trouble when I make the sub-menu appear. I had it set, for example, so when you would scroll over "News" a movie clip would appear containing more buttons, but I can't manage to keep it from disappearing when you scroll down to click on them. I'm sure this is something simple, but it's got me stumped . What am I missing?

-Chris

JS Menu On SWF Rollover?
Hello everyone,

I am trying to figure out how to make a javascript menu pop up when you mouseover a flash movie. I'm having no luck just yet (been searching the internet for quite some time). Basically here is what I have to work with and my intentions:

I have a small area, approximately 100 x 100 pixels. Within that area I will have a flash movie the same size of the area (100 x 100) with scrolling names. I created a nice javascript menu using ******* DHTML Menu creator. If, by chance, you are familiar with that program, I did have an animated gif as the background but I guess I'm not too good with gifs since they turn out "jumpy". Anyways, Is there a way to make my JS Menu appear on a flash movie rollover and disappear on mouseout? The menu stretches "over" the page content so I cannot make the entire menu and background with flash unless there is an easy way for flash to expand over page content. I am confined to the 100 x 100 area.

Thanks for your help!

Mark

Rollover Menu
I didn't think it would be this difficult, but I've spent all day and so far haven't made any progress, so if anyone could help me I'd really appreciate it.

I'm trying to make a simple menu in FLASH 5. What I want is to have a Menu button. When the button is clicked, a menu pops up (with Scene Select, Play, Pause, and the like on it). When it is clicked again, the menu goes away.

I know basically nothing about Actionscript, so I tried some pretty simple stuff. I put the Menu bar into a movie clip, and then deleted it in the first frame. I then had the Button send the movieclip to its second frame, where all the content was.

However, The Scene Select, Play, and Pause buttons did not work. I assume it's because they were attempting to alter the movieclip, and not the entire movie. Actually, I'm pretty sure that's what happened because the Quality buttons worked... but only changed the Quality INSIDE the menu bar, and did nothing to the actual movie.

So then I tried having the menu button cause a bar to Mask an otherwise unmasked Menu bar layer. I thought this would probably work, as this would mean the buttons were in the actual movie and not in a movieclip, and the Menu button is just controlling a bar to mask the clip (making it seeable). However, I keep getting this error message:

Target not found: Target="maskbar" Base="_level0"

Both the movieclip and the Instance name are "maskbar."

I'm completely at a loss now for what to do. So if somebody out there has any idea how to do this in FLASH 5, I repeat FLASH 5, please tell me how.

Rollover Menu Help
Hey guys, I just started learning flash.

My problem is that I have a rollover menu which is fine - when I rollon it pops out, and when i rolloff it goes away. However, I want to click on the buttons that roll out but when I roll off the menu dissapears? How can I set it so that the menu will stay there if I roll on the pop out menu, but disappear if I roll off anywhere else?

Any help would be appreciated, I really am getting into this and need to figure it out!

If it matters any - I'm using code in the button that says does the rollon/rolloff and a bit of code in the frames to stop the animation at critical points, and to restart it at the beginning. I think that code is fine, I just don't know how to do what I talked about above.

-Charlie

RollOver Menu HoT
Hi Guys,

I'm trying to work out a few things with this menu i've got - It's confusing me!

How can i

A/ make the menu visible when the file is open, until a menu button is clicked
B/ make the menu smooth when a button is clicked?

Menu Rollover
How do I create a menu rollover like the one on Adobe's website: www.adobe.com/creativelicense/ ? I need to replicate this look on a project. REO

Rollover Menu
Hi there

I know how to make a buttons that open a menu on "rollover". But how do i make the menu disappear when i move my cursor away?

Like on this webpage http://www.danielsenphoto.com/

Simon

XML Menu & Rollover
I followed this tut:
http://www.kirupa.com/developer/acti...pdown_menu.htm

...and customized for my own needs (horizontal as opposed to vertical menu)

However, I need the rollover to change to another movieclip - as opposed to a background color.

I know the instruction is located somewhere within this chunk of code:

// item submenu behavior for rollover event
if (node_xml.childNodes[i].nodeName == "menu"){
// open a submenu
curr_item.node_xml = curr_node;
curr_item.onRollOver = curr_item.onDragOver = function(){
GenerateMenu(curr_menu, this.node_xml);
// show a hover color
var col = new Color(this.background);
col.setRGB(0xf4faff);
};
}else{ // nodeName == "item"
curr_item.arrow._visible = false;
// close existing submenu
curr_item.onRollOver = curr_item.onDragOver = function(){
curr_menu.submenu_mc.removeMovieClip();
// show a hover color
var col = new Color(this.background);
col.setRGB(0xf4faff);
};
}

Yet have no idea how to write the code to tell Flash to replace with a movie clip as opposed to simply changing the color?

My file is located here (in case it helps any to decipher where I am stuck):
http://www.andyford.com/xmlmenu/xmlmenu.zip

Thanks in advance!

"Lefty"

RollOver Menu?
hi everybody.
just created a simple rollover menu with elastic effect, (no Macromedia, just Ming and PHP)
well. i can't make it disappear on RollOut...(check the MovieClip.prototype.removeMenu in the code)
lazy or dumb, the choice is up to you! any suggestions?
max.

the code:
"
function createSquare(target, targetW, targetH, lineW, lineAlpha, lineColor, fillColor, fillAlpha, CurveRadius) {
targetW = targetW - lineW;
targetH = targetH - lineW;
with (target) {
lineStyle(lineW, parseInt(lineColor, 16), lineAlpha);
moveTo(CurveRadius + lineW, 0);
beginFill(parseInt(fillColor, 16), fillAlpha);
lineTo(CurveRadius + lineW, 0);
curveTo(0 + lineW, 0, 0 + lineW, CurveRadius);
lineTo(0 + lineW, targetH - CurveRadius);
curveTo(0 + lineW, targetH, CurveRadius + lineW, targetH);
lineTo(targetW - CurveRadius, targetH);
curveTo(targetW, targetH, targetW, targetH - CurveRadius);
lineTo(targetW, CurveRadius);
curveTo(targetW, 0, targetW - CurveRadius, 0);
lineTo(CurveRadius + lineW, 0);
endFill();
}
}

Stage.width = SW ;
Stage.height = SH;


MovieClip.prototype.elastic_button = function (target, destination)
{
var spring = 0.2;
var friction = 0.9;
var velocity = 0;
var acceleration = 0;
target.onEnterFrame = function ()
{
acceleration = (destination - this._y) * spring;
velocity = velocity + acceleration;
velocity = velocity * friction;
target._y = target._y + velocity;
};
};


wordlist = new Array ();
phrase = 'cat1|cat2|cat3|cat4';
wordlist = phrase.split('|');
num = wordlist.length;


buttonWidth = SW/num;
buttonHeight = 20;
this.createEmptyMovieClip('button', 1);
with (button)
{
createSquare(button, buttonWidth, buttonHeight, 2, 100, '0xFFFFFF', '0xF5B723', 100, 0);

}
button._x=50;
button._y=50;
button.createTextField('buttonText', button.depth, 0, 0, buttonWidth, buttonHeight);
var buttonText = button['buttonText'];
var myFormat = new TextFormat ();
myFormat.font = 'Luxi Sans';
myFormat.size = 14;
myFormat.leftMargin = 0;
myFormat.align = 'center';
myFormat.leading = 0;
myFormat.color = 0xFFFFFF;
buttonText.border = false;
buttonText.borderColor = 0x000000;
buttonText.embedFonts = false;
buttonText.editable = false;
buttonText.selectable = false;
buttonText.antiAliasType = 'advanced';
buttonText._quality = 'HIGH';
buttonText.html = true;
buttonText.htmlText = 'CATEGORIE';
buttonText.setTextFormat(myFormat);


button.onPress=function()
{
removeMenu(button,num);
status.htmlText = 'onPress-->remove';
status.setTextFormat(myFormat);
};
button.onRelease=function()
{
createMenu(button,num);
status.htmlText = 'onRelease-->create';
status.setTextFormat(myFormat);
};


MovieClip.prototype.createMenu = function (target, n)
{
this.onEnterFrame=function()
{
i = 0;
while (i < n)
{
buttons = [];
title = 'button'+i;

buttons[i] = target.duplicatemovieclip(title, num + i);
buttons[i]._x=target._x;
elastic_button(buttons[i],target._height+(target._y+(target._height*i)));

buttons[i].createTextField('mybuttonText', (n + i) * n, 0, 0, buttonWidth, buttonHeight);
var mybuttonText = buttons[i]['mybuttonText'];
mybuttonText.embedFonts = false;
mybuttonText.editable = false;
mybuttonText.selectable = false;
mybuttonText.antiAliasType = 'advanced';
mybuttonText._quality = 'HIGH';
mybuttonText.html = true;
mybuttonText.htmlText = wordlist[i];
mybuttonText.setTextFormat(myFormat);

i++;
}
};
};
MovieClip.prototype.removeMenu = function (target, n)
{
this.onEnterFrame=function()
{
i = 0;
while (i < n)
{
buttons = [];
removeMovieClip(buttons[i]);
i++;
}
};
};
this.createTextField('status',2, 20, 20, 250,20);
var status = this['status'];
status.embedFonts = false;
status.editable = false;
status.selectable = false;
status.antiAliasType = 'advanced';
status._quality = 'HIGH';
status.html = true;
"
Thanx!
Max

Rollover Menu...
I'm not sure where to look or what to search... I want a menu that will have thumbnails on it but also with the user moves his/her mouse the the right the menu will move rotate the thumbnails around until the user finds one of interest. (same thing for when he/she moves the mouse to the right) Can someone help me out?

Rollover Menu
I'm fairly new to Actionscript and am trying to do something that I probably shouldn't be trying to do. I've seen several sites that have this effect though and I really want to use it in my page for work. It's where you rollover over a button and a menu appears then when you rollout the newly displayed menu disappears. You can see what I mean at www.zune.com. Any hints or ideas on how to do this would be greatly appreciated!!!

Thanks,

Erick...

Menu Rollover.
Okay, to start things off I'm not well-versed in Actionscripting ( and if I was I obviously wouldn't be posting this. Anyhow...). My problem is this: I need to create a menu that has about 8 links/buttons on it. When I roll over any given button, I'd like the rest of them to fade into a blur, leaving only the one currently moused-over visible. I'm sure the effect could be pulled off with a little script and some masking effects, I'm just no at the level to pull it all off. Any help would be greatly appreciated. Thanks...

Rollover Menu
Hi there

I know how to make a buttons that open a menu on "rollover". But how do i make the menu disappear when i move my cursor away?

Like on this webpage http://www.danielsenphoto.com/

Simon

XML Menu & Rollover
I followed this tut:
http://www.kirupa.com/developer/acti...pdown_menu.htm

...and customized for my own needs (horizontal as opposed to vertical menu)

However, I need the rollover to change to another movieclip - as opposed to a background color.

I know the instruction is located somewhere within this chunk of code:

// item submenu behavior for rollover event
if (node_xml.childNodes[i].nodeName == "menu"){
// open a submenu
curr_item.node_xml = curr_node;
curr_item.onRollOver = curr_item.onDragOver = function(){
GenerateMenu(curr_menu, this.node_xml);
// show a hover color
var col = new Color(this.background);
col.setRGB(0xf4faff);
};
}else{ // nodeName == "item"
curr_item.arrow._visible = false;
// close existing submenu
curr_item.onRollOver = curr_item.onDragOver = function(){
curr_menu.submenu_mc.removeMovieClip();
// show a hover color
var col = new Color(this.background);
col.setRGB(0xf4faff);
};
}

Yet have no idea how to write the code to tell Flash to replace with a movie clip as opposed to simply changing the color?

My file is located here (in case it helps any to decipher where I am stuck):
http://www.andyford.com/xmlmenu/xmlmenu.zip

Thanks in advance!

"Lefty"

Rollover To Out Menu.
Guys, I have been working on this for what seams like forever and to be honest my example is to embarrassing to post. To give you an example of what I want to achieve. Not this exact effect but the concept. When you go to http://www.zaaz.com and rollover the small ten in the bottom left. A menu shows up and you can rollover and select something but it destroys itself when you roll out. How do you do this?
Thanks ahead of time.

Rollover Dropdown Menu
I searched FlashKit for drop down menu (Flash 5) but most of them use animation with little scripting. I am wondering whether is there any other methods beside those? like fully action-scripted ones? I tried using _visibility and it does not work well.

Rollover Dropdown Menu
How do I create one of those dropdown menus so when you rollover a button, a menu is dropped down?

An example would be great!

Rollover Drop Down Menu
On macromedia's homepage in the macromedia devcon 2002 ad in the main navigation area there is a menu. On mouse over it animates open on mouse out it returns to normal. Can anyone explain how they accomplished this. Any help would be most appreciated.
Thank you

Button With Rollover Menu
I'm trying to make a button, "Languages", so that when I rollover it, there will be a choice of 2 buttons (Languages disapears) "English" and "German". Clicking on one of these buttons takes you to the corresponding language page. I'm not so great with actionscript but I'm trying to pick it up. I'm sure there's a way to do this but how?

Rollover Drop Down Menu
ok...ive got a bit of text that i want to roll my mouse over and a drop down menu appear to the right of it....(this roll over will also fade out a main logo).....the drop down menu will contain other rollover texts that will show pictures....example

we have a word on the flash movie that says computers....you rollover that and a menu appears to the right which says compaq and ibm....you roll over that and a picture of a computer appears to the right of that....got it.....where can i find tutorials that will help me to do this....or if you can could yopu please help me.....thanks i really appreciate any help.

Rollover Dropdown Menu
Hi,

I am having trouble creating a rollover drop down menu. You can go to mysite and roll over portfolio and get an idea of what i want to do. I just don't know how to get the menu to stay down after you roll over it. Can anyone help me?? Please??

I Can't Get My Rollover Menu To Work
I can't seem to get my rollover menu to work. I have attached the .fla file. If anyone can help me it would be much appreciated. Thanx in advance!

Rollover Menu Problems....PLEASE Help
I used a tutorial on this site to make a rollover dropdown menu. I was a little confused, and I must have done something wrong because it doesn not work. I have attached the fla file. Can someone please help me. Thanx in advance!

Menu Rollover Problem
Hi

I want to create a menu button so that when the user rolls it, the menu rolls out and then stays there allowing the user to choose from the menu.

I can't seem to do this as once u roll off the hit state of the button, the menu disapears. Also if i put the hit state the entire size of the menu, the buttons underneath it don't work.

I'm sure theres a way of using actionscript to create this menu system, but can't find it anywhere

Does anyone have any ideas?

Thanks

Please Help Me For This Rollover Menu-Its Urgent
Hi Gurus:

Is there anyone who can help me for how the following menu effect is done. I need the same effect at any cost. Please see the following lind let me know. I am expecting a sample .fla file. please guys help me through.

http://www.andyfoulds.co.uk/main.html

P.S. See how these small square boxes are bouncing and also see how that menu name is coming and moving with the mouse.



Vishu

Menu Rollover Navigation
Hi there,
I have Flash MX.
I noticed that most of the tutorials involving navigation consisted of the user actually clicking on the button for a drop down.
I would like to know if there are any tutorials out there, where I rollover the button and a sub menu appears.
I would like to know how to do a horizontal one like the one on www.macromedia.com and also a vertical one.
If anybody knows of a tutorial please let me know.
Or if you don't and have some hints as to how to start, please tell me.
I am sort of Ok in Action script.
Thanks.

Rollover Menu Question
I have my dropdown rollover menu - each section (portfolio, partners) is made into a movieclip etc etc

I've included the file to make this more clear -- When a person clicks Portfolio, I want the button to goto portfolio/summary.php, yet this is a movie clip so I haven't been able to get it to function.

Secondly, when a person scrolls over About, Main, Contact or Login, I want the drop down menu to disappear... it currently stays in place.

Sorry this was difficult to put into words

Any help would be appreciated

rednax

XML Drop Down Menu, Rollover
Hi,

I have followed Kirupas tutorial on Drop down menus in XML successfully. The code is as follows:


// generates a list of menu items (effectively one menu)
// given the inputted parameters. This makes the main menu
// as well as any of the submenus
GenerateMenu = function(container, name, x, y, depth, node_xml) {
// variable declarations
var curr_node;
var curr_item;
var curr_menu = container.createEmptyMovieClip(name, depth);

// for all items or XML nodes (items and menus)
// within this node_xml passed for this menu
for (var i=0; i<node_xml.childNodes.length; i++) {
// movieclip for each menu item
curr_item = curr_menu.attachMovie("menuitem","item"+i+"_mc", i);
curr_item._x = x;
curr_item._y = y + i*curr_item._height;
curr_item.trackAsMenu = true;

// item properties assigned from XML
curr_node = node_xml.childNodes[i];
curr_item.action = curr_node.attributes.action;
curr_item.variables = curr_node.attributes.variables;
curr_item.name.text = curr_node.attributes.name;

// item submenu behavior for rollover event
if (node_xml.childNodes[i].nodeName == "menu"){
// open a submenu
curr_item.node_xml = curr_node;
curr_item.onRollOver = curr_item.onDragOver = function(){
var x = this._x + this._width - 5;
var y = this._y + 5;
GenerateMenu(curr_menu, "submenu_mc", x, y, 1000, this.node_xml);
// show a hover color
////var tint = new Tint(this.background);
////tint.setTransform({rb:5, gb:5, bb: 0});
var col = new Color(this.background);
col.setRGB(0xffffff);

};
}else{ // nodeName == "item"
curr_item.arrow._visible = false;
// close existing submenu
curr_item.onRollOver = curr_item.onDragOver = function(){
curr_menu.submenu_mc.removeMovieClip();
// show a hover color
//var Object = new Object(this.backgrounda);
////var tint = new Tint(this.background);
////tint.setTransform({rb:5, gb:5, bb: 0});
var col = new Color(this.background);
col.setRGB(0xffffff);
};
}
curr_item.onRollOut = curr_item.onDragOut = function(){
// restore color
var col = new Color(this.background);
col.setTransform({ra:100,rb:0,ga:100,gb:0,ba:100,b b:0});
};

// any item, menu opening or not can have actions
curr_item.onRelease = function(){
Actions[this.action](this.variables);
CloseSubmenus();
};
} // end for loop
};

// create the main menu, this will be constantly visible
CreateMainMenu = function(x, y, depth, menu_xml){
// generate a menu list
GenerateMenu(this, "mainmenu_mc", x, y, depth, menu_xml.firstChild);
// close only submenus if visible durring a mouseup
// this main menu (mainmenu_mc) will remain
mainmenu_mc.onMouseUp = function(){
if (mainmenu_mc.submenu_mc && !mainmenu_mc.hitTest(_root._xmouse, _root._ymouse, true)){
CloseSubmenus();
}
};
};

// closes all submenus by removing the submenu_mc
// in the main menu (if it exists)
CloseSubmenus = function(){
mainmenu_mc.submenu_mc.removeMovieClip();
};

// This actions object handles methods for actions
// defined by the XML called when a menu item is pressed
Actions = Object();
Actions.gotoURL = function(urlVar){
getURL(urlVar, "_blank");
};
// message function was here
Actions.newMenu = function(menuxml){
menu_xml.load(menuxml);
};

// load XML, when done, run CreateMainMenu to interpret it
menu_xml = new XML();
menu_xml.ignoreWhite = true;
menu_xml.onLoad = function(ok){
// create main menu after successful loading of XML
CreateMainMenu(10, 10, 0, this);
};
// load first XML menu
menu_xml.load("totvmenu1.xml");



My problem is when a rollover is performed this code simply assigns a new colour. I need a new image to be displayed i.e movie clip. Does anyone know how to do this?? Feel free to email if you can

Thanks

Chris

Menu Rollover Stuff
k so what im trying to do is have this black circle with different icons on it, only a quarter of the circle will be visible so i want it so that when they move their mouse over the circle part the icons will start circling (on a circular motion guide slightly smaller then the black circle), iv tried various things and have most of it done but i just dont think im doint it right,

any suggestions?

Rollover Rollout Menu
I am trying to make a menu where each button, when rolled over makes the over buttons below move. and when rolled out it goes back. I've got this part down, but I want to be able to click on buttons that appear beneath the button I'm on, but when I roll off the buttons go back to normal. Can someone please help?

Thanks a lot!

[CS3] [AS2] Problem With Menu Rollover
Hey guys, I'm having a problem with the file attached. I cant seem to get it to work properly. It's a menu for a site I'm building and the rollOver and rollOut's dont seem to be working properly. I'm sure I could do this using the timeline, but I want it all done in actionscript, which I'm not overly experienced in. I apologize if this is a dumb question.

It should function like the menu on icoke.ca.

Any help is appreciated, Thanks!

[F8] Rollover Menu Trouble
I'm working on a rollover menu with buttons. So far I have the buttons working and the rollover works, except I get a horrible hiccup in the rollover when the user maximizes the window and rollovers the menu beyond the stage.

I have it set up like this: I have a movieclip that is my slideout menu, inside it I have my buttons that will direct the user to various pages. I figured out how to get the buttons working by using onMouseMove for the slideout menu movieclip. The problem with this is that when the user rolls over the menu when it's outside the stage area ( to the right of the stage in the file), it still works. So I'm guessing I would need to come up with a way to restrict it to the stage area only, but I don't know if this is right or how to tell it to do this. I also thought that if there was a way to fix the window size so the user can't maximize the project would also be a solution, but again I don't know if this is possible or how to do so.

I've cut my project down to the bare bones to show you what's happening. There is the mainTest.swf which loads the menuTest.swf into it. Launch the mainTest.swf, maximize the file, and then rollover the area to the right of the stage to see what I'm talking about. If anyone could help me or point me in the right direciton, I would be very greatful.

Double Rollover In A Menu
Hi,

I am creating a menu. You can see what it looks like so far:

http://rogerioboccato.com/menu/menu.swf
http://rogerioboccato.com/menu/menu.fla

and this is the script:
AG_logo.stop();

hover.addEventListener(MouseEvent.ROLL_OVER,startC lip);
function startClip(e:MouseEvent):void {
AG_logo.gotoAndPlay(1);
}
hover.addEventListener(MouseEvent.ROLL_OUT,finishC lip);
function finishClip(e:MouseEvent):void {
AG_logo.gotoAndPlay(7);
}

my problem is that I want to add rollover actions on the menu items and make them clickable. This has been impossible because there is a giant invisible button (called "hover") that I have used to make the menu fade in when you rollover it and fade out when rollout...... This giant button overrides any kind of button action inside the menu. Any suggestions??

Is there a way to make the menu fade in when you rollover it without using a button (I don't the cursor to be changed into that little hand if it is not on top of a menu item, understand?)


I tried to be as clear as I can... If you have any questions, please let me know! I appreciate your help very much!!!

thanks

Menu Resizing On Rollover
I'm looking to duplicate the fantastic menu used at http://www.corzo.com/flash.htm

Skip the intro and you'll see the home menu. It resizes on rollover and the background changes on rollover of the buttons.

I've got the button rollovers to work but I'm having mental troubles comprehending how to deal with two rollover commands.

OnRollover and onRollOut for the menu to resize it as well as onRollover for the buttons to change the background image.

Can Flash/Actionscript handle two onRollover commands - one on the movie clip itself and one on the buttons inside the clip?

The menu is so simple and beautiful but it's obviously a bit beyond me to create. Any help would be appreciated.
Nick

Rollover Menu Problem
Hello...

Movie attached below. I need some help with rollover menus.

1) I have created a simple movie that have 3 globes and once a user mouse overs any particular globe a sub menu should roll out.

2) once this menu is visible i want the user to be able to mouse over any individual category for a further info box that rolls.

3) This info box would be button that would take the user to the relevant web page.

The problem is in step 1. i have got a mc (menu_1) which has an invisible button for rollover n rollout and another movieclip (planets) inside this menu_1 mc on the 'Buttons' layer.

the planets mc has the buttons for step 2.

The rollover function doesn't work and i can't mouseover the sub menus

I know i am doing something very stupid...

can someone help please...

Copyright © 2005-08 www.BigResource.com, All rights reserved