Pattern fill with action Script?

Hi,
Anyone knows if it’s possible to fill a rectangle with a bitmap with action script?
Thanks.

can someone paste the code?

thanks