ActionScript 2.0 :: [Flash8] - Slowdown With RemoveMovieClip?

Jun 3, 2007

I'm fairly new to the use of loadMovie, unloadMovie, and removeMovieClip for external swfs, but anyways, let me summarize the problem as simply as I can. I have a shell.fla file that is currently loading in external swfs, one at a time, for a game. Here is an outline of how my shell works:

1. first part of game gets loaded in an empty movieclip (container_mc)
2. a listener is created that will listen to an event broadcaster that exists within the external swf.
3. when the listener receives the "done" message, I run container_mc.removeMovieClip() and then load part 2 of the game in a new empty clip called container2_mc.

At this point, I get really severe slowdown for some reason, and I don't know why!! Part 2 of the game is a tile based maze game which is not optimized 100%, but when I run that swf on its own (i.e. not inside the shell) it runs perfectly smooth. But when it is loaded after part 1, it goes really slow.

[Code]...

View 3 Replies


Similar Posts:


Flash8 : Massive Slowdown When Exporting To Movie?

May 26, 2009

I've been building my app' and testing it every day by exporting it to a movie, and testing everything.It's all been going very well and the .swf is usually exported to my desktop in less tha the time it takes to minimize the Flash window.Today I started work on my .fla (mark18) and added a "back" button to every scene (it takes the user back to a main page with the actionscript:

on (release) {
_root.gotoAndPlay("Main");
}

There are 9 scenes which are very short.BUT, when I tried to export it, it took about 15 minutes to export.

View 4 Replies

ActionScript 3.0 :: 10.4 Elements Without PC Slowdown?

Oct 26, 2009

I'd like to ask the following question: for instance, I have a scene in 3ds max with 10000 textured cubes. Is it possible to export this .max scene to Flash and create a .swf application, in which user will be able to rotate, zoom the scene and also select a particular cube and all this done without visible PC slowdown? After some googling I found that Papervision3D is a good tool for working with 3D in Flash.

View 3 Replies

ActionScript 3.0 :: Slowdown: Memory Isn't Freeing Up

Feb 9, 2010

I'm having a bit of trouble in a game application I'm building,I recently added a bit of code that makes the game more visually interesting. As you move your character around screen, it creates instances of the GFX_Dot class, which is tied to a small green dot.In the class file I have a timer which decreases the alpha of the dot until it hits zero, at which point I'd like it to delete itself. Here are the functions I've got in the GFX_Dot class:

