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
package { | |
public class PageFlipperMediator extends Mediator implements IHasStateTransition{ | |
/** | |
* VIEW | |
*/ | |
[Inject] | |
public var view:PageFlipperView; | |
/** | |
* IHasStateTransition implementation for autoremove |
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.sequence.example { | |
import com.blackmoondev.sequence.example.services.InitLoaderService; | |
import com.blackmoondev.sequence.example.services.core.IInitLoaderService; | |
import com.blackmoondev.sequence.example.signals.LoadIconsSignal; | |
import com.blackmoondev.sequence.example.signals.LoadMainConfigSignal; | |
import com.blackmoondev.sequence.example.signals.LoadUserConfigSignal; | |
import com.blackmoondev.sequence.example.signals.initloader.InitFlashLibSignal; | |
import com.blackmoondev.sequence.SequenceManager; | |
public class ExampleSequenceManager extends SequenceManager { |
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.services { | |
import flash.events.ErrorEvent; | |
import flash.utils.Dictionary; | |
import org.robotlegs.oil.async.Promise; | |
public class BasePromiseService { | |
protected var loaders:Dictionary = new Dictionary(); | |
protected var promises:Dictionary = new Dictionary(); |
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
/** | |
* Created by IntelliJ IDEA. | |
* User: wrobel221 | |
* Date: 08.12.10 | |
* Time: 13:07 | |
* To change this template use File | Settings | File Templates. | |
*/ | |
package com.blackmoondev.preloader { | |
import flash.display.DisplayObject; | |
import flash.display.Graphics; |
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
/** | |
* Removes all groups containing given string | |
* @param str: Search phrase for groupIds | |
*/ | |
public static function removeGroupsContaining(str:String):void{ | |
var toBeRemoved:Array = []; | |
for (var groupId:String in LibraryManager._groupMap) { | |
if(groupId.indexOf(str) != -1) { | |
//get group |
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
[Test] | |
public function removeSystemAndAddItAgainDontCauseInvalidLinkedList():void { | |
var systemB:System = new System(); | |
var systemC:System = new System(); | |
game.addSystem( systemB, 0 ); | |
game.addSystem( systemC, 0 ); | |
game.removeSystem(systemB); | |
game.addSystem(systemB, 0); | |
// game.update( 0.1 ); | |
assertThat( systemC.previous, nullValue() ); |
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
/** | |
* Created with IntelliJ IDEA. | |
* User: wrobel221 | |
* Date: 16.08.12 | |
* Time: 14:35 | |
* To change this template use File | Settings | File Templates. | |
*/ | |
package com.blackmoondev.signals.native | |
{ | |
import flash.display.DisplayObject; |
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
//poziom 2 // | |
slowa_losowanie=random(300)+1; | |
if (slowa_losowanie==1){ | |
slowa="lorem"; | |
} | |
else if (slowa_losowanie==2){ | |
slowa="ipsum"; | |
} | |
else if (slowa_losowanie==3){ | |
slowa="dolor"; |
OlderNewer