Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Show Posts

| * |

  Show Posts
Pages: [1]
1  Announcements and General Discussion / Architecture / Architecturing an Audio Player on: November 03, 2009, 04:37:08
I am trying to convert/migrate my Flash audio player into Flex using PureMVC. Right now all it could do is connect to the media server(red5). This is my first PureMVC project.

Right now, the application is structured as follows:
  • MediaServerProxy which creates/manages the NetConnection object.
  • MediaServerCommand which calls the connection() function of MediaServerProxy
  • A view component(TextInput) which displays the NetStatusEvent codes

I would like some help about the following:
  • Can I still improve on how I have currently structured  the application?
  • I am stuck as to how it would be best to retrieve the playlist from red5.

    It has to call a server-side function, getListOfAvailableFLVs(), which returns a  Java type of Map<String, Map<String, Object>>. I am able to do this when it was still coded in Flash using:
:
var connection:NetConnection = new NetConnection();
//...
this.connection.call("demoService.getListOfAvailableFLVs", responder);
    An example code would be nice.
Pages: [1]