Envious of Code Contracts so implemented a dumbed down version for as3