How do I get from an instance of a class to a Class object in ActionScript 3?
You can get it through the ‘constructor’ property of the base Object class. i.e.: var myClass:Class = Object(myObj).constructor;
You can get it through the ‘constructor’ property of the base Object class. i.e.: var myClass:Class = Object(myObj).constructor;
I wound up using this. It is a kind of a hack, but it actually works pretty well. The only thing is you have to be very careful with your semicolons. : D var strSql:String = stream.readUTFBytes(stream.bytesAvailable); var i:Number = 0; var strSqlSplit:Array = strSql.split(“;”); for (i = 0; i < strSqlSplit.length; i++){ NonQuery(strSqlSplit[i].toString()); }
The term Flash can include any of the other terms defined below, and I find that saying “Flash” without specifying exactly what you mean can be confusing and misleading. Case in point: I’m not sure what you specifically mean when you say “Flash” in your question. Is it Flash Player? The authoring tool? Or the … Read more