AS3 animate through range of numbers in textfield

Hey y’alls!

I’m looking to create an AS3 driven animation that animates starting from 0 to 365. I would like to have 0 appear at the start and then randomly and slowly start spinning through numbers really fast ranging from 1-365 for about 5 seconds and slowly end on 365. How complex would something like this be? Anyone know if there are any resources out there or examples of this?

Thanks!