This file contains hidden or 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
public class MyStrictSignal extends Signal{ | |
public function MyStrictSignal():void{ | |
super( String, int ); | |
} | |
} |
This file contains hidden or 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
package revisual.utils { | |
public interface ITokenInjector { | |
function withThis( keyword:String, replace:* ):ITokenInjector | |
function finallyWith( keyword:String, replace:* ):String | |
function toString():String; | |
} | |
} |
This file contains hidden or 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
// the code | |
class eg | |
{ | |
public var width:int; | |
public var height:int; | |
public function eg(width:int, height:int) | |
{ | |
this.width = width; |
This file contains hidden or 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
package revisual.modular { | |
import org.robotlegs.adapters.SwiftSuspendersInjector; | |
import org.robotlegs.core.IInjector; | |
import org.robotlegs.utilities.modular.core.IModule; | |
import revisual.modular.requests.ModuleRequest; | |
import revisual.modular.core.IModuleRequest; | |
import revisual.modular.signals.ModuleRequestSignal; | |
public class MyModule implements IModule { |
This file contains hidden or 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
package revisual.modular.signals { | |
import revisual.modular.core.IModuleRequest; | |
import org.osflash.signals.SingleSignal; | |
public class ModuleRequestSignal extends SingleSignal { | |
public function ModuleRequestSignal() { | |
super( IModuleRequest ); | |
} | |
} |
This file contains hidden or 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
package revisual.modular.signals { | |
import org.osflash.signals.SingleSignal; | |
public class RequestCallbackSignal extends SingleSignal { | |
public function RequestCallbackSignal() { | |
super( Boolean, Object, IModuleRequest ); | |
} | |
} | |
} |
This file contains hidden or 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
package revisual.modular.requests { | |
import revisual.modular.core.IModuleRequest; | |
import revisual.modular.signals.ModuleRequestSignal; | |
import revisual.modular.signals.RequestCallbackSignal; | |
import org.osflash.signals.ISignal; | |
public class ModuleRequest implements IModuleRequest { |
This file contains hidden or 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
package revisual.modular.core { | |
import org.osflash.signals.ISignal; | |
public interface IModuleRequest { | |
function get callback():ISignal; | |
function requestData( id:Object ):void | |
} | |
} |
This file contains hidden or 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
package org.robotlegs.utilities.modular.core | |
{ | |
import org.robotlegs.core.IInjector; | |
public interface IModule { | |
function injectClient(value:IInjector):void; | |
function dispose():void; |
This file contains hidden or 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
package { | |
public class PlayingCard { | |
public static const SIX_OF_CLUBS:PlayingCard = new PlayingCard( "clubs", 6); | |
public static const JACK_OF_HEARTS:PlayingCard = new PlayingCard( "hearts", 11); | |
private var _index:int; | |
private var _suit:String; | |
private var _data:Object; |