Question

Flash Preloading Images - reducing load time on website

Asked by: natsully

I have a flash website that I am in the process of creating.

It is a photographer's portfolio website so it is heavy on images and even some videos.

The site isn't but about half way done and it already takes FOREVER to load. I think the swf is around 10-13mb.
I have preloader set up on the first two keyframes on the website.

I need tips on how to reduce the load time on this site. I would love to have it where it loaded the images on a page only when you clicked to go to the page so I'm not wasting their time loading things they aren't going to see.

I've tried two methods - one having the entire website on one timeline and the pages are different keyframes and two having each page it's own "scene" with a preloader for each scene. Neither seemed to work.

I need some tips and help on how on earth to reduce this so it doesn't take ten minutes to load the site. I'm not clear on how to preload each image itself so any direction would be great.

thanks in advance.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-03-25 at 14:21:40ID24265234
Tags

Flash

,

ActionScript 2

,

xml

Topics

Adobe Flash

,

ActionScript

,

Web Images

Participating Experts
3
Points
500
Comments
14

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. preloading many scenes in a movie
    I have a movie (quite large) devited in many scenes..... I made a preloader in the begining bytes_loaded = Math.round(this.getBytesLoaded()); bytes_total = Math.round(this.getBytesTotal()); getPercent = bytes_loaded/bytes_total; this.loadBar._width = getPercent*100; this.l...
  2. Multiple scene preloading
    Hi, Me again How can I preload multiple scenes from one scene? an I insert 3 keyframes and in each key fame insert "if frame loaded" and then on the last key frame put goto and play <scene> ? Thanks

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: scooby_56Posted on 2009-03-25 at 15:31:18ID: 23985481

add some empty movieclips to the pages which will act as placeholders for the images. Give them instance names e.g. container1, container2

You need to add code somewhere in your project to load the images into the placeholders. Eg when the user clicks a link or where you make a page visible. In AS2, something like the following will do the trick

container1.loadMovie("images/test_1.gif");
container2.loadMovie("images/test_2.gif");

 

by: CyanBluePosted on 2009-03-25 at 15:36:26ID: 23985532

I think the first thing you need to do is to reduce the size of the images...  What is the average file size of the images you have???  Maybe you could knock it down abit and import them into the Flash???

CyanBlue

 

by: natsullyPosted on 2009-03-25 at 15:49:15ID: 23985629

CyanBlue:
good thoughts but i've already edited those. it's not the image sizes themselves.
They are all 72 dpi and all at the size they need to be, not scaled down any. 364kb maybe. they aren't large by themselves, but having so many is the problem.

scooby_56:
I'll try this and let you know how it goes
does the code go on the frame or on the movie itself?
Is there a way to add a preloader while the images are loading?

 

by: natsullyPosted on 2009-03-25 at 15:59:16ID: 23985700

ok i see i need to apply it to the frame.
preloader question still applies.

is there a more efficient way that i'm missing?
such as linking to an external xml file?

i've done basics but never created from scratch.

i need not only to load the images but i have a "previous" and "next" button and also a "view all" button that needs to being up thumbnails of them all.

The "view all" will also throw me for a loop if it's xml.

if this is a better option and you have a solution i can post another question.

 

by: CyanBluePosted on 2009-03-25 at 16:09:01ID: 23985748

I think 300kb for an image is still quite large for the web...  I'd say somewhere around 50 ~ 100kb is more like what I'd expect to see unless you are providing something that you can download from the site to be used as a wallpaper or something...  That's my 2 cents...  ;)

CyanBlue

 

by: natsullyPosted on 2009-03-25 at 17:40:08ID: 23986307

Cyan -
I'm not sure of what else I can do.
If you have any further suggestions as to how to drop the file size without losing the resolution of the photos please let me know.
They are all 72 dpi and no larger than what i need them on the stage?

 

by: CyanBluePosted on 2009-03-25 at 20:02:37ID: 23986979

Yeah...  I know there are photos that you just cannot do anything because of the quality, but you could try messing with the compression level in Photoshop to see if that makes any changes...

CyanBlue

 

by: pcumberbatchPosted on 2009-03-26 at 07:01:48ID: 23990418

I take it these are full size and not thumbs. Have you tried breaking the swf into multiple swfs. I am thinking after say 10 images the next button loads another swf. So users would only have a slight wait at intervals which would not be so bad as a long wait at the beginning. Are the images saved as progressive jpg files?

 

by: natsullyPosted on 2009-03-26 at 16:11:32ID: 23996652

pcumberpbatch:
the pics are full size (max. 795 width or 531 height) jpegs at 72 dpi. They are not progressive.
There will be thumbs as well.

would you just create say "slideshow #1" with a transparent background with it's own preloader, save as swf, same for slideshows 2 and 3 and then load them into the main web swf?

 

by: pcumberbatchPosted on 2009-03-27 at 10:42:01ID: 24003556

Yes I am thinking along those lines. Show1 calls show2, show2 would be able to call back show1 and call forward to show3 etc... So that only the current show is loaded at any time and because each show has a reasonable loading time it would be faster. I was thinking that I would not like to wait for hundreds of files to load when I only want to look at a few. Depending on how it is put together users could go directly to a given section of graphics instead of having to start at the beginning. I'll see if I can find an example of what I mean. I've seen it somewhere hopefully it is in my history.

 

by: natsullyPosted on 2009-03-30 at 12:34:00ID: 24022413

pcumberbatch:
do you have to do a different method for the preloader?

I can pull up different swf's but for some reason the preloaders don't work?

I use a preloader that starts on the first key frame through frame 2 and the movie starts on frame 3.

 

by: pcumberbatchPosted on 2009-03-30 at 13:47:19ID: 24023167

I don't think so. I am more familiar with swish and swish script than actionscript though. I found a link that might help. If I get my old machine back up I might just find something helpful. Lets hope.

http://www.flashperfection.com/tutorials/SWiSHMax-Preloader-Simple-For-standard-Site-30986.html

Also would you still need the preloaders if you chop up the swf into smaller ones? Or can you just do a please wait text only screen as the first frames of each swf?

 

by: natsullyPosted on 2009-03-30 at 14:35:47ID: 24023635

well i tried splitting the swfs up into "portraits", "commercial", "wedding", "explore", "graphics" etc.
 and it was still a pretty long wait time. i know i could split up more but was trying not to for ease.

i suppose i could add a "please wait" text but i was just hoping for a faster solution. or even a preloader for each image

i would love to load each image individually through an xml file and have it dynamically load thumbs as well but i'm not that advanced.

i have an example that i've used before but i don't know enough about it to tweak to fit my current project.

 

by: pcumberbatchPosted on 2009-03-31 at 06:54:26ID: 24028917

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...