Actionscript 3 :: Flash Performance With Large Bitmaps?

Apr 20, 2011

i have a AS3/FL10 based application that renders/animates/filters (blur) large PNGs (1 per view) (about 1100x900 px, roughly 2mb). Due to the fact that the fans start spinning like crazy on my notebook, i wonder if this is considered "bad practise". Unfortunately i need transparent images, so JPG is not a choice. Additionally, the PNGs are loaded dynamically, so embedding the files to the flash file (for utilizing flash jpg compression) is not a choice either.

How do you guys deal with large bitmaps in flash

View 1 Replies


Similar Posts:


Performance :: Optimization - Improving Performance With Large #'s Of Objects

Jan 11, 2011

I'm devloping some library classes for flocking/steering behaviours on large numbers of objects (2000+). I'm finding that at < 500 instances, performance is reasonable. As the numbers increase, framerate bogs down.

I've seen remarkable performance with libraries such as Flint or Box2D with ridiculous #'s of particles / objects, so it should be possible to optimize / refactor my code to be a bit better.

I'm aware of the basic optimizations, such as bitwise operations and optimized for loops. Are there any more fundamental approaches I should be considering? For example, currently each instance is a vector-based MovieClip. Would working with BitmapData be more efficient?

View 1 Replies

Actionscript :: Does Flash Suffer Performance-wise From The X And Y Being Too Large

Jul 1, 2011

Let's say a movieclip inside another movieclip has a x of 9000. Is that bad? Is there a cap?

View 1 Replies

Actionscript 3 :: Bitmaps Are Too Large And Improperly Placed?

Mar 30, 2011

Alright I'm programming in actionscript 3, using flex as a compiler. I have an 16x16 large PNG file that is basically a square outline like this:But in more noticeable colors.

I want to draw an 11x11 grid of these squares, so I use these for loops:
for (i1 = 0; i1 < 11; i1 ++)
{

[code].....

View 1 Replies

Performance :: Database Vs XML For Large Static Data?

Apr 7, 2012

I'm developing an application using Flas Builder / Flex for Adobe Air. This application will be processing a large set of static text (100 - 200 MB) using a variable set of processing instructions.The target platforms will be iOS, Android and Desktop.The data set can be either one large XML file or broken into a bunch of XML files about 3MB each.This will be decided at design time.From your experience would it be better to store the text in an Adode Air database or a set of XML files for best performance (including speed and battery life)?What other considerations should I take into account?

View 1 Replies

Flex :: Performance - Printing From AIR/Flex Application Causes Large Files Being Sent To Printer?

Oct 25, 2010

I am working on an Adobe AIR (2.0) application that contains a feature to allow users to print documents (such as salary slips). Those documents are originally in PDF format. Due to circumstances we cannot directly display those PDFs in the AIR application (for example using flash.html.HTMLLoader). Therefore we convert the PDFs to SWFs (using the pdf2swf tool, see The SWFs are loaded into the application using a mx.controls.SWFLoader, like so:

<mx:SWFLoader
id="salarySlipImage"
loaderContext="{someLoaderContext}"

[code].....

View 2 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

Performance :: Performance - Hold MouseDown To Increase Speed/power?

Sep 12, 2011

this is what i'm trying to accomplish; With a click on a movieclip (cannon_mc)a shot is being fired (ball_mc)

The longer mouse is down, the speed of wich the ball is fired with should increase.My question to you is;

What is the most efficient way to accomplish this? With a timer or something like this;

[Code]...

View 2 Replies

Performance :: Flex - Using Nested ViewStacks Cause Performance To Decrease?

Nov 4, 2011

Will I take a big hit in performance using nested ViewStacks? Should I strive to handle all navigation in one ViewStack and push children manually or will the affected performance be negligible?

eg.
<viewstack>
<tabnavigator />
<tabnavigator />
<tabnavigator />
</viewstack>

View 2 Replies

Performance :: Improve Flex Performance For Invisible Views?

Mar 19, 2012

We have a medium size Flex 3.6 application that contains around 20 different page views (managed via a single lazy ViewStack) each having multiple components. Most use custom renderers.All model data is loaded at startup and changes to model instances are communicated via binding and/or collection change events.Once the user has viewed each page at least once, all page views are instantiated and happily listen to update events.Which in effect means that each time a model instance changes, all interested views receive that event and compute derived data or trigger item-renderers.I have tested and confirmed this behaviour in a proof-of-concept application. Even when setting a list to being invisible, it still listens to collection change events and invalidates any renderer affected.What would you do?

View 1 Replies

AS2 :: Flash - Load Bitmaps In An Array?

Mar 9, 2011

I would know if with AS2 it's possible to load programmatically a bulk of images and save them in an array; then how to attach programmatically each image to an empty movieclip.

I know how to do this in AS3 however it seems impossible in AS2.

View 2 Replies

Flash 8 - Pixelated Bitmaps In Tween Animation

Mar 28, 2009

I have created an image in photoshop (96dpi, same as my monitor) and imported it as a png into flash where it becomes a bitmap. Once I had imported the image I went to library and allowed smoothing on the image and set it to lossless. It performs a motion tween and simply flys from one side of my movie to the other. However, the whole way it appears pixelated. I had done this on a previous movie with the same image, just with a different animation and I had the same problem. But in this case the 'allow smoothing' worked. Not this time though.

View 1 Replies

Flash :: Flex - When Jpegencoding Two Bitmaps In Sequence

Sep 17, 2010

I am creating this "drawing application", where the user can click "preview" and it will take what they made, draw a bitmap, and then I want to split that bitmap into left and right images. I create the first bitmap, encode it as a jpeg, and then use that to cut the left and right out using copypixels. I then reform the images together with a space inbetween in one canvas, and draw that canvas. Everything works fine up there.

When I go to encode the new bitmap, and then offer it to save out, the saved image is blank. I have tested everything up to that point and it all works fine. I see the images on screen, I can save out the first bitmap fine.. but the second one is always blank.

[Code]....

View 1 Replies

Actionscript 3 :: Pixel Limits On Bitmaps In Flash?

Nov 18, 2010

What are current pixel limits on bitmaps in Flash?

View 2 Replies

Flash - Rescale An Asset That's A Hierarchy Of Bitmaps?

Jan 25, 2012

I have some FLA/SWF assets which are hierarchies of bitmaps.They have timelines which page-flip through different bitmaps.I'd like to scale these assets down in pixel-size, including the bitmaps they're composed of.I'm not a Flash Animator, but the artist i'm working with doesn't know of an automated way to achieve this. ie, that it's a long a laborious manual process.Does anyone know of a tool which can simplify the re-scaling of bitmap-based FLAs ?

View 1 Replies

Flash 10 :: Bitmaps Less Then 4px In Width / Height Not Working?

Aug 23, 2010

I've come to notice recently while using bitmap objects in the Flash CS5 (maybe before as well) authoring environment that are less than 4 pixels in width and/or height that they are treated as though they are 4 pixels wide/tall. Many of the bitmaps I use are 1 px wide in one direction or the other, and they are stretched to fill an area. Lets say I have a bitmap that is 20px tall and 1 px wide, and I stretch it to be 100px wide. The "hit area" of the object, or parent objects that contain it, is 400 px wide. So even if you click a significant distance away from the object, it is still selected, and anything underneath that invisible area can't be selected.

I've also noticed that when exporting a frame as an image, the smallest the width/height may be is 4px, and when I click the Edit button in the Properties panel with a Bitmap instance selected, it opens up in Photoshop CS5 and is 4 pixels wide! I'm wondering if for some reason Flash can't handle bitmaps less than 4 pixels in width/height and is treating it as if it IS 4 pixels wide, possibly even adding 3 extra columns of transparent pixels, because if I do the same thing manually, naturally it acts identical to the way Flash treats the 1px wide version. But why? Why can't Flash handle small bitmaps? Seems to me that's more efficient than quadrupling the amount of memory required.

View 0 Replies

ActionScript 3.0 :: Importing Bitmaps From An SWF Exported Via Flash CS3?

Jan 29, 2009

I'm currently integrating one of my games with the SDK of a certain publisher (who shall remain nameless), but I'm having real problems. They require all games to load their content (ie. images, sounds etc) from an external SWF, like so:

Code:
private var __gameScreen:MovieClip;
private function onContentSwfLoaded(result:MediaLoaderResult):void
{

[code]....

The problem here is that I really don't want to have to use MovieClips as all of my games use nothing but BitmapData, so I'm wondering if there's a way of extracting a Bitmap or BitmapData from an SWF? It doesn't appear that Flash CS3 caters for this though - you can assign an "instance name" to a MovieClip, but not a Bitmap as far as I can tell. I usually develop in Flex Builder 3 but I've not managed to extract anything from an SWF exported from it, probably because you can't assign instance names to objects, I'm guessing. My current work-around for this problem is to draw each MovieClip to a BitmapData object, but this is very long-winded and probably not too efficient either.

View 1 Replies

Flash :: Manage Multiple Sizes (dimensions) Of Bitmaps?

Jul 22, 2010

I have a custom Image class that I am using to store individual image information for a gallery application:

package mtm.test
{
public class Image extends Object
{

[Code]....

This is how I would implement the above:

var image:Image = new Image();
//I would be loading external bitmaps but for the example I'll just create new ones:
image[BitmapThumbnail] = new BitmapThumbnail(new BitmapData(65,65,false,0x000000));

[Code]....

Is there a simpler way to do this? I feel that there is a lot of repeated code within the BitmapType sub-classes.

At the least, this helps to avoid a bunch of for loops trying to find the requested size, and it seems portable to situations where more or less sizes of Bitmaps are required.

View 1 Replies

ActionScript 3.0 :: Flash - Covert Array Of Bitmaps To Flv Video?

Aug 5, 2010

how to convert array bitmaps or bitmapdata to flv video?

View 7 Replies

Flash :: Resize / Scale Multiple Bitmaps(duplicate 1 Bitmat Over And Over)

Dec 2, 2010

I am trying to make a frame arround an uploaded picture by repeating 1 image over and over again. The user will have to enter the real dimentions of the picture and the image will be scaled acordingly so that the frame will look as big as it should. The problem is that when I get a bigger pickture and I scale the images something goes wrong and there is some smearing in the movie clip. When I move it to X:0 and Y:0 all is well. When I move it to the center of the screen the smearing is there. Here's the code I use:

[Code]...

View 3 Replies

Flash :: Draw Multiple Bitmaps Onto A Single Sprite In Different Locations?

Feb 8, 2011

I have many base images that I need to combine to construct larger images to draw on Sprite objects. I understand that the beginBitmapFill() method of the Graphics class renders a bitmap on a Sprite's graphics object. So I figure that I need to manipulate the BitmapData object, adding the base images to produce a composite image that I can then draw on my Sprite.

My question is: Is there any clean and relatively hassle free way of doing this? Is there a way to draw Bitmaps to certain locations in a Sprites graphics context? Could you copy a Graphics object onto another at certain coordinates and build it that way?

View 1 Replies

Flash 9 :: Auto Setting Smoothing To True For Imported Bitmaps?

Sep 29, 2008

Is there a way to auto set smoothing for all bitmaps in the library? or at least for imported bitmaps?

View 1 Replies

Flash :: Drawn Bitmaps Disappearing After Invoking Function To Alter Vector?

May 13, 2011

I am trying to randomize the positions of MovieClips in a Vector. to be added to the main stage's display list. I have this function that generates the MovieClips with their properties:

private function initMovieClips():Vector.<MovieClip>
{
var initVec:Vector.<MovieClip> = new Vector.<MovieClip>();

[code].....

View 1 Replies

Flash :: CS3 (mac) Sluggish Performance?

Dec 2, 2009

PowerMac Dual 2.3 GHz G5/8 GB RAM I suspect I'm not using best practices, as this is my first project, but my the flash file is getting very sluggish to work on. The swf (AS 2.0) publishes fine and runs OK off the server and in the browser, but the Flash application is slowing down to a crawl making work very unpleasant indeed. Not that it was ever that fast to begin with. The Flash file size is presently 15 megs. It's got a log of symbols in the library and a lot of small jpgs used as navigational buttons, and utilizes many instances of the loader component to dynamically load external files: Is this too much of a demand on the app's resources? I do think that some of this has to do with a poorly implemented user interface (first attempt by Adobe to make Flash "look and feel" like a CS app), but I'm sure there are other issues.

View 1 Replies

Flash Cs4, And Other Compilers - Difference In Swf Performance?

Mar 8, 2009

I was wondering, because people do suggest this, but i've never explicitly had it verified:does the flash cs4 compiler actually generate a SWF file, that is more optimized and faster, than the flash cs3 compiler?and what about other compilers? custom as3 compilers, are there faster ones?I don't mean the time it takes to compile the .fla, but the speed of the SWF file.

View 1 Replies

ActionScript 3.0 :: Getting The Performance From Flash Using Curves?

Aug 28, 2009

I've been working on simple animation for a client, which you can see __here__.I have a few issues with performance. I have popped a fps counter at the top left and it seems to only run at around 30 fps on my laptop, I need it up to 60 though.

i was just wondering if anyone had any tips about getting the best performance from flash.I have used Shape instead of Sprite on the curves, which gave a slight improvement. Surprisingly I didnt notice any change in performance when I dont use the blur filter on the curves, which was odd to me.

View 5 Replies

Internet Explorer Flash Performance?

Nov 11, 2009

Steps to reproduce my problem:Create simple dot DisplayObject in flash

dot.graphics.beginFill( color);
dot.graphics.drawCircle( 0, 0, 2 );
dot.graphics.endFill();

Draw dot to bitmap many times a frame

bitmapData.draw( dot, null, null, "normal", null, _smoothing );

Test FrameRate in combination of browsers,flash plugin versions on Win32

Expect:

Framerate to be close in most cases

Observed:

I am seeing a 25% decrease in framerate under IE7 using Flash10b.ocx(10.0.22) and 50% decrease in framerate using Flash10c.ocx(10.0.32). PLugins under FireFox, Safari and in Mac OSX don't exhibit the same slowdown.

I would like to get help/confirmation on a performance problem that I see in Internet Explorer. The Adobe and Flash community is great on the Internet but I have been surprised to see no information on this, just a few reports about movie playback on 10.0.32 vs. 10.0.22.

My guess is that in IE flash plugin is passing draw calls to Win32 and that this is slow.

Instead of drawing each time on the bitmap using draw, cache the draw calls to a bitmap and use CopyPixels. When I do this the performance is the same across browsers, within 10%.

bitmapData.copyPixels(dot.bitmapData,dot.bi tmapData.rect,new Point(dot.x,dot.y),null,null,true);

Loop I am using:

function enterFrame(e:Event) {
bitmap.lock();
for (var i:int=0;i<particles.length;i++) {

[code]....

View 2 Replies

Test The Performance Of A User's PC In/for Flash?

Apr 8, 2010

I'm a developer on nice space MMO using Flash. On new PCs performance is quite good, but some features shouldn't be enabled on older PCs because the framerate drops to shit if we do. Flash wasn't made for this, but hey, pushing boundaries is fun.

An example is fullscreen mode. Of course every user can manually enable it, but "advertising" it to a user with and oldie PC would be a bad idea - but for the Alienware crowd it would be dumb not to.

So I want to find out how "capable" a user's PC is to decide if I should enable or disable some features for him.

View 2 Replies

Flash :: CPU Performance Proeblems With Animation?

Jun 24, 2010

Well I'm having a hell of a time trying to get my CPU down under 45% when running my current application. I've tried all sorts of optimization tricks and tips with little success and I'm at a point now where I need a fundamentally different approach.

Problem and Current Approach In the main view of my application I have a single enterframe handler.I have my frame rate down as low as 10 fps. This handler notifies 16 seperate movie clips to draw wedges of varying angles using Lee Brimelow's wedge class. So, 16 times every enterframe, I have 16 movieclip graphic clear, begin fill, draw wedge, endfill all being co-ordinated by my single enterframe handler.

[Code]...

View 2 Replies

Flash - AS3 CPU Performance With 100 MovieClip Copies

Aug 16, 2010

I have a movieclip wich has a simple movement of a simple shape. This movieclip is copied many times to create a graphical effect. As the number of copies, or the complexity of the movieclip increases, CPU usage goes up. As from 90 copies, when I keep moving the mouse over the swf movie in a circle, playback stops (hangs). When the mouse movement stops, the swf continues again at the right position, as if calculation has continued, but updating the display has not. Now this is a quadcore pc, and we're 2010. I can't believe or accept that 100 mc's is the maximum number of movieclips that can be rendered. The obvious question is what can be done to optimize CPU performance ?

I'm using AS3, flash player 9.
Movieclip is a simple rectangle shape which moves along 1 axis.
var myLinkage:Class = Class(getDefinitionByName(getQualifiedClassName(McToRepeat)));
var newMC:MovieClip = new myLinkage();
containerMC.addChild( newMC );

View 1 Replies







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