Panning image with actionscript

Hi -

I hope you can help! I’ve been trying to copy and paste this actionscript from the Flash help pages to pan an image with actionscript although i can’t get it to work!

http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001495.html

Is it because i’m using Flash 8? Or is the script wrong!

Thanks