1 Reply Latest reply on Aug 10, 2010 6:03 PM by Jeff_Soko

    How to create Scrolling usable images in director?

    matt_tuffy

      Hey Everyone,

       

      I've tried searching for this topic but couldn't find anything, but does anyone know how to create a function that allows small images to be on screen that allows users to scroll from one image to the next? So one main image is in the middle of the screen and smaller images off to the side, then if someone selects arrows either way the middle image will shift either side and the next image appears in the middle as the main image. Then users can click on that image to view a larger size of it?

       

      I hope that make sense, but is it possible in director? its a very popular function on a lot of photography type websites.

       

      Thanks for any help,

      Matt.

        • 1. Re: How to create Scrolling usable images in director?
          Jeff_Soko

          You could create a variable with a value of '0', then every time you click the right arrow it would add +1 to the variable(-1 for the left arrow). Then reference the locH of the sprites according to the variables value.

           

          if gVariable = 1 then

          set the locH of sprite 1 = 320

          else

          set the locH of sprite 1 = 20000

          end if

           

          Then you would copy this script for each image you use and change the sprite number. You could even link up the sprite number with the value of the variable.

           

          if gVariable = 1 then

          set the locH of sprite gVariable  = 320

          else

          set the locH of sprite gVariable  = 20000

          end if

          Jeff