Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash


Advertisements:










ActionScript 3.0 :: Remove External Swf Completely From Memory?


I have read many many post and I don't find the answer of how to remove completely a swf load external.Every time I load and unload I see the windows memory task manager and see that the memory increase and don't reduce when remove child.

this is my code:
var oneLoader=new Loader();
bt1.addEventListener(MouseEvent.CLICK, swf1);

[code]......


View 7 Replies (Posted: Dec 10, 2011 9:27 AM)

Sponsored Links:

Related Forum Messages For Flash category:
ActionScript 3.0 :: Remove External Swfs Completely From Memory?
I have developed a touchscreen application that works perfectly fine except for the memory issue. Basically, the touchscreen app works kinda like a website with navgation on the side and content displaying next to it. I separeate each section into external swfs, and load each one up when it is needed, thinking it would reduce memory used on the pc. But unlike actionscript 2, AS 3 would not remove the external swfs from the memory. You can remove it from the stage and you won't see it, but the swf will still stay in the memory! So... as you navigate through the app, loading up all these external swf, even I do loader.unloadAndStop();, the swf is still there, and they just keep piling up in the memory as you navigate from the app. After leaving the touchscreen for a day or 2, having all these users naviage through it, all the external swfs will just completely consume all the resources and freeze the pc.

Posted: Jan 14, 2011 11:38 AM

View 1 Replies!   View Related
Actionscript 3.0 :: Remove External Swfs Completely From Memory
I have developed a touchscreen application that works perfectly fine except for the memory issue. Basically, the touchscreen app works kinda like a website with navgation on the side and content displaying next to it. I separeate each section into external swfs, and load each one up when it is needed, thinking it would reduce memory used on the pc. But unlike actionscript 2, AS 3 would not remove the external swfs from the memory. You can remove it from the stage and you won't see it, but the swf will still stay in the memory! So... as you navigate through the app, loading up all these external swf, even I do loader.unloadAndStop();, the swf is still there, and they just keep piling up in the memory as you navigate through the app. After leaving the touchscreen for a day or 2, having all these users naviage through it, all the external swfs will just completely consume all the resources and freeze the pc.Also, is it better to develop touchscreen application with actionscript 2 since it doesn't have this pressing memory issue?

Posted: Fri Jan 14, 2011 6:59 pm

View 1 Replies!   View Related
Actionscript 3 :: Is RemoveChild Enough To Completely Remove A Movieclip From Flash Player Memory
Will this line

clip.removeChild(clip.getChildAt(0));

completely remove the child of clip at 0 index? I read somewhere you should set to null to all the references to that clip, but I have no other reference in my code. The clip at 0 was added via a regular addChild().

Posted: Jul 26 11 at 15:45

View 4 Replies!   View Related
ActionScript 3.0 :: Remove / Unload External Swf File(s) From The Main Flash File And Load A New Swf File And Garbage Collection From Memory?
I can't seem to remove / unload the external swf files e.g when the carousel.swf (portfolio) is displayed and I press the about button the about content is overlapping the carousel (portfolio) . How can I remove / unload an external swf file from the main flash file and load a new swf file, while at the same time removing garbage collection from memory?

Posted: Sep 12, 2009 9:34 AM

View 15 Replies!   View Related
Flash :: Completely Remove A Movieclip In AS3?
I want the mc to be removed with All its timers, events,... Is there a simple way to do this?

Posted: Jul 9 09 at 6:37

View 4 Replies!   View Related
ActionScript 3.0 :: Remove From Array Completely
This is my code

[Code]....

The problem is that even tho I ask to remove the random picked number from array, it can still get repicked.

Posted: 03-08-2011, 03:37 PM

View 9 Replies!   View Related
Css :: FLEX: Completely Remove Buttons Effects?
how can I completely remove button effects from a Button component in Flex ?

Background, Fill and border are completely white. But still I've a black shadow around the button (see picture bloew):

[URL]

Button {
fillAlphas: 1.0, 1.0, 1.0, 1.0;
fillColors: #FFFFFF, #FFFFFF;

[Code]....

Posted: Apr 11 10 at 13:02

View 2 Replies!   View Related
Xml :: Programmatically Remove An Attribute Completely In Flex?
I am experimenting with e4x. I could programmatically add an attribute to an Xml by doing something like this :

[Code]...

now i have added a name attribute to it programmatically because even though the xml had no attribute called name, after the statement above, it automatically has one now. My difficulty now is how do i , as well, remove the name attribute i have inserted programmatically again?

Posted: Oct 24 11 at 9:34

View 1 Replies!   View Related
ActionScript 3.0 :: Completely Remove A Movieclip That Is Created As A New Class?
how do I completely remove a movieclip that is created as a new class.I have an event listener that does a removeChild like this

e.target.parent.removeChild(e.target);

is this enough or do I have to 'null' the object? I can't just do 'e.target = null' because the property is read only. Will the internal garbage collection do the rest for me if I have no references somewhere else?

Posted: Mar 6, 2009 12:01 PM

View 3 Replies!   View Related
ActionScript 3.0 :: Removing Child And Setting It To Null Completely Remove Object?
In document class action script file I add a movie clip to stage using

Code:
public var square:Square
square = new Square
addChild(square)

So it adds square to stage.Then after sometime I want it to be removed. I call a function "removeSquare" also located in document class. It executes the following code. And it removes the square from stage visualy.

Code:
trace("proff that it's executed")
removeChild(square)
square = null

Then of course I want to add a square to stage again, using code I written at top of the post. And remove it again, and so on..But game is lagging more and more and more. So I guess that the square is not properly removed. If you need more details about my code feel free to say, I just written that since I really doesn't know what else should be important.

Posted: 01-24-2010, 06:10 PM

View 9 Replies!   View Related
ActionScript 3.0 :: Remove Objects From Memory?
I have a class "Ball" which display graphical circle ball in random x&y axis and Ifade out it with Event.ENTER_FRAME and specify removeEventListener if it reach alpha<=0 .Now I made multiple object from "Ball" class. Now, In my stage it works nice but when I see my Computer Memory status. my current flash.exe is increasing memory rapidly. Is how to remove my unusual object from my Memory. So that it would not get hang.

Posted: Feb 10, 2010 7:41 PM

View 2 Replies!   View Related
Flash :: Away3d Remove From Memory?
I am building a website which loads some collada objects for each area. But I couldn't manage to clean the memory. It seems impossible to kill the objects.

I've found some samples implementing destroy() methods for away3d internal classes, but they're not working as well.

Posted: Mar 1 10 at 22:59

View 2 Replies!   View Related
ActionScript 3.0 :: Remove Sound From Memory
how o remove sound from the memory?I'm using an Object for this right now and I want to know if I am doing the right thing... or there's another alternative.[code]

Posted: 01-10-2010, 08:58 PM

View 2 Replies!   View Related
ActionScript 3.0 :: Remove The Calendar From Stage And Memory?
I have a Calendar class (extends Sprite) that when called constructs a calendar. It does so by adding several Day (extends Sprite) objects to itself. I tested this class with a driver class, CalendarTest - the Document Class, that adds a Calendar object to
its stage. It worked great. Then I added a "Next" button to build a new Calendar for the next month. It didn't work so great.

After clicking Next button, the first calendar remained on stage. removeChild did not remove the first Calendar object. So, I wrote destroy methods within the Calendar and Day classes that remove their various components and clear graphics.

The Next button now works great, for the next calendar object. But the next, next calendar object, same problem as the first problem before implementing destroy methods.

I even put trace statements before removeChild calls and set the child to null after removeChild calls. It traces such and such Day is removed, set to null, and finally Calendar is removed, set to null. And yet, the second Calendar with all its Day objects remains on stage!So, how do I remove the Calendar from stage and memory?

Posted: Mar 2, 2009 5:31 PM

View 3 Replies!   View Related
ActionScript 3.0 :: Get Memory Free Up With Remove Clip?
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)

Posted: Dec 9, 2008 10:14 AM

View 1 Replies!   View Related
ActionScript 3.0 :: Remove Instance Of Loaded SWF From Memory?
I am loading an SWF file into another parent SWF. I remove the loaded SWF using the unloadAndStop() method and set the loader to null. But the instance of the loaded SWF still remains there in the memory.

Posted: Mar 4, 2010 3:21 AM

