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
package org.robotlegs.utilities.remote | |
{ | |
import com.adobe.serializers.json.JSONDecoder; | |
import mx.collections.ArrayCollection; | |
public class JsonRemoteService extends RemoteServiceBase | |
{ | |
public function JsonRemoteService(rootURL:String = "") | |
{ |
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
private function xmlToObject(xml:XML, chain:Object=null):Object | |
{ | |
if(!chain) | |
chain = {}; | |
for each(var child:XML in xml.children()) | |
{ | |
(child.children().length() > 1 || (child.children().length() == 1 && child.hasComplexContent())) | |
? chain[child.name().toString()] = xmlToObject(child, chain[child.name().toString()]) | |
: chain[child.name().toString()] = chain[child.name().toString()] = child.text().toString(); |
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
package com.destroytoday.example | |
{ | |
public class StaticClass | |
{ | |
{ trace('constructed'); } // <-- static constructor | |
} | |
} |
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
package org.robotlegs.core | |
{ | |
import org.osflash.signals.ISignal; | |
/** | |
* @author Abel de Beer | |
*/ | |
public interface IGuardedSignalCommandMap | |
{ | |
function mapGuardedSignal(signal:ISignal, commandClass:Class, guards:*, oneShot:Boolean = false):void; |
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
1. github.com/robotlegs/robotlegs-framework/blob/master/src/org/robotlegs/base/CommandMap.as: | |
// only one mapping possible | |
mapValues(); | |
command = createCommand(mapping); | |
unmapValues(); | |
command.execute(); | |
2. github.com/joelhooks/signals-extensions-CommandSignal/blob/master/src/org/robotlegs/base/SignalCommandMap.as: |
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
fsm | |
.configureState( StateNames.HAPPINESS ) | |
.withEntryGuards( OnlyIfHappy, OnlyIfSmiling ) | |
.withExitiGuards( OnlyIfAnxious ) | |
.withTargets( StateNames.SADNESS, StateNames.ECSTACY ); |
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
package org.devboy; | |
import haxe.macro.Type; | |
import neko.Lib; | |
import haxe.macro.Expr; | |
import haxe.macro.Context; | |
class Funk | |
{ |
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
package com.blackmoondev.ashes.boot.vo | |
{ | |
import net.richardlord.ash.core.Game; | |
import net.richardlord.ash.core.SystemEnabledRule; | |
import org.hamcrest.Matcher; | |
import org.hamcrest.collection.inArray; | |
import org.hamcrest.core.not; | |
import org.hamcrest.object.equalTo; |
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
package | |
{ | |
import flash.display.DisplayObject; | |
import flash.display.DisplayObjectContainer; | |
import mx.core.IUIComponent; | |
import mx.managers.ISystemManager; | |
import robotlegs.bender.extensions.mediatorMap.api.IMediatorMap; | |
import robotlegs.bender.extensions.viewManager.api.IViewManager; |
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
package justpinegames | |
{ | |
public class ComponentConstraint | |
{ | |
public static const HORIZONTAL_CONSTRAINT_LEFT:String = "left"; | |
public static const HORIZONTAL_CONSTRAINT_CENTER:String = "center"; | |
public static const HORIZONTAL_CONSTRAINT_RIGHT:String = "right"; | |
public static const VERTICAL_CONSTRAINT_TOP:String = "top"; | |
public static const VERTICAL_CONSTRAINT_MIDDLE:String = "middle"; | |
public static const VERTICAL_CONSTRAINT_BOTTOM:String = "bottom"; |
OlderNewer