forked from: AS3 port of weavesilk

