thouhts on export on frame 1, frame size etc

Posted on 2011-03-03
Medium Priority
Last Modified: 2012-06-27
i'm busy trying to rework and old AS2 file to optimise for loading for web.
i stripped it down to check what's going on.
i have a whole bunch of symbols that are made up of high res images - client does not want to sacrifice image quality for speed, anyway, although the publish settings are set to export in frame 2, as soon as i add those symbols to the library, my first frame in bandwidth profiler goes up from 200 odd kB to 2MB.

It's currently taking to long to process frame 0 so to speak to display any kind of sensible loading message.
I'm hoping someone has some tricks that work to share.
have a look at the attached file. see how while i'm exporting the images in frame 2.  check it out in the bandwidth profiler.  size.fla
Question by:blue-genie
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
  • 3
  • 2
LVL 20

Accepted Solution

ChristoferDutz earned 668 total points
ID: 35031895
When you add the resources to your Flash movie you can control in which frame it's loaded. This is how a lot of people build preloaders. I think as soon as you add the images to a library this information gets lost. One solution would be to load the images dynamically. For this they could be loaded as images from the server or you build an extra swf that your main swf loads as soon as you come to frame 2. Perhaps this will get rid of your initial lag ... but it won't make anything smaller.
LVL 14

Assisted Solution

tomaugerdotcom earned 1332 total points
ID: 35031908
Hey bg - i'm sure you've thought of this, but have you considered loading these asynchronously, rather than embedding all the library assets in your movie directly?

Delaying your export to frame 2 doesn't copletely solve the problem, because the internal flash loading system will still be queuing them up and knocking them off, potentially slowing the rest of the virtual machine. I'm pretty sure FP10 does a better job of this, but the optimizer probably only works on AS3 files, so you won't reap the benefits with your AS2 code.

I think the "preloader" or runtime loaded assets is still the best practice here, especially with legacy files.

LVL 39

Author Comment

ID: 35034209
hey thanks guys.

@Chris, yeah just want to get rid of the initial lag
@Tom - was hoping there was a lazy option don't have the time to do too many changes.
will try changing the setup

give me a couple of days, will get back to you guys.
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 14

Assisted Solution

tomaugerdotcom earned 1332 total points
ID: 35036094
There's always (shudder) third-party options. Google AS2 preloader component and you should come up with plenty of plug-n-play options.

LVL 39

Author Comment

ID: 35036662
gonna have to look at it next week.
i'm considering making everything into seperate swfs and loading those as required.
will ponder over the weekend further.
LVL 39

Author Comment

ID: 35055036
hey guys, the quickest and least painless way of updating this was to simply stick a preloader in another swf, and use MovieClipLoader to load the swf file.
had to make 3 changes to references of _root but just did a quick and nasty changed var root = this; and did a find and replace on _root to root.

me happy.

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
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…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
Suggested Courses
Course of the Month11 days, 9 hours left to enroll

752 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