Rollover...Curious

How would I go about getting lightning to hit the button from various places across the screen when someone rolls over it?
Links to tutorials are great so I can learn how to do it properly step-by-step rather than do a cut and paste… but anything is good.

:love:
~ Seretha

where’s electrongeek or beta when you need them…

A simple way that doesn’t use AS would be to make a movie of the lightning then put the movie as the OVER in the button.

thanks Kel…you’re always there for me

:love:
~ Seretha

Well, I’m of no help on the ActionScript, but I did go to your site. All the popups on http://www.cyberwebs.org/viewgraphic.html were too small for the graphics (all showed horizontal and vertical scrollbars) and, more alarming, the pics in the popups were all broken icons for me. Maybe just your server is burping but I thought you’d like to know.

on(press){
		thisPos = [_x,_y];
	}

I have absolutely no clue, but have faith, someone here will have an excellent response.

Good luck!!!

My site is in a sad sad state right now…I am in the process of changing it to flash but I really didn’t want to take the whole thing down until I was finished…

*Originally posted by Seretha Blaze *
**thanks Kel…you’re always there for me

:love:
~ Seretha **

My work here is done :stuck_out_tongue:

or maybe make an mc of the lightning effect, give it an instance name and place it were needed and on each button rollover, press, etc, have it play the mc. that way you don’t have an abrupt ending to the animation when they go off the button.

just make the mc with a blank first frame and a stop(); action and then put another mc in the second frame (also with a stop():wink: that has the lightning animation. then, onRollover _root.overEffect.gotoAndStop(2); and on rollOut _root.overEffect.gotoAndStop(1);

not very elegant, but it works . . .

But with lightning, you can have no abrupt ending as it’s just fast flickers of animation. :nerd: