flexPartyPlayer 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. data/Gemfile +6 -0
  2. data/README +45 -0
  3. data/lib/corelib-08.30.2007.swc +0 -0
  4. data/lib/flexPartyPlayer.rb +42 -0
  5. data/lib/flexunit-08.30.2007.swc +0 -0
  6. data/sample.json +1 -0
  7. data/script/destroy +14 -0
  8. data/script/flex_compile +2 -0
  9. data/script/generate +14 -0
  10. data/src/FlexPlayer.mxml +34 -0
  11. data/src/assets/app_icons/icon_128.png +0 -0
  12. data/src/cc/varga/mvc/ApplicationContext.as +120 -0
  13. data/src/cc/varga/mvc/commands/data/LoadArtistDataCommand.as +61 -0
  14. data/src/cc/varga/mvc/commands/playlist/AddItemToPlaylist.as +13 -0
  15. data/src/cc/varga/mvc/commands/playlist/LoadPlaylistCommand.as +109 -0
  16. data/src/cc/varga/mvc/commands/system/DrawPlaylist.as +40 -0
  17. data/src/cc/varga/mvc/commands/system/Shutdown.as +51 -0
  18. data/src/cc/varga/mvc/commands/system/Startup.as +57 -0
  19. data/src/cc/varga/mvc/commands/video/AddVideoCommand.as +55 -0
  20. data/src/cc/varga/mvc/events/appBar/AppBarEvent.as +16 -0
  21. data/src/cc/varga/mvc/events/blipfm/feedloader/FeedLoaderEvent.as +17 -0
  22. data/src/cc/varga/mvc/events/controllers/ControllersEvent.as +59 -0
  23. data/src/cc/varga/mvc/events/menu/MenuEvent.as +13 -0
  24. data/src/cc/varga/mvc/events/player/PlayerEvent.as +29 -0
  25. data/src/cc/varga/mvc/events/playlist/PlaylistEvent.as +16 -0
  26. data/src/cc/varga/mvc/events/playlist/PlaylistURLEvent.as +57 -0
  27. data/src/cc/varga/mvc/events/playlist/controller/PlaylistControllerEvent.as +59 -0
  28. data/src/cc/varga/mvc/events/search/SearchEvent.as +17 -0
  29. data/src/cc/varga/mvc/events/serveradmin/ServerAdminEvent.as +15 -0
  30. data/src/cc/varga/mvc/events/sound/SoundEvent.as +16 -0
  31. data/src/cc/varga/mvc/events/system/SystemEvent.as +24 -0
  32. data/src/cc/varga/mvc/models/data/AppDataModel.as +17 -0
  33. data/src/cc/varga/mvc/models/player/PlayerModel.as +76 -0
  34. data/src/cc/varga/mvc/models/playlist/PlaylistModel.as +118 -0
  35. data/src/cc/varga/mvc/models/sound/ISound.as +12 -0
  36. data/src/cc/varga/mvc/models/sound/SoundModel.as +284 -0
  37. data/src/cc/varga/mvc/models/sound/SoundModelPlayer.as +8 -0
  38. data/src/cc/varga/mvc/services/KeyboardControl.as +60 -0
  39. data/src/cc/varga/mvc/views/blipfm/feedloader/FeedLoader.mxml +34 -0
  40. data/src/cc/varga/mvc/views/blipfm/feedloader/FeedLoaderMediator.as +68 -0
  41. data/src/cc/varga/mvc/views/controllers/Controllers.mxml +36 -0
  42. data/src/cc/varga/mvc/views/controllers/ControllersMediator.as +107 -0
  43. data/src/cc/varga/mvc/views/infoDisplay/InfoDisplay.mxml +20 -0
  44. data/src/cc/varga/mvc/views/infoDisplay/InfoDisplayMediator.as +51 -0
  45. data/src/cc/varga/mvc/views/menu/Menu.mxml +28 -0
  46. data/src/cc/varga/mvc/views/menu/MenuMediator.as +30 -0
  47. data/src/cc/varga/mvc/views/player/PlayerItem.mxml +11 -0
  48. data/src/cc/varga/mvc/views/player/PlayerWindow.mxml +73 -0
  49. data/src/cc/varga/mvc/views/player/PlayerWindowMediator.as +136 -0
  50. data/src/cc/varga/mvc/views/playlist/Playlist.mxml +22 -0
  51. data/src/cc/varga/mvc/views/playlist/PlaylistMediator.as +117 -0
  52. data/src/cc/varga/mvc/views/playlist/PlaylistStates.as +10 -0
  53. data/src/cc/varga/mvc/views/playlistItem/PlaylistItem.mxml +94 -0
  54. data/src/cc/varga/mvc/views/playlistItem/PlaylistItemMediator.as +87 -0
  55. data/src/cc/varga/mvc/views/playlistManager/PlaylistManager.mxml +7 -0
  56. data/src/cc/varga/mvc/views/playlistManager/PlaylistManagerMediator.as +15 -0
  57. data/src/cc/varga/mvc/views/playlisturl/PlaylistURL.mxml +41 -0
  58. data/src/cc/varga/mvc/views/playlisturl/PlaylistURLMediator.as +87 -0
  59. data/src/cc/varga/mvc/views/playlisturl/controller/PlaylistController.mxml +37 -0
  60. data/src/cc/varga/mvc/views/playlisturl/controller/PlaylistControllerMediator.as +79 -0
  61. data/src/cc/varga/mvc/views/search/Search.mxml +26 -0
  62. data/src/cc/varga/mvc/views/search/SearchMediator.as +31 -0
  63. data/src/cc/varga/mvc/views/server/administration/ServerAdmin.mxml +26 -0
  64. data/src/cc/varga/mvc/views/server/administration/ServerAdminMediator.as +51 -0
  65. data/src/cc/varga/mvc/views/visualisation/Visualisation.mxml +8 -0
  66. data/src/cc/varga/mvc/views/visualisation/VisualisationMediator.as +51 -0
  67. data/src/cc/varga/utils/URLHelper.as +52 -0
  68. data/src/cc/varga/utils/logging/Logger.as +94 -0
  69. data/src/com/automatastudios/audio/audiodecoder/AudioDecoder.as +84 -0
  70. data/src/com/automatastudios/audio/audiodecoder/decoders/AudioInfo.as +52 -0
  71. data/src/com/automatastudios/audio/audiodecoder/decoders/IDecoder.as +13 -0
  72. data/src/com/automatastudios/audio/audiodecoder/decoders/OggVorbisDecoder.as +221 -0
  73. data/src/com/automatastudios/audio/audiodecoder/decoders/WAVDecoder.as +325 -0
  74. data/src/com/automatastudios/audio/audiodecoder/events/AudioDecoderEvent.as +13 -0
  75. data/src/com/automatastudios/data/riff/RIFFChunkInfo.as +6 -0
  76. data/src/com/automatastudios/data/riff/RIFFParser.as +175 -0
  77. data/src/libs/appinf/appinf.json +0 -0
  78. data/src/libs/appinf/config.json +0 -0
  79. data/src/libs/appinf/sample.json +1 -0
  80. data/src/libs/appinf/server.json +0 -0
  81. data/src/nl/flexcoders/controls/YouTubePlayer.as +317 -0
  82. data/test/Test-app.xml +40 -0
  83. data/test/Test.mxml +35 -0
  84. data/views/jukebox.haml +30 -0
  85. metadata +157 -0
