1 Reply Latest reply on May 29, 2007 5:25 PM by kglad

    AS3 Image Carousel

    Chris Ellem - Sydney Level 1
      Hi I am trying to replicate the an image carousel like the one on nissanusa.com.

      I have created a movie(image1) with five layers containing the images.

      and given them instance names ClipA, ClipB, etc.

      I then moved ClipA from the top layer to below ClipB but then the listeners dont catch any mose roll over.

      Any Ideas?

      Is there a way to dynamically move them up or down layers?


      image1.clipA.addEventListener(MouseEvent.ROLL_OVER,overFunction1);
      image1.clipA.addEventListener(MouseEvent.ROLL_OUT,outFunction1);

      image1.clipB.addEventListener(MouseEvent.ROLL_OVER,overFunction2);
      image1.clipB.addEventListener(MouseEvent.ROLL_OUT,outFunction1);


      function overFunction1(obj:Object) {
      trace ("on roll called");
      display_txt.text = "CLIP A";
      bgdark.visible = true;
      image1.stop();
      image1.clipA.gotoAndStop(10);
      image1.clipB.gotoAndStop(20);
      image1.clipC.gotoAndStop(20);
      image1.clipD.gotoAndStop(20);
      image1.clipE.gotoAndStop(20);
      }


      Thanks

      Chris