copirite
01-16-2008, 01:44 AM
alright, heres how it all goes.... this is doing my head in I have tried several different ways to go about this.... any help would be great, ok I have an animation that (as we all know you can't put a button on top of another button) but I have got a menu that doesn't contain a background but when you rollOver one of the menus a submenu slides down from it, problem being when you rollOut you have to make the menu go away.... so I made a backing button that acted as the space for the background (so the menu didn't go away I have 4 frames each has different movie clips in them to do different animations now on the backround button I have the AS:
on (rollOver) {
_global.rolled = 1;
}
on (rollOut) {
if (restaurant.rollOver == true) {
_global.rolled = 1;
}
if (resmenu.rollOver == true) {
_global.rolled = 1;
}
if (resbook.rollOver == true) {
_global.rolled = 1;
}
else {
_global.rolled = 0;
}
}
rolled being a defined value to allow me to detect when it has been rolled off on all the buttons in it (which are all inside MC's so all the buttons slide up at the same time and do the same thing at the same time) on the first frame buttons I have:
on (rollOut) {
gotoAndPlay("out");
}
on (rollOver) {
_root.gotoAndStop("restaurantOver");
}
on (release) {
getURL("restaurant.htm","content");
}
and that sends it to the second frame to do its thang, which is where it is screwing up! it gets to the second frame and is detecting the rolled number because I have setup a MC that reads it and traces it onClipEvent (enterFrame)
and on the second frame buttons is something along the lines of:
on (rollOut) {
gotoAndPlay("out");
}
on (rollOver) {
_global.rolled = 1;
}
on (release) {
getURL("restaurant.htm","content");
}
right now after you get off the background button and you roll onto one of the buttons above it the _global.rolled = 0 so it then goes to the restaurantOut (which is the next frame) any ideas as to how I can change this or fix it I was thinking about defining values rather than trying to detect a rollOver on all the buttons (yes all the buttons have had a value set to them for export for actionscript)
cheers guys for any help you can give me, the answer might be simple but the bloody thing is eluding me right now so... sorry if it appears as i'm a dumb arse! :D
on (rollOver) {
_global.rolled = 1;
}
on (rollOut) {
if (restaurant.rollOver == true) {
_global.rolled = 1;
}
if (resmenu.rollOver == true) {
_global.rolled = 1;
}
if (resbook.rollOver == true) {
_global.rolled = 1;
}
else {
_global.rolled = 0;
}
}
rolled being a defined value to allow me to detect when it has been rolled off on all the buttons in it (which are all inside MC's so all the buttons slide up at the same time and do the same thing at the same time) on the first frame buttons I have:
on (rollOut) {
gotoAndPlay("out");
}
on (rollOver) {
_root.gotoAndStop("restaurantOver");
}
on (release) {
getURL("restaurant.htm","content");
}
and that sends it to the second frame to do its thang, which is where it is screwing up! it gets to the second frame and is detecting the rolled number because I have setup a MC that reads it and traces it onClipEvent (enterFrame)
and on the second frame buttons is something along the lines of:
on (rollOut) {
gotoAndPlay("out");
}
on (rollOver) {
_global.rolled = 1;
}
on (release) {
getURL("restaurant.htm","content");
}
right now after you get off the background button and you roll onto one of the buttons above it the _global.rolled = 0 so it then goes to the restaurantOut (which is the next frame) any ideas as to how I can change this or fix it I was thinking about defining values rather than trying to detect a rollOver on all the buttons (yes all the buttons have had a value set to them for export for actionscript)
cheers guys for any help you can give me, the answer might be simple but the bloody thing is eluding me right now so... sorry if it appears as i'm a dumb arse! :D