문제

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