# Fade in/out not smooth

**URL:** <https://forum.kirupa.com/t/fade-in-out-not-smooth/65988>\
**Category:** flash\
**Created:** [October 1, 2004, 7:46am UTC](https://forum.kirupa.com/t/fade-in-out-not-smooth/65988 "2004-10-01T07:46:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![WoGk7](https://avatars.discourse-cdn.com/v4/letter/w/22d042/32.png) [@WoGk7](https://forum.kirupa.com/u/WoGk7)\
**Post date:** [October 1, 2004, 7:46am UTC](https://forum.kirupa.com/t/fade-in-out-not-smooth/65988/1 "2004-10-01T07:46:40Z")

</div>

Hey.

I got a little problem with Fading pics. I use a lot of those, its fast and easy and often enough for what i´m doing. The problem is when i tween a jpg from 0 to 100 Alpha, then fade it out and fade another one in, I see a unplesent glitch somewhere along the tween.

Is there something i can do about it, something i need to know? My client doesn´t really mind it, but it kind of sucks. Especially seeing the smoothnes of some of the sites out there.

Any advice appreciated. Thanks.

---

<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:** [October 1, 2004, 8:13am UTC](https://forum.kirupa.com/t/fade-in-out-not-smooth/65988/2 "2004-10-01T08:13:43Z")

</div>

Lage pictures will always do that. Try not to use pictures in a higher resolution than you actually need in the swf.  
I don’t know if you are crossfading the pictures, but if you just fade a picture out completely and the fade another picture in, instead of using alpha on the pictures you could just make a square with 0% alpha that covers the pictures. When you need to change the picture you just fade the square up to 100%, change the picture and fade out the square again.

---

<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:** [October 1, 2004, 8:19am UTC](https://forum.kirupa.com/t/fade-in-out-not-smooth/65988/3 "2004-10-01T08:19:09Z")

</div>

I´ll try that. Thanks. I cross fade some of the pics but they glitch whether i do or not. The pics are at 72 dpi.

---

<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:** [October 1, 2004, 11:13am UTC](https://forum.kirupa.com/t/fade-in-out-not-smooth/65988/4 "2004-10-01T11:13:47Z")

</div>

Why not just use actionscript?

---

<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:** [October 1, 2004, 2:09pm UTC](https://forum.kirupa.com/t/fade-in-out-not-smooth/65988/5 "2004-10-01T14:09:46Z")

</div>

I suck at coding. It´s easier for me to tween the thing. Plus that way i can preload all the fotos at once instead of preloadin each one separately. I´m sue it can be done better with the script.

---

<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:** [October 1, 2004, 2:12pm UTC](https://forum.kirupa.com/t/fade-in-out-not-smooth/65988/6 "2004-10-01T14:12:55Z")

</div>

there’s a Flash Bug… Don’t alpha to 100%. Alpha to 99% (there’s no real diff). And put your MC aligned top-left… It should work ok.

---

<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:** [October 1, 2004, 9:55pm UTC](https://forum.kirupa.com/t/fade-in-out-not-smooth/65988/7 "2004-10-01T21:55:58Z")

</div>

Yes, Pomme is right. Use 99% and even 1% for the outs (followed by removing it from the timeline).

---

<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:** [October 1, 2004, 10:19pm UTC](https://forum.kirupa.com/t/fade-in-out-not-smooth/65988/8 "2004-10-01T22:19:13Z")

</div>

for Flash MX, a better trick than the 99% alpha tween is this…

Make sure all of your images have the registration point in the lower right hand corner of the image, making sure that all of the image is on the negative quadrent of the X Y coordinates… (sorry if that doesn’t make sense… let me know if you need any clarification)

for some reason, the pixel shift bug does not happen in Flash MX when your photos are placed above and to the left of the registration point…

Flash 2004 fixed (reversed) the problem, and now the glitch only happens if the image is not in the positive quadrents of the XY grid… (in Flash 2004, not MX)

Sorry if that doesn’t make sense… im trying 😛

---

<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:** [October 2, 2004, 6:24pm UTC](https://forum.kirupa.com/t/fade-in-out-not-smooth/65988/9 "2004-10-02T18:24:51Z")

</div>

registration cross is bottom right in MX. top left in MX2004. Easy stuff.
