# Rollover...Curious

**URL:** <https://forum.kirupa.com/t/rollover-curious/12909>\
**Category:** flash\
**Created:** [February 6, 2003, 1:58am UTC](https://forum.kirupa.com/t/rollover-curious/12909 "2003-02-06T01:58:52Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lacuna](https://avatars.discourse-cdn.com/v4/letter/l/edb3f5/32.png) [@Lacuna](https://forum.kirupa.com/u/Lacuna)\
**Post date:** [February 6, 2003, 1:58am UTC](https://forum.kirupa.com/t/rollover-curious/12909/1 "2003-02-06T01:58:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 6, 2003, 2:20am UTC](https://forum.kirupa.com/t/rollover-curious/12909/2 "2003-02-06T02:20:56Z")

</div>

where’s electrongeek or beta when you need them…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 6, 2003, 2:28am UTC](https://forum.kirupa.com/t/rollover-curious/12909/3 "2003-02-06T02:28:34Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 6, 2003, 2:41am UTC](https://forum.kirupa.com/t/rollover-curious/12909/4 "2003-02-06T02:41:15Z")

</div>

thanks Kel…you’re always there for me

:love:  
~ Seretha

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 6, 2003, 2:42am UTC](https://forum.kirupa.com/t/rollover-curious/12909/5 "2003-02-06T02:42:05Z")

</div>

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](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.

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

```

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

Good luck!!!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 6, 2003, 2:44am UTC](https://forum.kirupa.com/t/rollover-curious/12909/6 "2003-02-06T02:44:44Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 6, 2003, 2:46am UTC](https://forum.kirupa.com/t/rollover-curious/12909/7 "2003-02-06T02:46:32Z")

</div>

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

:love:  
~ Seretha \*\*

My work here is done 😛

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 6, 2003, 2:48am UTC](https://forum.kirupa.com/t/rollover-curious/12909/8 "2003-02-06T02:48:00Z")

</div>

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);

not very elegant, but it works . . .

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 6, 2003, 2:51am UTC](https://forum.kirupa.com/t/rollover-curious/12909/9 "2003-02-06T02:51:38Z")

</div>

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