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 utils { | |
public class SecureUint { | |
private var _value:uint; | |
private var tempVal:UintValueObject; | |
public function SecureUint(initValue:uint = 0) { | |
this.value = initValue; | |
} | |
public function set value(value:uint):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
package utils { | |
public class SecureInt { | |
private var _value:int; | |
private var tempVal:IntValueObject; | |
public function SecureInt(initValue:int = 0) { | |
this.value = initValue; | |
} | |
public function set value(value:int):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
package utils.types { | |
import flash.utils.describeType; | |
public class Enum { | |
// USAGE: | |
//package myProject.constants { | |
//import utils.types.Enum; | |
//public class ScreenIdEnum { | |
// {Enum.init(ScreenIdEnum);} |
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
public static function permutate(elements:Array):Array { | |
var retVal:Array = new Array(); | |
var elementCount:int = elements.length; | |
var doSearch:Boolean = true; | |
var indexVector:Vector.<int> = new Vector.<int>(elementCount); | |
var headIndex:int = 0; | |
while (doSearch) { | |
// set up initial data | |
var tempCards:Vector.<CardVO> = new <CardVO>[]; |
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 var $$(feature)_asincFunction:Function; | |
[Test(async)] | |
public function $$(unit)_$$(feature)_$$(outcome=ok,fail)():void { | |
$$(feature)_asincFunction = AsyncUtil.asyncHandler(this, $$(feature)_callBack, [], 1000, $$(feature)_fail); | |
$$(feature)_asincFunction(); | |
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 flexunit.framework.Assert; | |
import utils.AsyncUtil; | |
/** | |
* COMMENT | |
*/ | |
public class BasicTests { | |
private var asincFunction:Function; | |
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 utils.data { | |
import flash.utils.describeType; | |
import flash.utils.getDefinitionByName; | |
import flash.utils.getQualifiedClassName; | |
/** | |
* @author http://blog.another-d-mention.ro/programming/how-to-clone-duplicate-an-object-in-actionscript-3/, | |
* Modified by Raimundas Banevicius | |
*/ | |
public class ObjectHelper { |
NewerOlder