PDA

View Full Version : First project in AS3 OOP.



urieljuliatti
October 9th, 2009, 01:34 AM
Hello everybody, i'm a beginner in AS# OOP and would like to know what are the best practices that you guys programmers do for your projects and websites..

How do you guys organize it?

Make a custom preloader for the whole project, in a class, is that possible? Is that a good idea to creat a custom class for the Menu or other components like Background, etc?

As I read in the book "Essential ActionScript" it's ok to make custom classes and organize everything, catching the errors in isolated form , turns it easy to manage and update..

But I'd like to know what are the best practices you guys have to compose an website..
How do you guys organize the classes?

I know there are many ways to do that, but I'd like to know each developer's opinion...

Best regards,

Uriel.

By the way,
If someone knows a GREAT OOP AS3 help and tutorials I'll appreciate ;)

Gnoll
October 9th, 2009, 04:43 AM
First leave Flash IDE if you are still in that! That is no good at helping achieve organisation! ;)

How strict do you want to be? I think MVC is a popular pattern for websites. (PureMVC is an AS3 framework to implement it easily)

http://www.as3dp.com is an amazing resource for help with OOP, they have a lot of info on many design patterns.

Good luck,
Gnoll

newenay
October 9th, 2009, 10:57 AM
Wow, I was just there a couple of weeks ago. This will get you started with basic buttons and menu and a little bit of class (not that you do not have any);).

http://www.kirupa.com/forum/showthread.php?t=335826

AS3 is a long way from it's roots, but I suppose we are all "real" programmers now!

GL, ~nd

dtk13
October 9th, 2009, 11:20 AM
AS3 is a long way from it's roots, but I suppose we are all "real" programmers now!


It's been intresting to see it change from a 'scripting' language to a programming language. Ya know? Before it was something to control the timeline with and today it's so much more.

BTW if you're on a mac TextMate works really well.

efos
October 9th, 2009, 01:15 PM
I like to use Flex for all my AS needs, even if I'm working a pure flash project. The IDE is so much nicer to work with than Flash's AS editor; from project organization to autocomplete and code hints. Of course, flex costs money; but I bet Eclipse can do it too.

urieljuliatti
October 9th, 2009, 03:38 PM
Great guys, thanks for the replies!

It's cool that AS changed from script to a huge language. Programming throught design patterns is a good and better idea;

Is Flex a good choice?