Help with Material with 2D Animation please!!

Hi! I am new to the community, I have a question that I could not answer looking in the forum, I am trying to do some leds with animation like these:

http://youtu.be/7VyeerlUHjg?t=94

I created the animation in 2d sprite, and I try to join it to the material by function but I do not know how.

Thank you and sorry for my bad english

https://puu.sh/skmpA/010d68bf50.png
https://puu.sh/skmvB/f1173577f1.png
https://puu.sh/skmwZ/7d56278b89.png
https://puu.sh/skmF9/ae9e2becd1.png