Can Flash be scripted with Javascript?

I’d like to find out if Javascript can be used instead of Action Script to run a Flash-based casino style online slot machine.

This would involve random number generators, arrays, varialbles, etc. I’m a designer, not a heavy duty scripter, and I’m trying to find out about this for a client.

If there’s anything else I can tell you, please ask!