Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: RE: FLASH: should I cut the # of mc duplicates in half if I can?
From: Damian Morton
Date: Tue, 16 May 2000 22:59:00 +0100

Accessing movieclips by name is slow when you have a large number of
movieclips. I believe Flash does linear searching for names starting at the
first name defined and working its way towards the last name defined.

Less of anything is always good. Im not sure why you need two movieclips for
what you are doing, but if you can get away with one, then its a good thing.

Could you get away with having your graphic movieclip inside the movement
clip? Because of this linear searching thing, the balance is tipped towards
having deep thin trees of objects rather than shallow wide trees.

On the other hand, you probably wont see too much processor time being used
unless you are duplicating hundreds of movieclips, in whihc acsae halving
the number wont speed things up. If I understood you correctly, you are
using actionscript on every frame to make a movieclip's position the same as
anothers. For hundreds of movieclips, you best avoid this kind of thing if
you can.

> -----Original Message-----
> From: owneratchinwag [dot] com [owneratchinwag [dot] com]On">mailto:owneratchinwag [dot] com]On Behalf Of John King
> Sent: Tuesday, May 16, 2000 4:56 PM
> To: flasheratchinwag [dot] com
> Subject: FLASH: should I cut the # of mc duplicates in half if I can?
>
>
> In a movie I've got duplicated movie clips flying around. Each moving
> item is actually two movie clips, one to do the movement and another for
>
> the graphic which just sticks to the movement mc. There seem to be good
> reasons to do this.
>
> But I'm concerned about slowing things down once the number of clips
> grows to a certain point. I could combine each moving item into one mc.
> The question is , should I? Is it better to have two movieclips (each
> with half the code) or one movie clip with twice the code. How much does
>
> simply having another mc to keep track of tax the program or processor?
> In some ways I think not very much (since it's a duplicate and it's a
> simple shape and there aren't many keyframes) but I wonder.
>
> John King
>
>
>
>
> flasher is generously supported by...
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Get the last 100 messages from the flasher list NOW
> http://www.chinwag.com/flasher/last100.shtml
>
> Flash books http://www.chinwag.com/flasher/books.shtml
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> To unsubscribe or change your list settings go to
> http://www.chinwag.com/flasher or email helpatchinwag [dot] com
>
>


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml

Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: should I cut the # of mc duplicat, John King

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]