View 2 Replies!   View Related
Professional :: Way To Totally Remove A Movieclip From Memory?
I have a .fla that contains five movieclips, and have a couple of questions regarding removing movieclips and swf size.If all the movieclips are displayed, my resulting swf is about 50k.If, in frame 1, I code conditionals that decide which of the movieclips will be displayed, will the resulting swf size become smaller if some of the clips aren't displayed?If so, what is the correct way to totally remove a movieclip from memory? Say I have a main movieclip that contains 5 other mcs, and the as code is within the main movieclip.If not, is there a way to make the swf size smaller if less than all clips are displayed (using conditionals).

Posted: Mar 23, 2010 8:55 PM

View 10 Replies!   View Related
ActionScript 3.0 :: How To Remove Previous Object From Memory
I am getting problem of memory of having repeating object. Below is my code.

import flash.system.System;
var counter:Number=0;
var systemMemory:TextField=new TextField();
systemMemory.x=200;
stage.addEventListener(Event.ENTER_FRAME,showNext);
function showNext(event:Event){
[Code] .....

Above code does repeat textField Object continuously. Now I want to destroy previous created textField Object. So that my memory will not be hang. I got some where in the blog that with System.gc() could clear garbage collection. But currently I am not working with system.gc any more I want to clear previous object in programatically way. Is there any way that I could destroy previous created object?

Posted: Jun 9, 2010 11:10 AM

View 2 Replies!   View Related
Actionscript 3 :: Remove Simple Objects From Memory?
I'm trying to remove simple objects from memory, but when I call removeChildren memory usage rose :/ And I don't why ? And how can I remove objects ?

[Code]...

Posted: Sep 9 10 at 20:44

View 2 Replies!   View Related
Actionscript 3 :: Remove To Save The Memory - Use Several Tweenlite?
can we know what "eat" the most of memory in a swf ? is it possible with monster debugger? (i've just downloaded it)

my project works fine, but if i re-launch the swf when it is already launched (cmd+enter -> the swf is launched, then cmd+enter), this seems to give me an example of how it would be if i was on a very very slow computer, and this is "very" slow.So is there any possiblity to know what i can remove to save the memory?i use several tweenlite, no sound, and i load all my pages (5) that contains a very basic content, at the beginning, so during the preloading...

Posted: Oct 16 11 at 16:33

View 2 Replies!   View Related
Flash - Remove AS3 Class Itself And Free Up Memory
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?

Posted: Oct 21 11 at 20:48

View 5 Replies!   View Related
ActionScript 3.0 :: Remove Something From The Stage Without Removing It From The Memory?
its possible to remove something from the stage without removing it from the memory. Ie not using removieChild(); Reason being: I want to replace an image inside a movieclip rather than add another image on top or remove the image and movieclip entirely.

Posted: 09-29-2009, 04:02 PM

View 2 Replies!   View Related
ActionScript 3.0 :: Remove Objects From Memory By Reference?
I am creating a generic button that will remove items created dynamically in a movie clip container from memory (not just from the display list).

To track which item the user has selected for deletion, I have a click function that stores the name of the clicked object in a variable called objName. I then store a reference to the object itself in another variable called targetObj. I can then easily remove the object from the stage like this[code]...

Posted: 12-02-2009, 12:53 PM

View 3 Replies!   View Related
ActionScript 3.0 :: Remove A Linked Movieclip From Memory?
I've seen people explain how to remove a script created movieclip or shape from memory but what about when you link to a movieclip in the library?

Do you remove that from memory in the same way?

For example would the code below remove this clip from memory?

Code:
// I want this out of memory when the button is pushed.
var my_clip:my_clip_link = new my_clip_link();
addChild(my_clip);

[Code].....

When I test it, it does not show it out of memory on my computer but I read that the GC cleans up when it wants to, so I put in System.gc() to force GC, but I don't see any memory change in the debugger.

Also if I put a stream sound in the timeline of my linked movieclip it keeps playing the sound. If it's not in memory anymore how is it playing the sound? Did I open a portal to another dimension?

Posted: 01-11-2011, 03:46 AM

View 2 Replies!   View Related
Copyright 2005-08 www.BigResource.com, All rights reserved