ActionScript 3.0 :: One Large Bitmap, Or A A Few Smaller Ones?

Dec 30, 2010

Let's say I have some background made up of 4,000 small vector images (doesn't matter what they are, say flowers or stars or something). Once this background is set, these small items won't move or animate. The background will stay the same.What I would do, rather than keep 4,000 sprites on the stage, I would create one single background "Bitmap" which has all the sprites drawn onto it once.Is this still a good idea if that Bitmap is so large it covers the entire stage (which may be quite large for larger monitors if using NO_SCALE and fullscreen or something), or is it better to break that large Bitmap into 4 or more smaller ones placed seamlessly alongside eachother to seem like a large one?

View 2 Replies


Similar Posts:


Flash - Tween Large Bitmap Without Lag?

Jan 24, 2012

I'm using a 3800x3000 bitmap as a background of a game.

Now, I first show the whole bitmap - the landscape -, and than zoom in at the characters. I'm using TweenMax from GreenSock, but even with this advanced tween class my bitmap doesn't move and scale smooth.

I'd like to work with smaller bitmaps too and scale them, but than I'll lose the quality, and I can't blur the bitmap to hide the quality loss, since there's a terrain in the bitmap too, and I don't want to blur that.

View 2 Replies

ActionScript 3.0 :: Large Bitmap Versus Multiple Small One?

Aug 4, 2011

I have 2 grid of 15x15 using BitmapData (One of 32x32, and one of 10x10). I've try 2 ways :1) Create multiple bitmap

