# Panning

**URL:** <https://forum.kirupa.com/t/panning/29797>\
**Category:** flash\
**Created:** [August 31, 2003, 12:39am UTC](https://forum.kirupa.com/t/panning/29797 "2003-08-31T00:39:36Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![tracy](https://avatars.discourse-cdn.com/v4/letter/t/ac8455/32.png) [@tracy](https://forum.kirupa.com/u/tracy)\
**Post date:** [August 31, 2003, 12:39am UTC](https://forum.kirupa.com/t/panning/29797/1 "2003-08-31T00:39:36Z")

</div>

does anyone have the code for a flash mx panning?? Or know of a site that could provide a tutorial for panning?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 31, 2003, 12:49am UTC](https://forum.kirupa.com/t/panning/29797/2 "2003-08-31T00:49:41Z")

</div>

If you are talking about panning sound from left to right or viseversa, in the proporties panel when you have a sound object on your timeline highlighted will offer left to right or right to left.

For actual control on it using actionScript, it’s in here somewhere:  
[http://www.flashkit.com/tutorials/Audio/Flash\_MX-Kenny\_Be-824/index.php](http://www.flashkit.com/tutorials/Audio/Flash_MX-Kenny_Be-824/index.php)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 31, 2003, 12:50am UTC](https://forum.kirupa.com/t/panning/29797/3 "2003-08-31T00:50:07Z")

</div>

[http://www.kennybellew.com](http://www.kennybellew.com)  
[edit] haha freddy, same time i guess[/edit]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 31, 2003, 12:57am UTC](https://forum.kirupa.com/t/panning/29797/4 "2003-08-31T00:57:48Z")

</div>

thank you for your reply…

sorry I wasn’t specific…

I need to pan from left to right or visa versa through 10 sequencial pictures.

any Idea?? I’ve surfed through most of the sites but didn’t see anything that looked like what i need.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 31, 2003, 3:09am UTC](https://forum.kirupa.com/t/panning/29797/5 "2003-08-31T03:09:08Z")

</div>

Are you talking about moving a picture from right to left? Because that would be ‘panning’ from left to right. If so, you would use a motion tween.

[http://www.kirupa.com/developer/mx/motiontween.htm](http://www.kirupa.com/developer/mx/motiontween.htm)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 31, 2003, 3:31am UTC](https://forum.kirupa.com/t/panning/29797/6 "2003-08-31T03:31:30Z")

</div>

panning left to right with 10 sequencial graphics. And the mouse would move over the picture and it would start going in the direction the mouse points in.

I’m sorry if I’m not making myself very clear. ;(

very similar to a vidio but it is done with action scripting.

thanks again

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 31, 2003, 3:44am UTC](https://forum.kirupa.com/t/panning/29797/7 "2003-08-31T03:44:00Z")

</div>

Ohhhh, okay. Try this one out. You would have to change some of the actionScript around, but I think this is more of what you’re looking for:

[http://www.kirupa.com/developer/mx/infinite.htm](http://www.kirupa.com/developer/mx/infinite.htm)

You can use pictures instead of buttons on there and just have it move the same way.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 31, 2003, 4:04am UTC](https://forum.kirupa.com/t/panning/29797/8 "2003-08-31T04:04:51Z")

</div>

this is so close to what I need…just one thing…I need it to only pan when the it’s moused over. I’ve actually used this code tutorial you sent recently for a site… I’m just not sure how to code it for a mouse over only…any suggestion on what to change in the code?

thank you again

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 31, 2003, 8:29am UTC](https://forum.kirupa.com/t/panning/29797/9 "2003-08-31T08:29:27Z")

</div>

That’s a little different. If you want a reaction when you mouse over, you’re going to have to tell it to go left or right if you have multiple images. Have you considered using arrow buttons for your thumbnails?

The prob with photo galleries is the ways you can do actually create them is manifold (I love that word!!). Can you describe exactly what you want? Then maybe we can point you in the right directions.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 31, 2003, 4:12pm UTC](https://forum.kirupa.com/t/panning/29797/10 "2003-08-31T16:12:29Z")

</div>

check out this website…this panning is exactly what I need. I would use arrows for it.

select a location on the map an when the page loads you’ll see on the left hand side “click here for more info” click on this and a page will load with a movie clip of panning just like what I need.

thanks

[http://www.sarahmcfather.com/hoMMX/mm351/kiosk/kiosk.swf](http://www.sarahmcfather.com/hoMMX/mm351/kiosk/kiosk.swf)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 1, 2003, 2:04am UTC](https://forum.kirupa.com/t/panning/29797/11 "2003-09-01T02:04:57Z")

</div>

Okay, now I got what you mean. You would make a long movieClip with your picture (or series of pictures in a row) and give it a name. You’ll have to put a mask on it to show only a part of it. Name the movieClip something like ‘foo’. Then put something like this on the movieClip:

```auto

onClipEvent(enterFrame){
on(KeyPress "<Left>"){
_x -= 5;
}
on(keyPress "<Right>"){
_x += 5;
}
}

```

This will move the picture left or right by 5 pixels everytime you hit the arrow buttons. To make it smoother, you can use some code found here:  
[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=33035&highlight=keyPress+hold+down](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=33035&highlight=keyPress+hold+down)  
But I don’t know if there’s a number for the arrow keys…If Kode looks at this thread, he may know - he knows everything AS!!

The only other way I can think of doing it would be to use a function that applies speed to a formula on the movieClip, but then you would need a stop button.
