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




Slow Load-please Help



when i hit the test movie button it takes about 30 seconds for the swf to come up.. i have a very simple site with 1 graphic and no animation yet.. i have a cd rom with instructional flash fla's and they test in about 5 seconds.. what am i missing here?? thanks .
mikeg



FlashKit > Flash Help > Flash MX
Posted on: 04-06-2005, 03:15 AM


View Complete Forum Thread with Replies

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

Large Images / Alfa Tween / Slow Slow Slow... Help Please
I'm working on a site at the moment and one of the main eyecatchers is there is a slideshow-type of animation running in the background the whole time.

There's a dozen (large in pixels, but not in kb) .jpgs that have a minute long fade between images, a few seconds pause and then onto the next fade.

I've tried just making a normal alfa tween, I've tried making the slideshow as a seperate .swf, I've tried dynamic images with .xml, I've even tried making the .fla background transparent and making the slideshow on the html page using javascript.

But all make the site run very slowly. Text scrolling is slow, short rollover animations are slow, etc. etc.

My question is: Is there a way of making a super light alfa tween with large images?

99% of the threads regarding slideshows here at Flashkit have many views but no replies. I need help, and soon. Many many thanx to anyone that can point me in the right (or any) direction.

Slow Load
I am not a computer expert and know very little about programming and flash, but I own a company and my programmers recently created a site with a flash intro and it loads very slow even with a good connection. It only loads slow the first time you visit the site, but the customer is loosing hits because people do not want to sit and wait for the flash piece to load.

If anyone can send me any tips or advice for my programmers to speed up the load I would greatly appreciate it. The site is located at www.pickwickandfrolic.com . All help would be appreciated.

Slow Down After Load
Been working on this site. Pretty much all scripted. I pre-load all of the images using a loading bar in the upper right corner. After everything is loaded it laysout the screen. Well it does so, but it crawls and I cannot figure out why. It can't start until everythings loaded so I don't understand what's dragging it. If you wait like a minute everything is fine. Then if you refresh it loads properly, but on the first load, it's like crap. Have a look - http://unisexhandicapped.com/pieceocrap/dn74.swf

Any ideas?

Slow Load
I've been working on this thing for like a month... I can't get it to load any faster than this...
Can someone test this for me and tell me which one loads faster?
http://rsp.icpls.com/infidel/killinfidels.swf
http://rsp.icpls.com/infidel/killinf...new%20load.swf
Post your internet connection and CPU speed if possible pls

The first one loads an image into a mc inside the levelHolder_mc and if the next image is the same it just copies it. The problem is that if there are only 2 types of images on the map and they switch very often it would be extremely inefficient.
The second one loads the images only if they are new and never encountered before. Then it saves their bitmapdata into an array and then it loads that bitmapdata every time it needs it into a new mc inside the levelHolder_mc. This will be inefficient if there are too many different images on the map, but will work a lot better where the first one lags.

My oldest version was just loading the image every time, but that uses pointless amounts of internet traffic and works too slow.

Anyone got any ideas how I can make my load faster? :/

XML Slow To Load
I want to load a 5MB xml file and was able to do so wiht actionscript 2 in just a few seconds. When I converted my code to actionscript 3, the file takes longer than 15 seconds to load and give me this error:

"Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds.
at LoadXMLTest_fla::MainTimeline/onLoaded()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunctio n()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()"

I have had to reduce the file down to 300kB for it to load. Are there any changes to make the code run faster?

TIA
ps. this is my first Actionscript code ever.


Code:
var timebuckets:Array = new Array();
var process_steps:Array = new Array();
var stack_layers:Array = new Array();
var loader:URLLoader = new URLLoader();

loader.addEventListener(Event.COMPLETE, onLoaded);

var xml:XML;

function onLoaded(e:Event):void{
xml = new XML(e.target.data);
var il:XMLList = xml.DATA_RECORD;
for(var i:uint=0; i<il.length(); i++){
timebuckets[i] = il.TIME_BUCKET.text()[i];
process_steps[i] = il.PROCESS_STEP.text()[i];
stack_layers[i] = il.STACK_LAYER.text()[i];
}
}

loader.load(new URLRequest("file:///P:/Projects/XMLDataFile.xml"));