//GFX_Dot class
public function GFX_Dot() {
randomize();[code]..........

The part at the end "delete this" is meant to delete reference to "this" and allow it's memory to be re-used, however upon running the program, it's clear that they must not be deleting themselves, because after half a minute of creating a new GFX_Dot every frame at 30 fps, the game begins to get very slow. Before adding these graphical elements the game ran snappy all the time, I'm almost certain it has to do with them not being deleted properly.

View 1 Replies

Actionscript 3 :: Slowdown An Animation Without Decreasing The Fps?

Jan 20, 2010

I have this code that I found online that does an infinite rotating gallery, now my problem is that on enter frame it jumps and too fast. I want it to be as fast at after you hover out of the logo.

Here is the code:

//Import TweenMax
import com.greensock.TweenMax;
//Save the horizontal center

[Code].....

View 1 Replies

ActionScript 3.0 :: SlowDown Collidion Detection Kit

Dec 21, 2009

after starting simple project with the Collision Detection Kit i get very poor framerate. The movie starts at full frame rate, but slowdown after few seconds.

View 1 Replies

ActionScript 3.0 :: Complete App Slowdown When Using Timer Class?

Mar 17, 2012

My app is set up to pause the animation when the mouse is pressed down by calling Timer.stop(). While the mouse is pressed, the user can draw on the screen by dragging the mouse. When the mouse is released, the animation starts again with Timer.start() and is based off what the user draws.However, after I let the animation run for a while the app gets so slow that I can't even drag to draw when the timer is not calling the animation update without the drawing skipping hundreds of pixels at a time.

ActionScript Code:
package  {
import flash.display.Sprite;

[code].....

View 2 Replies

ActionScript 3.0 :: Experiencing Slowdown When I Move The Mouse?

Aug 11, 2009

I am working on some particle effects, and I am experiencing noticeable slowdown anytime I move the mouse. I am not using any MouseEvents, and I even see this slowdown when the mouse is moving outside of the Flash window. Also, I only notice this slowdown when running the movie from within Flash CS3 (when I run the .swf externally, it runs flawlessly).How can I make this slowdown disappear?

View 2 Replies

ActionScript 3.0 :: Mouse On Screen Causing Slowdown?

Mar 17, 2010

I have a game that has around 400 movie clips in it and whenever I mouse over the stage the FPS drops to around 8-15. I tried setting Mouse.hide() and mouseEnabled = false but it doesn't seem to do anything

View 1 Replies

ActionScript 3.0 :: Huge Slowdown Of Graphics Pipeline In Firefox

Oct 11, 2009

When I run my flash app in the default player it runs at 60 fps (the code is ~2ms a frame), but when I run it in firefox, the rendering phase is incredibly slow (~50ms).This is a relatively new symptom. I have not increased the amount of data to be rendered, but I have modified the type of data from MovieClips cached as Bitmaps, to straight Bitmap data... if that's relevant.[code]

View 3 Replies

ActionScript 3.0 :: Large Number Of Movieclip Slowdown The Application?

Jan 10, 2012

I have a scrollbar function.In the content area i attached movieclips.Those moviclips have dynamic textfield.The scroll bar working for small list of contents.up to 500 or 600 moviclipsWhen i attached 2000 or larger number of movieclip the Entire flash get slows. How to i fasten them with same number of movieclip. why flash player slow when attaching large number of movieclip? it takes near by 58% cpu usage at this time.What is the reason for

View 2 Replies

ActionScript 3.0 :: Background Loading Causing Animation Slowdown?

Feb 9, 2009

I am using Bulkloader [URL] to load in a succession of 10 images whilst the main elements of my site have already been preloaded. It is required that these images are not loaded within the preloader as they are large in size and this will increase the wait to an unacceptable level. They are not added to the display list upon succesful load but instead are added at a later time.

The problem I am having is that the menu navigation of the site is slowed down considerably and looks sluggish if the user navigates around whilst the images are being loaded in the background. Once loading stops everything is fluid and smooth. The animations are being carried out using a combination of timeline and Tweener.

Firstly, does anyone know if this is normal behaviour? I don't see why something being loaded should interfere with something moving on the screen, they are doing completely different tasks so I am a bit puzzled as to why they seem to clash.

Secondly, can anyone suggest a feasible workaround? I have been experimenting with using BulkLoader's pauseAll and resumeAll methods and have had some success by detecting mouse events and pausing/resuming as and when required, but it is proving a lot more complicated than I feel it should be, especially as I don't think loading should be affecting animation in the first place.

I have tried loading the images in one-by-one as I thought having too many connections open (apparently bulkloader can open multiple connections for faster loading) may cause some memory issue or suchlike, but that made no difference, everything is still choppy and sluggish whilst the background loader is running.

View 2 Replies

ActionScript 3.0 :: Mouse Movement Causing Flash Player Slowdown

Oct 1, 2009

I am struggling with an issue at the moment related to mouse events or more specifically mouse movement. I have found that moving the mouse in my game causes it to slow down. Rapidly moving the mouse can actually freeze the game, I believe EnterFrame events are actually dropped when the mouse is moving rapidly.

I thought at first that it must be something I coded incorrectly so I used the Flex 4 Beta's performance tools and analyzed the Flash 10 SWF that I build using Flash CS4. Mouse Events were the leading performance hog by far.

Whenever the mouse moved the CPU usage would skyrocket. I then tried an empty Flash App with no Actionscript, I had the same CPU spike.

So if I'm getting this problem with a Blank SWF how come I don't see this problem talked about all over the internet, how is every other Flash Developer not running into this problem?

View 10 Replies

ActionScript 3.0 :: Firefox And Opera - NetStream.Play.Stop And Video Is A Slowdown?

Mar 25, 2011

Video broadcast using VLC to flv file. I am using the NetConnection, NetStream and Video to play it in a flash. In Chrome and IE everything works fine, but in Firefox and Opera NetStream often dispatch event NET_STATUS with info.code = NetStream.Buffer.Flush and NetStream.Play.Stop and video is a slowdown.

View 1 Replies

ActionScript 2.0 :: F8 Value After RemoveMovieClip?

Feb 28, 2009

[code]What value does clip now have? It's not undefined and it's not null. Calling trace(clip) just prints a newline to the output box.

View 2 Replies

ActionScript 2.0 :: RemoveMovieClip

Sep 25, 2003

I have used one of the tutorials that is available here found at [URL] because I really loved the effect. I have implemented this tutorial in my presentation and my problem right now is removing the movie clip because when I advance to my next scene in my presentation this movie clip displays.


[Code]...

View 12 Replies

Flash :: AS2: RemoveMovieClip() Not Working

Mar 20, 2012

So I duplicate a MovieClip that is on the Stage and created through the IDE like so: duplicateMovieClip(timeData, "nextTimeData", timeData._parent.getNextHighestDepth()); This works great, but when I go to delete the MovieClip like so:

[Code]...

It refuses to be deleted and trace(timeData) outputs _level0.timeData before and after removeMovieClip(timeData) Why would this be happening? EDIT: According to the answers and the flash documentation MovieClips created in the IDE have a negative depth and removeMovieClip() silently fails in removing MovieClips with a negative depth. So I am now attaching timeData from the library like so:

[Code]...

View 3 Replies

ActionScript 2.0 :: RemoveMovieClip But Still On Stage

Aug 18, 2009

I have a movie clip which simply a logo. When user chooses an option, it should be gone. But it is still on the stage. The only way to make it disappear is turning _visible = false. But I want it free from the memory.

[Code]...

View 5 Replies

ActionScript 2.0 :: RemoveMovieClip Does Not Seem To Work?

Nov 5, 2009

so here is the deal.i do

<local data member>.removeMovieClip();
trace(<local data member>);<----***
<local data member> = attachmovie

in the second iteration of this code after the <local data member> has been initialized to a movieclip, the trace prints out the value instead of saying undefined. Why is this happening?

View 0 Replies

ActionScript 2.0 :: RemoveMovieClip Not Fast Enough?

Sep 8, 2005

I seem to be having a problem with removeMovieClip.In my little ol' game I've been working on, I have a big problem. The removeMovieClip command only works half of the time. When using the Desert Eagle, a slow-firing weapon, both bullet shells and bullets are duplicated and used properly, and remove themselves when their time has come as programmed. But when using an automatic weapon... it seems to be duplicated shells and bullets so fast that they don't remove themselves properly!

How it works: Let's take the bullet shells, for example. The bullet shells are created and run a bunch of scripts to fall realistically. Once they hit the ground they run an animation which makes a little sound, makes 'em bounce off the floor a bit then stay still for 5 seconds. After those 5 seconds, they're removed. It's that simple, yet it doesn't work.

I hate having to show everybody my stuff every time there's a bug but I trust you guys with my problems (this project is mostly for experience anyways). Try using the Pistol (1) and you'll see it working fine. Then try using the M4A1 (2) or the Steyr AUG (3) and press down on the mouse button for automatic mode. Those bullet shells won't dissapear. Warning: DO NOT aim at the box. I'm also having a problem removing those bullets, so it bugs when you aim at the box.

View 4 Replies

ActionScript 2.0 :: Unable To RemoveMovieClip()?

Nov 13, 2006

Actually i have duplicated a movieclip 10 times.. and i need to remove that movieclips after some time.. but that's not working with removeMovieClip()

View 3 Replies

ActionScript 2.0 :: RemoveMovieClip With Loop

Jul 11, 2007

What am I doing wrong?

Code:
for(var obj in _root.circles3_mc){
trace(this.circles3_mc[obj]);
removeMovieClip(this.circles3_mc[obj]);
}

View 4 Replies

ActionScript 2.0 :: RemoveMovieClip Not Functioning?

Jan 17, 2008

I am have problems with the removeMovieClip() function; I have tried several methods to get the function to work. see below

Code:
newThis.removeMovieClip();
newThis.unloadMovie();
unloadMovie(newThis);[code].....

View 6 Replies

ActionScript 2.0 :: F8 RemoveMovieClip In Tscript Isn't Working

Dec 22, 2006

I have absolutely no idea why the following code isn't working. I've checked the documentation for removeMovieClip at least a dozen times. The only thing I've noticed is the following:Method; removes a movie clip instance created with duplicateMovieClip(), MovieClip.duplicateMovieClip(), or MovieClip.attachMovie().As you will notice, I'm using createEmptyMovieClip() - not one of the methods mentioned - but I swear I've used removeMovieClip to delete movieclips created this way before and it's worked fine. I can't find an alternative command, either.When I trace white in the onRollOut function, it returns the correct path, so it's not a targetting issue. I've also tried adjusting one of the movieclip white's properties (alpha) and it's worked fine.[code]

View 3 Replies

ActionScript 3.0 :: RemoveMovieClip(this); - Remove A Child From It Self?

Oct 11, 2011

Is there a way to remove a child from it self? like in the AS2.0 "removeMovieClip(this);" ??? .... an other problem :

ActionScript Code:
var new_MC = new my_instance();
master_MC.addChild(new_MC);

then i have a button inside the master_MC when i pressed that button , the Child i'v added should disappear. can't even handle that

View 4 Replies

ActionScript 2.0 :: Can't Remove The Components With RemoveMovieClip()

Nov 18, 2004

I am working with components for the first time.... Now, currently, i am creating components with the attachMovie(), it works, but is it the right way to do it? The reason i ask is because i cant remove the components with removeMovieClip(), how do you remove them?

View 2 Replies

ActionScript 2.0 :: Use The RemoveMovieClip Operation Properly?

Apr 8, 2005

How do you use the removeMovieClip operation properly? I can't get it to work.

View 2 Replies

ActionScript 2.0 :: This.removeMovieClip Doesn't Work

Apr 21, 2003

I'm doing a game (supposed to be done tomorrow).In this game I've got a hero who throws books at the enemies. When the book hits the enemy, I want the book to dissapear, but the thing is that it contiues to fly straight ahead and kill all the other enemies too. I've got a really huge source code for the game, but this part wouldn't be too hard to do, would it? So I've put this piece of code inside the book's movieclip.

PHP Code:

onClipEvent (enterFrame) {
this._x += bokSpeed;
for (i = 0; i < 3; i++) {

[code]....

View 13 Replies

ActionScript 2.0 :: RemoveMovieClip() And Delete X;! NOT WORKING?

Mar 18, 2006

I have already foud out where I want to place my sprites in my game, and I don't want to have to go through th elengthy "duplicateMoveClip" procdure (or it seems to be lengthy to me anyways, it's probably like 2 lines of code, but still, I WANNA DO IT MY WAY!) ok, anyways, does delete only work on variables and not movie clips?here's what I have so farthis is in the bullet movie clip:

Code:
onClipEvent ( enterFrame){
if (Key.isDown (Key.SPACE)){

[code]....

View 6 Replies

ActionScript 2.0 :: AttachMovie/removeMovieClip When They Move?

Jan 9, 2007

I need to create a list of items align on vertical and the items need to have a expand animation and in the same time when the expand happens, i move the rest of the mcs up (or down).For exemple we have 5 mcs, _mc1, _mc2, _mc3, _mc4, _mc5, and we rollover _mc3, _mc1 & _mc2 move up (tween motion) with 20px; _mc3 expands with 10px up and 10px down; and _mc4,_mc5 moves down with 20 px to! This i already did (and it works perfect) but my problem appears if i add more then 11 mcs (on my computer) the flash start's to eat more CPU and the animation become slower and slower!So i thought to add only 3 mc down (so let we say that we see 3 mcs on stage i want to add more 3 out of stage down)...when you scroll down one mc goes up and will be removed and one will be added down, then when you scroll up, the last one will be removed and the first one will be add it again.

Exemple:We have 1,2,3,4,5, we scroll down, 1 goes up (and will be removed) and 6 will apear, we scroll more down, 2 will be removed and 7 will be added! We scroll up 7 will be removed and 2 will be add it! !!!!I need to remove a movieclip (in my exemple 1,2) only if they are out of stage(they are not visible anymore)

View 1 Replies







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