• Home
  • Free Tutorials
  • Free Video Tutorials

Adobe Photoshop
Autodesk 3ds Max
CSS
Flash
Help Center Live
iPhone
Joomla
Make Money Online!
Mambo
mIRC
Outlook Express
SEO / SEM
Simple Machine Forum
Target Explorer

Scrolling Image Gallery

Category : Flash Views : 112117
Version : 8 Rating : 
2.7/5 (141 votes)
  • Currently 2.74/5
  • 1
  • 2
  • 3
  • 4
  • 5
Type : Text Source File: scrolling-image-gallery.zip
Result: See the result


Previous | 1 | 2 | 3 | 4 | Next

Place the buttons on each side of the "Scroller":
Free Flash Tutorials, Image Slideshow, Scrolling Image Gallery

Open the actions for the main timeline and paste:
//to know whether the buttons are pressed or not var aPressed = false; var speed; aLeft.onPress = function() { //set the right button to visible _root.aRight._visible = 1; //button is pressed so se to true _root.aPressed = true; //speed is positive so it will go to the right _root.speed = 5 } aLeft.onRelease = function() { //button released so key isn't pressed _root.aPressed = false; } aRight.onPress = function() { //left button set to visible _root.aLeft._visible = 1; //button pressed _root.aPressed = true; //speed negative so will go to the left _root.speed = -5 } aRight.onRelease = function() { //released _root.aPressed = false; } this.onEnterFrame = function() { //if a button is being pressed if(aPressed) { //if hit the limit in the left if (_root.Scroller.Scroll._x + speed == -100) { //pressed set to false aPressed = false; //right button invisible aRight._visible = 0 //leave this so we don't go left return; } //if hit the limit in the right else if(_root.Scroller.Scroll._x + speed == 5) { aPressed = false; //left button invisible aLeft._visible = 0 return; } //if is positive will go to the right or negative to the left _root.Scroller.Scroll._x += speed; } }

Done! Test it to see the results.


del.icio.us digg it Reddit Stumble Upon Technorati

Previous | 1 | 2 | 3 | 4 | Next
How to Video Tutorials on software by Helpvids.com

Video tutorial: Forex trading



Sponsors



Advertisement









Studio | Advertisement | About Webzo | Contact Webzo | Terms of Use | Free Video Tutorials by Helpivds

Copyright © 2007 NR Concepts Ltd. All rights reserved.