Slow SWF Load Up?
Hi, Really hope you guys can help me, Ive recently launched a new intranet site which I have developed. This site contains a SWF flash file on the home page, the complaint has been that the home page is taking for ever to fully load on some computers. On other computers the page loads up fast and fine as expected. Could anyone point me in the direction as what appears to being wrong?... I appreciate all suggestions

Thanks in Advance for any help

Regards
Budgy

"He that asks a question is a fool for a moment, he that never asks a question is a fool all his life"

Loadmoive Slow On First Load
I have a single loadmovie command which loads 1 of 24 diffent swf files. the first time the loadmovie command is required there is a delay in loading the flash file

the buttons set the root current_pic to the required swf and then plays the following time line on a movieclip whos acions are:

daymovie = "chrim"+_root.current_pic+".swf";
loadMovieNum(daymovie, 8);


does anyone know whats causing the 3sec delay?

Slow Load Movies? Any Help?
Can anyone help? Ive uploaded site for testing and it seems to load in very slow. The site is made up of a series of loaded movies but it seems to takefar to long for the actionscrpti to find and start loading in the movies...even on broadband.


Thanks

www.signandlight.com

Load Movie = SLOW
I'm using the loadMovieNum command in my Flash document with a button so when the button is pressed it loads another SWF to level 1. Simple stuff here. The SWF is small too. We're talking under 50K. By itsself the SWF works fine but when it is loaded into the main SWF with the loadMovie command it moves really slow. The functionality takes forever. Can anyone think of reasons this might happen? Thanks in advance.

- Scott

Components Are Slow To Load....
I developed a control panel, which uses flash MX 2004 controls. Im running the control panel in Flash Player 6. I had to embed the fonts via action-script to get the controls to display properly.

Code:
_cboUserList.setStyle( "themeColor", "haloBlue" );
_cboUserList.setStyle( "fontFamily", "tahoma" );
_cboUserList.setStyle( "embedFonts", true );
But now Im experiencing a very bad lag, when entering the frame with the controls on it .

Any suggestions ??

Slow Load Time....
I have a question about the usual html sized file that is generated with projects. I am on the verge of finishing my first fully Flash project and I have pages that are 1.0-1.35KB in size which I didn't think it would be that big to load on a dsl connection. I tested the load time by publishing one page to the web and it is taking forever to load. Any idea to what could be problem or is it really that my files are that big? any hints in creating smaller sized files?

I do have a preloader that is fully functioning within the simulated download and it takes about 20-30 seconds to load. However, when i try the same page on the internet it 5 minutes and counting to even see the preloader page.

CD-ROM And Slow Load Time
I have this CD-ROM i Have built, the EXE is 3.5mb and it loads in a 71Kb XML file, the load time is almost 45seconds, the client obviously refuses to accept this but I really can't see how I can shrink it more, in SWF format its only like 100kb so almost all the filesize is flash player, but I have seen CD-ROMs load way way faster then this before...

any ideas?

thx

Slow Or No Load Swf Files
I have a website www.dentalspas.com and I am streaming video of customer testimonials from the www.dentalspas.com/testimonials.html page.

I used the javascript embed fix mentioned here @ kirupa.com to fix the embed issue.

Apparently some viewers don't get the flash animations or they are very slow.

I am looking for help with reducing/optimizing the various components of the swf files to reduce download time and I imagine there may be issues with non-javascript allowed browsers so I suppose a browser detect script would be in order as well.

I would really appreciate any advice or help. Please look at the pages above and let me know what I can do to get them to work more efficiently.

John

Load An Avi In Flash.....to Slow
hello!!
you now a good idea about how can I play an avi without import in flash...becouse in flash the avi is play to slow.

thanks: domestos

