Stretch line in Flash

Im trying to get code on how to select a line and resize this line in runtime in flash. Has anyone got the code or know of somewhere i could get it.

Also any info on storing diagrams locally in flash would be helpfull.

look like.__________________________