Solved

thouhts on export on frame 1, frame size etc

Posted on 2011-03-03
6
210 Views
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
0
Comment
Question by:blue-genie
  • 3
  • 2
6 Comments
 
LVL 20

Accepted Solution

by:
ChristoferDutz earned 167 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.
0
 
LVL 14

Assisted Solution

by:tomaugerdotcom
tomaugerdotcom earned 333 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.

t
0
 
LVL 39

Author Comment

by:blue-genie
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.
tx
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 14

Assisted Solution

by:tomaugerdotcom
tomaugerdotcom earned 333 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.

t
0
 
LVL 39

Author Comment

by:blue-genie
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.
0
 
LVL 39

Author Comment

by:blue-genie
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.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
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…
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): …
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.

863 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

21 Experts available now in Live!

Get 1:1 Help Now