How To Make The Rollover? XML Menu
Hi!
I was trying to make my menu and come this far www.icep-design.com/hej but run into problems. So i started all over and made it load from XML but i haven't yet figure out a way to make my submenu. If u take a look at www.icep-design.com/hej and rollover the laserdome button you can see what im going after. I still have no idea how to make it. anybody that can help me?
I post my AS here:
stop ();
import mx.transitions.Tween;
import mx.transitions.easing. *;
//Making submeny invisible
_root.over_mc._visible = false;
//xml test
menuXml = new XML;
menuXml.ignoreWhite = true;
menuXml.load ("menu_new.xml")
menuXml.onLoad = function (success)
{
if (success)
{
menuItem = this.firstChild.childNodes;
for (var i = 0; i < menuItem.length; i ++)
{
item = _root ["button_mc_" + i];
item.upper_text.text = menuItem [i].attributes.name;
item.lower_text.text = menuItem [i].attributes.lower;
//text colors
item.upper_text.textColor = 0x969696;
item.lower_text.textColor = 0xBBBBBB;
//function for submenus
if (menuItem [i].nodeName == "menu")
{
// open a submenu
curr_item.node_xml = curr_node;
item.onRollOver = function ()
{
trace ("hej")
}
}
//rollOver colors
item.onRollOver = function ()
{
//Colors of the text
this.upper_text.textColor = 0x000000;
this.lower_text.textColor = 0x000000;
}
//rollOut colors
item.onRollOut = function ()
{
this.upper_text.textColor = 0x969696;
this.lower_text.textColor = 0xBBBBBB;
}
//trace (this + " >> " + i + " : " + menuItem.length);
}
}
}
//rollOut remove movieclip on submenu
_root.over_mc.onRollOut = function ()
{
_root.over_mc._visible = false;
}
And here is my XML:
http://www.icep-design.com/menu_new.xml
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 12-01-2005, 06:01 PM
View Complete Forum Thread with Replies
Sponsored Links:
Best Way To Make A Rollover Menu?
Rollover menu in Flash CS3, ActionScript 3.0
This is my first project in Flash and I am having trouble with this. Does it make sense to have a button that plays a movie clip of the menu which contains buttons? Or should the button be a rollover and in the over stage the menu pops up and there are buttons in there?
Finally, if I have a button that plays a movie clip with buttons that need to gotoandplay a specific frame, should the script for those buttons be in the menu movie clip or in the main timeline?
I hope this makes sense, please let me know if I can clarify!
I appreciate any help...Thanks
View Replies !
View Related
How To Make Submenu For A Rollover Menu?
I've figured out how to create a rollover pop-up menu with 10 buttons with actionscript but now I'm stuck b/c I need to make submenu pop-up for those buttons. Basically, a pop-up within a pop-up.
The actionscript I attached to the original is the following:
-------------------------------------------------------------------
onClipEvent (enterFrame) {
// if the mouse IS over the menu ...
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
// if the menu is NOT fully open
if (this._currentframe<this._totalframes) {
// go to the next frame of the menu opening sequence
nextFrame();
}
// if the mouse is NOT over the menu
} else {
// if the menu is NOT fully closed
if (this._currentframe>1) {
// play the previous frame of the menu opening sequence
prevFrame();
}
}
}
_----------------------------------------------------------------
Should I do the same with the submenu? I attached my sample to show you.
Thanks!
Furpants
View Replies !
View Related
Make Menu Slide Tray Stick On Rollover/then Retract On Rollout
Hi,
I'm trying to make a top horizontal navigation bar that has trays of other sublinks that slides down, stays in place while the user picks which link, then retracts on "release" when they click a link or when they move their cursor off the sublink tray.
I've tried two approaches, but I'm not having any luck. Can anyone give me a boost?
FIRST METHOD:
I've tried making each drop down slide tray a separate movie clip all on the first frame (a one frame movie), and each has its visibility set to "0". When someone rolls over one of the main links to open the corresponding sublink tray, it becomes visible. Problem is, how do I get it to stay visible while the person moves their cursor off the main link and down onto the tray, then get the tray to disappear again when they roll off the tray?
SECOND METHOD:
I've also tried setting up each sublink tray on a different frame. On frame one, all the subtrays aren't showing. If you mouseover main link 1, with a GotoandStop command, it goes to frame two where the sublink tray for main link 1 appears. That's working okay, but problem is, how do I get it to disappear again when someone either clicks one of the sublinks, or when they move their cursor away from the subtray?
I tried adding a GoToandStop command to one of the buttons in the sublink tray, which on Release would send you back to frame 1, where all the submenu trays are retracted. But that isn't working for some reason. Also, that would only work if someone clicks a link. What if they don't click a link?
Are either of these methods correct for this type of action...and if so, which one, and what should I do? Thanks for any help!
View Replies !
View Related
Trying To Make A Button Rollover, Wait And Recheck Rollover
hi. i'm mostly comfortable with the graphical elements of using flash and there a gaps in my knowledge when i want to polish things up.
i have a bunch of buttons which, when rolled over, trigger some text to sweep accross in an area above the buttons and sweep away when rolled out.
this works nicely but if the viewer sweeps the mouse over a few buttons quickly all the MCs with text in play and it gets very messy.
the only way i can think to tidy this up is to make the button delay when rolled over and recheck about half a second later. if it's still rolled over then it plays the MC. i tried this the obvious way (triggering a small MC with onRollover > play MC at the end) but it needs the actual act of rolling over to trigger so i had to roll out and over again which defies the point >.<
i realise this is a really specific problem and it's very cheeky to ask others to solve my problems but if any of you have come accross similar problems and can point me in a better direction i'd really appreciate it.
View Replies !
View Related
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.
View Replies !
View Related
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
View Replies !
View Related
How To Make A Button With A Rollover
Hi all
Im new here, so greetings...
My idea is to have a text button (easy enough)but with a movie clip that hides the text button in the UP state. When the user moves the cursor to the movie clip it moves away revealing the text button underneath which can then be clicked on...
If you understand what I am after I would appreciate any ideas on how to do this....
Cheers
View Replies !
View Related
Want To Make Rollover Slideshow
Hi,
I want to make a mouse over slideshow.
Let me be more precise. i want to have my slideshow scroll form left to right if I mouse over the right side and scroll from right to left if I mouse over the left side.
Can anyone help?
Thank you
craggo
View Replies !
View Related
How Can I Make A RollOver Work Constantly?
im using a movieclip that im using as a button. i hav these actions attatched:
onClipEvent (load) {
Mouse.addListener(this);
}
onClipEvent (enterFrame) {
this.onRollOver = function() {
_rotation += 10;
};
}
is ther anyway that i can hav the rotation increased the entire time the mouse is over the mc? thanks
View Replies !
View Related
How Do I Make Rollover Without Little Hand Pointer
I made these rollovers on a MC
so when over it I can see the little pointer hand
I want it to just be a rollover with normal pointer so i can try to make little buttons animate in the mc that you can click
How do I do this please mainly the pointer part
here is an example of a great site that does what I want to do
www.oringe.com
???
One
View Replies !
View Related
How Do You Make Other Buttons Disappear On Rollover
i created a movie with 3 image buttons on it. i want button B and C to dissapear on rollver of button A.(and viseversa) all buttons have an up,over, down and hit assigned to them(i don't know if that matters)
i used this script i found here on button A but id did nothing when i tested it.
on(rollOver){
buttonB._visible = false;
buttonC._visible = false;
}
on(rollOut){
buttonB._visible = true;
buttonC._visible = true;
}
i know i missed something somewhere, can anyone help?
View Replies !
View Related
[F8] Using A For Loop To Make Rollover States
hey guys
i have a number (24 to be exact) of movieclips on my stage. i want to make rollovers for all of them and rather than writing out 24 lots of rollover code, i figured you must be able to use a for loop to do this. so, so far i have:
Code:
for(var i=1; i <= 24 ;i++){
}
duh the movieclips on the stage have the instance names 'wedge1' .. to 'wedge24'. but now i'm stuck as to what to write inside the for loop. for example, how would i set the alpha of the movieclips (currently 0) to 100 on rollover?
hope someone can help me out thanks!
emma.
View Replies !
View Related
How Do I Make Flashing Rollover Buttons
Hi all
Just joined as I am stuck with the above!!!
I have already made a nav bar in fireworks with rollover animation but the guy who I am building the site for has decided he wants the link buttons to flash when the user hovers over them instead of just changing to a different colour.
I have searched the internet to try and find a way but have found nothing.
I have built the site in Dreamweaver CS3 and just need the button to go from #681E13 (up state) to #4A612D flashing with #681E13 when the user hovers over it.
I am using Flash CS3 Professional.
Any help with this matter would be greatly appreciated.
Thanks in advance
James
View Replies !
View Related
I Wanna Make A Rollover Banner
Hi.
I want to make a rollover banner which when i move to cursor over it will expand over the website and will contract if i move the mouse off of it.
I wonder how can i do that? Because if i have a motion tween which expands the movie clip on the stage lets say from 200 height to 400 height the exported swf has 400 height anyway and i will not be able to use a part of the site because of the flash.
So i want to make it resize the stage when i start the motion tween. And back to 200 when i roll out.
How can i resive the whole document from within flash using AS 2?
Thanks.
View Replies !
View Related
Make The Movieclip Play On Rollover
Hey USers,
I found this piece of code floating in the forum
ActionScript Code:
onClipEvent (load) {
// Set to true to loop forward playback.
loopForward = false;
// Set to true to loop reverse playback.
loopReverse = false;
// Set to true to play clip in reverse.
rewind = false;
}
onClipEvent (enterFrame) {
if (rewind) {
if (_currentframe == 1 && loopReverse) {
gotoAndStop(_totalframes);
} else {
prevFrame();
}
} else {
if (_currentframe == _totalframes && loopForward) {
gotoAndStop(1);
} else {
nextFrame();
}
}
}
on (rollOver) {
rewind = false;
}
on (rollOut) {
rewind = true;
}
But it plays the movieclip automatically, but I want it to start playing(doing the code) when rolling over the movie clip, Im more of a designer and not a AS programmer
thanks a bunch grtz
View Replies !
View Related
Make The Slide Menu Look Like The Bounce Menu From FL...
Hi all
I was wondering if someone can exlpain me how to transform the size of the slide menu (the one from the tutorials of Kirupa) to fit the size of the button, my english is quite basic, so you can see it here ! what I mean.
Thanks you very much in advance !
PS : sorry FlashLoaded , I alredy own the bounce menu btw (when It was from BJ..)
View Replies !
View Related
How To Make Rollout And Rollover Effects On A Button?
Hi Guys,
I would like to know how can I add rollout and rollover effects to a button. Here´s what I want to do:
Let´s say I´ve got a green circle, which will be my button. When the user pass the mouse over it, the circle grows in a fluid animation, and when the user takes the mouse out of it the circle shrinks fluidly... Do I have to use the AS tween class? Can anyone help? Thanks!
View Replies !
View Related
[F8] Need AS To Make Objects Shift And Expand On Rollover
Hi all,
I've come with a dilemma that's stumped me a bit. Here's the deal:
I have 28 identical boxes set up on the stage, arranged 4 down and 8 across.
Basically I need two things- 1. When rolled over, I need an individual box to move up to a predefined x,y coordinates. and 2. I need the other boxes to shift and hide a bit to make room for the box below the pointer.
A great example of this is at Leo Burnett's site: www.leoburnett.com, if you click on "Our People".
So far this is what I've managed to come up with:
I've set up 4 masks around an image that will grow away from the mouse at a speed of 5, ultimately stopping using, for example, code like this:
onClipEvent (enterFrame) {
endX = _root._xmouse-20;
endY = _root._ymouse;
_x += (endX-_x)/speed;
_y += (endY-_y)/speed;
}
so that takes care of the reveal of the image. Also, on rollover, I have the individual image shifting to a predetermined x,y coordinates.
I'm not really looking for anyone to write lengths of code for me, more just send me in the right general direction in terms of having everything on the stage shift away, and then back proportionally.
Any and all advice would be hugely appreciated!
View Replies !
View Related
How To Make A Button Execute Within A Mc That Has A RollOver Atached.
Please, could you help me with an explanation of how I can put a button inside a movieclip? I used the movieclip as a button. So, when I roll the mouse over the mc, it appears. And when I roll out, it hide. The problem is that I need to put some buttons within the mc. While it doesn´t function because the hit area is the same of the mc, could you please help me with an instruction?
View Replies !
View Related
Rollover To Make Movieclip Advance To Other Frames...?
Hi everyone,
Having a little trouble. What i want is the script on buttons to make a nearby movieclip advance onto different frames.
There will be be multiple buttons sending the movieclip to different frames when the user rolls over.
Structure (top to bottom):
(All one scene)
Container clip (main_mc), inside which is another container clip (system_mc), inside that there are buttons (graphics_but etc.) and the movieclip (3d_layout.mc) and inside the movieclip are the frames i'd like to advance.
I've tried a couple of things:
on (rollOver) {
_root.main_mc.system_mc.3d_layout_mc.gotoAndStop(2 );
}
on (rollOver) {
_main_mc.system_mc.3d_layout_mc.gotoAndStop(2);
}
on (rollOver){
_system_mc.3d_layout_mc.gotoAndStop(2);
}
but on all i'm getting a syntax error.
I'm not even sure i am using the right commands!
Help please....!
View Replies !
View Related
2 Mc's Checking For On (rollOver) Howto Make One Dominant
hiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
i have 2 mcs, one stays in the same place, the other is constantly moving. They are both checking for on (rollOver) and flag a global variable either 1 or 0 whether the mouse is over 1 or the other. This works fine when the mouse is over 1 MC but not the other (which it should be) but when both MC's are at the point of the mouse cursor one makes _global.kill = 0 and the other makes it = 1 I dont know what the value of _global.kill is in the end but I need to make it = 1 making the moving MC dominant........ i have tried several methods but there conflicting and its not good how do you make one dominant??
View Replies !
View Related
Text In Animated Rollover Buttons (Make Me Crazy)
Hi,
My problem is this: Whenever I attempt to make a rollover button (using a movie clip for the 'Over' component)--and have text as part of that button (i.e. "Click Here")... I can never CLICK any part of the text to activate the button animation in a preview, I can click AROUND it, but the text itself is dead. I DO always use a generous block in the 'Hit' component of the button and that works--except for any area covered by the text is off-limits to clicking.
I've TRIED to add another layer in the Movie Clip symbol editor (0% opacity) in front of the text, still no go. I've also tried this in the Button symbol editor.
Any help would be greatly, greatly appreciated.
BR
View Replies !
View Related
How To Make Rollover Movie Clip Buttons Change..
Hi,
I was hoping someone can help me with this one? I've been wanted to know how to do this for a long long time.
If I make a movie clip which say I call "About" for my menu, how do tell it to change its state once its been clicked?
I know the code for making the movie clip act as a button doing a rollover, rollout and release. But it then goes back to the way it was as If I didn't click it.
but I actually want it to stay changed once it was clicked. So lets say it was yellow before it was clicked but turns grey once it was clicked. So you know that you are in that section of "about".
I assume I have to use a variable but I don't know what and do I have to make my menu buttons externally instead of internally?
Thanks,
Ezz
View Replies !
View Related
RollOver Movie Button - Can You Make Part Not Active?
Hey Everyone....
I have a movie clip that has a thumb nail and the thumb nails larger image. I have my AS set so when you roll over the thumbnail it plays the frames within the movie clip so the larger pic shows up.
My problem is that if you roll over where the larger picture is suppose to pop up, it plays the same way as if you were rolling over the thumb nail.
How do i stop this from happening? Preferably without redoing the whole set up.
Heres what it looks like now: http://www.braytongraphics.com/StCroixTanRollOver.swf
Click on Amsterdam, Clifton Park or Delmar to see what i am talking about
If anyone would like to see the FLA file thats here: http://www.braytongraphics.com/StCroixTanRollOver.fla
Any help is appreciated!
Thanxs in advance :)
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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.
View Replies !
View Related
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.
View Replies !
View Related
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.
View Replies !
View Related
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...
View Replies !
View Related
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.
View Replies !
View Related
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?
View Replies !
View Related
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....
View Replies !
View Related
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
View Replies !
View Related
|