IE And External Mc -- Slow To Load
not sure if this was posted in the forums (I couldn't find it if it was), but I am experiencing some playback problems with external .swfs in IE 6. For some reason there seems to be a pause or lag time when loading the external files. There are no preloaders on the externals, for the largest file is 14K. Anyhow I have tested on a Safari (Mac OS X), Netscape (PC) and (Mac) which all seem to run smoothly.

is there a bug in the player or browser? or is there a fix? or something I need to account for?

any insight would be greatly appreciated.
Thnx
--Cuzman

Please Help My First Flash Project, Seems To Load Slow
Hi I am new to flash and have been teach myself over the past month or so and as a learning exercise I thought I would create a whole site. It isn't very graphics intensive but seems to load much slower than alot of sites I have visited. I wonder if anyone can tell me what I can do to make it load faster, the address is
http://home.cogeco.ca/~croberts1

the file sizes are 186kb for the intro and 226kb for the main site, does that seem like average sizes?

any help would be appreciated.
thanks

My Movie Is Toooooooo Slow It Can't Load
I'm trying to make a flash website, and I can't get it to pull up as an html webpage. I think I need a preloader, but the tutorials haven't been any help so far. It's way to confusing!!! I need to know:

-How to make a preloader or have someone make it for my movie and then send it back.
-What version of the flash player my viewers need and where to get it.
-How big is too big for a flash movie?

Please please please help!

Layout Runs Slow After Load?
http://www.lionblaze.com/beta/redshi...ew/trial2.html

For some reason after the preloader runs it starts running slow while the first transitions are running.

I'm not sure why it does that. I had the quality set to 'best' but I took that off and I dropped the jpeg quailty down to 70%.

Any suggestions? Does it even do it on your system?

btw there is nothing there but the opening animations and the music player.

After Preloading Jpg, LoadMovie Still Slow To Load Jpg
I have made four or five jpg and swf preloaders successfully so I can get through the code but I'm not aware of all of the little problems. In my most recent preloader, I watch the progress bar move along but when the main movie opens and I click on a button to load a JPG, the jpg takes a second or two to download again before it is displays. Here is the code I use for the preloader:

else {
loader.loadClip(pagesVars.path+pagesVars.code+"_"+ ipic+"_0.jpg", "holder");
loader.loadClip(pagesVars.path+pagesVars.code+"_"+ ipic+"_1.jpg", "holder");

and the button to load the movie does this:

image_base.image_load_into_3.loadMovie(pagesVars.p ath+pagesVars.code+"_"+target+"_3.jpg");

image_base.image_load_into_2.loadMovie(pagesVars.p ath+pagesVars.code+"_"+target+"_2.jpg");

during my troubleshooting, I replaced my preloader and loaded a jpg using loadMovie to a visible clip in the main movie so I could see that the correct jpg was preloaded. Even while looking right at the loaded jpg, when I clicked on its corresponding button it took a second or two to download and display in another area. The 2nd time I click that button, the JPG loads instantaneously. Am I missing something obvious here?

Kevin

Loading Movie With MCL - Very Slow Load..
Hi Folks - I have a flash file that when you press a button on it, it loads up another flash file (.swf) into an invisible Movie clip that is sitting on the stage. I'm loading it using a movie clip loader. My problem is this file that it loads is 408k in size and when the system goes to load it, I get a black screen for some time (I'm assuming that it is loading)...I don't know why it's doing this. I've tried to put a preloader on both the _root movie and on the movie that I"m loading, but it doesn't show the preloader until right at the end, leaving the black screen for a while... 408k isn't that big...does anyone know any reason why it would take so long to start loading? Here is what I'm doing... any help is appreciated!


PHP Code:



var loadListener = new Object();
        var detail_mcl:MovieClipLoader = new MovieClipLoader();
        detail_mcl.loadClip("detail.swf", detail_mc);
        _root.attachMovie("title2_mc", "title3_mc", getNextHighestDepth());
        _root.title3_mc._x = 325.2;
        _root.title3_mc._y = 353.6;
        var fadInTitle:Object = new Tween(_root.title3_mc, "_alpha", Strong.easeOut, 0, 100, 5, true);
        _root.attachMovie("loading_bar_mc", "loading_bar_mc", getNextHighestDepth());
        _root.loading_bar_mc._x = 265.3;
        _root.loading_bar_mc._y = 421.0;
        _root.loading_bar_mc._xscale = 0;
        loadListener.onLoadProgress = function(target_mc:MovieClip, loaded:Number, total:Number) {
            loaded = target_mc.getBytesLoaded();
            total = target_mc.getBytesTotal();
            var pctLoaded:Number = Math.round((loaded/total))*100;
            var pctLoadedDisp:String = "LOADING: "+pctLoaded+"%";
            _root.title3_mc.pctLoaded_txt.text = pctLoadedDisp;
            _root.loading_bar_mc._xscale = pctLoaded;
            target_mc._visible = false;
        };
        loadListener.onLoadComplete = function(target_mc:MovieClip) {
            _root.title3_mc.unloadMovie();
            _root.loading_bar_mc.unloadMovie();
            target_mc._visible = true;
            var fadeInTween_detail:Object = new Tween(target_mc, "_alpha", Strong.easeOut, 0, 100, 1, true);
        };
        detail_mcl.addListener(loadListener); 

Does NetStream Fix Slow Video Load On CD?
Hi,
I have another post in the FlashMX forum where I'm attempting to fix a problem I'm having with video loading on a CD. Billy T helped me out a lot, but I'm still having a problem where all the video must preload prior to it being visible. This is causing for up to a 1 minute lag between the CD interface opening and the first video playing.

I have 5 videos that are between 1 and 3 minutes in length. They are currently being preloaded in to the first frame so that once they load, all videos will play smoothly. Like I said, it takes up to 1 min. for all videos to load and this is just unacceptable.

I'm curious to know if I were to upgrade to Flash2004 and use NetStream or something else, if this problem will definately be solved. I need to be able to make a darn good case to my managers for them to drop $200 on the upgrade.

Thanks!

Tile Tutorial - Slow To Load - Always On Top
Quick question:

Tutorial works great. I only changed the size from 34 x 34 to 10 x 10. Everything else remained the same. I'm not sure if this is supposed to happen, but it literally takes almost a minute to load/publish preview.

One other thing. I have it on the very first layer. I have some simple text on top and it doesn't show.

My expertiese in AS is vast. I know enought AS to make a button.

Any ideas?

Thank you.

To Many Picturs, Load Time Slow
I designed a flash website that I mainly use as a photo gallery. It is up and working fine, but the only problem is, that it takes forever to load. Some people that I know who still us a 56k connection take about 15min for it to load. Is there any way I can just have the basic flash page load with thumbnails, and then have the pictures (when selected) load individually. I know how to do this by opening the files in a new window, but I don't want to do this, I want them to be embedded in the flash movie I am already running. Can someone please help!

Using LoadMovie() To Load An Animation...slow?
Hi,
I'm using loadMovie() to load an animation (external swf) into my webpage.
The animation is just an image animating from one corner to another. The filesize is 53 kb.
It is fast enough in flash, but when i publish and view in a browser it is painfully slow!!!
I have tried to vary the framerate, but it doesn't help....
Could it be that i'm using loadMovie()? Is it better to use a movieClip()?
Any suggestions?
Cheers,
Dave

Flash Site Slow On Load...
Hey everyone,

So I finished my site finally, but it seems to be super duper slow. I believe that one reason is probably becuase the placed images in the external swf files are too large in size(?), but then there are other areas of the site that load slowly also, (and they have no images what so ever) and when you let it all load, and then go back to that page on the site, it works fine. What the heck? Can somebody take a look at my site and let me know what they think the problem might be and what to do about making it load faster and/or smoother? They're all external swf files that load into the main movie, but I'm not looking to use preloaders for each one, unless I really really need to. And then I will have to I guess. Anyway, here's the url:

www.ethecs.com

Any help would be much appriciated. Thanks in advance!

Chris

Load 2 Or More Swf In Diferent Levels Makes All Slow
Load 2 or more swf in diferent levels makes all play slow.
I have main.swf in level 0 and a Sound.swf in level 3, and when I make a LoadMovieNum in level 2 for example, it plays slowly.
All the movies have the same fps., and are not more than 50Kb.

Thanks who can help me !!

Load Movies Make The Swf Slow Animation
hii
i've created a site in flash of a gallery. its loading swf files of images and animations. i've made it with flash mx and export the swf ver 6. all the animations have a preload and all 24 fps.

the problam. some of the animation play smooth . but some of them play very slow. swf with 50 kb play great and somtime a swf 10k made of vector only play very slow. it happen only when i play it inside the main flash site (load into it). if i play the swf by it self its very smooth and fast.
how can i fix it?

thanks
ari - tintoon -

Load Movie Loads Slow Problem
Hi,

I am currently building a site where a main swf acts as a menu to load content swf's - Flash MX 2004 using the load movie behaviour to load the movies. This all works fine when I am viewing the site offline (as you would expect).
However, when I post the site to our web space and use it, there is a considerable delay before the movies begin to load (they vary in size from 8kb to 130kb and all have very simple preloaders attached).
If anyone has any ideas why this may be happenning or possible solutions - I'd love to hear form you!

Thanks in advance!

Components Slow To Load (render On Screen)
Is there a right way to load a component on the stage?

For some reason, when I go to a frame within the movie that contains a component, I see a white rectangle before the component appears.

Basically, I just want the component to appear without any lag. Is this possible?

(I'm using Flash 8)

[F8] Super Slow Load With Small File, What's Up?
Several of my flash files (imported to dreamweaver, and then uploaded to my ftp client) are under a meg (944 kb for the fla, and 446 kb for the swf, to be exact). Yet, the loading time is around 10 seconds...I went through the objects in my library to make sure all of the unused files were deleted, save and compressed the file, but I'm stumped as to what is making it load so slow.

The homepage is located here: www.maryelise.com/home.htm and you can see the corresponding pages using the toolbar at the bottom.

Everything on the pages are on the first layer...would that have anything to do with the slow load time? I'm working with a preloader now, but can't stand the slow load....please help! thanks!

Why Does My Flash Movie Run Slow When I Use A Progress Bar At Load
I used the progress bar and loader component which is included with Flash 8 in front of my flash swf file, nothing out of the ordinary. When the swf file loads it seems to run real slow but when I load the file without the progress bar everything is normal speed. Have a look: www.theclamhut.com and then load just the swf at www.theclamhut.com/clamhut.swf and you'll see the difference. What could be causing this ?
Thanks IA

Site Slow To Load External Movies
Happy New Year to All!

Two questions/request:

Can everyone go to my latest site I've been working on and tell me if any part of it is slow to load?

Secondly if it is, does anyone have any idea on why the external clips don't load sometimes?

Thanks!

MC In .swf File Plays Slow... Did The Preloader Load It?
Hello.

I'm old time art director struggling with this site I built. 1st full site ever.

Here it is...

http://www.fizzcommunications.com/

Client has asked me to speed up 'flying words'. I build it at a speed I like, but then the intro s l o w s d o w n when played over the net.

Here is my attempt to "speed things up".

http://www.limeball.com/index2.html

(Still runs at 1/2 speed of that which I built)

I'm suspecting the preloader isn't loading it... or something.

Or something like, I built a monster, and I'm asking waaay 2 much of any browser. I followed most instructions found on the web 4 fast play.

• consists only of outlines
• no fonts
• no bitmaps, .png, jpeg or any pixel content
• I eliminated an alpha fade at the end of each word
• I grouped things where I could
• I'm working at 24 frames a second (I like 30)

I'm thinking now 2 things left...
1). I need an action script to move the words, rather than graphically.
2). I need a better preloader to load content rather than frames??

