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




LoadMovie Slower And Slower...



I ahve a couple of sites where there are options to go to various screens. Each screen is a different .swf, so I use loadMovie to load them, usually with code more or less like this:

on (release) {
createEmptyMovieClip("nextPage_mc", 5);
nextPage_mc.loadMovie("nextmovie.swf");
}

It works fine 3 or 4 times, but then things start moving slower and slower. By 6 or 8 times, all semblance of smooth, even motion is gone. Beyond that, things move glacially.

What am I doing wrong here?



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 04-09-2005, 01:49 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

LoadMovie Slower And Slower...
I ahve a couple of sites where there are options to go to various screens. Each screen is a different .swf, so I use loadMovie to load them, usually with code more or less like this:

on (release) {
createEmptyMovieClip("nextPage_mc", 5);
nextPage_mc.loadMovie("nextmovie.swf");
}

It works fine 3 or 4 times, but then things start moving slower and slower. By 6 or 8 times, all semblance of smooth, even motion is gone. Beyond that, things move glacially.

What am I doing wrong here?

Flash Movie Getting Slower And Slower With Attachmovie Calls
Hi all,

Running into a tough issue, hope you can help. Today I made a flash movie to create a scatter plot, the problem is, I notice the chart generates points slower and slower...

You can see it in action here:
http://www.vizxlabs.com/test/GenePlot2.html

Here is what I did:
1) There is a movie clip that contains the chart axes (let's call it Chart)
2) There is a movie clip (called Marker) that contains a button.
3) I have a movie clip (called data loader) that is responsible for loading coordinate info using loadVariables from a text file into an array. (This part happens very quick, less than 400 ms).

On the main time line, I have the Chart movie clip. In the onClipEvent(enterFrame) of Chart, I attachMovie the Marker 10 times. And I have to generate 5000 points.

I notice as the chart generates to about 700 Markers, the movie gets considerably slower on each subsequent Marker. On about 2000+ markers, the marker generation is crawling.

Is there anything I can do to make this faster? Or is flash just not good at generating huge amount of movie clips?

Thanks much!

- boon

My Flash Program Is Getting Slower, And Slower.....
Why is it taking so long for me to do things in flash 8? Everything I try to do (move objects, open the action panel, draw, etc) takes 5 years to react, and it's sucking the fun out of everything! It sits and takes forever to load EVERY command. I do have a lot of things in this particular flash, but sometimes it plays just fine. I'm making an rpg with detailed mcs and backgrounds. Is there any way at all for me to speed things up in there? Right now I have finished about 10 characters, and have a lot of background stuff going, but this game is still in its infancy. If its going slow now because of all the art I put in it, what on earth am I going to do as I progress with the real levels????
The swfs play just fine at the right speed.... The program itself is slower than a dead rock.
Please help!

Damn Fk's Getting Slower And Slower
seems like every time i get on i get more errors and takes longer for pages to load what is up with this, i think they need more servers or something.

Help, My Game Gets Slower And Slower
i am creating a 2D spaceshooter. all objects (spaceships ,laser, ...) are dublicated using 'dublicateMovieCilp', so every movieclip is on a new depth. And I am using hittest for collision detection and 'removeMovieClip' to remove a clip, e.g a spaceship is hit.

