# Fade in/fade out effect

**URL:** <https://forum.kirupa.com/t/fade-in-fade-out-effect/93870>\
**Category:** Uncategorized\
**Created:** [November 5, 2003, 9:01pm UTC](https://forum.kirupa.com/t/fade-in-fade-out-effect/93870 "2003-11-05T21:01:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tom\_s](https://avatars.discourse-cdn.com/v4/letter/t/e9a140/32.png) [@tom\_s](https://forum.kirupa.com/u/tom_s)\
**Post date:** [November 5, 2003, 9:01pm UTC](https://forum.kirupa.com/t/fade-in-fade-out-effect/93870/1 "2003-11-05T21:01:04Z")

</div>

ok guys i need help  
in my movie i have button and when i rollover  
over the button , its start contiunosly fade in/fade out effect until i rollout the mouse its have to stop , now i have the script but its works just when i rollover and rollout the mouse and then again i need to rollover again , i searched for this script in forum but didnt find the code for contiunosly effect…  
here is my script …this script goes in my actionscript layer :

b1.onRollOver = function() {  
\_alpha -= 7;

if(\_alpha\<55)  
\_alpha = 100;  
}

help me please …

---

<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:** [November 9, 2003, 11:14pm UTC](https://forum.kirupa.com/t/fade-in-fade-out-effect/93870/2 "2003-11-09T23:14:24Z")

</div>

Uhh… shouldn’t you just tell it to behave as a movie clip? I didn’t read this too thoroughly but that appears to be the problem…

---

<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:** [November 10, 2003, 11:31pm UTC](https://forum.kirupa.com/t/fade-in-fade-out-effect/93870/3 "2003-11-10T23:31:01Z")

</div>

the effect i want to achieve is a button fadein and fade out  
when u roll over and stay with cursor…
