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.
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.
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…
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() that has the lightning animation. then, onRollover _root.overEffect.gotoAndStop(2); and on rollOut _root.overEffect.gotoAndStop(1);