Optimizing All Static Bitmaps / MovieClips?

Jun 25, 2009

I'm working on a flash website that consists of 3 frames (1 = preloader, 2 = instances of symbols, 3 = the main page/view). I've gone through and optimized all my static bitmaps/movieClips and removed any symbol that I've exported for ActionScript from exporting in the first frame. Even after all these steps frame one is still the longest to load (797kb on a 32.6 kbps simulated download), only showing the preloader when the whole file is at 86% complete. Any further steps to take to get frame one's size down?

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Optimizing Multiple Scrolling MovieClips?

Aug 19, 2011

I'm currently working on a project for a client who just keeps adding and adding more and more visuals and functionality (while developing!) to an already complex website . The website is very high-end with a lot of 3d rendered PNG-sequences and looks beautiful, but as you can imagine my flash-project is getting cluttered and becoming very slow at runtime very fast.

For a small baseline: I am currently working with swf files of 15mb a piece (the site will have multiple sub-sites). Each with full-browser moving bitmaps, movieclips and png-sequences. Anyway, the site layout at this point: I have multiple sprites layered on top of each other. These will, based on the mouse position, move parralax-style to simulate depth. Within these sprites I have the following visual contents:

a. a static PNG which acts as a static visual. This PNG is duplicated multiple times within the sprite (tiled) to make sure that the visual is browser-filling.

b. a moving PNG-sequence using this solution from the guru's at greensock: forums.greensock.com/viewtopic.php?f=1&t=4243&p=16835#p16835

c. a multiple of movieclips which act as buttons displayed at various positions within the parralax-moving scene, these buttons popup new screens and load external content.

Currently I've managed to fix all the parralax sprites through the scrollrect option, with only the bare minimum of each animation visible at the same time (the scrollrect is always as big as the max sprite height and max screen width), but because of the visual madness of the website, the swf still runs as fast as a tortoise on ritalin.

View 3 Replies

ActionScript 3.0 :: Convert 3d Sprites/MovieClips To Bitmaps?

Oct 14, 2009

Is it possible to convert a sprite or movieclip with 3d properties such as rotationY = 20 to a Bitmap. I have tried the following method (which works fine if no 3D parameters have been applied):

Code:
mySprite.rotationY = 20;
var myBitmapData:BitmapData = new BitmapData(mySprite.width, mySprite.height, true, 0x00FFFFFF);
myBitmapData.draw(mySprite);
var myBitmap:Bitmap = new Bitmap(myBitmapData, "auto", true);

However this returns the following error: Error #2015: Invalid BitmapData I have read that when you use any of the 3D parameters on a sprite or MovieClip, that Flash caches these as Bitmaps - is it therefore possible to get this data and put into a Bitmap variable?

View 1 Replies

ActionScript 3.0 :: Comparing And Matching Bitmaps Against An Array Of Saved Bitmaps

Jul 31, 2009

I'm trying to figure out the best way to compare a single bitmap against perhaps an array of saved bitmaps to see how close of a match it may be to any one of the bitmaps stored in the array. Right now I'm running a for loop that uses the bitmapData.compare() method to try to compare to see how much of a variance there is but... to be honest I'm at a loss as to how to use the resulting data to do so. Does anyone know of any good method to accomplish what I am trying to do? Forget looking at my code it's a waste of time because simply, it's not working.

View 4 Replies

ActionScript 3.0 :: Dynamically Created Vs Static Movieclips?

Feb 4, 2009

Movieclips created on the stage and instanced behave differently from dynamic movieclips in that they are destroyed when you go to the next frame (I have a stop on every frame). If I create that same movieclip dynamically then it will stay on the stage forever regardless if I go to the next frame or not. I understand that it needs to be removed from the display list but I can't find any event that is fired on a next frame basis. I could use onEnterFrame but at 30 fps, that's alot of overhead. The idea is to have all the code contained in my .as file.

View 6 Replies

ActionScript 3.0 :: Static Fields Held In Movieclips

Aug 25, 2009

I need to zoom in (therefore scale up) some static fields held in movieclips. They need to be BIG but when they are scaled up they lose some definition, looking a bit pixelated on the edges. Does anyone have any advice on how to keep them looking nice and smooth when they are scaled up?

View 1 Replies

ActionScript 3.0 :: Private Static Properties With Public Static Getters/setters

Oct 22, 2009

how bad is this practice? I am having trouble getting to some stuff so i am taking the easy way out

Code:
private static var _interrupted:Boolean;
public static function setInterrupted(value:Boolean):void{
_interrupted = value;
}

View 1 Replies

ActionScript 3.0 :: Altering A Reference To A Static Var Alters The Static Var Itself?

Aug 25, 2009

Let's say you have the following situation:

1. Static var(an Array) stored in a class.
2. You create a variable reference to the static class in a separate class.
3. Splice some items from the reference variable in the separate class.
4. Trace the static class and the items have been removed from that too.
5. Verify several times.
6. Get confused.
7. Post on Kirupa.