@@ -0,0 +1,94 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
3
+ xmlns:s="library://ns.adobe.com/flex/spark"
4
+ xmlns:mx="library://ns.adobe.com/flex/halo"
5
+ xmlns:controller="cc.varga.mvc.views.playlisturl.controller.*">
6
+
7
+ <fx:Script>
8
+ <![CDATA[
9
+ import cc.varga.mvc.events.playlist.controller.PlaylistControllerEvent;
10
+
11
+ import mx.rpc.events.ResultEvent;
12
+ import mx.rpc.http.mxml.HTTPService;
13
+
14
+ [Bindable]
15
+ private var content : Object;
16
+
17
+ private var _artist : String;
18
+
19
+ public function set state(value : String):void{
20
+ this.currentState = value;
21
+ }
22
+
23
+ public function set jsonObj(value : Object):void{
24
+ content = value;
25
+ getArtist();
26
+ }
27
+
28
+ public function get jsonObj():Object{
29
+ return content;
30
+ }
31
+
32
+ private function getArtist():void{
33
+ if (content['written_by'] && content['written_by'].length > 0) {
34
+ var http:HTTPService = new HTTPService();
35
+ http.addEventListener(ResultEvent.RESULT, onResult);
36
+ http.url = String("http://aludose/" + content['written_by'][0]);
37
+
38
+ http.send();
39
+ }
40
+ }
41
+
42
+ private function onResult(event : ResultEvent):void{
43
+ _artist = event.result as String;
44
+ }
45
+
46
+
47
+ protected function addToPlaylist_clickHandler(event:MouseEvent):void
48
+ {
49
+ dispatchEvent( new PlaylistControllerEvent( PlaylistControllerEvent.ADD_TO_PLAYLIST, jsonObj) );
50
+ }
51
+
52
+
53
+ protected function play_clickHandler(event:MouseEvent):void
54
+ {
55
+ dispatchEvent( new PlaylistControllerEvent( PlaylistControllerEvent.PLAY_THIS_ITEM, new Object()) );
56
+ }
57
+
58
+
59
+ protected function remove_clickHandler(event:MouseEvent):void
60
+ {
61
+ dispatchEvent( new PlaylistControllerEvent( PlaylistControllerEvent.REMOVE_THIS_ITEM, new Object()) );
62
+ }
63
+
64
+ protected function download_clickHandler(event:MouseEvent):void
65
+ {
66
+ dispatchEvent( new PlaylistControllerEvent( PlaylistControllerEvent.DOWNLOAD, new Object()) );
67
+ }
68
+ ]]>
69
+ </fx:Script>
70
+
71
+ <s:states>
72
+ <s:State name="blip" />
73
+ <s:State name="youtube" />
74
+ <s:State name="network" />
75
+ <s:State name="play" />
76
+ </s:states>
77
+
78
+ <s:layout><s:HorizontalLayout/></s:layout>
79
+
80
+ <s:Group>
81
+ <s:layout><s:HorizontalLayout/></s:layout>
82
+ <s:Label id="artist" text="{this._artist}" verticalAlign="middle" width="150"/>
83
+ <s:Label id="title" text="{this.content['title']}" verticalAlign="middle" width="150"/>
84
+ <s:Label id="url" text="{this.content['source']}" verticalAlign="middle" width="150"/>
85
+ </s:Group>
86
+ <s:Group width="100%" height="50">
87
+ <mx:ApplicationControlBar>
88
+ <s:Button id="addToPlaylist" label="Add To Playlist" click="addToPlaylist_clickHandler(event)" />
89
+ <s:Button id="play" label="Play" click="play_clickHandler(event)" />
90
+ <s:Button id="download" label="Download" click="download_clickHandler(event)" />
91
+ </mx:ApplicationControlBar>
92
+ </s:Group>
93
+ </s:Group>
94
+
@@ -0,0 +1,87 @@
1
+ //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2
+ //
3
+ //Authors: Franics Varga
4
+ //eMail: fv@varga-multimedia.com
5
+ //homepage: http://www.varga-multimedia.com
6
+ //
7
+ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
8
+ //<a href='http://creativecommons.org/licenses/by-nc-sa/3.0/'>Creative Commons License<a\>
9
+ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
10
+ //
11
+ //You are free:
12
+ //
13
+ //to Share — to copy, distribute and transmit the work
14
+ //to Remix — to adapt the work
15
+ //Under the following conditions:
16
+ //
17
+ //Attribution — You must attribute the work in the manner specified by the author or licensor
18
+ //(but not in any way that suggests that they endorse you or your use of the work).
19
+ //
20
+ //Noncommercial — You may not use this work for commercial purposes.
21
+ //
22
+ //Share Alike — If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.
23
+ //
24
+ //With the understanding that:
25
+ //
26
+ //Waiver — Any of the above conditions can be waived if you get permission from the copyright holder.
27
+ //Public Domain — Where the work or any of its elements is in the public domain under applicable law, that status is in no way affected by the license.
28
+ //Other Rights — In no way are any of the following rights affected by the license:
29
+ //
30
+ //Your fair dealing or fair use rights, or other applicable copyright exceptions and limitations; The author's moral rights;
31
+ //
32
+ //Rights other persons may have either in the work itself or in how the work is used, such as publicity or privacy rights.
33
+ //Notice — For any reuse or distribution, you must make clear to others the license terms of this work.
34
+ //The best way to do this is with a link to this web page.
35
+ //
36
+ //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
37
+ package cc.varga.mvc.views.playlistItem
38
+ {
39
+ import cc.varga.mvc.events.playlist.controller.PlaylistControllerEvent;
40
+ import cc.varga.mvc.models.sound.SoundModel;
41
+ import cc.varga.mvc.models.player.PlayerModel;
42
+ import cc.varga.mvc.models.playlist.PlaylistModel;
43
+ import cc.varga.utils.logging.Logger;
44
+
45
+ import org.robotlegs.mvcs.Mediator;
46
+
47
+ public class PlaylistItemMediator extends Mediator
48
+ {
49
+
50
+ [Inject]
51
+ public var model : PlaylistModel;
52
+
53
+ [Inject]
54
+ public var view : PlaylistItem;
55
+
56
+ [Inject]
57
+ public var soundModel : SoundModel;
58
+
59
+ [Inject]
60
+ public var playlistPlayerModel : PlayerModel;
61
+
62
+ override public function onRegister() : void{
63
+
64
+ eventMap.mapListener(view, PlaylistControllerEvent.PLAY_THIS_ITEM, playThisItem);
65
+ eventMap.mapListener(view, PlaylistControllerEvent.ADD_TO_PLAYLIST, addToPL);
66
+ eventMap.mapListener(view, PlaylistControllerEvent.DOWNLOAD, download);
67
+
68
+ }
69
+
70
+ private function download(event : PlaylistControllerEvent):void{
71
+
72
+ }
73
+
74
+ private function playThisItem(event : PlaylistControllerEvent):void{
75
+ Logger.tracing("Play this item", this.toString());
76
+ soundModel.setCurrentJSONObj(view.jsonObj);
77
+ }
78
+
79
+ private function addToPL(event : PlaylistControllerEvent):void{
80
+ Logger.tracing("Add to Playlist", this.toString());
81
+ playlistPlayerModel.addItemToPlaylist(event.currentJSONObj);
82
+ }
83
+
84
+ public function toString():String{ return "cc.varga.mvc.views.plalisturl.item.PlaylistItemMediator"}
85
+ }
86
+
87
+ }
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
3
+ xmlns:s="library://ns.adobe.com/flex/spark"
4
+ xmlns:mx="library://ns.adobe.com/flex/halo">
5
+
6
+
7
+ </s:Group>
@@ -0,0 +1,15 @@
1
+ package cc.varga.mvc.views.playlistManager {
2
+
3
+ import org.robotlegs.mvcs.Mediator;
4
+
5
+ public class PlaylistManagerMediator extends Mediator {
6
+
7
+ public function PlaylistManagerMediator() {
8
+ super();
9
+ }
10
+
11
+ override public function onRegister():void{
12
+
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,41 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
3
+ xmlns:s="library://ns.adobe.com/flex/spark"
4
+ xmlns:mx="library://ns.adobe.com/flex/halo"
5
+
6
+ width="100%" height="100%">
7
+
8
+ <s:layout><s:VerticalLayout/></s:layout>
9
+
10
+ <fx:Script>
11
+ <![CDATA[
12
+ import cc.varga.mvc.events.playlist.*;
13
+ import cc.varga.utils.logging.Logger;
14
+
15
+ protected function searchInList_clickHandler(event:MouseEvent):void
16
+ {
17
+ Logger.tracing("Search button Clicked","");
18
+ var searchEvent:PlaylistURLEvent = new PlaylistURLEvent(PlaylistURLEvent.SEARCH);
19
+ searchEvent.query = listURL.text;
20
+ dispatchEvent(searchEvent);
21
+ }
22
+
23
+ ]]>
24
+ </fx:Script>
25
+
26
+
27
+ <fx:Declarations>
28
+ <!-- Place non-visual elements (e.g., services, value objects) here -->
29
+ </fx:Declarations>
30
+
31
+ <s:Group left="0" right="0">
32
+ <s:layout><s:HorizontalLayout/></s:layout>
33
+ <s:TextInput id="listURL" width="350" height="30" />
34
+ <s:Button id="searchInList" label="Search" click="searchInList_clickHandler(event)" height="30" />
35
+ </s:Group>
36
+
37
+ <s:Group left="0" right="0" height="20">
38
+ <s:Label id="status" text="Status" verticalCenter="0" width="100%" height="100%" verticalAlign="middle"/>
39
+ </s:Group>
40
+
41
+ </s:Group>
@@ -0,0 +1,87 @@
1
+ //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2
+ //
3
+ //Authors: Franics Varga
4
+ //eMail: fv@varga-multimedia.com
5
+ //homepage: http://www.varga-multimedia.com
6
+ //
7
+ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
8
+ //<a href='http://creativecommons.org/licenses/by-nc-sa/3.0/'>Creative Commons License<a\>
9
+ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
10
+ //
11
+ //You are free:
12
+ //
13
+ //to Share — to copy, distribute and transmit the work
14
+ //to Remix — to adapt the work
15
+ //Under the following conditions:
16
+ //
17
+ //Attribution — You must attribute the work in the manner specified by the author or licensor
18
+ //(but not in any way that suggests that they endorse you or your use of the work).
19
+ //
20
+ //Noncommercial — You may not use this work for commercial purposes.
21
+ //
22
+ //Share Alike — If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.
23
+ //
24
+ //With the understanding that:
25
+ //
26
+ //Waiver — Any of the above conditions can be waived if you get permission from the copyright holder.
27
+ //Public Domain — Where the work or any of its elements is in the public domain under applicable law, that status is in no way affected by the license.
28
+ //Other Rights — In no way are any of the following rights affected by the license:
29
+ //
30
+ //Your fair dealing or fair use rights, or other applicable copyright exceptions and limitations; The author's moral rights;
31
+ //
32
+ //Rights other persons may have either in the work itself or in how the work is used, such as publicity or privacy rights.
33
+ //Notice — For any reuse or distribution, you must make clear to others the license terms of this work.
34
+ //The best way to do this is with a link to this web page.
35
+ //
36
+ //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
37
+ package cc.varga.mvc.views.playlisturl
38
+ {
39
+ import cc.varga.mvc.events.playlist.PlaylistURLEvent;
40
+ import cc.varga.mvc.models.playlist.PlaylistModel;
41
+ import cc.varga.utils.logging.Logger;
42
+
43
+ import org.robotlegs.mvcs.Mediator;
44
+
45
+ public class PlaylistURLMediator extends Mediator
46
+ {
47
+
48
+ [Inject]
49
+ public var view : PlaylistURL;
50
+
51
+ [Inject]
52
+ public var model : PlaylistModel;
53
+
54
+ public function PlaylistURLMediator()
55
+ {
56
+ super();
57
+ }
58
+
59
+ override public function onRegister() : void{
60
+
61
+ Logger.tracing("Playlist Mediator OnRegister", this.toString());
62
+
63
+ eventMap.mapListener(view, PlaylistURLEvent.ADD_TO_PLAYLIST, onLoadPlaylistClick);
64
+ eventMap.mapListener(view, PlaylistURLEvent.ADD_ALL_TO_PLAYLIST, addAllToPlaylist);
65
+ eventMap.mapListener(view, PlaylistURLEvent.SEARCH, onSearchRequest);
66
+
67
+ }
68
+
69
+ private function onSearchRequest(event : PlaylistURLEvent) : void {
70
+ Logger.tracing("Search Request received: "+event.query, this.toString());
71
+ model.search(event.query);
72
+ }
73
+
74
+ private function addAllToPlaylist(event : PlaylistURLEvent):void{
75
+
76
+ }
77
+
78
+ private function onLoadPlaylistClick(event : PlaylistURLEvent):void{
79
+ model.playListURL = view.listURL.text;
80
+ //dispatch(new PlaylistURLEvent(PlaylistURLEvent.PLAYLIST_LOAD));
81
+ model.search(view.listURL.text);
82
+ }
83
+
84
+ public function toString():String{ return "cc.varga.mvc.views.plalisturl.PlaylistURLMediator"; }
85
+ }
86
+
87
+ }
@@ -0,0 +1,37 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
3
+ xmlns:s="library://ns.adobe.com/flex/spark"
4
+ xmlns:mx="library://ns.adobe.com/flex/halo">
5
+ <fx:Script>
6
+ <![CDATA[
7
+ import cc.varga.mvc.events.playlist.controller.PlaylistControllerEvent;
8
+
9
+ import flash.events.MouseEvent;
10
+
11
+ protected function play_clickHandler(event:MouseEvent):void
12
+ {
13
+ dispatchEvent( new PlaylistControllerEvent(PlaylistControllerEvent.PLAY_THIS_ITEM) );
14
+ }
15
+
16
+
17
+ protected function addToPlaylist_clickHandler(event:MouseEvent):void
18
+ {
19
+ dispatchEvent( new PlaylistControllerEvent(PlaylistControllerEvent.ADD_TO_PLAYLIST) );
20
+ }
21
+
22
+
23
+ protected function remove_clickHandler(event:MouseEvent):void
24
+ {
25
+ dispatchEvent( new PlaylistControllerEvent( PlaylistControllerEvent.REMOVE_THIS_ITEM) );
26
+ }
27
+
28
+ ]]>
29
+ </fx:Script>
30
+
31
+ <mx:ApplicationControlBar>
32
+ <s:Button id="addToPlaylist" label="Add To Playlist" click="addToPlaylist_clickHandler(event)" />
33
+ <s:Button id="play" label="Play" click="play_clickHandler(event)" />
34
+ <s:Button id="remove" label="Remove" click="remove_clickHandler(event)" />
35
+ </mx:ApplicationControlBar>
36
+
37
+ </s:Group>
@@ -0,0 +1,79 @@
1
+ //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2
+ //
3
+ //Authors: Franics Varga
4
+ //eMail: fv@varga-multimedia.com
5
+ //homepage: http://www.varga-multimedia.com
6
+ //
7
+ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
8
+ //<a href='http://creativecommons.org/licenses/by-nc-sa/3.0/'>Creative Commons License<a\>
9
+ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
10
+ //
11
+ //You are free:
12
+ //
13
+ //to Share — to copy, distribute and transmit the work
14
+ //to Remix — to adapt the work
15
+ //Under the following conditions:
16
+ //
17
+ //Attribution — You must attribute the work in the manner specified by the author or licensor
18
+ //(but not in any way that suggests that they endorse you or your use of the work).
19
+ //
20
+ //Noncommercial — You may not use this work for commercial purposes.
21
+ //
22
+ //Share Alike — If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.
23
+ //
24
+ //With the understanding that:
25
+ //
26
+ //Waiver — Any of the above conditions can be waived if you get permission from the copyright holder.
27
+ //Public Domain — Where the work or any of its elements is in the public domain under applicable law, that status is in no way affected by the license.
28
+ //Other Rights — In no way are any of the following rights affected by the license:
29
+ //
30
+ //Your fair dealing or fair use rights, or other applicable copyright exceptions and limitations; The author's moral rights;
31
+ //
32
+ //Rights other persons may have either in the work itself or in how the work is used, such as publicity or privacy rights.
33
+ //Notice — For any reuse or distribution, you must make clear to others the license terms of this work.
34
+ //The best way to do this is with a link to this web page.
35
+ //
36
+ //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
37
+ package cc.varga.mvc.views.playlisturl.controller
38
+ {
39
+ import cc.varga.mvc.events.playlist.controller.PlaylistControllerEvent;
40
+ import cc.varga.mvc.models.sound.SoundModel;
41
+ import cc.varga.utils.logging.Logger;
42
+
43
+ import org.robotlegs.mvcs.Mediator;
44
+
45
+ public class PlaylistControllerMediator extends Mediator
46
+ {
47
+
48
+ [Inject]
49
+ public var view : PlaylistController;
50
+
51
+ [Inject]
52
+ public var soundModel : SoundModel;
53
+
54
+ public function PlaylistControllerMediator()
55
+ {
56
+ super();
57
+ }
58
+
59
+ override public function onRegister() : void{
60
+
61
+ Logger.tracing("PlaylistControllerMediator onRegister", this.toString());
62
+
63
+ eventMap.mapListener(view, PlaylistControllerEvent.ADD_TO_PLAYLIST, addToPlaylistClick);
64
+ eventMap.mapListener(view, PlaylistControllerEvent.PLAY_THIS_ITEM, playThisItem);
65
+
66
+ }
67
+
68
+ private function playThisItem(event : PlaylistControllerEvent):void{
69
+
70
+ }
71
+
72
+ private function addToPlaylistClick(event : PlaylistControllerEvent):void{
73
+
74
+ }
75
+
76
+ public function toString():String{ return "cc.varga.mvc.views.plalisturl.controller.PlaylistControllerMediator"}
77
+ }
78
+
79
+ }
@@ -0,0 +1,26 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
3
+ xmlns:s="library://ns.adobe.com/flex/spark"
4
+ xmlns:mx="library://ns.adobe.com/flex/halo">
5
+
6
+ <fx:Script>
7
+ <![CDATA[
8
+ import cc.varga.mvc.events.search.SearchEvent;
9
+
10
+ protected function search_clickHandler(event:MouseEvent):void
11
+ {
12
+ var searchEvent :SearchEvent = new SearchEvent(SearchEvent.SEARCH_QUERY);
13
+ searchEvent.search_query = textTxtF.text;
14
+ dispatchEvent(searchEvent);
15
+ }
16
+ ]]>
17
+ </fx:Script>
18
+
19
+
20
+ <s:Group width="100%" height="100%">
21
+ <s:layout><s:HorizontalLayout/></s:layout>
22
+ <s:TextInput id="textTxtF" width="100%" height="100%" />
23
+ <s:Button width="100" height="100%" label="Search" id="search" click="search_clickHandler(event)" />
24
+ </s:Group>
25
+
26
+ </s:Group>
@@ -0,0 +1,31 @@
1
+ package cc.varga.mvc.views.search
2
+ {
3
+ import cc.varga.mvc.events.search.SearchEvent;
4
+
5
+ import org.robotlegs.mvcs.Mediator;
6
+
7
+ public class SearchMediator extends Mediator
8
+ {
9
+
10
+ [Inject]
11
+ public var view : Search;
12
+
13
+ public function SearchMediator()
14
+ {
15
+ super();
16
+ }
17
+
18
+ override public function onRegister() : void{
19
+
20
+ eventMap.mapListener(view, SearchEvent.SEARCH_QUERY, onSearch);
21
+
22
+ }
23
+
24
+ private function onSearch(event : SearchEvent):void{
25
+
26
+
27
+
28
+ }
29
+
30
+ }
31
+ }
@@ -0,0 +1,26 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <s:Window xmlns:fx="http://ns.adobe.com/mxml/2009"
3
+ xmlns:s="library://ns.adobe.com/flex/spark"
4
+ title="Admin"
5
+ width="800" height="600"
6
+ xmlns:mx="library://ns.adobe.com/flex/halo"
7
+ creationComplete="window1_creationCompleteHandler(event)">
8
+ <fx:Script>
9
+ <![CDATA[
10
+ import mx.events.FlexEvent;
11
+
12
+ protected function window1_creationCompleteHandler(event:FlexEvent):void
13
+ {
14
+
15
+ }
16
+
17
+ ]]>
18
+ </fx:Script>
19
+
20
+ <fx:Declarations>
21
+ <!-- Place non-visual elements (e.g., services, value objects) here -->
22
+ </fx:Declarations>
23
+
24
+
25
+
26
+ </s:Window>
@@ -0,0 +1,51 @@
1
+ //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2
+ //
3
+ //Authors: Franics Varga
4
+ //eMail: fv@varga-multimedia.com
5
+ //homepage: http://www.varga-multimedia.com
6
+ //
7
+ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
8
+ //<a href='http://creativecommons.org/licenses/by-nc-sa/3.0/'>Creative Commons License<a\>
9
+ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
10
+ //
11
+ //You are free:
12
+ //
13
+ //to Share — to copy, distribute and transmit the work
14
+ //to Remix — to adapt the work
15
+ //Under the following conditions:
16
+ //
17
+ //Attribution — You must attribute the work in the manner specified by the author or licensor
18
+ //(but not in any way that suggests that they endorse you or your use of the work).
19
+ //
20
+ //Noncommercial — You may not use this work for commercial purposes.
21
+ //
22
+ //Share Alike — If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.
23
+ //
24
+ //With the understanding that:
25
+ //
26
+ //Waiver — Any of the above conditions can be waived if you get permission from the copyright holder.
27
+ //Public Domain — Where the work or any of its elements is in the public domain under applicable law, that status is in no way affected by the license.
28
+ //Other Rights — In no way are any of the following rights affected by the license:
29
+ //
30
+ //Your fair dealing or fair use rights, or other applicable copyright exceptions and limitations; The author's moral rights;
31
+ //
32
+ //Rights other persons may have either in the work itself or in how the work is used, such as publicity or privacy rights.
33
+ //Notice — For any reuse or distribution, you must make clear to others the license terms of this work.
34
+ //The best way to do this is with a link to this web page.
35
+ //
36
+ //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
37
+ package cc.varga.mvc.views.server.administration
38
+ {
39
+ import org.robotlegs.mvcs.Mediator;
40
+
41
+ public class ServerAdminMediator extends Mediator
42
+ {
43
+ public function ServerAdminMediator()
44
+ {
45
+ super();
46
+ }
47
+
48
+ public function toString():String{ return "cc.varga.mvc.views.server.administration.ServerAdminMediator"}
49
+ }
50
+
51
+ }
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
3
+ xmlns:s="library://ns.adobe.com/flex/spark"
4
+ xmlns:mx="library://ns.adobe.com/flex/halo">
5
+ <fx:Declarations>
6
+ <!-- Place non-visual elements (e.g., services, value objects) here -->
7
+ </fx:Declarations>
8
+ </s:Group>
@@ -0,0 +1,51 @@
1
+ //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2
+ //
3
+ //Authors: Franics Varga
4
+ //eMail: fv@varga-multimedia.com
5
+ //homepage: http://www.varga-multimedia.com
6
+ //
7
+ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
8
+ //<a href='http://creativecommons.org/licenses/by-nc-sa/3.0/'>Creative Commons License<a\>
9
+ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
10
+ //
11
+ //You are free:
12
+ //
13
+ //to Share — to copy, distribute and transmit the work
14
+ //to Remix — to adapt the work
15
+ //Under the following conditions:
16
+ //
17
+ //Attribution — You must attribute the work in the manner specified by the author or licensor
18
+ //(but not in any way that suggests that they endorse you or your use of the work).
19
+ //
20
+ //Noncommercial — You may not use this work for commercial purposes.
21
+ //
22
+ //Share Alike — If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.
23
+ //
24
+ //With the understanding that:
25
+ //
26
+ //Waiver — Any of the above conditions can be waived if you get permission from the copyright holder.
27
+ //Public Domain — Where the work or any of its elements is in the public domain under applicable law, that status is in no way affected by the license.
28
+ //Other Rights — In no way are any of the following rights affected by the license:
29
+ //
30
+ //Your fair dealing or fair use rights, or other applicable copyright exceptions and limitations; The author's moral rights;
31
+ //
32
+ //Rights other persons may have either in the work itself or in how the work is used, such as publicity or privacy rights.
33
+ //Notice — For any reuse or distribution, you must make clear to others the license terms of this work.
34
+ //The best way to do this is with a link to this web page.
35
+ //
36
+ //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
37
+ package cc.varga.mvc.views.visualisation
38
+ {
39
+ import org.robotlegs.mvcs.Mediator;
40
+
41
+ public class VisualisationMediator extends Mediator
42
+ {
43
+ public function VisualisationMediator()
44
+ {
45
+ super();
46
+ }
47
+
48
+ public function toString():String{ return "cc.varga.mvc.views.visualisation.VisualisationMediator"}
49
+ }
50
+
51
+ }