Actionscript 3 :: Memory Optimization In Air Apps

Apr 15, 2011

I have a simple air app that is deployed on a server. All it does is that it makes a httpService request to a webpage every 5 mins. For some reason, it starts out at out at 25MB memory utilization (Task manager), and every day, it adds about 1MB on top of that. I can't figure out why its sucking up memory. I have an eventlistener for the timer in the initialize of the app.I have read a few articles about memory optimization and best practices for air app development. They say you should remove the event listeners after they have fired. But if I do that, the timer will not fire any functions after it fires once.[code]

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Weak References Can Be Used For Memory Optimization?

Mar 5, 2010

i heard that weak references can be used for memory optimization, but i really don't understand what it is. does anyone around here know a good tutorial, blog or something that covers this issue?

View 2 Replies

ActionScript 3.0 :: Touchscreen Project - Memory Usage Optimization

Jan 12, 2011

I am working on a touch screen project right now. There is a chance that the touchscreen will never be turned off, so I have to be very aware of the memory issue with the pc. I don't want the memory to keep building up and eventually it just freezes up the pc. Basically, I have separated each section into a separate swf. The idea is to load only the swf that is needed in order to optimize memory usage. I tested the app on a pc, when looking at the "processes" in the window task manager, it seems the memory used will just keep increasing as I navigate through the application, it seems to me it just keeps piling up external swfs in the application, but sometimes the memory will just suddenly decrease. And when the touchscreen application is idle, the memory will drop too.

The following code is what I used to load and unload the external swf. Did I do it right? Is there anything that may have left unnoticed that is still staying in the memory? Is there any other way to optimize the memory usage too?
ActionScript Code:
var prevLevel:* = this.parent;
var currentPage:MovieClip;
var oldPage:MovieClip;
var bgID:String;
[Code] .....

View 0 Replies

Actionscript 3 :: Greensock LoaderMax Memory - Clean The Memory Which Been Occupied By The Previous Queue

Jan 31, 2012

I have a bit trouble with LoaderMax memory occupy, i have a queue, and i am keep loading images depend on user's action. if they click load more and it keep load, but i would like to clean the memory which been occupied by the previous queue (i have remove all the children been added by the loading previously). is there a way i can do it? the behavior like this.

[Code]...

View 1 Replies

ActionScript 3.0 :: Memory Monitor That Allows To See The Memory Leaked And Find Its Location?

Sep 26, 2010

I have an FPS monitor running and notice that I am getting choppiness here and there, bringing my game from 40 to 27 fps and back and forth at certain stages. I have an idea of where it is happening, but do not know for sure. I looked up quite a few memory monitors but haven't found anything decent yet. Is there a memory monitor that allows you to see the memory leaked and find its location? If not, how about just he memory leaked?

View 4 Replies

ActionScript 2.0 :: Memory Management - Take Less Memory For Scrolling

Aug 2, 2007

I'm making an isometric game and I need to know which takes less memory for scrolling, making everything invisible that you can't see? Like if(!this.base.hitTest(worldHitter))this._visible = false; Or would it be better to remove the movieclips unseen and then reattach them when i should see them?

View 2 Replies

IDE :: Optimization Of Complex Graphics?

Jul 28, 2009

making a flash game that has a lot of rather complex illustrator graphics. In the game you walk down a street, so all the graphics has to be moved every frame. In some levels where there are a lot of objects in the street the game starts to lag. after importing it to flash and making a mc of it, break it apart to save flash from drawing all the shapes that aren visible anyway?

View 2 Replies

Search Engine Optimization Flash?

Nov 12, 2010

just uploaded my first flash website..and I'm having difficulty working out how to get google to 'see' it.
I've registered the site with google and have a very specific phrase in the <title> tag of the html code but the more I investigate, the more complicated it seems..Can anyone point me towards a step by step tutorial or something to get my site in the top 10 results?

View 5 Replies

Flash :: Graphics Optimization For Programs?

Aug 23, 2010

Is there any program or setting for "pointing" flash programs at my graphics card rather than leaving it to the processor and RAM alone? I am running a specific frontend software that is a flash executable- unfortunately it lags heavily on execution despite the fact that I have a very nice video card installed.

View 3 Replies

ActionScript 3.0 :: Flash Optimization On Mobiles?

Feb 18, 2011

I have read all the documentation and more on optimizations. My question is that if you have to resize sfws for different mobiles is it best to have a res thats the biggest mobile and the rest we can use fullscreen. Or is it best to make a smaller swf and have it size up to full screen. Obviously we are not going to create an swf in 20 sizes. By the way, is it MORE processor hogging for a  mobile to size down a 800 by 600 standard swf than to downsize an swf thats only a little larger than the mobile screen.

View 4 Replies

Professional :: Illustrator To Flash Optimization?

Nov 8, 2011

I'm itching to find the most effective way of importing my illustrator vectors into flash but keeping the file size as small as possible. At the moment i'm literally copying my vectors in illustrator and pasting them in Flash, it clearly works but the file sizes seem really high and its hindering the performance of my fla. Is there a more effective way of exporting? or optimizing the imported vectors once they're inside flash?

View 1 Replies

ActionScript 2.0 :: [FMX] Processor Usage Optimization?

Oct 20, 2003

I have a script as follows attached to an MC that is pretty processor intensive (well, that is when the MC is duplicated 30 times). I'm looking for some input from people on how to possibly optimize this to cut back on how badly it lags the rest of the movie. My computer is quite powerful but it still shows performance issues with this script:

[AS]
onClipEvent(load) {
//size of purpleCloud's active area

[code].....

View 3 Replies

IDE :: Best Search Optimization For Flashed Site

Jun 28, 2005

I have a client that I built a wonderful flashed site for (html page embedd). It isn't getting any attention on google compared to other completely html based sites. How can I tweak this situation for more google searchability?

View 14 Replies

ActionScript 3.0 :: Drawing In Bitmap Optimization?

Feb 11, 2010

today i started some particle generator class that will move particles over the stage via drawing in a Bitmap. Everything works well with low amount of particles, lets say 1000, but for my surprise when i added 10 000 particles the frame rate dropped drastically. And i am saying that since i made the same particle generator using MovieClips instead of drawing in Bitmap, the performance test i run on both classes showed that the Bitmap class with 10K particles on my PC works in around 10-12 FPS, and the MovieClip variation in around 20-21 FPS with the same amount of particles. The particles are identical and both classes are using linked list system to move the particles. So the only logical conclusion is that something is not right with the drawing function.

Code:
private function drawParticles(e:Event):void{
// clearing the _pZone Bitmap of the previous data
_pZone.bitmapData.fillRect(_pZone.bitmapData.rect,0);
_pZone.bitmapData.draw(_blankMc);

[code]...

View 1 Replies

Flex :: Flash - Total Memory Usage And TaskManager Memory Usage Are Different?

Aug 24, 2010

I wrote an application in flash AS3, and when I trace from flash the total memory usage of the total application is only about 9MB, But at the same time Task Manager Shows the memory usage as 110MB. Around 100MB difference.Flash Trace Method System.totalMemory difference of the Trace from the Beginning of the application to end of the application.

View 2 Replies

Media Server :: Optimization Of Live Streaming?

Aug 25, 2010

I have live streaming but problem is that it is stopping and continues every 2-3 second, I do not know which issues causes it.

View 3 Replies

Professional :: Performance Optimization Vector Vs Raster?

Jan 28, 2011

I am trying to improve the frame rate of a game that draws many floor tiles. Currently, the floor tiles are vector graphics and stored as different frames in a movie clip. I wanted to experiment with rasterizing a floor tile and seeing if that would provide any frame rate boosts. I did this by converting one of my tiles (one of the frames in my movie clip) to a png and replacing the vector version of this tile with this raster version. I then tested two worlds--one filled with tile A (vector) and another filled with tile B (png).
 
In all my tests, world with tile A (the original vector version) outperformed the world with tile B. I am guessing that the reason I am not getting the expected performance gains is because I am still rendering the tiles in the old style and not using any strict bitmap drawing calls?why it is that this method fails to boost rendering speed? Would I have to switch my rendering code to strict bitmap draw calls?

View 7 Replies

Search Engine Optimization Of Flash Websites?

Jun 16, 2009

What are people using to increase their natural listing or rankings in search engines, etc for their flash websites.

What methods or ways are people using to search Engine optimize their Flash websites. Are people building their Flash website a certain way for SEO?

View 2 Replies

Gpu - Enabled Hardware Optimization (wmode) From Haxe?

Dec 11, 2009

It is possible to enabled hardware optimization (wmode) from haxe?

View 1 Replies

Performance :: Optimization Techniques For Flex Applications?

Oct 9, 2011

We are starting to build a Flex 4.5 application (with LCDS) and a Spring/Hibernate based backend.In this context, is there a well-known list of overall performance optimization techniques that one could follow to ensure optimal performance on the client (flex) side? - especially, given that we anticipate users with poor bandwidths

View 1 Replies

ActionScript 3.0 :: Tips & Tricks & Optimization & Professionalism

Dec 17, 2009

I am new in flash AS3 and I have made a little game. I want you to make corrections, optimize script, give advices how to make something easier. Also, in left down corner, there is score text and try this: take 100 score, than hit enemy, than take 200 score and hit enemy again. you will get error. I tried everything and can't get rid of this error. upload_score.php is working fine:[code]

View 0 Replies

Flash 10 :: Video File Size Optimization?

Aug 13, 2010

we are doing a seamless interactive video-game-video project, but are having optimization problems. Because the client wants a full-screen option for both the video and game segments, our file size is too big. Any advice on how to minimize load time yet retain a relatively high-quality image standard? The h.264 image quality, but there are licensing issues, and we need the transparent alpha channel for the video segments.

View 1 Replies

ActionScript 3.0 :: Remove Images From Library(optimization)?

Apr 15, 2011

I got 30 letters(.jpg) added to my library, I made 30 movieclips which are instances of these letters. 30 jpgs make my compilation last long. I tried some different things such removing these and some others tricks but it doesnt work ,because the instances behave strange.

View 4 Replies

ActionScript 3.0 :: Nested For Loops Optimization / Replacement

Mar 18, 2010

I have a program where I have around 100 LatLng (latitude longitude) points, and i have to get the largest distance between any 5 of them but you can only go forward (so if latlng_1 is the point number 5 latlng_2 can only be point number 6,7,8,....,100).
<-- skip the colored thing if its unclear
So I calculate the distance like this:

Code:
Select allfor(i=0;i<points_num;i++) {
for(j=i;j<........
// three more for loops
// and than calculate the distance between all five points and compare if it is larger than previous...

The problem is that the program stops responding for about 2 minutes to calculate this and I would like to know if there is anything I can do to calculate this thing faster? Yes I can reduce the point but than the thing I want to get is less accurate and even if I reduce the points I still want the calculation to be as fast as it can be.

View 2 Replies

ActionScript 2.0 :: Processor Speed Detection And Optimization?

May 3, 2005

i have heard that there are ways to detect how fast the processor is or something like that, and then set certain settings or something within flash, that will basically optimize the performance of the movie so that it works better with the computer it is being viewed on...i really dont know how to describe what im trying to find exactly, i was just wondering if anyone had any thoughts on this, or knew where to find more information about this task.basically, i am starting to design stuff that is really intense, and i need to figure out how i can optimize it better.

View 2 Replies

ActionScript 2.0 :: Search Engine Optimization For Flash

Jul 23, 2008

So maybe I should have thought of that BEFORE doing all my site in Flash, but being a newbie it's a mistake I HAD to make. Now that my client's site is done I realized that I don't know how to make it search engine friendly.

View 7 Replies

IDE :: Performance Optimization Of Online Flash Games

Mar 23, 2009

Any tips and techniques to optimize the performance of online flash games.

View 1 Replies

ActionScript 2.0 :: Processor Speed Detection And Optimization

May 3, 2005

I have heard that there are ways to detect how fast the processor is or something like that, and then set certain settings or something within flash, that will basically optimize the performance of the movie so that it works better with the computer it is being viewed on. Basically, I am starting to design stuff that is really intense, how I can optimize it better.

View 3 Replies

ActionScript 3.0 :: Optimization : Export For AS From Library Vs Load From Folder?

Apr 9, 2010

I have seen that exporting with AS3 from library is a lot better than loading a whole music loop. ie: A tenth of the size so would it be best to always do it that way for a game for example.But if I'm building an English teaching app with 100's of words and sentences it's easier to connect up via xml and load from folder. Which would be the best option here?

View 3 Replies

Professional :: Flash Site And Search Engine Optimization?

Mar 28, 2011

I'm considering a flash site but I'm concerned about SEO. Search Engines can't find keywords in flash sites.

View 3 Replies







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