onClipEvent (enterframe)
....
// collision detection (is included in nearby every enemy)
for (i=0; i<=_root.depthCounter; i++) {
if (this.hitTest(_root["laser"+i])) {
this.removeMovieClip();
....

depthcounter is a variable that starts at 0, and everytime a movieclip (spaceships, lasers, meteorites, bonus ...) is dublicated, +1 is added, so the number of depths gets higher and higher. And because my for-loop checks all the depth there have been so far, whether there is an object on this depth or not the slower the game gets. (it works fine till depthcounter= ~50)
- So, how can I write an actionscript entry, that moves a certain movieclip, when it is loaded, on a certain depth that got already empty (for example, when a spaceship got shot) --> so that the number of depths stays on a low level??
- or, how can I write an hittest loop that checks only the depths it should check?
- or any other idea how to make the thing run better

mind 1: I am not a pro, but advanced
mind 2: grammar mistakes

100000 thanks, for helping.

Duplicate... Slower And Slower....
Hi all,

I was pondering.... I've a simple script that duplicates 1 MC 10 times at the time and repeats this step as long as a certain number of rows is created. But flash keeps on getting slower as the number of rows grows. I do not have any clue why, can anyone tell me?

I've a zip file of the fla and swf attached.

What's the deal with my scripting, or might it be flash?

Cheers,
Hendricus

My Movie Is Getting Slower And Slower...
At this rate, it will come to a complete halt altogether at any time now.

I am thinking it has something to do with my highly inefficient (or nonexistent) code, as I've been forced to do things kind of old school to achieve the effects I want, not having been able to find answers to problems I've been having with AS.

edit:
Can't delete the post, but anyways, I deleted what I thought might be the culprit and the whole shebang sped up dramatically. It was a large animated square in the background - just a shape - that moved through roughly 125 frames repeatedly. It had a complex mask - a shape with approximately 2000 vertices - that it showed through.

It took me like nearly 2 hours to make the whole thing and it looked really cool. I thought that because it was all vector graphics and shapes that there wouldn't be a performance hit. I guess I was wrong

<sheepish grin> <-where's the smiley for that?

Why Does This Script Going Slower And Slower?
try this and give me response


Code:
var max:Number = 50;
var size:Number = Stage.width;
var step:Number = size/max;
var numb:Number = 0;
for (a=1; a<51; a++) {
this.createEmptyMovieClip(["line"+a], 51-a);
this["line"+a]._x = 250;
this["line"+a]._y = 250;
this["line"+a].lineStyle(1, 0x000000);
this["line"+a].moveTo(a*step, -(a*step));
this["line"+a].beginFill(Math.floor(Math.random()*999999 - 100000) - 100000)
this["line"+a].lineTo(a*step, a*step);
this["line"+a].lineTo(-(a*step), a*step);
this["line"+a].lineTo(-(a*step), -(a*step));
this["line"+a].lineTo(a*step, -(a*step));
this["line"+a].endFill();
}
onEnterFrame = function () {
if (numb == 50) {
numb = 0;
}
numb += 1;
this["line"+numb]._rotation += numb


};

Running Slower And Slower..?
Ok need some help here,
im making a website out of flash. Im just finished creating the main page but it is slowly slowly running slower and slower everytime i add in knew pics/text/animated buttons etc..

How do i speed it all up?

AND--

Is the a way i can find out in flash whether or not i have a FULL version of flash or just an ACADEMIC version.

Thanks heaps,
Jakatta..

Slower Swf
Hi everybody,
I have one swf, which works all right. But when I load into this swf with action loadMovie(); another swf, which is independently working also all right, everything goes so terribly slower. But as I know, it is usual to load into one swf another few more swf. Is it normal or I am doing somewhere mistake?
Thanks for any help.

Slower Following
hi!

I know how to make a mc follow the mouse but how can I make it go slower toward the edges of the screen and then stop if the mouse lives the screen?

thanks!

With Is Much Slower ?
PHP Code:



t1s = getTimer();
with (AA)
{
    for (var i =1000000;i;i--)
    {
            AA.hSpeed = getDir();
    }
}    
t1e = getTimer();
trace(t1e - t1s);




seems to be about 4 times as slow as:

PHP Code:



t1s = getTimer();
//with (AA)
{
    for (var i =1000000;i;i--)
    {
            AA.hSpeed = AA.getDir();
    }
}    
t1e = getTimer();
trace(t1e - t1s);




is this normal, or am i doing something wrong. because i often read code optimization sites and they aways use with.

Getting Slower
Hello I am learning Flash and Action Script. I just made my first game as self practice by using Flash CS3 and Action Script 3.0. It works ok but the longer I play, the slower it gets. I used timer to let the images to be loaded couple times before they stopped, so it will look a bit more like real machine (although the real machines are "rolling" the images) Here is the link for the game:
http://www.djgooddesign.com/fanny/slotMachine3.html

I searched online and found people talked about "memory leak". Is my case relate to "memory leak" problem? But my game is a very simple game. How can I solve this problem? Here is the flash file:
http://djgooddesign.com/fanny/slotMachine3.fla

Also, I am still learning Action Script 3.0. If anything in my code should be improved, please let me know.

Really Appreciate....

SBFL

AS2 - Does AS2 Really Be Slower Than AS3?
You know,I have been learned flash since flash 5.
To some reason,I feel reluctant shift to as3,because as2 can fullfill all my need.

In my opinion,if you write the same code in as2 or as3,like this:
_root.onEnterFrame=function():Void
{
mc._x++;
}

The output SWF file will be not difference,so there is no efficent lose in such condition.
So,I think,in most of the time,use AS2 will not be slower than using AS3.
Any idea?

SLOWER LOAD...
i want to execute a movie .EXE but the preloader doesnt appears because from HD the load is very fast...
i have the preload in the first scene and the big movie in the 2nd.
i want that the preloader appears quickly and the main scene appears after its loaded.
But from hard disk i cant.
The preloader is loaded at the same time that the big scene (60 Mb) so i cant see it. I have tried it loading from internet and it works, but no from by hard disk

can i make slower the loading of the main scene to see the preloader ??? I NEED TO SEE THE PRELOADER because the movie .EXE takes about 1 minute to load so i want to view "something" before... i exec the movie from my hard disk its not for internet...
can i do something???

thx and sorry about my bad english

Slower On Frame?
How can I slow down on some frames?? If I turn the fps to 5 its take the whole scene.

Regards

Nico

FPS Is Slower In Brower
We are doing web-based training in Flash, and have typical voice-over type instruction in our .swf files.

The voice and the screen animation sync up great in the standalone player or when testing, but when we put the .swf into a browser, everything is out of sync. We are at 30FPS, but this still happens even if we lower it to 24 or 20. We have our audio set to 'event', and we noticed switching it to 'stream' helped a little.

any thoughts on this? is this a fps thing, or is it an audio 'event vs. stream' thing?

anyone have any tips to using the stream feature for this type of audio delivery?

PS - we know that some machines can't play 30FPS - the problem does not appear to be related to that. when we play the .swf's on a slow machine (standalone, not in a browser), they play just fine. it just seems to be the brower that slows everything down.

thanks, nords.

Slower Animation In IE
Does anybody know why is my animation slower in the browser IE?
When I'm viewing it in flash player, it goes much faster.
The same is for browser NETSCAPE, also there is the animation much faster than in IE.

Slower Swf In A Web Page
I have a movie running at 30FPS. When previewing it with ctrl+enter and with the standalone player, everythings runs smoothly as desired. I inserted the SWF movie on a html page, and now the whole movie runs slower. Is that normal? Should I increase the frame rate?

Here is the site
http://www.ressacmedia.com

Html Slower Than .swf, Why?
Can anyone explain why my flash programs consistently run slower in html mode in a browser versus .swf programs?

Is this just the nature of html or is there something I can do to optimize?

Thanks.

My Movie Is Slower Than The Others :(
When I make any movie on flash, its frames are cut and it makes my
movie jerking and I faced the same problem when I made my website. I
have checked my PC requirement which is perfect as far as flash is
concerned. I want to make my movie smooth, what should I do?.As you see in the movie the green ball is moving but having a frame cut and glitches.I want to make it smooth .

Slower On The Internet...?
Okay, I'm using Flash 5 and having major troubles. When i open the video as an .swf the speed and quality are great. However, when I preview through HTML or with Internet Explorer, it seems to go tons slower and the quality is horrible (even if i resize the screen). I experimented with this, and found out no matter how fast I make it go as .swf, it always goes 40 fps (or something like that). I tried putting 100 fps, still the same. This can greatly hurt my Flash Videos. My friends says it's my Flash 5, but I don't think so... Any help would be... Umm... Helpful. Thanks.

Ok. Starting A Little Slower
Hi,
ok. leaving aside the problems with actionsscript...
Why is this thing so slow?
Particularly the parts with the numbered balls.

A new problem just started.

The 2nd to last mc in the main timeline jumps back to the first frame. Though in the mc's timeline, there is a stop on the frame.

this is frustrating.
Hope you can help
Scott

scott@polygonking.com

HTML Slower Than Swf
Hi,
I have just finished my first flash movie and really need some help.
I have published it both to swf and html, but the html file runs a lot slower.
The fps was set to 100 and in all the previews it shows fine. i then put it into dreamweaver and still it previews fine but when I publish it appears slower again.
When I test the swf and the html files, the html does run slower than the swf
What am I doing wrong? Wopuld really appreciate some help as I have looked everywhere and can't find anything about it
Thanks
Carly

AS Causes Everything To Run Slower/sloppy ?
Hi,

i have a little movieclip & some duplicateMovieclip script for creating some bubbles... below, i'll give the actions that take place in 3 frames... I embed this little bubble MC into another MC on the stage... When those take place on the stage(after being loaded into the container) as entering to the related section, whole movie starts to work real slow. But when tested as a separate SWF everything seems normal...

Is this because that there are some conflicts/interfering/coincidence between this script and others or is this because of bad coding?

HERE ARE THE CODES in 3 frames,

Layer 1

Frame 1


Code:
baloncuk = "1";
maximo = "40";
rq = "10";


Frame 2


Code:
set("posicionx" add baloncuk, random(800));
set("velocidad" add baloncuk, Number(random(9))+2);
duplicateMovieClip("estrella0", "estrella" add baloncuk, baloncuk);
setProperty("estrella" add baloncuk, _x, eval("posicionx" add baloncuk));
buyukluk = Number(random(rq))+25;
setProperty("estrella" add baloncuk, _xscale, buyukluk);
setProperty("estrella" add baloncuk, _yscale, buyukluk);
i = "1";
while (Number(i)<=Number(maximo)) {
setProperty("estrella" add i, _y, getProperty("estrella" add i, _y)-eval("velocidad" add i));
i = Number(i)+1;
}


Frame 3


Code:
if (Number(baloncuk) == Number(maximo)) {
baloncuk = "1";
} else {
baloncuk = Number(baloncuk)+1;
}
gotoAndPlay (2);


WHAT IS THE SOLUTION? Or your SUGGESTION?

THANKS A LOT...

Movies Get Slower?
Ok, there are two things about my Flash movies (which I put on the net and also play on my computer in .swf format) that are kinda bugging me.

First off, the movies seem to go slower on the net than in the Flash program or Flash player on my computer. The movie itself is supposed to be 60 FPS, but it plays like it's 40 - 50 FPS on the net, whether it's from a web site or just played on Firefox as a preview.

Another, possibly related, problem is that I noticed sometimes if I raise the FPS of the movie in Flash, that while playing the program will change the FPS in the middle of the animation, causing it to fluctuate. Like if I raise the FPS of one my movies to 80, it'll fluctuate between 60 - 80 FPS throughout the movie in the program and I notice that this sometimes causes the animation to look like it's skipping or jumping or just not smooth every so often.

Help?

[F8] Why Does My SWF Run Slower In The Browser?
It runs fast and smooth in Flash..

When i publish it and run the SWF file in Flash Player.. it runs fast and smooth..


But when I embed it in an html file.. even if i look at it locally off my computer.. it still runs much slower..

Why is this?
Its obviously fully loaded and stuff.. Why is it still slower in browser?

The height and width are exactly right.. it isn't stretched or compacted any.

Ever-slower Transitions?
I have an idea for a project where, when first run, the script would iterate through a series of images at maximum speed.

Then it would loop back to the start and run the sequence again, only a bit more slowly, and continue that process.

So the pseudocode looks like this


Code:
time_between_frames = 0;
for(ever){
for(frames){
go to next frame with pause of time_between_frames
}
time_between_frames = time_between_frames + 1;
}
left unstopped of course it would end up taking ten minutes between frames, but, this is art, so, whatever.

Can that be done in Flash/Actionscript? Any hints as to how it could be coded?

Does Flash Run Slower On A Mac?
I have noticed a significant difference in playback speed when I view my (Flash5) swf on a mac - it seems to run a lot slower. Is this a known issue?

My file has a framerate of 12fps and uses a custom cursor which is an attachedMC. It also utilises a shared library. Other than that it's pretty much plain vanilla Flash.

I have tried it on several macs, all with varying bandwidth and I still get the same problem.

Any ideas?

Slower FPS In Browser?
Hi, i just made a test.. 2 little ball fly on my main timeline..

done a little script to check the fps... i set the fps to 30.

Everything work fine when i'm standalone.. the textbox show 30!

i put it in explorer.. drop to 24...

someone got a answer for me?

thx a lot

Swf In Swf Makes It Slower...:S?
peepz,

it seems that if i load another smf in my movie it starts running much more slower....

is there a solution to fix this?

load command:



ActionScript Code:
keyFrame = 1;

mcEffecten.removeMovieClip();

mcContainer.loadMovie(overAllLoader+".swf", 200);

trace(overAllLoader);

mc1._visible = false;
mc2._visible = false;
mc3._visible = false;
mc4._visible = false;
mc5._visible = false;
mc3._visible = false;

Firefox Slower
firefox runs flash animations slower than ie. yeahhh. they (firefox) have to fix it right?

what do u think?

Swf's Run Slower In Browsers - Example.
working on a site atm and have this animation/sound button: http://i36.photobucket.com/albums/e3...tion/sound.swf

play it in standalone flash player locally and the cone pretty much stays in time with the sound.

play it inside a browser (ie, firefox, opera) locally and it plays slower, so the sound and animation are played out of sync.

anyone shed any light on this?

ez,
lewis

Flash Slower On Mac
Why the hell the flash sites or games run slower on Macs?

I have a Mac an design flash sites... i test them and run them an design them to run in certain speed then i show them to people who have PCs an they run faster...

You can test with this game www.diehard4movie.com/drivehard/

Is there a solution for this problem?

Slower Slideshow
I would like this whole slideshow to move more slowly: http://www.alecmusser.com/new/model.htm

Here's a sample of the speed I would like.
http://www.rodneyrayphotography.com/index.php

I've tried added frames with no success. Each was 20 and I doubled it. Thanks for your help!
Sara

Flash Slower On Mac
Why the hell the flash sites or games run slower on Macs?

I have a Mac an design flash sites... i test them and run them an design them to run in certain speed then i show them to people who have PCs an they run faster...

You can test with this game www.diehard4movie.com/drivehard/

Is there a solution for this problem?

Test

MC Slower Speed
Hi macromedia forum,
I'm trying to make a movieclip move slower at a certent place in my movieclip. This means, that the speed needs to be lowered when e.g. showing af picture.

Here is the situation. I have a movieclip running different pictures. E.g. the first runs for 115frames and fades out. Instead of runing 115 frames i want the movieclip to run 5 frames (picture fading in) and the stops or delays for 10sek and then goes to frame 6 from where the picture fades out.

Where in the movieclip should i place this Action Script?

Hope some on has an idea to solve this problem

BR.
Mikael Klint

MC Slower Speed
Hi macromedia forum,
I'm trying to make a movieclip move slower at a certent place in my movieclip. This means, that the speed needs to be lowered when e.g. showing af picture.

Here is the situation. I have a movieclip running different pictures. E.g. the first runs for 115frames and fades out. Instead of runing 115 frames i want the movieclip to run 5 frames (picture fading in) and the stops or delays for 10sek and then goes to frame 6 from where the picture fades out.

Where in the movieclip should i place this Action Script?

Hope some on has an idea to solve this problem

BR.
Mikael Klint

SWF Slower In A Browser
I have a movie running at 30FPS. When previewing it with ctrl+enter and with the standalone player, everythings runs smoothly as desired. I inserted the SWF movie on a html page, and now whole mvie runs slower. Is that normal? Should I increase the frame rate?

http://www.ressacmedia.com

Flash Slower On Mac?
Has anyone had any problems with Flash acting much slower on Mac then a PC?

I've been developing a site for a while, and now my client says the site runs very slowly on Mac but when run on a PC it runs smoothly.

Thanks in advance,
-Neverrain

Tell Movie Go Faster Or Slower
Here is another question,
can I use actionscript to increase or decrease the speed of my .swf file?

on (answer) {
trace ("thank you");
}

Flash 6 Player Is Slower
My browser (with the Flash 6 player) plays movies SLOWER than with the Flash 5 player.

They are sluggish...no-one seems to to mention this anywhere!

WHY NOT? This HAS to be the FIRST thing anyone notices about this new release!!!

WHY IS IT???

Can it be fixed?

Help Please -Slower Fading With Setvolume
I'm trying to get a slow fad in for some music. When I put in _root.s.setVolume(vol+ 1); it fades in but much too quickly. I tried using
_root.s.setVolume(vol+ .5);
_root.s.setVolume(vol+ (0.5));
_root.s.setVolume(vol+ 0.5);
_root.s.setVolume(vol+ 1/2);
_root.s.setVolume(vol+ (1/2));

it doesn't seem to recognize my attempts at an increment anything less than 1, does anyone know what I'm doing wrong?

Faster? Slower? How Do I Make It The Same?
How do you make a flash movie that runs at the same speed on every computer? Whenever I make mine, if I view it on a slower computer, it goes too slow, then when I view it on a faster computer it goes too fast! I know how to make movies preload... but it doesn't seem to help.

It gets very annoying when I try and make a movie where something will go to the beat of the music, but then when I go view it on other people's computers, it's totally off!

Yes, so how do keep it to run at the same speed on all computers?

Slower Scrolling Text
anyone know how i can make my text scroll more slowly, but also smoothly? it appears that i can't add anything less than 1 to the text.scroll actionScript. that would solve the problem if i could. what i'm talking about is the scrolling text on http://www.goodman-decorating.com/newSite/index.html i've seen it done before. (i'm in flash 5) thanks very much...

Animation Slow On Slower CPU
Does anyone know if it's normal that a movie of 124kb ask so much of a system. On a P4 the animations run good, but for example on a P3 it runs very slow. There are not many calculations (almost none).
How does this come ???

Play Layer Slower
hello

is there a way to play an independent layer faster or slower? cause when i do my anymation either it looks too fast or too slow...


Thanks

MX Plays Slower In Browser
Hello..I've made a flash mx movie which plays at the right speed when I watch in the SWF format, but when I publish it to HTML it plays a lot slower...I have the settings at 30fps..I am just previewing it locally, not on the web...i am publishing with best quality...Does anyone know why this is???? am I missing something

Loaded Swf's Play Slower
Has anyone noticed that loaded swf's play slower (significantly slower)
-even if the swf that the loaded movie is in, has no moving animation what so ever -and frame rate is kept the same ???

Copyright © 2005-08 www.BigResource.com, All rights reserved