# AS3 Dragging Performance

**URL:** https://forum.kirupa.com/t/as3-dragging-performance/276608
**Category:** flash
**Created:** [December 1, 2008, 4:17pm UTC](https://forum.kirupa.com/t/as3-dragging-performance/276608 "2008-12-01T16:17:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![aer](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@aer](https://forum.kirupa.com/u/aer)
#### Post date: [December 1, 2008, 4:17pm UTC](https://forum.kirupa.com/t/as3-dragging-performance/276608/1 "2008-12-01T16:17:57Z")

</div>

Hi All,

I have written a demo to pan an image up and down.

But it seems to me that the code is not very optimised.

The image I load in is quite high res, therefore I apply a scale to fit it to 100% width and height of the browser. It seems quite laggy on firefox.

I have attached the source for my demo.

Please give me some tips and tricks to improve my work.

Many thanks!

PS: the image is too huge to be attached, I have the link of the image to be downloaded here: -  
[http://www.outdooralabama.com/photos/images/05scenic1.jpg](http://www.outdooralabama.com/photos/images/05scenic1.jpg)

Dan
