Flash Menu
- Started
- Last post
- 9 Responses
- kbags
Okay, friends...I'm looking for a flash tutorial:
You know that simple menu that has a handful of menu items horizontally arranged across a page? When you mouseover a menu item, a little bar slides under that item? When you mouseover another item, the bar slides across to that item...and so on. Sound familiar?
- moveinspace0
look here
- moveinspace0
no prob now get to work
- kbags0
Hmmmm...so that's the right effect I'm going for, however I'm looking to make the slider slide off the screen on roll off.
Anyone?
- F_180
just change the inital X coordinates to something negative, that will take it off the stage. the amount depends on how big your stage is and where the MC is positioned on it.
- kbags0
if this is my mouseover:
on (rollOver) {
slider.xMove = button_1._x;
}then what's the rollOff I need to create to do this?
- shellie0
hey guy, i think you really need to work this one out on your own. it's the perfect thing to start with.
you're going to have to create a loop that checks if youre mouse is between certain coordinates. If your mouse is outside of that "box" you create, you tell the sider to go off to the left where you cant see it or where it's masked out. think it trouth logically.. when you've gotten somewhere, even if it's not working, then come back and we can help you debug it.
make your brain hurt. it's good for you and it'll make you a stronger programmer. That's how i learned to do that kind of stuff. i just went as far as i could go, and got the least amount of help i could get away with. it takes longer but the next time around you rock it solid on your own.
good luck!
- jpea0
following that, look into hitTest
- kbags0
thanks for the tough love; you guys are so right.
...so I took your advice, and got it to work!
victory tastes sweet.
thanks =)