Solved

Loading external images in 'Flash' with a fade transition

Posted on 2008-10-02
7
1,415 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

770 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