Author Topic: [Flash] FlodEx Example  (Read 2721 times)

0 Members and 1 Guest are viewing this topic.

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4380
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
[Flash] FlodEx Example
« on: April 24, 2011 »
Hey all,

here is a little wrapper class for the FlodEx library to play FutureComposer tracks (Could also be used for other sound formats supported by FlodEx).

Code: [Select]
package 
{
import flash.utils.ByteArray;

import neoart.flod.amiga.*;
import neoart.flod.futurecomposer.*;

/**
* FlodEd wrapper
* @author benny!
*/
public class FCMusic
{
// Embed future composer track
[Embed(source="../assets/skidrow1.fc4", mimeType="application/octet-stream")]
private var Song1:Class;

private var _player:FCPlayer;

public function FCMusic()
{
var stream:ByteArray = new Song1() as ByteArray;
_player = new FCPlayer();
_player.stereo = 0;
_player.load( stream );
}

public function play():void
{
_player.play();
}

public function stop():void
{
_player.stop();
}

// Feel free to add pause, restart etc...

}
}

Download FlodEx library at :http://sandbox.photonstorm.com/flod/FlodEx%201.01.rar

Here is a little live example I hacked together to show this in action:

RUN EXAMPLE
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17376
  • Karma: 497
  • evil/good
    • View Profile
    • My Homepage
Re: [Flash] FlodEx Example
« Reply #1 on: April 24, 2011 »
Damn, that's rather cool!

I love Future Composer songs, it's a great choice of module to show this off.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: [Flash] FlodEx Example
« Reply #2 on: April 24, 2011 »
Old skool scroller :)

Nice :)  :clap:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4380
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: [Flash] FlodEx Example
« Reply #3 on: April 24, 2011 »
Thanks ... and yeah, FutureComposer really rocks.
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline rdc

  • Pentium
  • *****
  • Posts: 1495
  • Karma: 140
  • Yes, it is me.
    • View Profile
    • Clark Productions
Re: [Flash] FlodEx Example
« Reply #4 on: April 24, 2011 »
Cool stuff.

Offline Kirl

  • Senior Member
  • Pentium
  • ********
  • Posts: 1199
  • Karma: 229
    • View Profile
    • Homepage
Re: [Flash] FlodEx Example
« Reply #5 on: April 25, 2011 »
Oldschool awesomness!  :updance:
www.kirl.nl
Challenge Trophies Won:

Offline Dr.Death

  • Senior Member
  • Amiga 1200
  • ********
  • Posts: 433
  • Karma: 8
    • View Profile
Re: [Flash] FlodEx Example
« Reply #6 on: April 25, 2011 »
WOW Benny that really is good mate  :updance:

We really do need this on DBF it would make it AMAZING    :goodpost:


I know this is a stupid thing to ask but what else do i need to download to have a look at this benny????

Thanx
« Last Edit: April 25, 2011 by Dr.Death »
Proud member of DAWN

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4380
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: [Flash] FlodEx Example
« Reply #7 on: April 25, 2011 »
@rdc,Kirl, Dr.Death:
Thanks ;-) Glad you like it.

@Dr.Death:
Quote
We really do need this on DBF it would make it AMAZING
Well, of course it would be nice, but to do it right it would take quite a lot of work...at least I do not have the time
unfortunately...
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline padman

  • Senior Member
  • Pentium
  • ********
  • Posts: 977
  • Karma: 258
    • View Profile
Re: [Flash] FlodEx Example
« Reply #8 on: April 25, 2011 »
Nice stuff and thanks for the example!  :)
Challenge Trophies Won:

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: [Flash] FlodEx Example
« Reply #9 on: April 25, 2011 »
This looks great. I'll try to find a way to use this.
You are our 9001st visitor.
Challenge Trophies Won: