# As + jpg + effects

**URL:** <https://forum.kirupa.com/t/as-jpg-effects/226891>\
**Category:** Uncategorized\
**Created:** [May 24, 2007, 9:39pm UTC](https://forum.kirupa.com/t/as-jpg-effects/226891 "2007-05-24T21:39:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lena](https://avatars.discourse-cdn.com/v4/letter/l/c68b51/32.png) [@lena](https://forum.kirupa.com/u/lena)\
**Post date:** [May 24, 2007, 9:39pm UTC](https://forum.kirupa.com/t/as-jpg-effects/226891/1 "2007-05-24T21:39:05Z")

</div>

hola.  
I have a problem and of course don’t know how 2 deal with it. What I wanna do i s to load external pic 1 on start, after clicking on pic 1, pic 2 is loading with alpha form 0 to 100. Then after clicking pic 2 going back to pic1 also with alpha, and so back and forward.  
I tried 2 do as follows:

#include “lmc\_tween.as”

pic\_p.\_alpha = 0;

loadMovie(“pic1.jpg”, “pic\_1”);

btn.onPress = function(){  
loadMovie(“pic2.jpg”, “pic\_2”);  
pic\_p.tween("\_alpha",100,5,speed,ease\_type,1);

}

it works all the way until pic 2 is pressed, than i get flashing pic between pic1 and pic2.  
Here is scheme:

So, anybody willing 2 help?

thnx.

lena
