Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Loading external images in 'Flash' with a fade transition

Posted on 2008-10-02
7
Medium Priority
?
1,424 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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 1500 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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

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…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
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…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
Suggested Courses

719 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