# Making movieclip alpha = 0 and move

**URL:** <https://forum.kirupa.com/t/making-movieclip-alpha-0-and-move/21773>\
**Category:** Uncategorized\
**Created:** [May 26, 2003, 7:15am UTC](https://forum.kirupa.com/t/making-movieclip-alpha-0-and-move/21773 "2003-05-26T07:15:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![NaliWarCow](https://avatars.discourse-cdn.com/v4/letter/n/57b2e6/32.png) [@NaliWarCow](https://forum.kirupa.com/u/NaliWarCow)\
**Post date:** [May 26, 2003, 7:15am UTC](https://forum.kirupa.com/t/making-movieclip-alpha-0-and-move/21773/1 "2003-05-26T07:15:07Z")

</div>

I’m trying to make a movie clip move a small bit to the right and slowly (or quickly) dim until you can’t see it. I’ve tried 2 different methods. The first was my original so that once you had the mouse in the original location of the movie, you just have to keep it there, you don’t have to move the mouse with the clip. The 2nd was one i got after searching the forums.

I’ve debugged out the for statement and tried just seeing if i could make a different movie’s alpha change, and it didn’t. So I believe the problem is either in the if (of the first) or onRollOver (of the 2nd).

[AS]onClipEvent(load){  
xspot = \_root.\_xmouse;  
yspot = \_root.\_ymouse;  
if((xspot \>= 41.3) && (xspot\_xmouse \<= 76) && (yspot \>= 2.6) && (yspot \<= 20)){  
for(i=0; i \<= 100; i++){  
email.\_alpha = (100 - i);  
email.\_x = (41.3 - (i / 10));  
}  
}  
}[/AS]

[AS]onClipEvent(load){  
email.onRollOver = function() {  
for(i=0; i \<= 100; i++){  
email.\_alpha = (100 - i);  
email.\_x = (41.3 + (i / 6));  
}  
}  
}[/AS]

Thanks,  
NWC :trout:

---

<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 26, 2003, 4:30pm UTC](https://forum.kirupa.com/t/making-movieclip-alpha-0-and-move/21773/2 "2003-05-26T16:30:45Z")

</div>

The for loop is executed in 1 frame, so you don’t see the fade. You have to put it in an EnterFrame. Which version of Flash are you using?

---

<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 26, 2003, 5:57pm UTC](https://forum.kirupa.com/t/making-movieclip-alpha-0-and-move/21773/3 "2003-05-26T17:57:24Z")

</div>

i’m using MX. I tried using onClipEvent(enterFrame), but it still didn’t work with that.

---

<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 26, 2003, 8:54pm UTC](https://forum.kirupa.com/t/making-movieclip-alpha-0-and-move/21773/4 "2003-05-26T20:54:10Z")

</div>

you mean like this?

---

<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 26, 2003, 10:06pm UTC](https://forum.kirupa.com/t/making-movieclip-alpha-0-and-move/21773/5 "2003-05-26T22:06:15Z")

</div>

cool. That’s what I was trying to do. Thanks zylum.

---

<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 26, 2003, 11:58pm UTC](https://forum.kirupa.com/t/making-movieclip-alpha-0-and-move/21773/6 "2003-05-26T23:58:32Z")

</div>

no problem 🙂
