0 Replies Latest reply on Sep 30, 2009 5:59 AM by Marlene

    Flash image scroller in flex moving at warp speed

    Marlene

      I made an image scroller in Flash and exported it as a swf. I then used swfLoader with source pointing to the swf. When I look at this on Mac Firefox and Safari the scroll moves at a reasonable rate but in Windows Internet Explorer, it is scrolling really really fast. This is the link to the site: http://www/yumyumburbank.com

       

      this is the flash code

       

      var slide1:Stretch = new Stretch();

      var slide2:Stretch = new Stretch();

      addChild(slide1);

      slide1.x=0;

      slide1.y=0;

      addChild(slide2);

      slide2.x=slide1.width;

      slide2.y=0;

       

      slide1.addEventListener(Event.ENTER_FRAME, moveIt);

       

      function moveIt(e:Event):void {

          this.stage.frameRate = 30;

          slide1.x -=2;

          slide2.x -=2;

          if (slide1.x <= -2400){

             slide1.x=slide2.x + slide2.width;

          }

       

          if (slide2.x <= -2400){

             slide2.x=slide1.x + slide1.width;

          }