ActionScript Code:
for ( var y:uint = 0; y < m_height; y++) {
for ( var x:uint = 0; x < m_width; x++) {

[code].....

View 0 Replies

ActionScript 3.0 :: CopyPixels Vs. Sprite For Large Bitmap Motion?

Feb 21, 2009

is copyPixels not as speedy as it should be when Tweening large bitmaps ?

copyPixels does a wonderful job on images 500x500 or less, but on larger images, my motion is not as smooth.

all i'm trying to do is slide an image from stage.stageWidth to 0 (right to left).

View 1 Replies

ActionScript 3.0 :: FireFox / IE / Chrome Speed On Large Bitmap

Jan 29, 2010

I have a project that is drawing ~10,000 small tiles into one large bitmap container - it's a mosaic... In Flash proper and in FireFox it takes about 20 seconds to complete the drawing. In Chrome it takes about 1:30 and in IE it takes roughly 3:00 - both too slow to be acceptable to the client - who of course reviewed with IE...

I have Flash set to run at 45 fps - and the images are populated by a Timer - at 2 ms intervals... Maybe 2 ms is too fast? But in my testing 1ms was slower as was 3ms... so I kept at 2. And works fine in FF and Flash...

View 1 Replies

ActionScript 3.0 :: Drawing Small Tiles Into One Large Bitmap Container

Jan 29, 2010

I have a project that is drawing ~10,000 small tiles into one large bitmap container - it's a mosaic. In Flash proper and in FireFox it takes about 20 seconds to complete the drawing. Very acceptable. In Chrome it takes about 1:30 and in IE it takes roughly 3:00 - both too slow to be acceptable to the client - who of course reviewed with IE. I have Flash set to run at 45 fps - and the images are populated by a Timer - at 2 ms intervals. Maybe 2 ms is too fast? But in my testing 1ms was slower as was 3ms, so I kept it at 2. And it works fine in FF and Flash...

View 4 Replies

ActionScript 1/2 :: Create A Single Large Bitmap Data At Run Time?

Feb 8, 2010

Requirement: Create single very large bitmap data which contain some 30 PNG images loaded and for each image it should have some text.  Images and text are loaded dynamically (AS2 code. Images are stored in a remote server). The bitmap data display should show 8 images at a time and corresponding text. We can see rest content by scrolling (kinetic scroll is implemented). How can I go for it?Some questions:Is there any limit for size of bitmap data ( As per link there is restriction on the height of the bitmap we can create in AS2 (max value is 2880 which is not enough for some 30 element list If we create individual bitmap data for 30 individual PNG files, we find some jerks in scroll. How can we have smooth scrolling?

View 5 Replies

ActionScript 2.0 :: Photo Gallery - Make The Image Window Smaller And The Overall Movie Smaller?

Jun 25, 2004

I found this really neat photo gallery on flashkit but there is no support or readme included. how to size this thing.. the AS code does have comments but I am not a coder.I'd like to make the image window smaller and the overall movie smaller. 325x325 or so

View 10 Replies

Professional :: JSFL Function ExportPNG Failing With "bitmap Too Large" Error

Jul 14, 2010

I'm trying to export to PNG from the JSFL document.exportPNG function with 'bCurrentPNGSettings' but it fails. Flash keeps complaining that "The bitmap is too large.The largest bitmap that can be created is 8000x800 pixels."The width x height of the document is set to 1920x1080 and I've tried modifying the publish profile appropriately.Still no-dice. If I set 'bCurrentPNGSettings' to false so that the export dialog appears it pops up with the correct width and height; clicking OK exports properly.

View 2 Replies

ActionScript 3.0 :: Bitmapdata.hitTest - Bitmap 'emptyBitmap' With Bitmap Data Created

Feb 3, 2009

I'm cutting my teeth in actionscript 3 on a game that has a character running through a world. So, I have set up my Hit Testing by using the bitmap data hit test method, since I figured my world is going to be destructible - it'd be nice to update the level and then redraw it and have the character interact with the new change. (That works beautifully) I am however; a bit confused as to how I have my hit Testing set up. I've been messing around with it, and it works for now - but I'm not sure why.. currently, I have a character set up by using a class I built and using a series of animations I created. So, this character has a walking and falling animation, etc. This is a movie clip.

Then there's a bitmap 'emptyBitmap' with bitmap data created - however; I never really added this as a child to the character. This is sized to the dimensions of my character. My level is created as a movielip, then it's drawn to a bitmap - when the level movieclip is changed, the bitmap redraws, and that's how this updates.

[Code]....

View 1 Replies

ActionScript 3.0 :: Use The BitmapData Property Of A Bitmap And Pass It To The Constructor Of A New Bitmap Object?

Aug 20, 2009

I know the topic of "duplicating" movieclips is a hot issue with the new virtual machine. Luckily, I understand the implications. I only am [currently] interested in duplicating a Bitmap. See, I load an image from an URL using 'flash.display.Loader.load', which is a non-blocking operation in Flash Player.However,I may use multiple copies of the loaded image (which is reported to be a Bitmap, naturally) in the display list at the same time.Hence, I naturally do not want to load the image from an URL every time, because I don't want to wait for a non-blocking call to complete. Nor do I need to - I mean one copy is already loaded, so it should be possible to just "duplicate" it, right?

My idea is to do use the bitmapData property of a Bitmap and pass it to the constructor of a new Bitmap object. I have not tried the following in action, but I want to hear whether any of you did and if the following would not work, what would:

Code:

var original_bitmap: Bitmap;
var copy_of_original_bitmap: Bitmap = new Bitmap(original_bitmap.bitmapData);

LiveDocs mention that the BitmapData being passed to a Bitmap constructor is "being referenced", which to me might suggest it cannot be used twice? There is also the BitmapData::clone() method, which I am not sure is applicable here or not.I know this is a lot of talk instead of just trying this out, but I test so much Flash Player code daily just to see "what works" (which should be documented instead by Adobe),

View 4 Replies

Flex - Function To Redraw Bitmap On Sprite Without Passing In Said Bitmap?

Feb 22, 2011

If I have a BitmapData that's already been drawn onto a Sprite. Is there a way to redraw the BitmapData onto a Sprites Graphics object without having to invoke beginBitmapFill and passing in the same BitmapData?

View 1 Replies

ActionScript 3.0 :: Drawing From Bitmap To Bitmap Overrides Earlier Graphics?

Dec 29, 2010

I'm working on a game, and to keep performance good, instead of addChild'ing 50 new sprites to the stage every second, I decided to have each player draw to their own bitmap, and then to the 'master' bitmap. This introduces an issue though: the second player would override all data the first player has put into to bitmap...My basic debugging proof of concept:

Code:
// bitmap test

import flash.display.Bitmap;
import flash.display.Bitmap;[code]......

View 1 Replies

ActionScript 3.0 :: Copying A Rotated Bitmap Into A Bigger Bitmap?

May 9, 2011

I have a bitmap which has several frames (packed along the horizontal axis). In order to render them I copy it to the backbuffer (larger bitmap) as follows:

Actionscript Code:
public override function copyToBackBuffer(db:BitmapData):void{ if (active)  var drawRect:Rectangle = new Rectangle((currentFrame-1) * frameWidth, 0, frameWidth,

[code].....

View 5 Replies

Actionscript 3 :: Update A Portion Of A Bitmap With A Pixelbender Instead Of The Whole Bitmap?

Feb 17, 2012

In pure AS3, I have a pixelbender and a large bitmap. The pixelbender is configurable with a distance parameter to affect only a small area of the bitmap. The problem is that the pixelbender is executing over the whole bitmap. What would be the best way to update only the effected region of the bitmap? Given this config:

[Code]...

View 1 Replies

ActionScript 2.0 :: Bitmap Font Text Drawn To Bitmap

Oct 8, 2006

Is there a way to write a bitmap font right into the bitmap being desplayed? Mabey better worded: myBitmap.draw(image, t) draws a picture is there a way to draw text? I'm stuck even if its just a work around in some way I would like to know... (the current work around i have in my head is writing it in a movieclip turning that into bitmap data and drawing it... esentially creating a prototype answering my question... but a built in way would be easier probably).

View 2 Replies

Actionscript 3 :: Bitmap Too Big - Limitation Is In Bitmap And Loader?

Mar 30, 2011

In AS3, I am loading a png from a zip file (nochump's zip library through ByteArray to Loader). The png can be up to 45k pixels wide but only 120 tall. This creates a problem in flash, as images can only be ~8000 pixels wide. A possible solution would be to split the images into 6 columns somehow. This would probably need to be done in the ByteArray state, because the limitation is in Bitmap and Loader.

View 2 Replies

ActionScript 3.0 :: Draw Bitmap Instead Of Export Bitmap?

Nov 5, 2009

I'm using Sandy to animate some objects in 3D. What I currently do to images which are EXPORTED in the library, I want to do to some bitmaps that I create using the DRAW technique. But it wont work :-(

CODE FOR 'CREATED BITMAP' :
ActionScript Code:
var bData:BitmapData = new BitmapData(myObject.width,myObject.height);
bData.draw(mask5);

[Code]....

Sandy doesn't seem to treat the 'created' bitmap the same as those that are exported from the library.

View 0 Replies

Can't Get File To Be Smaller

May 4, 2010

I've been trying to get this png file as small as possible. It's currently 96kb and I'm going to use it for banner ads. Most limits are 40kb. When I compress this down and reduce the quality to about 50 it only gets me down to 50kb. Still over. I've tried converting it to a vector and a few other things but no luck.how I can get this as small as possible while preserving the blank background?

View 7 Replies

Can't Get Png File To Be Smaller Than 50k

May 4, 2010

I've been trying to get this png file as small as possible. It's  currently 96kb and I'm going to use it for banner ads. Most limits are  40kb. When I compress this down and reduce the quality to about 50 it  only gets me down to 50kb. Still over. I've tried converting it to a vector and a few other things but no luck. how I can get  this as small as possible while preserving the blank background?[url]...

View 2 Replies

Website Smaller When Uploaded?

Dec 9, 2011

I have created my website with flash pro cs5 and when i open my html it looks okay but when i upload it to my server host and view swf file it looks smaller in myindex html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

[code].....

View 1 Replies

ActionScript 3.0 :: .swf With Embedded .flv Much Smaller?

Jan 11, 2009

Don't know why it's smaller.Also, I could use .flv in Dreaweaver, but DW always insists on putting a skin on it.

View 1 Replies

Professional :: Swf Doesn't Get Smaller

Dec 28, 2010

I made a Flash 8 movie (Swf) that is 212kb in size. I could reduce the size of my .Swf by compressing its pictures. I did so, reducing the pictures inside it from 518kb to 183kb with Irfanview but when I import them into my movie/library and save it there is NO difference in size - it stays on 212kb.

View 5 Replies

ActionScript 2.0 :: Swf Doesn't Get Smaller?

Dec 28, 2010

I made a Flash 8 movie (Swf) that is 212kb in size.

I could reduce the size of my .Swf by compressing its pictures.

I did so, reducing the pictures inside it from 518kb to 183kb with Irfanview but when I import them into my movie/library and save it there is NO difference in size - it stays on 212kb.

View 3 Replies

Professional :: Nested Movieclip Become Smaller ?

Nov 27, 2011

I created a stage size 960 by 640, than i create a movieclip exactly the same size as the stage, but when i double click to get into the movieclip everything get smaller an object with 960 by 640 has reduce to 184by 140??? How do I get it back to the original size?

View 2 Replies

Flex :: Why Is The Size Of Swf File Smaller Than The Sum Of It's Swc's

Jun 24, 2009

I compile my Flex application with several swc's (libraries) and it creates a swf file. The sum of the swc's is roughly 4 MB yet the actual swf generated is only 1.6 MB. How is this possible?

View 3 Replies

Flash :: Check If Value Is Not Smaller (!<=) Or Bigger (!>=) Than Value X?

Feb 17, 2011

How to check if value is not smaller (!<=) or bigger (!>=) than value x?

View 4 Replies

IDE :: File - Resized (smaller) Look Pixelated?

Mar 18, 2009

Why when I take a file that's huge and resize it smaller does it look so pixelated? I have on smoothing and the file looks great until I make it smaller.

View 2 Replies

ActionScript 2.0 :: Text Larger Or Smaller?

Jan 16, 2005

How i can to, knowledge, my text is smaller or larger of the value? If my text1.text the value is 10 and my text2.text is 20, how i can to flash detect if is smaller or larger?

View 1 Replies

Actionscript 3 :: Create A Bitmap From Another Bitmap?

Feb 24, 2012

Letīs say I have a bitmap with 3 colors: red, green and blue (not mixed)

What if I wanted to make a bitmap of the red part of the first bitmap?

Iīd like to take the red pixels from first bitmap (and its positions), and make another bitmap.

View 2 Replies







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