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
<!-- Root declaration unchanged --> | |
<fsm initial="starting"> | |
<!-- | |
State declaration with unique name. | |
The phase signal attribute declarations have been migrated to child elements. | |
--> | |
<state name="starting"> | |
<!-- Declaration for enteringGuard signal --> | |
<enteringGuard> | |
<!-- |
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; | |
public function PlayingCard(suit:String, index: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 { | |
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; |
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 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 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.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.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 { | |
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
// the code | |
class eg | |
{ | |
public var width:int; | |
public var height:int; | |
public function eg(width:int, height:int) | |
{ | |
this.width = width; |