Not all classes have to extend MovieClip (in fact, most shouldn't, and some would argue none should).

class tld.domain.project.utils.Algorithms
{
    public static function someCalc(n:Number):Number
    {
        // do some calculations on n
        return n;
    }
}



David Ngo wrote:
I'm not going to hijack this thread and get into a debate of inheritance vs.
composition vs. whatever so I'll just pose this quick question to you. Keep
in mind the context of the original question which led to the discussion
here (having code on the timeline vs. using classes):

If I need to create an algorithm to perform a series of calculations based
off each other, where do I put that? Do I put it in a class that extends
MovieClip or in a generic class? Or, going by your option, stick it on the
timeline and use Math.
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to