ActionScript 3.0 :: Free Memory During Slideshow?

Mar 15, 2012

I've got this simple script (I left all original comments) that create a slideshow with timer (this is only part of the whole script), it manages the slides loading in the containers on the stage.The problem is that after each loaded slide the ram of the pc increase by 10 Mb! I tried to solve the problem using:

Code:
slideLoader.removeEventListener(Event.ENTER_FRAME, fadeSlideIn);
slideLoader=null;

in the fadeSlideIn function or the same applied to the currentContainer, but without success.

Code:
// reference to the current slider container
var currentContainer:Sprite;
// slides holder[code].......

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Free RAM Memory During Slideshow?

Mar 21, 2012

the slideshow loads high resolution images (300-500 Kb) from folder with xml. Every time each slide is loaded and shown, the PC ram increase by 10 Mb!I used the commented lines and it works, the memory does not increase, but there are 2 other problem:

- the fade transition between the 2 images: the image in background is lost so that the transition is between white background and the image loaded at the top level (awful effect)

- in the image folder there is a swf too, before the commented code is was correctly loaded and shown.

Code:
function init():void {
slideTimer = new Timer(TIMER_DELAY);
slideTimer.addEventListener(TimerEvent.TIMER, switchSlide);

[code]...

View 5 Replies

ActionScript 3.0 :: Free Memory From Arrays?

May 31, 2010

I am making a game. Whenever a level is created, a few large arrays are filled up with numbers. The memory usage is around 3mb. When I want to load a new level, I want to remove these arrays from memory and repopulate them with the data from a new level. But, no matter what I do, the game keeps on using up an extra ~3mb of memory each time I reload a level.

The arrays are not being removed from memory. I have tried setting every element of every array to null, I have tried setting the arrays themselves to null, I have tried using myarray.splice(0) to remove the elements from the array, but the memory is still not being freed.

Why would this be happening? The memory usage is not from movieclips, it is just arrays with numbers in them. And it seems to me like it is impossible to delete them.

Why would this be happening? How do I force flash to remove the arrays from memory

View 14 Replies

ActionScript 3.0 :: Get Memory Free Up With Remove Clip?

Dec 9, 2008

I have a very simple movie clip in my library with a linkage id of view. with a bmp in it 2000x760.I have a text field to which i'm outputting System.totalMemory via EnterFrame event.and two buttons one to attach the view and the other to remove it. Everything works fine and I am doing everything i know how to clean up after myself as far as the linked view goes when removing it which isn't much just removeChild and setting the ref to it to null.Now the issue is that when i run the swf either in ide or stand alone i get a memory jump when the clip is attached which is fine and great but when i remove the clip memory never gets freed >< I know this has to do with a greater CS issue with gc and all that, but How can i get memory free up with i remove the clip?Lastly I am runing System.gc() when i remove the clip (this can't be the answer? / its not doing anything)

View 1 Replies

ActionScript 3 :: How To Clear / Free Up Memory In Flash

May 4, 2011

I have a question how can I clear/free memory in flash? For example I am finishing game and I want to start from beginning and if I will just jump to the first frame all the objects there are still in this memory, is any possibility to force cleaning memory? Can I free memory for an object? for example I removeChild(something) - and I want to free memory for an object as I will reuse it? How the engine works?

View 3 Replies

Flash - Remove AS3 Class Itself And Free Up Memory

Oct 21, 2011

I have as3 class like this
package {
import Global;
import flash.display.MovieClip;
import flash.events.*;
public class Alert extends MovieClip {
[Code] .....
I use function Close() to remove class itself but i noticed it doesn't frees memory. Is there any way to remove it completely and free used memory?

View 5 Replies

ActionScript 3.0 :: Image Refresh Doesn't Free Memory?

May 14, 2008

[URL]

The movie loads in an external image and refreshes it every second. What happens, though, is the previous image seems to stay in memory. Eventually the browser will hang, because the memory footprint of the flash movie is so large. Even while testing outside the browser, I can see the memory increase by a couple hundred KB every second. You can see it at [URL]

The code I'm using is below (don't make fun, I don't claim to be a programmer).

Code:
function refresh_url(event:TimerEvent){
var url:String = "http://www.live-photo.com/asheville-east.jpg?ID="+getTimer();
var request:URLRequest = new URLRequest(url);

[Code]....

View 2 Replies

ActionScript 3.0 :: Unload External SWF To Free Up Flash Player Memory

Apr 29, 2009

I'm having real problems with unloading external SWFs, I've spent 2 days looking for a solution and looking at this forum and using the code supplied and Flash help files and much much reading and trying, I still cannot achieve the desired results.I have a Menu.swf which hosts many buttons which loads External SWFs ... simple enough and fairly common.These External SWFs are the same size as the menu and so loads completely over the top of Menu.swf which is exactly what I want to happen.I have a button on these External SWFs which I want to, delete the External SWF from the Flash player's memory and remove all event listeners (which I guess will happen if the External SWF is deleted from memory)The reason why I want it to remove the movie completely from memory is that I have 18 items and by the time it loads the 18th item, the player is going slower then trying to swim in hummous.[code]

View 2 Replies

ActionScript 3.0 :: Read Image Pixel, System Memory(ram) And Free Disk Space In Flex?

Dec 13, 2010

i am writing a program that need to load photoshowever, there is limitation in flex that users cannot load photos with pixel above 4069 x 4069 into a bitmapdata.how can i check photos pixel before running to error? since some pictures are big nowadays, i would llike to check the user`s system memory and free harddisk space. See if the computer have enough space to load the photos.

View 2 Replies

ActionScript 3.0 :: Memory Leak In Simple Slideshow?

Apr 8, 2011

It's caused by memory leak. Every time a slide is shown, the memory usage increases a few hundred kB. I've tried everything I could come up with, but even if I kick a whole lot of movieclips out, disable basically all AS3 and let only one slide loop, the memory usage still increases everytime the slide is shown again.Of course it helped to make the movieclips simpler, but the main problem remains: if you keep running the slideshow, it will slow down.

edit 1: #&^%@! Even when i copy one of the slides to a completely new file, with no external classes whatsoever, the problem remains. I think I know now what goes wrong:I make the movieclip loop by saying this.gotoAndPlay(1);Frame 1 is empty, the slide placed on frame 2. If I'd put the slide on frame 1, the mc wouldn't begin at the start and there is no animation (and no memory increase) because the mc has ended.I already figured that maybe every time the mc is shown again, Flash casts a new instance. To prevent that, everytime a slide ends, I remove it with removeChild(clip). That has no effect however, so I think that's unnecessary.

edit 2: even when the MCs are constantly on the stage and are restarted with clip.gotoAndPlay(1), the memory usage keeps growing.

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

ActionScript 2.0 :: Incorporate In A Xml Based Slideshow(slideshow.zip) To Show Image Loading Process?

Feb 6, 2008

I have created a pie preloader(preloader.zip) which is working fine. Same preloader I am trying to incorporate in a xml based slideshow(slideshow.zip) to show image loading process but some how I got stuck. I am new to flash. Suggestions are welcome.

1. How to solve the problem of preloader2. Is it possible to integrate everything in a movie clip (including AS). I mean no AS on main time line but inside the movie clip. It would be much easier then to to create multiple slideshows by duplicating mc and changing the xml file.

View 1 Replies

ActionScript 2.0 :: Text In A Slideshow - Make A Basic Photo Slideshow With External Images

May 29, 2008

i have a question about text in a slideshow. i know how to make a basic photo slideshow with external images. but now what i want to do is add 4-5 paragraphs of text next to each photo (with possible scrolling). the text will be different on each photo.

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

Get A Free Swf To Video Converter?

Nov 19, 2010

where can I get a free swf to video converter?

View 1 Replies

ActionScript 3.0 :: Get Free Books For It?

Sep 24, 2009

Im Flash CS4 Professional user, but i wold like to learn ActionScript 3.0. I wonder how much is cost a book about AS3 Basics? or where i can get it for free for beginner? And do Adobe have it on Russion Language?

View 2 Replies

Flex :: Alternative (free) IDE For It?

Jun 27, 2009

I am an Adobe Flex developer and I am sick of Eclipse. Is there an alternative (free) IDE for Flex? I am aware of Tofino, but I can't get that to work on my MSVS Express editions, and I don't want to buy the whole thing.

View 5 Replies

Flash :: Why Flex SDK Is Free And CS4 Not

Mar 19, 2010

Why Flex SDK is free and Flash CS4 not ? Where is the trick ?

View 2 Replies

ActionScript 3.0 :: Any Free SQL Databases

Jul 26, 2011

I'm trrying to develop a game with a highscore table. I need to have sql hosting. I don't want to pay for SQL hosting just incase I cant get the game to work, so I was wondering if anybody knew of anywhere I can get SQL for free?

View 4 Replies

IDE :: Free Images To Use For A Website?

Jul 20, 2009

the site names where i can get free images for website. (No copyright problem)Or where the webdesign company get the images for their client's website sample.

View 2 Replies

IDE :: Get Free Flash Component

Aug 24, 2009

Where do i get free flash components to create this kind of tpage ransition effects?url...

View 1 Replies

ActionScript 3.0 :: Free Scroll Bar Class?

Oct 20, 2008

I've just finished a free AS3 scroll bar class for those that think using the built in Flash components are too heavy or too stock looking. The class makes no use of images and draws everything out via code. Play around with the little demo to generate the look you want.

this seems to be a pretty solid build thus far. I don't have mouse wheel scrolling built in. Possibly for a future release.

View 5 Replies

ActionScript 3.0 :: Transform Manager For Free?

Dec 9, 2009

Where from i got transform manager as3 for free

View 5 Replies

Free Flash News Ticker

Nov 27, 2006

Could anyone recommend a nice and free Flash News Ticker?

View 6 Replies

Free XML Feeds For Stock And Weather?

Feb 2, 2010

If there is any XML feed available for Stock and Weather. I googled a lot but couldn't find free XML feed providers.

View 3 Replies

ActionScript 3.0 :: Free Download Ref Of 3D PhotoGallery?

May 10, 2010

Can u give me some  free download ref of 3D photoGallery.

View 1 Replies

Free Flash IDE For Editing .fla Files?

Oct 29, 2009

We have a .fla file. We would like an IDE to open .fla file and debug the action script. We tried Flash Develop (open source), but this IDE does not open .fla files. Is there any other free/open source IDE we could use for opening and debugging .fla files?

View 1 Replies

Php :: Free Opensource Amfphp Alternative

Dec 17, 2009

is there any other framework that does the same as amfphp? I dont want to use amfphp because it hasnt been updated in years and looks like it's no longer under development, I have to use PHP so I'm looking for a PHP alternative.

View 2 Replies







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