# 2advance website question on buttons

**URL:** https://forum.kirupa.com/t/2advance-website-question-on-buttons/2195
**Category:** flash
**Created:** [April 13, 2002, 9:41am UTC](https://forum.kirupa.com/t/2advance-website-question-on-buttons/2195 "2002-04-13T09:41:49Z")
**Posts on this page:** 7
**Page:** 1

<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: [April 13, 2002, 9:41am UTC](https://forum.kirupa.com/t/2advance-website-question-on-buttons/2195/1 "2002-04-13T09:41:49Z")

</div>

Ok go to \r[www.2advanced.com](http://www.2advanced.com)\r\rGo to the button at the top where the “profile” is and all them. But dont click on the button…\r\rI was wondering if anyone could explain to me the way the buttons get that effect when you role over them? \rHow the “white” fades in and out of the button… \r\rThanks heaps everyone…\r\rJakatta… 🙂 \r

---

<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: [April 13, 2002, 1:09pm UTC](https://forum.kirupa.com/t/2advance-website-question-on-buttons/2195/2 "2002-04-13T13:09:49Z")

</div>

Simple tweening and fading with \_alpha, if I see what you mean.\r\rpom 0]

---

<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: [April 14, 2002, 5:21am UTC](https://forum.kirupa.com/t/2advance-website-question-on-buttons/2195/3 "2002-04-14T05:21:09Z")

</div>

But is it a movie clip button?\r\rhow do i make it?\r\r:) \r\rJakatta…

---

<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: [April 14, 2002, 12:38pm UTC](https://forum.kirupa.com/t/2advance-website-question-on-buttons/2195/4 "2002-04-14T12:38:38Z")

</div>

They put a movie clip in the ‘over’ frame of the button. This movie clip contains the white square fading in and out.\rThe thing is that it is beautifully done, but the principle in itself isn’t so complicated.\rpom 0]

---

<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: [May 10, 2002, 3:50pm UTC](https://forum.kirupa.com/t/2advance-website-question-on-buttons/2195/5 "2002-05-10T15:50:17Z")

</div>

NO NO NO\r\ryou make a MC that does the effect\r\rthen attach an action to the button to control the MC\r\rso something like:\r\ron (rollOver){\r TellTarget("/fade"){\r gotoAndPlay(“play”);\r }\ron (rollOut){\r TellTarget("/fade"){\r gotoAndPlay(“close”);\r }\r}\r\rdoes this help?

---

<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: [May 11, 2002, 9:10am UTC](https://forum.kirupa.com/t/2advance-website-question-on-buttons/2195/6 "2002-05-11T09:10:50Z")

</div>

Ok,\r\rHow do i make it?\rDo i:\r1.create a button then convert to button\r2.create the fade in/out effect on the same stage OR as a new symbol and just drag and drop it from the library?\r3.insert codes into button.\r\rIs that right?\r\rBecause it didn’t work for me hey ☹ \r

---

<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: [May 13, 2002, 3:06pm UTC](https://forum.kirupa.com/t/2advance-website-question-on-buttons/2195/7 "2002-05-13T15:06:05Z")

</div>

K, you have the right idea.\r\rjust make a movie clip that does your fade in/out:\ryour movie clip shouldn’t be in the button instance, just place the fade in/out instance on the main stage.\r\rThen create a button, and assign the actions to control the movie on the button.\r\ron (rollOver){\r \_root.fade.gotoAndPlay(“fade\_in”);\r}\r\ron (rollOut){\r \_root.fade.gotoAndPlay(“fade\_out”);\r}\rYou could also do a hitTest(); as well, depends on what you want it to do.\r\rHope this helps.\rTelley
