Gainer Basic Example: Mode 4

by kotobuki forked from Gainer Basic Example: Analog Input (diff: 14)
A very basic example on how to enable 8 analog inputs
and 8 analog outputs
Reference
http://funnel.cc/Software/ActionScript3
♥0 | Line 17 | Modified 2009-08-09 12:06:20 | MIT License
play

ActionScript3 source code

/**
 * Copyright kotobuki ( http://wonderfl.net/user/kotobuki )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/92e5
 */

// forked from kotobuki's Gainer Basic Example: Analog Input
// forked from kotobuki's Gainer Basic Example: SignalScope
// A very basic example on how to enable 8 analog inputs
// and 8 analog outputs
// 
// Reference
// http://funnel.cc/Software/ActionScript3

package {
    import flash.display.Sprite;
    import flash.events.Event;
    
    import funnel.*;
    import funnel.gui.*;

    [SWF(backgroundColor="0x808080")]
    
    public class GainerTest extends Sprite {
        private var gio:Gainer;

        public function GainerTest() {
            gio = new Gainer(Gainer.MODE4);

            var gui:GainerGUI = new GainerGUI();
            addChild(gui);
            gio.gui = gui;
            gui.setPosition(IOModuleGUI.LEFT_BOTTOM);
        }
    }
}

Forked