It doesn’t get any easier than this. Need to make a quick slideshow? This is all you need (Plus the Tweener class, which needs to be installed in the same directory as your source FLA).
Here is another easy to copy example on how to use this bad boy:
import com.dyc.photo.Slideshow; // Pick some photos to go through var tempPhotoURL1:String = "http://tinyurl.com/ydy48zj" var tempPhotoURL2:String = "http://tinyurl.com/y8w5p9g" var photosListArray:Array = [tempPhotoURL1, tempPhotoURL2]; var my_slideshow:Slideshow = new Slideshow(4, 4, photosListArray, "easeOutExpo"); addChild(my_slideshow); /* Other functions you can call on this: my_slideshow.pause(); my_slideshow.resume(); */
It’s pretty straight forward, you just import the class, create a new Slideshow object, and pass your setup variables to the newly created object.
The following arguments are accepted:
- photo_display_time:int
- fade_time:int
- photoURLs:Array
- easing:String
You can addChild() this to a masked off MovieClip or Sprite, to make it fit in with your particular design. For the easing:String parameter, you can pass any of Robert Penner’s Easing Types.
Let me know if you have any trouble with it, shouldn’t be too many places this can break down ;D











Subscribe to our RSS feed!