Solved

Loading external images in 'Flash' with a fade transition

Posted on 2008-10-02
7
1,408 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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,…
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 this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

706 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now