Internet Cross Logo
Internet Cross your one stop web tutorial website
Your Ad Here

Continous Image Scroller

by Anand

Continous Scroller

A common scroller to display images. This works on movie clips position. Movie clip(mc1) scroll by jumping new position. At some particular position the clip jumps to the starting position where it started and scrolling goes on...

1. Import a images in a separate movie clips (mc1, mc2, mc3, ....)

2. Place all the movie clips in a new movie clip(imgMC) one after other.

3. Type the below script on all the movie clips instances.

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.
}
}

4. Note:
  • movie clips should have same width.
  • "if(_x>=540)" value depends on the no. of movie clips.

[Download File][Page 1]
Visit our forums to discuss / post your problems.