I'm coming from a ruby background and often open the ruby console to play with code and libraries. I've found this to be a great way to learn new libraries or figure out how to solve a problem before writing code in my application.
Now that I'm doing a fair amount of flex I'm wondering what methods people have found to more productively learn and code. I do not believe there is an equivalent to the ruby console (please correct me if I'm wrong) and the process of writing some code, compiling, then waiting for it to open in a browser to see how it works to be far less productive. Learning e4x was painful because I didn't know how it handled different situations. For example, what is returned when using . notation and the element referenced doesn't exist? Edit, compile, wait, see what happens then rinse and repeat isn't a productive process. Is there a better way?

