Its called multiplexing ...the lights are not actually all on at once, it just looks like that because the flash so fast
look for shift registers. The 74HC595 is very popular for Arduino:
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16