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


Similar Posts:


Flex :: Gradually Create Childs For Displaying Large Data?

Jan 13, 2012

I have a large ArrayCollection that need to be displayed in series of Datagrid.After testing, the loading time is around 30secs-1minute.My question here, is there a way to gradually add each datagrid and display it instead of waiting until all datagrids to fully created?Existing :

AddChild 1
AddChild 2
AddChild 3

[code].....

View 1 Replies

ActionScript 3.0 :: Create Bitmap Data Cache For Each Frame Of A Movie Clip?

Jan 15, 2012

I found something when I create bitmap data cache for each frame of a movie clip:I got a movie clip, instead of presenting it immediatly on stage, I created a bitmap data array to store each frame of it, so I'm doing:
 
var body:MovieClip;     // some mc for body
var suit:MovieClip;     // some mc for suit, frame count is the same as body mc
body["part"].addChild(suit);     // it's a avatar, there's a sprite named "part" on body mc to contain suit mc

[Code]....
 
if i present the original body moive clip, everything is ok, but when I use cache, it begins to tremble, this is because the getBounds() method of movieclip returns different rectangle when mc is cached and mc is presented on stage. I tried trace out every getBounds() when caching and when Event.FRAME_CONSTRUCTED fire, they're different, making my cache crash!
 
I assum MovieClip class do not refresh until it's present to stage or some time in on frame, how can I get the real boundary of it if I need to cache it?

View 2 Replies

ActionScript 2.0 :: How Large Can An Array Storing Only Single Numbers Be

May 9, 2004

How large can an array storing only single numbers be? Is the limit in the hundreds, thousands, or what?

View 2 Replies

ActionScript 2.0 :: How Large Can Array Storing Only Single Numbers Be

May 9, 2004

How large can an array storing only single numbers be? Is the limit in the hundreds, thousands, or what?

View 2 Replies

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 :: 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

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 :: 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 :: 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 3.0 :: Knock Out A Single Color From A 24Bit Bitmap?

Jun 20, 2010

This may be stunningly simple (It certainly was in Director), but I just can't work it out in flash. I basically want any pixels of a certain color on an imported 24Bit (no alpha) Bitmap to appear transparent using AS3 (like a simple color mask, any black pixels are not drawn). threshold() only seems to work correctly on 32Bit BitmapData with alpha channel so the only way I've found so far is this craziness..

[Code]...

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

ActionScript 3.0 :: Optimization On Load Time (Large Images And Sounds)

Jan 27, 2011

I have an all flash website that works by having each portion of it to load and unload in the center of a frame based off the navigation chosen.Load times on everything but one part of my site are ok.The dimensions of the part inside the frame are 968x674.I know that's relatively large for a flash file, but that can't be changed at this point.Within the page there are objects that come up when you find an item on the screen.Its a dialog box and it shows text, an image, and has a voice over that reads what the text says.After you're done looking at it, there is an x-button to dismiss the window.There are 15 of these and they are exported to the actionscript.I add them in the actionscript via addChild.
 
The other huge thing is there is a ton on the screen.It starts you off in an environment, and when you click 3 different sections, it zooms into that portion allowing you to look for the items you're trying to find.There is also a man that talks and animates in the beginning and at the end.We are planning on taking out the end part and putting a text box up. URL...The two parts of the site we are trying to optimize is the main menu when you first are at the site, and the "Explore" section.(Just click on the cloud on the front page.

View 2 Replies

ActionScript 3.0 :: Swapping Large Quantities Of Text Out At Run Time Using Fl.Lang

Mar 9, 2011

So I'm working on some localization stuff and I'm using the fl.lang.Locale library in AS3/CS5. I am using the strings panel, and can get stuff to the XML files in the proper XLIFF formats.I am attempting to be able to swap out text (and eventaully assets) at run time using the "Replace strings: via ActionScript at runtime" setting.As it is, I have to reference every text field directly by instance name. I have begun to place those text fields into a Dictionary to line them up with their proper IDS.I have 2 questions.

1) is there a better way to replace all of these text fields? there are a LOOOOOT of text fields spread out across many many scenes. Is there a built in "change all fields" function somewhere that I'm missing?

2) why won't this work.[code]

View 0 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 :: Set Variable Time For A Single Timer?

Jan 7, 2010

how to set variable time for a single timer, like I first setup this timer:

private function timer():void{
var randomTimer:Timer=new Timer(time,0);
randomTimer.addEventListener("timer", somefunction);

[Code].....

So how can I influence the time inside the timer? Do I create a global timer, remove the listener and recall the timer function? Would this work since the timer has already been declared, I a re-declare a timer?

View 1 Replies

ActionScript 3.0 :: Using Dictionary Over Object Every Single Time?

Jun 24, 2010

Any good argument as to why I shouldn't use a Dictionary over an Object every single time? I can't think of any case an Object can do the job a Dictionary can't, and it doesn't seem as the Dictionary creates that much more overhead.

View 8 Replies

ActionScript 3.0 :: Keep Large Amounts Of Data?

Apr 25, 2011

Im not sure whats the best way is to make large amounts of data available to my android app on the local device.

For example records of food ingredients, in the 100's?

I have read and successfully created .db's using this tutorial.[url]...

However to populate the database I use flash? So this kind of defeats the purpose of it. No point in me shifting a massive array of data from flash to a sql database, when I could access the data direct from the as3 array?

So maybe I could create the .db with an external program? but then how would I include that .db in the apk file and then deploy it to users android device.

Or maybe I create a as3 class with an xml object init and use that as a means of data storage?

View 1 Replies

Flex :: Different Country Time Into Single Page Using Flash

Apr 22, 2009

i am beginner dont know how do display all country time into a single page using action script 3 in flex . do u know any example time code refer me . i will try that code .

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

Javascript :: Libraries For Large Data Visualization?

Feb 16, 2011

Are there javascript libraries that can handle large data visualization? I've seen Protovis, but not sure how much data it can handle. Also, how do Actionscript libraries compare to Javascript in terms of performance?More:I've tried Flare, but seems to be slow for my applictaion. Now I'm yet to figure out if it is the rendering or if it is the shaping of data for rendering. I am looking at interactive graphs like the JobVoyager.

View 1 Replies

ActionScript 3.0 :: Storing Large Amounts Of Data?

Aug 20, 2009

how "you" would do it and then deciding my strategy from there.What I'm setting out to do is as follows:I have a UI with about 10 sliders and 10 buttons.I'm using Senoculars Virtual Mouse class to record all of the users interactions into arrays (basically [x,y, action, time, value]) and then after a decided time (say 3 minutes) I play the users interaction back to them.All of that works fine but now the data is not persistent.I would like to be able to store the interaction data somewhere and then a user can log out, log in and view their previously saved interaction.how would you go about saving this data? I was thinking about storing it in a XML file but I'm concerned that the file would wind up being ridiculously huge. If a user drags a slider from left to right just once thats saving [x ,y action, time,value] 42 times.

View 3 Replies

ActionScript 2.0 :: Importing Large Amounts Of Data?

Sep 12, 2006

I'm currently using XML to import geo-location data to my flash application.Even though my XML scheme is about as small as can be, I still feel i would do better downloading the variables as text and exploding them. If i manage to change the xml to raw text I can compress the data to about 35% of the original size.I want to load the data in the form a_b_c_d-e_f_g_h.So, to the question; how do I explode a datastring in flash?

View 2 Replies

ActionScript 3.0 :: Input About Large Data Handling?

Jan 28, 2009

I'm building a sidescrolling world where you can move around.The idea is that you should be able to move to any point in the world, as well as travelling really fast.I'm pregenerating a long list of data about objects to place, their positions etc.

Now. When moving to a point far away from current position I don't want to loop through the whole list of objects to find what objects should be seen and not, so I'm thinking I should divide the position list into sections, each covering an area equal to the visible area. That way I would only have to roll through the lists closets to the new position.This would however result in an array of thousands of elements each consisting of about 20 objects and I'm figuring that might not be very healthy.One solution would be to split everything up further so that in the end I would have a handable nr of arrays containing a handable nr of elements.

You're probably thinking I should generate positions on the fly, but since one place in the world can be revisited I need to store all positions.

View 4 Replies

ActionScript 2.0 :: Sending Large Data With Loadvars?

Mar 20, 2009

I've got a small problem with loadvars. I want to send data from Flash to PHP, which usually works well. But right now I need to send "larger" amounts of data around 10-20kb and loadvars doesn't work anymore.

Using loadvars to open browser-windows seems to work fine, but I want everything to happen inside of flash.

The code is:

Code:
datastring = "1, 2, 3 (...) 4998, 4999, 5000"; // long text
loadstring = 'save.php?data='+datastring;
db = new LoadVars();

[Code].....

Works fine with small text, with big text nothing happens. How to do this the right way?

Edit: Loadvars seems to work up until 4050 characters, 4051 and it doesn't send anymore. But I can't really split the query..

View 1 Replies

ActionScript 3.0 :: Two Functions Running At Same Time With Single Button Press

Jan 23, 2012

I have a problem with two functions. This is the story: the user has to press the space button on keyboard when he sees something on screen, then the "rightClick" function is called. If he presses the button when there is something else on screen that is a wrong answer (function "wrongClick" is called). The problem is that when the user presses the space button both function run at the same time.

This is the call of the wrongtClick function on frame 5
stage.addEventListener(KeyboardEvent.KEY_DOWN, wrongPress);
This is the call of the rightClick function on frame 10
stage.addEventListener(KeyboardEvent.KEY_DOWN, rightPress);

Both function are very simple:
function rightPress(event:KeyboardEvent):void {
scorenum += 1;
trace ("Right:",scorenum);
} function wrongPress(event:KeyboardEvent):void {
wrongnum += 1;
trace ("Wrong:", wrongnum);
//and plays a sound too
}

View 3 Replies

Ios :: Test Flash CS5 Published SWF's Or Ipa's Without Having To Load Them Onto The IPhone Every Single Time?

Sep 12, 2011

is there a simulator or a way for Adobe Device Central to read CS5 created iOS published SWF's or ipa's for testing purposes?At the moment, I make a change in Flash CS5, publish the SWF and IPA, delete the old version from my phone, drop the new IPA in, re sync and test. This is not good for the workflow. What are the options for testing and developing?

EDIT:I am on a Windows machine (Windows 7).

View 2 Replies

String :: Adding A Single Letter At A Time To A Text Field?

Dec 26, 2011

Given the following example SWF: Sample Notice how with the words "enthusiast" at the end of the first line and "write" at the end of the second line, that they start to type out on the first line but after a few letters they are bumped.

I understand this is the correct behavior, but is there a way for "enthusiast" to begin being typed on the second line, and "write" on the third line instead of being bumped during the typing?

Currently I am thinking of doing a search ahead mechanism, so it finds the next word in whole, then makes that the active word to print, temporarily print it, see if it increases the numlines, and if it does insert a line break and continue writing. But it seems fiddly.

[Code]...

View 1 Replies







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