ActionScript 3.0 :: App Keeps Getting Slower And Becomes Useless

Mar 10, 2009

I have a simple application where you can sort isometric boxes on a grid. It works just fine but the more often you apply changes (i.e. click on a box and drag and drop it) the slower the app gets. After about 10 changes it has something like a 5 second delay in response and becomes completely useless.

As long as I stay on the first MOUSE_DOWN it works as fast as it should, but speed decreases with every click. Strangely CPU-levels will always return to near zero when I stop doing things in the app and always go up to the same level when working, so I do not think it that there is some procedure I call while dragging and forget to close again (I also checked this about a hundred times in the code).

Basically I think it must something with the most basic event listeners that look like this:
Code:
container.addEventListener(MouseEvent.MOUSE_UP, dropElement);
container.addEventListener(MouseEvent.MOUSE_DOWN, dragElement);
function dragElement(e:Event):void{
currentElement = currentDropTarget = previousDropTarget = Kiste(e.target);
currentElement.alpha = 0.5;
stage.addEventListener(Event.ENTER_FRAME, whileDrag);
}function dropElement(e:Event):void{
currentElement.alpha = 1;
stage.removeEventListener(Event.ENTER_FRAME,whileDrag);
}
I also checked if my "whileDrag"-function keeps running but it doesn't.

View 4 Replies


Similar Posts:


Professional :: Slower And Slower Over Time?

Sep 21, 2011

I have a dashboard I created using Flash CS5 using CS5.5 and ActionScript 3.It seems that while this dashboard is running, the FPS gets slower and slower over time (over several hours) I am thinking that I might have a memory leak but I am not sure how to find out.The project is a Flash Projector exe that loads 8 independent swfs.Each swf file essentially calls a web service and gets XML dataThey then dynamically create a bunch of TextFields,assigns an event listener (Event.ENTER_FRAME) and animates across the screen.When the TextField goes off the screen, I clean up the Text field by removing the EventListenerremoving the TextField and setting the TextField to null.

View 5 Replies

ActionScript 2.0 :: Script Going Slower And Slower?

Feb 24, 2007

try this and give me response

Code:
var max:Number = 50;
var size:Number = Stage.width;[code]........

View 5 Replies

Flash :: IDE - 3D In CS4 Is A Useless Toy

Feb 8, 2009

...at my opinion. Because Flash CS4 does not even have correct z-sorting of objects in 3d space, as you can easely see in the attached example.

View 11 Replies

Flash :: MX A Useless Dinosaur?

May 20, 2009

My problem is as such. I made a slide show for a non-profit, but they can't view my .swf or .html files. They say they open to a blank window.

I had Flash 5 and Flash MX. Apparently only the html version worked then. So I got rid of 5 hoping 6 would work better, but now nothing works.

Is Flash MX so dated that it just can't be used online anymore? Or am I missing some vital step in the publishing? Let me know if any of you have any incites on the matter. Or if you'd like any more details.

View 1 Replies

Professional :: Swf Useless When Moved To Server?

Feb 27, 2010

I publish test.swf and test.html to mydoc folder on my local computer. Mydoc folder also contains the test.flv that was imported to the flash to create the swf and html. Open any of them in the mydoc folder and they work fine, move the swf or html files to another folder and they work.Move the flv file,even keeping it with the other files, and they don't work.The main problem is that the swf will not work after uploading all to the same folder on the web server.

View 2 Replies

ActionScript 3.0 :: What Is The Most Useless Method In Flash

Jun 16, 2009

what is the most useless function in flash? one that can be used as a dummy code within a function. say for frameworking your code before making it. the best i can come up with is trace, but im looking for something less intrusive.

function fireMegaBall (lv:Number) {
trace('megaBall '+ lv +' fired');}

View 13 Replies

ActionScript 3.0 :: SWF Much Slower On Web

Mar 27, 2011

I'm creating a flash animation in Flash.When I'm publishing it and reviewing it on my pc runs all right.But, when I'm uploading on the web it runs much slower.It's like the animation has less frames per second.Why is this happening and how could I avoid this difference in performance.

View 5 Replies

ActionScript 2.0 :: Does Flash Go Slower

Aug 31, 2009

Does flash go slower if it has to check on points that are for an example: 6.1873128932 versus: 6?

View 1 Replies

Buffer Slower Than Movie?

Nov 19, 2009

I have employed two different methods to embed an flv movie in webpage, but both result in studdering because the movie catches up to the buffer.   I can't figure out what is wrong... is the frame of 30fps rate too high?  is my method of embedding the files and playback wrong?  Or is it just a function of the viewer's internet speed?   

Method 1:
Dreamweaver > Insert Flash Video
FLV size:  13,428kb
Play time: 2:31

