Solved

Loading external images in 'Flash' with a fade transition

Posted on 2008-10-02
7
1,419 Views
Last Modified: 2013-11-11
Hi,

I'm tasked with building a flash gateway page that has a couple of slightly tricky (for me!) components

1) has a background image that changes each time the page is loaded (tick! done~ easy)

2) has a small slideshow of images that sits on top of this larger background image

I've got through part 1 easy enough; but I'm stuck at 2. I've seen lots of code sitting around, but to be honest, I haven't really found a way to do what I need it to do, which is:

1) load images from an external source, outside the flash movie, and:

2) have a fade transition between each photo (each photo should last around 1-2 second(s) or so)

Any help, example files etc., hugely appreciated!

Many thanks,
Jon
0
Comment
Question by:jon-b
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
7 Comments
 

Author Comment

by:jon-b
ID: 22624439
I should add, the small slideshow is also on a tilt - so I'm guessing, maybe, I need to create an empty frame which is positioned correctly, and which will be used as an empty movie clip to load the external images? but then I'm still not sure how to do the fade transition...

Thanks again!
0
 

Author Comment

by:jon-b
ID: 22624514
annnnnd...sorry, I should also have it so that for slower connections, the slideshow images won't attempt to change until the next image has been downloaded~ am sure it's possible, but I'm pretty stumped. Thanks~
0
 

Author Comment

by:jon-b
ID: 22624903
to view the current flash project - visit http://www.hokkaidotracks.com/photos/htgateway.html (you'll see a small image over the top of the main image - this is the one I need to have as a dynamic slideshow)
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 39

Expert Comment

by:blue-genie
ID: 22631292
>> but then I'm still not sure how to do the fade transition...
Look in the help file under fade or Tween (based on AS2 or AS3 - whichever you're using.)
look for the topic use the TransitionManager and Tween classes together.
Adobe have done the work for you. there's an example there of (AS2)
1. how to load external images using MovieClipLoader
2. using a listener to check that the image is loaded.
3. apply a alpha tween effect (fade) on it.

now if you're loading all your images from an xml file - look under xml to see how to do that.
if you've just got a set number of images to loop through, you can simply create an array to store those.
then create a counter to keep track of the images and to move to the next one.
happy trails
:-)
0
 

Author Comment

by:jon-b
ID: 22642819
Hi, Thanks for your answer - you're talking about CS3 I take it? Unfortunately I couldn't find anything...
0
 
LVL 39

Accepted Solution

by:
blue-genie earned 500 total points
ID: 22644605
whether u;re using Flash 8 or CS3 , its there in the help file.
transitionManager doesn't exist for AS2 but the Tween class does. and loading XML exists for both.
0
 

Author Comment

by:jon-b
ID: 22647202
thank you!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question