Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
979d123
commit c0284cd
Showing
91 changed files
with
15,889 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/* | ||
Flod 4.1 | ||
2012/04/30 | ||
Christian Corti | ||
Neoart Costa Rica | ||
Last Update: Flod 4.0 - 2012/03/10 | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | ||
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR | ||
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
This work is licensed under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. | ||
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter to | ||
Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA. | ||
--- | ||
This is a simple demo showing how to use the FileLoader class to play a module, in any of the supported | ||
formats, loaded from the client. | ||
*/ | ||
package { | ||
import flash.display.*; | ||
import flash.events.*; | ||
import flash.net.*; | ||
import neoart.flod.*; | ||
import neoart.flod.core.*; | ||
|
||
public final class Demo1 extends Sprite { | ||
private var | ||
file : FileReference, | ||
loader : FileLoader, | ||
player : CorePlayer; | ||
|
||
public function Demo1() { | ||
loader = new FileLoader(); | ||
|
||
stage.addEventListener(MouseEvent.CLICK, function(e:MouseEvent):void { | ||
file = new FileReference(); | ||
file.addEventListener(Event.CANCEL, cancelHandler); | ||
file.addEventListener(Event.SELECT, selectHandler); | ||
file.browse(); | ||
}); | ||
} | ||
|
||
private function cancelHandler(e:Event):void { | ||
file.removeEventListener(Event.CANCEL, cancelHandler); | ||
file.removeEventListener(Event.SELECT, selectHandler); | ||
} | ||
|
||
private function selectHandler(e:Event):void { | ||
cancelHandler(e); | ||
if (player) player.stop(); | ||
file.addEventListener(Event.COMPLETE, completeHandler); | ||
file.load(); | ||
} | ||
|
||
private function completeHandler(e:Event):void { | ||
file.removeEventListener(Event.COMPLETE, completeHandler); | ||
player = loader.load(file.data); | ||
if (player && player.version) player.play(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
/* | ||
Flod 4.1 | ||
2012/04/30 | ||
Christian Corti | ||
Neoart Costa Rica | ||
Last Update: Flod 4.0 - 2012/03/10 | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | ||
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR | ||
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
This work is licensed under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. | ||
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter to | ||
Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA. | ||
--- | ||
This is a simple demo showing how to use a single player to play a module loaded from the client. | ||
List of available players and include locations: | ||
D1Player Delta Music 1.0 neoart.flod.deltamusic | ||
D2Player Delta Music 2.0 neoart.flod.deltamusic | ||
DMPlayer Digital Mugician neoart.flod.digitalmugician | ||
F2Player FastTracker II XM neoart.flod.fasttracker | ||
FEPlayer FredEd neoart.flod.fred | ||
FCPlayer Future Composer neoart.flod.futurecomposer | ||
JHPlayer Jochen Hippel neoart.flod.hippel | ||
RHPlayer Rob Hubbard neoart.flod.hubbard | ||
S1Player SidMON neoart.flod.sidmon | ||
S2Player SidMON II neoart.flod.sidmon | ||
FXPlayer SoundFX neoart.flod.soundfx | ||
BPPlayer SoundMon neoart.flod.soundmon | ||
HMPlayer His Master's NoiseTracker neoart.flod.trackers | ||
MKPlayer NoiseTracker neoart.flod.trackers | ||
PTPlayer ProTracker neoart.flod.trackers | ||
STPlayer Ultimate Soundtracker neoart.flod.trackers | ||
DWPlayer David Whittaker neoart.flod.whittaker | ||
*/ | ||
package { | ||
import flash.display.*; | ||
import flash.events.*; | ||
import flash.net.*; | ||
import neoart.flod.core.*; | ||
import neoart.flod.fasttracker.*; | ||
|
||
public final class Demo2 extends Sprite { | ||
private var | ||
file : FileReference, | ||
player : F2Player; | ||
|
||
public function Demo2() { | ||
player = new F2Player(); | ||
|
||
stage.addEventListener(MouseEvent.CLICK, function(e:MouseEvent):void { | ||
file = new FileReference(); | ||
file.addEventListener(Event.CANCEL, cancelHandler); | ||
file.addEventListener(Event.SELECT, selectHandler); | ||
file.browse(); | ||
}); | ||
} | ||
|
||
private function cancelHandler(e:Event):void { | ||
file.removeEventListener(Event.CANCEL, cancelHandler); | ||
file.removeEventListener(Event.SELECT, selectHandler); | ||
} | ||
|
||
private function selectHandler(e:Event):void { | ||
cancelHandler(e); | ||
player.stop(); | ||
file.addEventListener(Event.COMPLETE, completeHandler); | ||
file.load(); | ||
} | ||
|
||
private function completeHandler(e:Event):void { | ||
file.removeEventListener(Event.COMPLETE, completeHandler); | ||
player.load(file.data); | ||
if (player.version) player.play(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* | ||
Flod 4.1 | ||
2012/04/30 | ||
Christian Corti | ||
Neoart Costa Rica | ||
Last Update: Flod 4.0 - 2012/03/10 | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | ||
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR | ||
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
This work is licensed under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. | ||
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter to | ||
Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA. | ||
--- | ||
This is a simple demo showing how to use the FileLoader class to play a module, in any of the supported | ||
formats, with an embedded module. | ||
*/ | ||
package { | ||
import flash.display.*; | ||
import flash.utils.*; | ||
import neoart.flod.*; | ||
import neoart.flod.core.*; | ||
|
||
public final class Demo3 extends Sprite { | ||
[Embed(source="filename.mod", mimeType="application/octet-stream")] | ||
|
||
private var | ||
Song : Class, | ||
loader : FileLoader, | ||
player : CorePlayer; | ||
|
||
public function Demo3() { | ||
loader = new FileLoader(); | ||
player = loader.load(new Song() as ByteArray); | ||
if (player && player.version) player.play(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/* | ||
Flod 4.1 | ||
2012/04/30 | ||
Christian Corti | ||
Neoart Costa Rica | ||
Last Update: Flod 4.0 - 2012/03/10 | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | ||
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR | ||
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
This work is licensed under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. | ||
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter to | ||
Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA. | ||
--- | ||
This is a simple demo showing how to use a single player to play an embedded module. | ||
List of available players and include locations: | ||
D1Player Delta Music 1.0 neoart.flod.deltamusic | ||
D2Player Delta Music 2.0 neoart.flod.deltamusic | ||
DMPlayer Digital Mugician neoart.flod.digitalmugician | ||
F2Player FastTracker II XM neoart.flod.fasttracker | ||
FEPlayer FredEd neoart.flod.fred | ||
FCPlayer Future Composer neoart.flod.futurecomposer | ||
JHPlayer Jochen Hippel neoart.flod.hippel | ||
RHPlayer Rob Hubbard neoart.flod.hubbard | ||
S1Player SidMON neoart.flod.sidmon | ||
S2Player SidMON II neoart.flod.sidmon | ||
FXPlayer SoundFX neoart.flod.soundfx | ||
BPPlayer SoundMon neoart.flod.soundmon | ||
HMPlayer His Master's NoiseTracker neoart.flod.trackers | ||
MKPlayer NoiseTracker neoart.flod.trackers | ||
PTPlayer ProTracker neoart.flod.trackers | ||
STPlayer Ultimate Soundtracker neoart.flod.trackers | ||
DWPlayer David Whittaker neoart.flod.whittaker | ||
*/ | ||
package { | ||
import flash.display.*; | ||
import flash.events.*; | ||
import flash.utils.*; | ||
import neoart.flod.core.*; | ||
import neoart.flod.fred.*; | ||
|
||
public final class Demo4 extends Sprite { | ||
[Embed(source="filename.mod", mimeType="application/octet-stream")] | ||
|
||
private var | ||
Song : Class, | ||
player : FEPlayer; | ||
|
||
public function Demo4() { | ||
player = new FEPlayer(); | ||
player.load(new Song() as ByteArray); | ||
if (player.version) player.play(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* | ||
Flod 4.1 | ||
2012/04/30 | ||
Christian Corti | ||
Neoart Costa Rica | ||
Last Update: Flod 4.0 - 2012/03/10 | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | ||
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR | ||
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
This work is licensed under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. | ||
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter to | ||
Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA. | ||
--- | ||
This is a simple demo showing how to use the FileLoader class to play a module, in any of the supported | ||
formats, loaded from the server. | ||
Warning: the server must be able to handle the correct file extension, if it can't just rename the file | ||
to filename.wav and it should work... | ||
*/ | ||
package { | ||
import flash.display.*; | ||
import flash.events.*; | ||
import flash.net.*; | ||
import neoart.flod.*; | ||
import neoart.flod.core.*; | ||
|
||
public final class Demo5 extends Sprite { | ||
private var | ||
url : URLLoader, | ||
loader : FileLoader, | ||
player : CorePlayer; | ||
|
||
public function Demo5() { | ||
loader = new FileLoader(); | ||
|
||
url = new URLLoader(); | ||
url.dataFormat = URLLoaderDataFormat.BINARY; | ||
url.addEventListener(Event.COMPLETE, completeHandler); | ||
url.load(new URLRequest("filename.mod")); | ||
} | ||
|
||
private function completeHandler(e:Event):void { | ||
url.removeEventListener(Event.COMPLETE, completeHandler); | ||
player = loader.load(url.data); | ||
if (player && player.version) player.play(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/* | ||
Flod 4.1 | ||
2012/04/30 | ||
Christian Corti | ||
Neoart Costa Rica | ||
Last Update: Flod 4.0 - 2012/03/10 | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | ||
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR | ||
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
This work is licensed under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. | ||
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter to | ||
Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA. | ||
--- | ||
This is a simple demo showing how to use a single player to play a module loaded from the server. | ||
List of available players and include locations: | ||
D1Player Delta Music 1.0 neoart.flod.deltamusic | ||
D2Player Delta Music 2.0 neoart.flod.deltamusic | ||
DMPlayer Digital Mugician neoart.flod.digitalmugician | ||
F2Player FastTracker II XM neoart.flod.fasttracker | ||
FEPlayer FredEd neoart.flod.fred | ||
FCPlayer Future Composer neoart.flod.futurecomposer | ||
JHPlayer Jochen Hippel neoart.flod.hippel | ||
RHPlayer Rob Hubbard neoart.flod.hubbard | ||
S1Player SidMON neoart.flod.sidmon | ||
S2Player SidMON II neoart.flod.sidmon | ||
FXPlayer SoundFX neoart.flod.soundfx | ||
BPPlayer SoundMon neoart.flod.soundmon | ||
HMPlayer His Master's NoiseTracker neoart.flod.trackers | ||
MKPlayer NoiseTracker neoart.flod.trackers | ||
PTPlayer ProTracker neoart.flod.trackers | ||
STPlayer Ultimate Soundtracker neoart.flod.trackers | ||
DWPlayer David Whittaker neoart.flod.whittaker | ||
*/ | ||
package { | ||
import flash.display.*; | ||
import flash.events.*; | ||
import flash.net.*; | ||
import neoart.flod.core.*; | ||
import neoart.flod.sidmon.*; | ||
|
||
public final class Demo6 extends Sprite { | ||
private var | ||
url : URLLoader, | ||
player : S1Player; | ||
|
||
public function Demo6() { | ||
player = new S1Player(); | ||
|
||
url = new URLLoader(); | ||
url.dataFormat = URLLoaderDataFormat.BINARY; | ||
url.addEventListener(Event.COMPLETE, completeHandler); | ||
url.load(new URLRequest("filename.mod")); | ||
} | ||
|
||
private function completeHandler(e:Event):void { | ||
url.removeEventListener(Event.COMPLETE, completeHandler); | ||
player.load(url.data); | ||
if (player.version) player.play(); | ||
} | ||
} | ||
} |
Oops, something went wrong.