, wouldn't using HashMaps make it more complicated, I normally only use HashMaps for objects
Adam Yaure wrote:
want a quick and lazy way to do this for the java part, wouldn't using HashMaps make it more complicated, I normally only use HashMaps for objects
is there not a way to get a variable e.g. int _type when I just have a string with the name "type" ?
Adam Yaure wrote:I'm not really calling methods1, methods2, methods 3 etc, What I'm wanting to do is to make the code expandable and otherwise I will just have a massive big list of switch case...and if else

salvin francis wrote:Flash actionscripts use javascript.
Scripting languages like javascript are executed 'on the fly' meaning you can have an 'eval' function that can treat a string thats dynamically
generated on the fly as a valid command statement.
Thus, on the go, you can create functions, arrays, etc. directly through strings and even allow method calls to be done in this manner.
While java, is a compiled language, you cannot do functionality like adding new properties/functions to existing objects, you can only utilise
the methods that are already declared in code.
Though this may seem like a drawback to you, it actually amounts to cleaner coding.
I do not want to arise the age old debate between scripters and language coders ...
personally I dislike the use of prototypes, but thats just me
| With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |