# TweenLite onRelease Function

**URL:** <https://forum.kirupa.com/t/tweenlite-onrelease-function/281487>\
**Category:** flash\
**Created:** [February 9, 2009, 9:46pm UTC](https://forum.kirupa.com/t/tweenlite-onrelease-function/281487 "2009-02-09T21:46:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![junta](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@junta](https://forum.kirupa.com/u/junta)\
**Post date:** [February 9, 2009, 9:46pm UTC](https://forum.kirupa.com/t/tweenlite-onrelease-function/281487/1 "2009-02-09T21:46:32Z")

</div>

So I have 3 movie clips and a left and right arrow to navigate between them. you click on the right arrow and movie clip PhotoTarget1 fades out and PhotoTarget2 fades in. Easy enough, but then if I click the right arrow again it won’t load PhotoTarget3.

I understand why PhotoTarget3 doesn’t load, but I just don’t know how to go about to get this to work. I have all the movie clips built within 1 movie clip and I am using TweenLite to fade these in and out. I think I may have to use an if/else statement, but I am not really sure. Please, any help would be great! Thank you

```auto
  arrowMCRight.onRelease = function()
    	{TweenLite.to(PhotoTarget1, 1, { autoAlpha:0, _level:1}); 
	{TweenLite.to(PhotoTarget2, 1, { autoAlpha:100, _level:0}); 
	{TweenLite.to(PhotoTarget3, 1, { autoAlpha:0, _level:1}); 
   }
  }
}

```
