Solved

thouhts on export on frame 1, frame size etc

Posted on 2011-03-03
6
208 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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Stock Videos 17 318
Can't find all of the preferences on Flash Pro 2 472
Array is not working ( AS2 ) 4 141
Removing Flash from Website 6 38
This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
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 what frame rate is, how to control it and what effect it has on the video.

708 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

14 Experts available now in Live!

Get 1:1 Help Now