View Full Version : Roll Over Buttons Don't Work Correctly!
NEONecd999
06-25-2002, 04:48 PM
Take a look at the attached zip with an swf and fla. When you hover over it very fast many times, at a point you will notice that the button gets stuck in its roll over state. What did I do wrong? Should I go about this a different way? Thanks, Edan.
yup! I think so. are you trying to make the button spring back and forth?
NEONecd999
06-25-2002, 06:31 PM
in this instance, yes, but I have this problem with all of the roll over & out that I create. Any ideas? How do you choose to create the rollover&out buttons?
Thanks
drugie
06-26-2002, 07:53 PM
it might be me, but your .fla doesnt work.
Also you .swf seems to be working fine for me.
maybe it depends on the processor.
i have 1.5 GHZ
:D probably he did it with Flash MX???? I first opened it with Flash 5 and got an error message. so, i used Flash MX to open it.
NEONecd999
06-26-2002, 09:58 PM
you got it, I used Flash MX. I probably should've used Flash 5 to show you guys.
How about someone posts an fla or describes how they would put together a roll in & out button?
drugie
06-27-2002, 08:58 PM
i may not be the smartest guy.
since i dont know action script.
I only know basic action script. lol
but i was still able to do the roll over thing.
I am guessing you can use action script.
If you cant.
Yay....makes me look smarter.
O well. It still took me a couple of minutes.
Plus I dont really like Flash MX.
The layout has changed alot.
Whoops.
Lol.
I read your post again.
This zip has a fla and an swf in it but it doesnt explain how to do the rollover, rollout stuff
I am leaving it here....just in case.
Lol
I used Flash 5
grimm
06-27-2002, 09:31 PM
I don't have mx so I couldn't open your fla...
The rollover and out are pretty basic, Depending on what you want it to do.
Create your button> place your button on the main stage in frame 1>(now for the scripting) open the actions window>click on basic actions to open the list of basic actions. Use the "On Mouse Event">make sure you then select rollover>then you need to put your action in. for this I'll put my action as "goto and stop"> thenyou need to determine where you want it to goto> lets say we want to go to frame 2...
code should look like this so far:
on (rollOver) {
gotoAndStop (2);
}
now that you got there you need to know how to get back. so do the same as previous.. Use the "On Mouse Event">make sure you then select rollout>then again the action of returning to your begining point frame one.
so this code would look like this.
on (rollOut) {
gotoAndStop (1);
}
now you have a rollover and out...
full code:
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
As i said I don't know what your using it for so i hope this helped
NEONecd999
06-28-2002, 02:09 AM
yeah, that's exactly how I did it in the fla I had attached.
But about the "itried" thing you attached... that's really screwed up. What were you trying to do? Sorry about not making it in Flash 5 (or 4 for that matter), I think I am just too lazy to redo it.
The main reason I like using Flash MX is that it compresses the swf with Flash Player 6 to sometimes half the size Flash 5 would do with Flash Player 5. I didn't really want to buy it, so I downloaded the trial and got some crack to take care of the 30-day thing. It was a difficult adjustment for me at first, but I started doing more work with Flash MX and it's just something to get used to. The only thing I don't like about it is all that stuff on the side, stuff like "Answers" and whatever, stuff that connects you to the internet. I don't know what's up with that, it could have been a lot better with the color mixer and the library on the side as well as some other windows like transform and align. The actionscript window is a pain in the @$$, but it is something to work around. But then again, I can always create a layout to load up each time I go into Flash.
Okay, back to the topic--
Now, here's a question:
Go to knoll.com/a3i, after the intro choose "components", after loading choose "CLICK TO LAUNCH SECTION" and then click on any of the components. A screen will come up will 3 buttons on the botton-left. After playing with them, you'll notice that they work differently than a "regular" roll in & out button. For example, if you rollout of the button before the roll in MC finishes playing, it completes the roll in MC and then plays the roll out MC.
Anyone want to explain or post an fla on how they would go about doing that kind of effect?
drugie
06-28-2002, 03:03 AM
omg.
when i was trying to sleep this thing came in my head.
I was really confused on what you were asking.
Thats why my itried.fla is messed up.
I think I know what you want.
The knoll.com/a3i was confusing as heck.
I think you want where a button plays a full movie on rollout before going to the other movie.
drugie
06-28-2002, 03:25 AM
wow.
at first i quit cuz i was really confused.
then i went back to laying.
then i thought about it.
Is this what you want?
Its a button that plays a movie and then goes back to the rollover state.
NEONecd999
06-28-2002, 01:17 PM
yeah, that's good. I transformed your Itried roll over to a rollover like the one in A3i. If you roll out before the roll in MC finishes playing, it doesn't just jump to the roll out MC, it plays the roll in MC, and then plays the roll out MC. (Well, in the example I provided they are not separate MCs, but they could be). Take a look.
drugie
06-28-2002, 02:49 PM
I d/l'ed it and it worked good.
Lol.
I hope I helped.
:D
Flash rocks
if you have some really good stuff you should submit some of your flash work to www.newgrounds.com
i love that site
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.