Skip to content

Instantly share code, notes, and snippets.

@sonygod
sonygod / Main.hx
Created January 19, 2013 02:26
test for each
package ;
import flash.display.BlendMode;
import flash.display.Stage;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.Lib;
import TaskData;
/**
@sonygod
sonygod / TaskUtils.hx
Created January 19, 2013 02:28
enumIndex Test
package ;
/**
* ...
* @author sonygod
*/
import TaskData;
using Type;
class TaskUtils {
@sonygod
sonygod / DataManager.as
Created January 19, 2013 02:47
Data control
package com.lyo.game.bwdl.game.task.utils {
public final class DataManager {
private static const DEFAULT_FIELD:String = "";
private static var _tables_pool:Object = {};
/*查找并获得对象数组
*
* @aTableName:表名
* @aColumnName:标题列名称
* @aValue:查找的值
* @aField
@sonygod
sonygod / Main.hx
Created January 23, 2013 02:33
test tink_bell creat class.
package ;
import haxe.macro.Expr;
import haxe.macro.Context;
import test.test.Testx;
import tink.lang.Cls;
using tink.macro.tools.MacroTools;
class Main implements Cls {
static function main() {
@sonygod
sonygod / TestThread.hx
Created February 28, 2013 03:19
多线程演示
package ;
import neko.vm.Thread;
/**
* ...
* @author sonygod VKT
* 多线程演示
*/
class TestThread
{
@sonygod
sonygod / TestThread.hx
Created February 28, 2013 03:39
多线程演示2,共享数组
package ;
import neko.vm.Thread;
import neko.vm.Deque;
/**
* ...
* @author sonygod VKT
*
* 多线程演示 2
*/
@sonygod
sonygod / TestThread.hx
Created February 28, 2013 05:56
多线程演示3:共享obj
package ;
import neko.vm.Thread;
import neko.vm.Deque;
import neko.vm.Mutex;
/**
* ...
* @author sonygod VKT
*
* 多线程演示 3
*/
@sonygod
sonygod / TestDTread.hx
Created February 28, 2013 07:11
动态创建多线程
package ;
import neko.vm.Thread;
/**
* ...
* @author sonygod
*/
class TestDTread
{
@sonygod
sonygod / Main.hx
Created March 7, 2013 07:18
amf read and write example
package ;
//import js.Lib;
//import js.Node;
import Date;
import haxe.io.Input;
import HttpServer;
import format.amf.Reader;
import format.amf.Writer;
@sonygod
sonygod / Main.hx
Created March 9, 2013 02:14
index for function
package ;
//import js.Lib;
using Reflect;
/**
* ... AMF READ OR WRITE EXAMPE
* @author sonygod
*/