Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

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…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
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.

618 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