Create class of objects

I’m pretty new at AS3,
I know AS2 pretty well, except using classes.

I would like to create a class, which enables me to create square in various sizes
and move them across the screen (I want the class to create a square outside the stage and make it move across the screen until it leaves the screen)

Can you please give me some guidance?

Thanks a bunch :beam: