2 Replies Latest reply on Jan 29, 2009 11:28 AM by designerSG

    Blink on my test site

    designerSG Level 1
      On my test website, where I show my work, there is a blink before the first item slides in. I didn't write the code, so was wondering if someone could figure out what is wrong. The site is at: http://www.gulladesign.com/homepage09.html If you select the planet magnet on the bulletin board you will know what I mean. The code is:

      onClipEvent ( enterFrame ) {
      id = _parent.StartId;
      ExampleStart = _parent.ExampleStart;
      AnimationSpeed = _parent.AnimationSpeed;
      MovieCenter = 198.5;

      posStart = this._x;
      posDestination = ( this["example_"+id]._x * -1 ) + MovieCenter;

      /*** DETERMINE ANIMATION SPEED ***/
      speed = ( posDestination - posStart ) / AnimationSpeed;

      /*** ANIMATE APPROPRIATE COMPONENTS ***/
      this._x = this._x + speed;

      for ( var i = 1; i < 11; i++ ) {
      scale = Math.abs ( ( ExampleStart - posStart ) - Math.abs ( this["example_"+i]._x ) );
      scale = 100 - ( scale * .3 );
      this["example_"+i]._xscale = scale;
      this["example_"+i]._yscale = scale;
      this["example_"+i]._alpha = scale;
      this["example_"+i]._alpha = 100;
      }

      _parent.label = _parent["label_" + id];
      _parent.url = _parent["url_" + id];

      }

      thanks!
      Sg