flexPartyPlayer 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,109 @@
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.commands.playlist
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 com.adobe.serialization.json.JSON;
44
+
45
+ import flash.events.TimerEvent;
46
+ import flash.utils.Timer;
47
+
48
+ import mx.controls.Alert;
49
+ import mx.rpc.events.FaultEvent;
50
+ import mx.rpc.events.ResultEvent;
51
+ import mx.rpc.http.mxml.HTTPService;
52
+
53
+ import org.robotlegs.mvcs.Command;
54
+
55
+ public class LoadPlaylistCommand extends Command
56
+ {
57
+
58
+ [Inject]
59
+ public var model : PlaylistModel;
60
+
61
+ private var pollTimer : Timer;
62
+
63
+ public function LoadPlaylistCommand()
64
+ {
65
+ super();
66
+ }
67
+
68
+ override public function execute() : void{
69
+
70
+ Logger.tracing("load playlist command", this.toString());
71
+
72
+ pollTimer = new Timer(1000);
73
+ pollTimer.addEventListener(TimerEvent.TIMER, onTime);
74
+ pollTimer.start();
75
+
76
+ }
77
+
78
+ private function onTime(event : TimerEvent):void{
79
+
80
+ var httpRequest : HTTPService = new HTTPService();
81
+ //httpRequest.showBusyCursor = true;
82
+ httpRequest.resultFormat = "text";
83
+ httpRequest.url = "http://aludose/web/songs.json";//model.playListURL;//"http://iris/dev/sample.json"; //model.playListURL;
84
+ httpRequest.addEventListener(FaultEvent.FAULT, onFault);
85
+ httpRequest.addEventListener(ResultEvent.RESULT, onResult);
86
+ httpRequest.send();
87
+
88
+ }
89
+
90
+ private function onResult(event : ResultEvent):void{
91
+
92
+ model.playlistObj = JSON.decode(event.result.toString());
93
+
94
+ dispatch(new PlaylistURLEvent(PlaylistURLEvent.PLAYLIST_DISPLAYED));
95
+
96
+ }
97
+
98
+ private function onFault(event : FaultEvent):void{
99
+
100
+ pollTimer.stop();
101
+ Alert.show("Something is wrong!!!", "Error");
102
+ Logger.tracing("Playlist Error: " + event.message, this.toString());
103
+
104
+ }
105
+
106
+ public function toString():String{ return "cc.varga.mvc.commands.playlist.LoadPlaylistCommand"}
107
+ }
108
+
109
+ }
@@ -0,0 +1,40 @@
1
+ package cc.varga.mvc.commands.system
2
+ {
3
+ import cc.varga.mvc.events.system.SystemEvent;
4
+ import cc.varga.mvc.views.playlistItem.PlaylistItem;
5
+
6
+ import org.robotlegs.mvcs.Command;
7
+
8
+ public class DrawPlaylist extends Command
9
+ {
10
+
11
+ [Inject]
12
+ public var event : SystemEvent;
13
+
14
+ public var view : FlexPlayer;
15
+
16
+ public function DrawPlaylist()
17
+ {
18
+ super();
19
+ }
20
+
21
+ override public function execute() : void{
22
+
23
+ view = contextView as FlexPlayer;
24
+
25
+ for(var i:uint=0; i < event.sourcePlaylist.length; i++){
26
+
27
+ var item : PlaylistItem = new PlaylistItem();
28
+ item.jsonObj = event.sourcePlaylist.getItemAt(i) as Object;
29
+ view.playlist.addElement(item);
30
+
31
+ }
32
+
33
+ }
34
+
35
+ public function toString():String{
36
+ return "cc.varga.mvc.commands.system.DrawPlaylist";
37
+ }
38
+
39
+ }
40
+ }
@@ -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.commands.system
38
+ {
39
+ import org.robotlegs.mvcs.Command;
40
+
41
+ public class Shutdown extends Command
42
+ {
43
+ public function Shutdown()
44
+ {
45
+ super();
46
+ }
47
+
48
+ public function toString():String{ return "cc.varga.mvc.commands.system.Shutdown"}
49
+ }
50
+
51
+ }
@@ -0,0 +1,57 @@
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.commands.system
38
+ {
39
+ import cc.varga.utils.logging.Logger;
40
+
41
+ import org.robotlegs.mvcs.Command;
42
+
43
+ public class Startup extends Command
44
+ {
45
+ public function Startup()
46
+ {
47
+ super();
48
+ }
49
+
50
+ override public function execute() : void{
51
+ Logger.tracing("Startup Command", this.toString());
52
+ }
53
+
54
+ public function toString():String{ return "cc.varga.mvc.commands.system.Startup"}
55
+ }
56
+
57
+ }
@@ -0,0 +1,55 @@
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.commands.video
38
+ {
39
+ import org.robotlegs.mvcs.Command;
40
+
41
+ public class AddVideoCommand extends Command
42
+ {
43
+ public function AddVideoCommand()
44
+ {
45
+ super();
46
+ }
47
+
48
+ override public function execute() : void{
49
+
50
+ }
51
+
52
+ public function toString():String{ return "cc.varga.mvc.commands.video.AddVideoCommand"}
53
+ }
54
+
55
+ }
@@ -0,0 +1,16 @@
1
+ package cc.varga.mvc.events.appBar
2
+ {
3
+ import flash.events.Event;
4
+
5
+ public class AppBarEvent extends Event
6
+ {
7
+
8
+ public static const OPEN_PLAYER : String = "open_player";
9
+ public static const OPEN_SERVERADMIN : String = "open_serveradmin";
10
+
11
+ public function AppBarEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
12
+ {
13
+ super(type, bubbles, cancelable);
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,17 @@
1
+ package cc.varga.mvc.events.blipfm.feedloader
2
+ {
3
+ import flash.events.Event;
4
+
5
+ public class FeedLoaderEvent extends Event
6
+ {
7
+
8
+ public static const LOAD_FEED : String = "load_feed";
9
+
10
+ public var blipNick : String;
11
+
12
+ public function FeedLoaderEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
13
+ {
14
+ super(type, bubbles, cancelable);
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,59 @@
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.events.controllers
38
+ {
39
+ import flash.events.Event;
40
+
41
+ public class ControllersEvent extends Event
42
+ {
43
+
44
+ public static const LOCK_CLICK : String = "lock_click";
45
+ public static const PLAY_CLICK : String = "play_click";
46
+ public static const STOP_CLICK : String = "stop_click";
47
+ public static const NEXT_CLICK : String = "next_click";
48
+ public static const PREV_CLICK : String = "prev_click";
49
+ public static const SHUFFLE_CLICK : String = "shuffle_click";
50
+ public static const RANDOM_CLICK : String = "random_click";
51
+
52
+ public function ControllersEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
53
+ {
54
+ super(type, bubbles, cancelable);
55
+ }
56
+
57
+ }
58
+
59
+ }
@@ -0,0 +1,13 @@
1
+ package cc.varga.mvc.events.event
2
+ {
3
+ import flash.events.Event;
4
+
5
+ public class MenuEvent extends Event
6
+ {
7
+
8
+ public function MenuEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
9
+ {
10
+ super(type, bubbles, cancelable);
11
+ }
12
+ }
13
+ }
@@ -0,0 +1,29 @@
1
+ package cc.varga.mvc.events.player
2
+ {
3
+ import flash.events.Event;
4
+
5
+ public class PlayerEvent extends Event
6
+ {
7
+
8
+ public static const LOCK : String = "lock";
9
+ public static const UNLOCK : String = "unlock";
10
+ public static const OPEN_PLAYER : String = "open_player";
11
+ public static const CLOSE_PLAYER : String = "close_player";
12
+
13
+ public static const ITEM_ADD_TO_PLAYLIST : String = "item_add_to_playlist";
14
+
15
+ public static const LOAD_PLAYLIST : String = "load_playlist";
16
+ public static const SAVE_PLAYLIST : String = "save_playlist";
17
+
18
+ public static const LOAD_BLIP_FM_FEED : String = "load_blip_fm_feed";
19
+
20
+ public static const PLAY_YOUTUBE_VIDEO : String = "play_youtube_video";
21
+
22
+ public var youtubeVideoID : String;
23
+
24
+ public function PlayerEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
25
+ {
26
+ super(type, bubbles, cancelable);
27
+ }
28
+ }
29
+ }
@@ -0,0 +1,16 @@
1
+ package cc.varga.mvc.events.playlist
2
+ {
3
+ import flash.events.Event;
4
+
5
+ public class PlaylistEvent extends Event
6
+ {
7
+
8
+ public static const ADD_ALL_TO_PLAYLIST : String = "add_all_to_playlist";
9
+ public static const DOWNLOAD : String = "download";
10
+
11
+ public function PlaylistEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
12
+ {
13
+ super(type, bubbles, cancelable);
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,57 @@
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.events.playlist
38
+ {
39
+ import flash.events.Event;
40
+
41
+ public class PlaylistURLEvent extends Event
42
+ {
43
+ public static const SEARCH : String = "search";
44
+ public static const PLAYLIST_LOAD : String = "load_playlist";
45
+ public static const PLAYLIST_DISPLAYED : String = "displayed_playlist";
46
+ public static const ADD_TO_PLAYLIST : String = "add_to_playlist";
47
+ public static const ADD_ALL_TO_PLAYLIST : String = "add_all_to_playlist";
48
+
49
+ public var query:String;
50
+ public function PlaylistURLEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
51
+ {
52
+ super(type, bubbles, cancelable);
53
+ }
54
+
55
+ }
56
+
57
+ }
@@ -0,0 +1,59 @@
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.events.playlist.controller
38
+ {
39
+ import flash.events.Event;
40
+
41
+ public class PlaylistControllerEvent extends Event
42
+ {
43
+
44
+ public static const ADD_TO_PLAYLIST : String = "add_to_playlist";
45
+ public static const PLAY_THIS_ITEM : String = "play_this_item";
46
+ public static const REMOVE_THIS_ITEM : String = "remove_this_item";
47
+ public static const DOWNLOAD : String = "download";
48
+
49
+ public var currentJSONObj : Object;
50
+
51
+ public function PlaylistControllerEvent(type:String, json:Object, bubbles:Boolean=false, cancelable:Boolean=false)
52
+ {
53
+ super(type, bubbles, cancelable);
54
+ currentJSONObj = json;
55
+ }
56
+
57
+ }
58
+
59
+ }
@@ -0,0 +1,17 @@
1
+ package cc.varga.mvc.events.search
2
+ {
3
+ import flash.events.Event;
4
+
5
+ public class SearchEvent extends Event
6
+ {
7
+
8
+ public static const SEARCH_QUERY : String = "search_query_event";
9
+
10
+ public var search_query : String;
11
+
12
+ public function SearchEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
13
+ {
14
+ super(type, bubbles, cancelable);
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,15 @@
1
+ package cc.varga.mvc.events.serveradmin
2
+ {
3
+ import flash.events.Event;
4
+
5
+ public class ServerAdminEvent extends Event
6
+ {
7
+
8
+ public static const SERVERADMIN_OPEN : String = "open_serveradmin";
9
+
10
+ public function ServerAdminEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
11
+ {
12
+ super(type, bubbles, cancelable);
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,16 @@
1
+ package cc.varga.mvc.events.sound
2
+ {
3
+ import flash.events.Event;
4
+
5
+ public class SoundEvent extends Event
6
+ {
7
+
8
+ public static const SOUND_END : String = "sound_end";
9
+ public static const SOUND_START : String = "sound_start";
10
+
11
+ public function SoundEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
12
+ {
13
+ super(type, bubbles, cancelable);
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,24 @@
1
+ package cc.varga.mvc.events.system
2
+ {
3
+ import flash.events.Event;
4
+
5
+ import mx.collections.ArrayCollection;
6
+
7
+ public class SystemEvent extends Event
8
+ {
9
+
10
+ public static const START_REGISTRY : String = "registry_start";
11
+ public static const FINISHED_RIGSTRY : String = "finished_registry";
12
+ public static const FINISHED_VIEW_REGISTRY : String = "finished_view_reg";
13
+ public static const FINISHED_INJECTIONS_REGISTRY : String = "finished_inj_reg";
14
+ public static const FINISHED_MEDIATOR_REGISTRY : String = "finished_mediator_reg";
15
+ public static const DRAW_PLAYLIST : String = "draw_playlist";
16
+
17
+ public var sourcePlaylist : ArrayCollection = new ArrayCollection();
18
+
19
+ public function SystemEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
20
+ {
21
+ super(type, bubbles, cancelable);
22
+ }
23
+ }
24
+ }