A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: random images fade in/out

  1. #1

    random images fade in/out

    I have been looking at tutorials online and I havent found exactly what I need.
    I have a folder of jpegs that I need to fade in and out at random. One movie clip, not triggered by anything, just fadeing in and out different jpegs from an external folder. Any help?
    thanks,
    Dan

  2. #2
    ___________________
    Join Date
    May 2004
    Posts
    3,174
    to read the contents of a folder, you'll need server-side script like PHP, ASP or CF. i'd use that to output XML, then read that in to flash using the URLLoader object.

    once that's loaded, start the slideshow. there are many tutorials on getting random members (you can do so using the XML as-is, or dump the contents into an array).

    use the Loader object to load in images, and either the built-in Tween class or any of the free open source tweening engines like TweenLite, Tweensy, GTween, etc to perform the fade.

    you can either use the event management system of the tweening engine you're using, or a Timer object to control when each new one fades in.

  3. #3
    thanks for the advice. I was actually hoping for something already made where I could just drop my images in. I will keep looking.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center