logo       

Re: AS code fragmentation?: msg#00021

web.ming.general

Subject: Re: AS code fragmentation?


Hi Laurent,

a function definitely is a piece of code that cannot be split.
You can, of course, reorganize your code to utilise subfunctions

I do not know whether there is an actual advantage from grouping code by
related movieclip,
other than organizing your work. Of course, with a system that makes it hard to
edit all your
code at once, or to globally replace variable names, proper grouping of code
might be
more important that with a system where all code more or less resides within a
single text file

>From the point of view of performance, there might be a slight penalty for
>using 1000 distinct
variables within a single function, as opposed to splitting the function into a
few smaller ones

WOlfgang


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise