If you are going to learn a new language anyway, you should definitely consider Java. This will not only help you in your current goal, but in today's market, it is a valuable skill.
If the vastness of the language scares you, you might consider learning ActionScript, which is a close relative of JavaScript. It is simple and has C-type syntax, comes with a powerful library, and does not cost anything to start. Creating material in ActionScript is fun.
But my first preference would still be learning Java.
source share