View 3 Replies

ActionScript 3.0 :: Static Function Can't Find Non-static Functions

Jan 6, 2010

Ok, so I have a bit of a mess here (Which I'm probably not doing right anyway, which could be my problem...). I have a document class, I'll call it as Body.as, that creates an object from another class known as Headgear.as. There are also other objects created from other classes, or will be in the future. Now, amoung all this, Headgear.as and all of the other classes Body.as will use to make objects require the use of dragging functions (starting and stopping dragging). On stopping drags, position checks are then made to compare a particular hidden movieclip with the dragged MC.

To try and save myself some hassle (from making the same functions over and over to ensuring that when the objects are created I don't need to send a complete crapload of variables just to ensure the position checking function would work), I had the functions for the event listeners (Which are set-up on the draggable MCs in Headgear.as) just direct to functions in Body.as

[Code]...

View 6 Replies

Actionscript 3 :: Does Static Methods Need To Use Static Properties?

Dec 28, 2009

If I created a static method. say I decide to call on other methods within that static method. Do those methods I call on need to be static as well? what If I used some of the properties. Not to store data permanently, but just within that process. Do those properties need to be static ??

View 3 Replies

ActionScript 3.0 :: Static Classes And Static Methods?

Feb 21, 2007

Yesterday I found myself wondering, what is the difference between either having a class with methods that are all static, or simply giving your class the static attribute?

View 9 Replies

ActionScript 3.0 :: Static Class Needs A Non-static Function

Nov 22, 2009

Alright, so I have a class that is linked (via the linkage panel) to a scrollbox class. I'll paste the class here:[code]Ignoring the formatting, the commented out functions are the ones causing the issue. Adobe says that it's a static class and I can't use non-static functions. The way I wanted to use it was:

1. Call the page button generating function above.

2. In the main code in my program is this line:scrollbox.setClickFunction(historyContent.generate Page);So when the buttons that are supposed to be generated are clicked, the scrollbox class can call the History pages generatePage function and pass it which page to show. (I did this because there was a lot of text and a limit on how much would display, so small chunks sounded logical).

3. In the onClick function (which I haven't finished yet because the rest wont work), when you click one of the buttons it calls the set function. Its that simple.

View 4 Replies

Flash CS4 Optimizing Files?

May 15, 2010

i want to create some crazy sites with Flash i created the site in Photoshop and then i imported the psd into flash but i come in one post that i should optimizing the content before publishing on internet but how and why should i do that??

View 3 Replies

Sql :: Optimizing Saving To An Sqlite DB?

Dec 8, 2011

I have an as3 app which utilises an sqlite db to save metrics data. It is well known that as3 is single threaded, so when I save to this db, the Stage Video I am playing becomes jumpy! I have heard that saving db data in batches can speed up this process so I save in a loop:

for (var i:int=0; i < metricsObject.metricsComponentData.length; i++){
switch (metricsObject.metricsComponentData[i].mouseType) {
case MetricsCollator.MOUSE_OVER:
this._query_txt = "INSERT INTO " + this._tablePath[0] + " VALUES (null, " + this._sessionID +

[code]...

I have looked into pseudo threading examples but they all require a sprite or stage instance, the class I am executing this code in, is not a display class, I don't really want to pass an instance of the stage into this class.

View 1 Replies

Optimizing PSDs To Use In Flash

Jun 13, 2009

It seems to me everytime I export a PSD design into flash the images come out a little pixelated. Granted I do use 72 dpi though I thought that was the webstandard. By using flash can I use higher dpi images? Or is there another method I should be using instead of the direct import to lirbary?

View 5 Replies

ActionScript 3.0 :: Optimizing Demands On CPU?

Sep 28, 2009

Some AS operations are more CPU intensive than others. What are good ways to compare operations so that I can see for myself how demanding something is? Are there built-in AS3 methods for tracing system use or CPU use? Are there non-flash tools that people use?

View 2 Replies

Sound At Beginning Of 2 Scenes And Optimizing

Nov 10, 2009

I have created a X-mas card for my company. When the card opens, the 3 circles are buttons to different scenes within Flash. The text in the bottom left is a button to the final scene.

The card can be viewed here: [URL]

1) When I click on the circle button that has the red garland and tree ornaments in it, if you listen close at the very beginning of the scene, a squeek sound plays. I use this squek sound in the hamster wheel movie symbol used in other scenes, but not in this scene. I don't even have the sound in this scene of the Flash project anywhere. I can not figure out where it is coming from.

2) Does anyone have some optimization tips? My project file is huge and a lot of the people we will be sending this out to probably don't have the most up-to-date processers. Should I split each scene into it's own Flash movie that is only loaded when the button for that scene is selected instead of the whole thing loading?

Here is a link to view the .FLA file: [URL]

View 1 Replies

Professional :: Optimizing Movie Clips?

Feb 1, 2010

I'm working with a few .flv movie clips in my timeline based flash file. I've imported and embedded the files into movieclip symbols. My file is now sluggish and close to 10mgb.What's the best way to optimize the videos so my .fla and final .swf are as small as possible?

View 5 Replies

Professional :: Optimizing FLA Files For SWF Output?

Mar 16, 2012

This question was posted in response to the following article: [URL]..

View 4 Replies

ActionScript 3.0 :: Optimizing My Search XML Function?

Dec 23, 2009

I've got this simple GUI that has a search box and a couple result fields for "Word" and "Definition"...I've also got an XML file with about 800 or so terms and definitions.Currently the flash works just fine, it reads in the XML glossary, splits it into a word array and definition array and when I search through it, it creates a List filled with terms that match the string that I search for. We wanted it to update the list of possible matching terms each time you changed the search term: a, ap, app, appl, apple... etc.

Everything works, its just incredibly slow when you throw 800 terms at it to search through.I was wondering if anyone could either optimize my search somehow, show me another way of doing it.Here is the code pulled from the whole GUI.

ActionScript Code:
var glossary_xml:XML;
var xmlReq:URLRequest = new URLRequest("glossary.xml");[code].........

View 6 Replies

ActionScript 3.0 :: Optimizing Bitmapdata Using Netstream?

May 29, 2010

you can see my project here:

[URL]

It uses bitmap data to draw each frame of the video, which is streamed using the netstream class. My question is - how can I optimise the speed at which it plays? It plays fine when the stage is small, but when on full screen it starts to get jerky.

View 3 Replies

Actionscript 3.0 :: Optimizing Graphics Rendering?

Jul 27, 2010

My app draws a handful of very large Shapes to the screen very frequently. I've already implemented some logic to reduce that frequency in certain situations, but I'm wondering whether there is anything else I can do.My Shapes' graphics are basically rectangles with BitmapData fills. (Smoothing's turned off.) I can use some simple logic to find the regions where their boundary rectangles intersect the Stage. If I redraw my Shapes' graphics so that they only draw to those intersections, will my app take less time to render?

View 2 Replies

ActionScript 2.0 :: Optimizing Code Execution?

May 7, 2002

I have written a small bit of actionscript code which is designed so that small objects fly across a window from left to right at varying speeds, and then get moved back again with different attributes once they reach the right edge. The code is fully functional.My problem is that this eats a huge amount of system resources, and runs slowly on a 1Ghz machine. Is there a more efficient way to achieve this?

//Frame 1 Code - create 20 objects of varying scale, x/y position and alpha.

dcount = 1;
dupcount = 20;
while (dcount<=dupcount) {[code]......

View 1 Replies

ActionScript 3.0 :: Optimizing Code For Removing Lag?

Oct 14, 2011

I recently completed the battle engine for my game.But the problem is that it is lagging horribly.optimize the code(because the graphics I'm using are really very basic)

View 13 Replies

ActionScript 3.0 :: Static Methods - Error "1119: Access Of Possibly Undefined Property Instance Through A Reference With Static Type Class"

May 4, 2009

I'm kind off oblivious as to what I'm doing wrong here... I have two classes: - Alley - AlleyCat

[Code]...

View 8 Replies

Professional :: Best Practices For Optimizing A Transparant Png Image?

May 8, 2010

What are the best practices for optimizing a transparant png image? What things can be done to make such a png file as small as possible without loosing to much of its quality? Best tools? Best Photoshop plugins? Other tips?

View 2 Replies

ActionScript 3.0 :: Optimizing Short Code With XML Objects

Jul 14, 2010

I'm trying to take into account the Garbage Collector (GC), so I decide to optimize this code:[code]For instance, is it useful to put "xmlOne = null" in every iteration?  I'm checking with the Flashdevelop's profiler, but I don't see the difference.maybe, I can also reuse the item object rather than creating it every time, right?

View 1 Replies

ActionScript 3.0 :: Optimizing Flash File For Internet?

Sep 28, 2010

I have a 10MB flash file that I have uploaded to my website. No idea if this is large or small for a Flash file! The Flash appears on my index.html page. I have noticed that different browsers react differently, but when I open the page initially the video does not start playing straight away.

View 13 Replies

Unknown Error Optimizing Byte Code

Sep 29, 2010

We have a big project, which include about 700 classes and based on Robotleg frameworks.at some point looks we reach some limitation of flash ide, we got this error and can't render properly.[url]...

View 1 Replies

Flex :: Reduce SWF Filesize By Optimizing The Code?

Jan 26, 2011

Considering we have already done the following actions:

Flex Framework as RSL
Compiling with debug=false
Loading most images at runtime
Drawing other simple images with flash draw features

[code].....

We believe we spent a lot of time into asset optimization and most of the work is remaining on the code.By analyzing our link-report, our guess is that the heavy part of the code is comming from Flex .mxml nested components. We don't think there is much to do on our pure AS classes.Is there any analysis or coding best practice in order to reduce the impact of the code on the swf filesize ?

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved