Alrighty, although ive been a flasher for quite sometime im still not keen on my AS yet =)
I have this little problem,
I have an MC, which inside the MC has a button hit area, and the MC itself is a “button” ive created. ANd when you rollover the button, the mc plays and it gets bigger, and when you roll out it gets smaller.
I used a motion tween to get the button to move bigger etc, and the button has these actions.
on(rollover){
play();
}
on(rollOut){
play();
}
Now that we got all that out of the way, my question is, sometimes if you’re quick, the mouse never triggers the rollOut event causeing the button to stay big, but when you roll back over is grows small, kinda the oposite of what its supposed to do…
How do you keep it so that no matter what, when your not on the button, it returns back to normal?
(and i dont want to use the button because its hard to get smooth animation inside the button…)
Hey Ray… assuming you are using MX since you are using on handlers on a movie clip… I have posted a .fla file of a ball that grows and shrinks on rollOver and rollOut.
The best thing about scripted motion of this is that…
Even if it isn’t fully grown, it doesn’t jump to the end of the tween and shrink, it just shrinks from the current location, which makes it MUCH more smoother.
PS: My file could stand to be optimized I am sure, but I whipped it up in less than a minute
Right before i downloaded your Movie, i figured it out.
Murphy’s law Dictates that if you ask for help, ussually you figure out the answer before your told the answer. lol
I did see your little movie, and yes thats exactly what i was thinking of. And Thanks for helping me out, sometimes im just a moron and cant think of how to do things and i actually do know. lol
You gonna be online tonight? if so we’ll talk, script, etc =) lol
Man im loving this scripting, i didnt think i could ever script in flash, but its proving to be fun and kinda easy =)
and opened alot more ideas for me now lol
Wait… so what you’re telling me is that you DONT script in rocks? So what do you script on? a computer? AH damit, ive been wasting my time scripting in these rocks, scanning them in, OCR the thing, and importing it into flash… ak!..