Community

AS3 New Class Question

Posted Jun 30, '09 at 4:43am

Captain_J_Sheridan

Captain_J_Sheridan

319 posts

Wood - Squire

I finally got how classes work, it's like making a index of a book, so you don't have to read the whole book to find something, where the chapters would be functions you programmed yourself

And you can initialize variables inside the functions, so you can spare memory on that too

 

Posted Jul 4, '09 at 9:32pm

KhimaeraUK

KhimaeraUK

23 posts

Iron - Squire

I don't get the logic, you spend more lines and have to make a call for an external resource, how can it be faster?

Following on from whats already been said, (resuable classes etc.)

In a massive application or game the source would be impossible to navigate if it was all written in one long file. With semantic class names it's much easier to work on a project (especially if you're working in a team).

 
Reply to AS3 New Class Question

You must be logged in to post a reply!