# Morf from one pic to next?

**URL:** <https://forum.kirupa.com/t/morf-from-one-pic-to-next/302022>\
**Category:** Uncategorized\
**Created:** [December 20, 2009, 3:50am UTC](https://forum.kirupa.com/t/morf-from-one-pic-to-next/302022 "2009-12-20T03:50:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![oluc](https://avatars.discourse-cdn.com/v4/letter/o/cc9497/32.png) [@oluc](https://forum.kirupa.com/u/oluc)\
**Post date:** [December 20, 2009, 3:50am UTC](https://forum.kirupa.com/t/morf-from-one-pic-to-next/302022/1 "2009-12-20T03:50:17Z")

</div>

Hello. How would you morf from one picture to the next when loading it through xml and .load?

currently I have the pictures just fading, but before it fades to the next picture it fades from a blank screen and not from the previous picture that was displayed.

This is the code I have currently:

```auto

switch (buttonWanted) {
   case "b1" :
         imageLoader.load(new URLRequest (subImageArray [Number(e.currentTarget.name)-1]));
         TweenLite.from(imageHolder, 1.5, {alpha:0});
         break;

     case "b2" :
         imageLoader.load(new URLRequest (subImageArray [Number(e.currentTarget.name)-1]));
         TweenLite.from(imageHolder, 1.5, {alpha:0});
         break;
//etc for a total of 4 btns

```

thanks for any help!
