actionscript fucking sucks, horrible structure related to java