1 Reply Latest reply on Oct 8, 2008 12:45 PM by Ed_Miller

    Flash Help - Scrolling Images Continously

      I am trying to make a document like this:

      I found this code but am having trouble plugging in the right info because it is not working.

      onClipEvent(enterFrame) { // movie clip enterframe event
      _x=_x+2; // change position for each enterframe event
      if(_x>=540){ // condition
      _x=-360; // if condition true movie clip jumps to starting postion.

      Could someone help me with this?
        • 1. Re: Flash Help - Scrolling Images Continously
          The attached code is where I would start. I just typed it up, so I haven't tested it. It assumes that there are 3 containers and that each image is named in sequence, i.e. 1.jpg, 2.jpg, 3.jpg, etc. Alternatively, you could use an array to contain the sequence of image names, like I used an array to hold the container names. There may be a simpler way to do it (I'm a designer, not a developer), but this code should work.