# HELP w/ this actionscript 4 photo gallery

**URL:** https://forum.kirupa.com/t/help-w-this-actionscript-4-photo-gallery/154771
**Category:** flash
**Created:** [July 12, 2005, 4:58pm UTC](https://forum.kirupa.com/t/help-w-this-actionscript-4-photo-gallery/154771 "2005-07-12T16:58:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![xtinarox26](https://avatars.discourse-cdn.com/v4/letter/x/f14d63/32.png) [@xtinarox26](https://forum.kirupa.com/u/xtinarox26)
#### Post date: [July 12, 2005, 4:58pm UTC](https://forum.kirupa.com/t/help-w-this-actionscript-4-photo-gallery/154771/1 "2005-07-12T16:58:12Z")

</div>

Hey ya’ll,

I’m trying to do this [http://www.cambodiaxp.com/tutorial/flash-advance/flash-photo-slide/flash-photo-slider.php](http://www.cambodiaxp.com/tutorial/flash-advance/flash-photo-slide/flash-photo-slider.php)

BUT i want my pictures to go vertical slide up and down not across.

i have this AS for horizontal sliding:

final\_x=0;  
speed =5;  
photo\_width = 280; //width of each individual photo, you may choose the one that suit photos  
photo\_mc.onEnterFrame = function() {  
photo\_mc.\_x += (final\_x - photo\_mc.\_x)/speed;  
}  
b1.onRelease = function() {  
final\_x =0;  
}  
b2.onRelease = function() {  
final\_x =-photo\_width;  
}  
b3.onRelease = function() {  
final\_x =-photo\_width_2;  
}  
b4.onRelease = function() {  
final\_x =-photo\_width_3;  
}  
b5.onRelease = function() {  
final\_x =-photo\_width\*4;  
}

:book:

your help will be very much appreciated!

Thanks!  
xTINA
