Вопрос

I want to create an graphics editor ( Actionscript3 ).

So far i made the main class as a Singleton that holds 3 classes : Display ( sprite ), Input ( The input manager ) and Tools ( Tool manager ). The more stuff i add to my project, the more it gets complicated and buggy

The question : is there any defined approach how to do this. Maybe some idea of what design patterns should i use to archive this or structure?

Это было полезно?

Решение

YES there certainly is a way to structure an application in Actionscript 3.0 and it comes in the form of PureMVC.

It is a moderate learning curve but there is a good tutorial on the site for each type of language that PureMVC supports.

You essentially have a facade which is in charge of your application and then a model or multiple models which are represented by mediators which are your view.

If you are serious about creating a good application using best practices, then go and check it out and take time to learn how to use the framework.

PureMVC

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top