# Button problem

**URL:** https://forum.kirupa.com/t/button-problem/24221
**Category:** Uncategorized
**Created:** [June 27, 2003, 12:33pm UTC](https://forum.kirupa.com/t/button-problem/24221 "2003-06-27T12:33:43Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![mistdreamz](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@mistdreamz](https://forum.kirupa.com/u/mistdreamz)
#### Post date: [June 27, 2003, 12:33pm UTC](https://forum.kirupa.com/t/button-problem/24221/1 "2003-06-27T12:33:43Z")

</div>

hi, i am a newbie in flash. can anyone tell me how to create buttons like this?

[http://sg.motorola.com/pcs/flashed.asp](http://sg.motorola.com/pcs/flashed.asp)  
go to this site n click under motofolio, products.

i want to use pics as my navigation and want them to enlarge and move to the middle when mouse-overed, and returning to the original position after mouse-out. It is sorta like the handphones in the web page.

i tried using the simple creating animated rollovers tutorial. when i mouse-over, it was alright, but when i mouse-out, it just went back to its original position. i want it to have a smooth motion back, like what showed in the website.

i have used this script  
onClipEvent (enterFrame) {  
if (this.hitTest(\_root.\_xmouse, \_root.\_ymouse, true)) {  
this.nextFrame();  
} else {  
this.prevFrame();  
}  
}  
and the effect was horrifying.  
please enlighten me…

---

<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: [June 28, 2003, 12:14pm UTC](https://forum.kirupa.com/t/button-problem/24221/2 "2003-06-28T12:14:38Z")

</div>

hmmm…12 views and no replies…can’t believe it

---

<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: [June 28, 2003, 5:29pm UTC](https://forum.kirupa.com/t/button-problem/24221/3 "2003-06-28T17:29:25Z")

</div>

I don’t know about anyone else but not even my broadband connection will load your URL. it’s extremely slow and after about 10 minutes its not even half way loaded.

btw, I know what you mean by views vs. reply’s I have the same problem.

Good luck!  
_exo_

---

<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: [June 28, 2003, 6:09pm UTC](https://forum.kirupa.com/t/button-problem/24221/4 "2003-06-28T18:09:12Z")

</div>

I don’t know much but maybe if you tried to make a lable key frame and then change  
if (this.hitTest(\_root.\_xmouse, \_root.\_ymouse, true)) {  
this.nextFrame();

to

if (this.hitTest(\_root.\_xmouse, \_root.\_ymouse, true)) {  
gotoAndStop ("whatever ");

---

<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: [June 29, 2003, 7:05am UTC](https://forum.kirupa.com/t/button-problem/24221/5 "2003-06-29T07:05:07Z")

</div>

hmmm…i’ll give it a try…thanks anyway

---

<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: [June 29, 2003, 7:18am UTC](https://forum.kirupa.com/t/button-problem/24221/6 "2003-06-29T07:18:21Z")

</div>

Yo man,

The link worked fine for me… dont know why others were having problems if thats the case… if you want to creat this effect you can do it several ways… but this is probably the best cuz it uses easing and also moves the other images to the side…

Its called a Tsunami effect… you can find a couple other threads about it on the board if you search… theres a link to a tutorial on one of them.

[http://www.actionscript.org/showMovie.php?id=467](http://www.actionscript.org/showMovie.php?id=467)

Take it easy.