I dunno...

Videos On Video Site Too Slow To Load
Hello,

I've been experiencing an increase in video load time on my video site recently. basically what happens is this:

1) video starts buffering in small increases
2) video starts playing
3) video stops as it has reached the buffering percentage
4) buffering starts again
5) video resumes playing and so on

does anybody have any idea how to fix this? is it time to do a server upgrade?

thanks

External Text Wont Slow And Won't Load
Hi Everyone,

I have a web site made out of flash that has 6 buttons on it running horizontaly accross the screen. Each button links to a new scene. Within each of the six scenes that I have there is a text box that loads text from an external text file. I have done this so another user, who doesnt know flash can easily update the text.

The first 4 buttons (starting from the left of the screen) go to the scene, the text box and text loads fairly quickly. The last two buttons, load the text boxes much slower (around 3 seconds compared to under a second) and the text doesnt appear in the text box.

I have gone over all the actions and file names, and cant find out why, so over to you guys please. Any suggestions?

Thanks,
Wazz



My Flash Site Seems To Load Soooo Slow And Other Kinks
Hello. I have been reading these boards off and on for the past six months. I am So nervous to finally ask a question. I hope you will all be so nice and help me out.

I am working on creating an interactive photo album of our wedding pictures. I want it to be available on my website and I also want to burn it to disk so we can pop it into a dvd player and watch it too. I am trying to make it just like opening up a scrapbook.... with both pictures with captions and videos on some "pages" too. I have really gotten a great start BUT... I have been to similar sites and they seem to load so much faster than mine. Might I have a few problems with my preloader ?? Maybe its playing over and over unnecessarily? I would also like to make it more interesting but I am afraid it would then take too long to load!

