# Pan image, randomize

**URL:** <https://forum.kirupa.com/t/pan-image-randomize/240852>\
**Category:** Uncategorized\
**Created:** [October 7, 2007, 9:42am UTC](https://forum.kirupa.com/t/pan-image-randomize/240852 "2007-10-07T09:42:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mymelody](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@mymelody](https://forum.kirupa.com/u/mymelody)\
**Post date:** [October 7, 2007, 9:42am UTC](https://forum.kirupa.com/t/pan-image-randomize/240852/1 "2007-10-07T09:42:28Z")

</div>

Hi!

I´m looking for an effect that pan your image randomized over the image. Right/left/up/down without any mouseclick because it is for a screensaver.

My code right now just move to the right. I want it to move in all directions.

```auto

onClipEvent (enterFrame) {
//this moves our clip 5 pixels to the right every frame
this._x-=5;

```

I have found this as well but it also just go to one directions:  
[http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs\_Parts&file=00000958.html](http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000958.html)

Does anyone know any tutorial or the code for do this effect?
