sgd_mc
02-04-2007, 04:20 AM
Hello,
I am trying to author a photo gallery application that includes a nice fade in transition. To do this, I am attempting to use the Tween class, and to perform a tween on the _alpha property of a movie clip.
I know that conceptually, my approach is wrong and I'm not sure how to do this. I am creating an empty movie clip, loading a jpeg image into it using loadMovie, and then applying the tween to that movie clip. Unfortunately nothing happens other than the image being loaded into the movie clip.
Any help would be greatly appreciated.
Here is my code, which illustrates what I am trying to do:
mx.transitions.Tween;
import mx.transitions.easing.*;
this.createEmptyMovieClip("photo_mc",this.getNextHighestDepth);
loadMovie("1.jpg","photo_mc");
new Tween("photo_mc", "_alpha", Strong.easeIn, 100, 0, 3, true);
Thank you.
I am trying to author a photo gallery application that includes a nice fade in transition. To do this, I am attempting to use the Tween class, and to perform a tween on the _alpha property of a movie clip.
I know that conceptually, my approach is wrong and I'm not sure how to do this. I am creating an empty movie clip, loading a jpeg image into it using loadMovie, and then applying the tween to that movie clip. Unfortunately nothing happens other than the image being loaded into the movie clip.
Any help would be greatly appreciated.
Here is my code, which illustrates what I am trying to do:
mx.transitions.Tween;
import mx.transitions.easing.*;
this.createEmptyMovieClip("photo_mc",this.getNextHighestDepth);
loadMovie("1.jpg","photo_mc");
new Tween("photo_mc", "_alpha", Strong.easeIn, 100, 0, 3, true);
Thank you.