Express line length over time

I have a line which is stage.stageWidth long.

And i have a time value.

Now i need in enter frame to shorten this line (like an reverse preloader, but its not a preloader) so that in given time value its length becomes 0.

so from stage.stageWidth to 0 in given time.

hod do i do that?