(simple)line animation help

hi everybody!

i want to make a line animation that becomes a like a picture frame.
i made a small square 1x1 in frame 1 and in frame 20 i made it 1x100 but the witdth of the square seems to change too, not only the height.

also is it possible to make this with AS ?

thanks in advance