I batched all my photos in Fireworks first. I did it with different specs in different "chapters"... so some pics look great and others look very rough. I was trying to compromise the quality of the pics for a faster load time, but it doesn't seem to have helped. I am not happy with the quality in some areas now.

Also the music loops back on top of itself and sounds awful the second time through? I think its happening because it starts again when it reaches the end and two versions are playing at once???? I have tried to fix it several times. Its very nerve wracking to listen to!! There are still lots of kinks. I want to further develop this project, but want to find out how to fix these issues before I go on to develop the other "chapters" of the scrapbook.

Here's the link http://www.Kastlekey.com/wedding/collection

Advance thanks to anyone who is willing to help me out! I really want this to be smoother than it is right now.

PS. This is the page within the collection that is closest to my final Hope. But the preloader just loops FOREVER. What can I do differently? http://www.kastlekey.com/wedding/bridesentrance.html
Here's the one that loads faster.
http://www.kastlekey.com/wedding/honeymoon.html

SLOW SLOW External Text File
Hi,
I have created a .fla that consists of 3 scenes, each of which contains the same scrolling text box that loads the same external text file. The .fla is fairly CPU intensive already, and maybe the addition of the text pushed it over the edge, but when it plays, the text takes a long time to load when switching scenes (the text box appears, but it takes up to 30 seconds to load the text depending on the computer I use), and the scrolling is hit-and-miss.

