Solved

Loading external images in 'Flash' with a fade transition

Posted on 2008-10-02
7
1,416 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
  • 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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…

830 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