Selecting and comparing numbers


Im trying to make a movie where by you have to insert 6 numbers, which are then sorted in ascending numerical order. Then another 6 random numbers will be generated randomally and compared to your chosen numbers and you are told how many numbers you got right.

Wondering if anyone could help me out with this or know of any good tutorials similar? I will be expanding this but once ive got the first bit done I can do the rest.

I have an actionscript class which I want to stick too, which has the methods, input parameters and return values Im just not sure how to associate these values with the movie clips.

If anyone can help me out with this first step I would be very grateful. Ive attached the class.