My questions are:
1) Would it be faster if I hard-coded the text right into the textbox?

2) Should I get rid of the other 2 scenes and put everything into 1 scene?

3) Any suggestions?

Thanks,
sreebar

Slow Playing Movie When Using Load Movie
Hi....i'm using flash mx

I have a movie which loads on level 1. I noticed it plays slower than it does when i just open it directly. (just straight from the computer). It is designed to open on level 1. any ideas why it is lagging?

Cheers

Miffy

Slow...slow...slow Animation
hey guys,
im making an animation to a voiceover.
i want to sync the images with the voice.
it seems everytime i play the movie (i am publishing it as an exe to view because this is to be my final platform), the images play at a different speed.
what is this and how do i fix it?
also, does the way i have put the audio in make any difference to the speed it all plays back at?at the moment ive just got it on its own layer in the timeline.
cheers.

On Load Only...The Scipt Needs To Load A .swf File In A Holder On The Load Only.
I am making a gallery and i need a .swf file to load at the beginning only. But it cant be on a frame load. Just a on load only code. I dont know if flash does that but i really hope it does.

If you guys can help it would be great.

Mike

Why So Slow?
I've created a short animation intended as a possible splash page/site introduction. Why does it run so slowly at 56K (runs well on broadband)? What can I do to tweak it to run more smoothly at 56K?

See: http://www.jmrcreative.com/flash/pri...cepounder.html

Thanks!

Why So Slow ?
I've written a 'simple' flash game that uses lots of ActionScript code.. and it all runs just fine my Pc (1Ghz lots of memory etc).. but when others run it on their 300Hz systems it runs very slowly (what a suprise!).. where is the best place to start looking to see where I can get some performance gains ? (ie what to cut out/ tune)

Is It Slow?
Take a look at this movie. I wonder whether it runs slow on different pc's. Please tell you configuration.
http://dasher.flashmaster.ru/swamp.htm

Slow SWF
So I'm realitivly new to flash here, so forgive me if this belongs in the newbies section.

My problem is that the SWF I have created runs really slow and seems to lag the browser it is running in.

The movie relys on jpgs for the majority of its appearance. I created a movieclip that is supposed to resemble particles, the movieclip has 6 vector circles, the largest being 3px by 3px. I then used about 15 or so instances of this movieclip to get the effect I wanted. My movie is set at 25fps, yet it runs at no more than 5fps. I checked and when I load the movie in a browser the cpu usage doubles. How can I fix this? Or can I? Thanks in advance.

Why So Slow?
Hey, i have programmed this guy to walk left and right by scaling the backround 3 pixels, but the problem is, is that he does it so slow, like it takes a while for him to start moving (seconds but still...) how can i make it fluent and fast?
Heres the code I have on the backround:

