0

I'm learning different programing languages for more than 4 years, but I have never thought about how to organize stuff, because in php its more easier than flash. Now I need to make a radio player, but I dont know how to organize the stuff, to not to lost myself. Please giv me advice what classes should I make and what to do and not to do in main class for this project.

Thank you in advance.

Sorry for taking your spare time.

Raimonds, Latvia

Raimonds
  • 2,606
  • 3
  • 20
  • 25

2 Answers2

3

A wide range of MVC frameworks are available to ensure a solid architecture :

  • Cairngorm : backed by Adobe, the one you're supposed to use with Flex/MXML

  • Robotlegs : a lightweight open-source alternative

  • PureMVC : another open-source alternative

Others players are Swiz, Mate, Parsley

For a project like yours, Robotlegs is the perfect tool for the job.

monsieurfh
  • 316
  • 1
  • 3
1

Are there best practices for (Java) package organisation? Check the accepted reply. It is pretty much identical to AS3 best practices.

Community
  • 1
  • 1
Rob Fox
  • 5,355
  • 7
  • 37
  • 63
  • I had common sense about that and I have read some articles about this, but the problem is I cant think of ovn names. Maybe you can give example for this radio player app, so I have real example what classes should there be and what to do or not to do in main class? Thanks – Raimonds Aug 02 '11 at 08:20
  • Well you could have something like a VisualPlayer (buttons and such), Player (plays given file, seeks to certain point, etc), MusicLoader (loads music from wherever). You will probably use more classes. I don't know what an radio player app is exactly but these would be the basis of what I could think. – Rob Fox Aug 02 '11 at 09:55
  • Thank you. I will try to not to screw up, or lost my self in code. – Raimonds Aug 02 '11 at 09:58
  • A good start is to think of the separation of visual components and data components and separate those into packages. – The_asMan Aug 02 '11 at 20:41