0 Replies Latest reply on Apr 10, 2007 2:48 PM by RafaBH

    Performance, memory and OO

    RafaBH
      Hi everybody, can someone help me with a question about AS?
      My code will be more ineficient and/or use more memory if I use OO techniques?
      For example, if I'm doing something that needs a data type that encapsulates the abstraction of a vector (Math), there are some ways I can do it:
      -> I can create a class and define all the functionality of the vector (add, normalize, magnitute...), or
      -> I can use structured programmnig and do all the functionality in a single action, making a terribly ilegible code.
      Do the use of classes and objects affect significantly the performance and memory usage in my flash program?
      Thanks
      Rafael