onClipEvent (keyDown) {
if (Key.isDown( key.RIGHT)) {
_x-=3;
}
}
onClipEvent (keyDown) {
if (Key.isDown( key.LEFT)) {
_x+=3;
}
}

Thanks guys,
Mike

Slow 'else'?
Hey,

I'm working on a TileBased game...

For the movement code I use something like this (removed some lines to short in post):

PHP Code:



    if (bussy == false and move == false) {
        if (Key.isDown(Key.DOWN)) {
            dir = "d";
            if (map[heroY+1][heroX][1] == 1) {
                oldX = tiles._x;
                move = true;
            }
        } else if (Key.isDown(Key.UP)) {
            dir = "u";
            if (map[heroY-1][heroX][1] == 1) {
                oldX = tiles._x;
                move = true;
            }
        }
    } else if (move == true) {
        if (dir == "u" && tiles._x+tileW>oldX) {
            tiles._x -= 5;
            tiles._y += 2.5;
            tiles.hero._x += 5;
            tiles.hero._y -= 2.5;
        } else if (dir == "d" && tiles._x-tileW<oldX) {
            tiles._x += 5;
            tiles._y -= 2.5;
            tiles.hero._x -= 5;
            tiles.hero._y += 2.5;
        } else {
            scroll();
            move = false;
        }
    }




This all works well, but it's kinda shocky, the weird thing is that if I remove the else between controls and moving the shocky is almost fully removed!
So code looks like:

PHP Code:



    if (bussy == false and move == false) {
        if (Key.isDown(Key.DOWN)) {
            dir = "d";
            if (map[heroY+1][heroX][1] == 1) {
                oldX = tiles._x;
                move = true;
            }
        } else if (Key.isDown(Key.UP)) {
            dir = "u";
            if (map[heroY-1][heroX][1] == 1) {
                oldX = tiles._x;
                move = true;
            }
        }
    }
    if (move == true) {
        if (dir == "u" && tiles._x+tileW>oldX) {
            tiles._x -= 5;
            tiles._y += 2.5;
            tiles.hero._x += 5;
            tiles.hero._y -= 2.5;
        } else if (dir == "d" && tiles._x-tileW<oldX) {
            tiles._x += 5;
            tiles._y -= 2.5;
            tiles.hero._x -= 5;
            tiles.hero._y += 2.5;
        } else {
            scroll();
            move = false;
        }
    }




I was wondering why this is, does that meen I better not use 'else' statement to gain speed?

Why Is It So Slow
hello, i just put up a temp page for a client. but it is taking forever to download and the .html page is only 876kb. i have it named default. in the folder is the flash file and the html file only.

how do i trouble shot this?

www.rccbrooknam.comhttp://www.rccbrooknam.com

Slow Down
Hi,

I have been making a website in flash, and although the final file size is only 55kb, the movie does have a huge number of small components (lots and lots of small graphics blocks).

The movie has a preloader, which loads up the entire site before the first proper scene is visable, but my question is this...

Can having a large number of components have a negative effect on the outputted movie even with a small file size?

For example, the whole thing appears to slow down, and the movements appear to be a bit jerky - is it my imagination or is something wrong?

Does it perhaps depent on my processor?

Any help is greatly appreciated.

Damaged

How Do I Slow It Down?
I've been trying to figure out how to tweek this script to make the object gradually slow down as it approaches its goal, could someone enlighten me? I'm including the unadultered code:


Code:

MovieClip.prototype.follow = function (leaderX, leaderY, speed) {
// only move if we're not at the destination
if (this._x != leaderX) {
// determine distance between clip and destination
deltaX = this._x - leaderX;
deltaY = this._y - leaderY;
dist = math.sqrt((deltaX * deltaX) + (deltaY * deltaY));

// allocate speed between x and y axes
moveX = speed * (deltaX / dist);
moveY = speed * (deltaY / dist);

// if the clip has enough speed to overshoot the destination,
// just go to the destination. otherwise move according to
// the clip's speed
if (speed >= dist) {
this._x = leaderX;
this._y = leaderY;
} else {
this._x -= moveX;
this._y -= moveY;
}
}
}

Button:

Code:
on(release) {
_root.box.onEnterFrame = function () {
_root.box.follow (300, 50, 20)
}
}

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