[code].....

View 3 Replies

Flash :: Loaded SWF Gets Slower?

Jul 29, 2010

i am making a game involving a number of balls that move across the screen. Everything works fine and dandy when I play the SWF on its own, but when I load it into another SWF, animation become increasingly choppy with time.

View 1 Replies

ActionScript 3.0 :: FF Runs Slower Than Safari And IE?

May 14, 2009

[URL].. This runs much slower (about half the speed) in FF than in IE/Safari...its set at

View 2 Replies

Mac Plays Timeline Animation Slower Than PC?

Jan 24, 2010

I have an issue with how Macs play timeline animation slower than PC. On the PC the animation plays right and syncs correctly with the music.

I have a tree that grows, when it finished an axe chops it. The tree finishes and the axe starts chopping the tree at exactly 30 seconds into the song which is exactly how it is meant to happen.

Syncs right on PC but on Mac, the tree finishes and the axe starts chopping at 50 seconds into the song.

During the tree animation, I also have some other swf movies loading in the background so that it is preloaded and ready to go when required because I am trying to prevent any delays or the chance of a preloader from appearing when these swf needs to start playing.

What is causing the Mac to have a slower animation. I do notice in general than Macs take longer to play an animation than PC on a browser.

Is this just natural or do you think the Mac and PC difference caused here is due to me loading swf movies into the background?

What are my options to make the sync right. I can not make the animation actionscript based, so I am stuck with timeline based animation.

I think music streaming would be the best solution here. Right now, I am triggering the music as an event, but I am worried of the stuttering effect using streaming music, while my animation plays and swfs are loading in the background and the viewer has a slow PC.

View 1 Replies

Flex :: Flash Runs Slower On Mac?

Jan 27, 2010

I was in the middle of developing a Flex applcation, and then I recently switched from Windows XP to Mac. My app is noticeably less responsive on my Mac than on Windows, and today I proved it's not a hardware issue, because I ran the App on my Mac and a Window XP on Virtual Box side by side, and IS much more responsive on XP. Things like repainting in response to window resizing, selecting/unselecting list items, scrolling up and down(I do have complicated list-item-renderers). Has anyone seen this as well? Is flex/flash just not as well supported on Mac? Or are there tweaks I can do to improve performance on the Mac?

View 3 Replies

ActionScript 3.0 :: SharedObject Makes The Swf Slower

Feb 15, 2011

I have made a game which successfully uses SharedObject as a highscore system (if you know SharedObject, you'll know what I mean) But after the first time playing the game, when it loads the highscore using SharedObject, it goes noticablly slower My computer when new only had 1gb ram so is slow as it is. Is it just a speed issue with my computer or is this a regualar occurance?

View 0 Replies

ActionScript 3.0 :: Flash - Slower In Browser Than In The Dev IDE?

Jul 17, 2009

Ive been working on a game on and off for a while now. I've been extremely conscious with the performance because in my book a slow game is worse than no game at all. I even wrote a profiler class so I can really pinpoint any slow code. All this time Ive just been testing the game in the Flash CS3 environment by hitting CTRL+Enter. And everything runs quite smoothly.But today for the heck of it I actually published the Flash and ran it in my browser using the generated HTML file. In the browser everything runs slow as hell! The animation is extremely choppy, and sounds play up to 1 or 2 seconds later than theyre supposed to. This is absolutely unacceptable! Ive tried it in Firefox3 and Internet Explorer 7, and both are very slow compared to the Flash dev environment

View 14 Replies

IDE :: Flash Lagging On Slower Machines

Feb 5, 2010

I created this flash object, which preloads the file on the first frame before continuing to play, yet on slower machines it moves much slower then the 30 fps it is supposed to play at. The file is 1.2 MB in size. Using actionscript 3.

[URL]

View 1 Replies

ActionScript 2.0 :: Swf Is Slower When Loaded Externally?

Mar 12, 2004

i am 5 seconds old here so first of all i just want to say WHAT"S UP!!!

when i load my swf from an external source with loadMovieNum(the swf is actually on a different server all together). it plays it a whole lot slower. Has that ever happened to you. do you know how to work around that?

View 3 Replies

ActionScript 3.0 :: Flash Lagging On Slower Machine?

Feb 5, 2010

I created this flash object, which preloads the file on the first frame before continuing to play, yet on slower machines it moves much slower then the 30 fps it is supposed to play at. The file is 1.2 MB in size. Using actionscript 3.

View 3 Replies

ActionScript 3.0 :: Loaded SWF Slower Than When Tested Into Its Own Timeline?

Feb 14, 2009

here's what i have. A main file into which i load someother swf's with this action:

master_btn.addEventListener(MouseEvent.CLICK, loadClip);
function loadClip(evt:MouseEvent):void
{

[code].....

View 2 Replies

ActionScript 3.0 :: Stage3D Much Slower In Desktop Air Than In Browser?

Jan 2, 2012

Same setup. Some moving cubes and spheres.

FPS in Adobe air desktop app: 29
FPS in Browser: 58

Any tweaks I should attempt?

View 1 Replies

Flex :: Web Application Gets Progressively Slower And Freezes

Aug 26, 2010

I have a Flex web application where I am visualizing data (for different countries) in the form of charts. The data is in the form of CSV files. There are individual files for individual charts i.e. one file has all data pertaining to one chart for all countries.I have a left navigation menu that allows one to see data on a country by country basis. As I view more and more countries, the web application becomes progressively slower till it freezes completely. The problem goes away if I refresh the browser and empty the cache.I am using the URLLoader class in flex to read the CSV data into a string and then I am parsing the string to generate the charts.I realize this is happening because more and more data is somehow accumulating in the browser.

View 1 Replies

Actionscript :: Flash - Application Gets Slower The Further Scroll Down

Jul 18, 2011

I have built an application in flash, it is rather a large application that runs pretty smoothly, however it is a long list of graphs that run further than the application window so I use a vertical scrollbar and a mask to display them. The problem is everything becomes choppy the further you scroll down, any Tweens or movement and the framerate in general just appears to be much much lower.

When you get to the bottom it is unbearable although there is the same amount of movieclips and same amount of detail throughout the scroll, so I don't see why there should be this massive performance hit for going down a bit.

[Code]...

View 1 Replies

ActionScript 3.0 :: Faster And Slower Buttons For Rotation?

Nov 26, 2010

Im trying to write the codes for buttons that make a Square rotate faster and slower. I tried hard but it did not work.

how about a slider to control speed of the square_mc. can some1 give me the code.

this is the code:

addEventListener(Event.ENTER_FRAME, startRotate);
function startRotate(evt:Event):void {
// Call function rotateSquare
rotateSquare();

[Code].....

View 2 Replies

ActionScript 3.0 :: Dynamic Loading SWF File Getting Slower After Two To Three Loop

Aug 1, 2011

I am running 3 swf files for loop. Problem is after compiling the flash file swf file is getting slower and slower after two or three loops and stopping with one content finally. I don't know why it is happening my guess is "due to memory increasing causing flash file to slower".

package com {
import flash.display.Sprite;
import flash.display.Loader;
import flash.net.URLLoader;
import flash.net.URLRequest;
[Code] .....

View 5 Replies

Flash :: Make Fake Preloader Move Slower?

Mar 27, 2012

So i have a fake preloader going... doesnt actually preload, but just does the 'action'. my issue it gets to 100% way too fast. As its not really loading anything, how do i slow this down so its takes about 3 seconds to "complete loading?"

[Code]...

View 2 Replies

ActionScript 3.0 :: Movie Clip Runs Slower Every Time

Jul 29, 2009

Is there a way to find how many instances of the clip are being run?

View 9 Replies

ActionScript 2.0 :: Run A Little Slower Due To The Many Accounts And The Volume Of Server Traffic?

Oct 28, 2009

We have recently had to change servers for reasons beyond our control. The server we were on had limited accounts and what we are using now seems to run a little slower due to the many accounts and the volume of server traffic.Anyways, I have a couple Flash pages where customers can listen to audio clips. This is one of them:I have never had any issues with this before but on this new server, when you choose a song and click "listen", more often than not, a brief blip of the audio plays, stops for a few seconds and then resumes.This is the code I am using for the Listen button:

Code:
mySound = new Sound();
mySound.loadSound("SongLists/Audio/" + _parent.selectedSong + ".mp3", true);

[code].....

View 0 Replies

ActionScript 2.0 :: Swf Preloader Loads External Files A Little Bit Slower?

Apr 6, 2011

i am using this preloader to load load external swf files in my main.swf. it works great but it has a small issue regarding loading timing. when it gets to 100% and loads the external swf file the swf file as i suspect is loaded a little bit earlier than the % and when it shows up its already playing the 10th frame instead of the first frame. the code is below....

MovieClip.prototype.fadeIn = function() {
this.onEnterFrame = function() {
if (this._alpha<100) {

[code]....

View 0 Replies

ActionScript 3.0 :: Flash Slower And Faster Buttons For Rotation

Nov 27, 2010

Im trying to write the codes for buttons that make a Square rotate faster and slower. I tried hard but it did not work.
how about a slider to control speed of the square_mc. can some1 give me the code.

this is the code:

addEventListener(Event.ENTER_FRAME, startRotate);
function startRotate(evt:Event):void {
// Call function rotateSquare

[Code]....

View 2 Replies







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