I’m trying to achieve an effect such that when a user rolls over a movie clip, a new movie clip appears, enlarges and fades out over the original. Sorry no example, i just cooked it up in my head.
I’ve managed to attach a movieclip to the main stage, but I can’t get it to ripple out, so to speak, like I wanted to.
I’ve been trying to do it by altering the height, with, and alpha with a loop, but something’s just not right. The following code is attached to the movie clip I want this to happen for. New to AS, be gentle!!
for loops execute in 1 frame. If you want to see the fade, you’ll have to change your _height, _width and _alpha over a few frames, with a onEnterFrame handler for instance.
Now when I roll over I get the desired effect. However, if I then roll out of the movie, then rollback into it, the loop just starts repeating. I’m thinking I’m not using remove and/or delete in the right context or the right way?
The code is on a movie clip on the main timeline, which lasts for about 6 frames.
but now a couple more questions… I’d like the effect to repeat for the duration of the mouseover, any way to do this? Also, if I remain over the clip until the “clone” is removed, my cursor remains a hand instead of turning back into a pointer! Help a novice out!!
Not sure if this is what you’re looking for, but you might give it a try. I also simplified the enterframe alterations using *= and -=. These just say, “aaronClone._yscale *=1.1;” take aaronClone’s yscale and multiply it by 1.1.
OK, that’s a cleaner approach I think, but in Control Test movie, if I’ve seen one whole cycle of the code (make sense? alpha gets all the way to 10, and the mc is rescaled…) then when I rollout of the mc, the mouse doesn’t change back to a pointer, it’s a finger still. until I roll out of the stage altogether and roll back in.
Any help in that area? Sound familiar? Forever in debt to kirupa once again.
*Originally posted by planetfour *
**OK, that’s a cleaner approach I think, but in Control Test movie, if I’ve seen one whole cycle of the code (make sense? alpha gets all the way to 10, and the mc is rescaled…) then when I rollout of the mc, the mouse doesn’t change back to a pointer, it’s a finger still. until I roll out of the stage altogether and roll back in.
**
Sorry to bring back the dead here, (especially after my own repeated bumps and all:smirk: ) but I’ve picked up this project again, and can’t seem to figure out why the above occurs. I figured I’d throw up a quick fla for anyone who could possibly assist.
Still an actionscript newb, so can someone explain why I can’t get rid of the finger? Perhaps I should just change it to a pointer at all times?
Edit: whoops, guess that fla was too big, and for some reason it the board only lets me post gifs and jpgs. so… guess this really is a gratuitouis bump.