Newsletter: Learn More ||| Multimedia Presentation Software |||
Continuous Image Scroller
Introduction
This mini tutorial shows you how to contruct a continous image scroller in Flash MX.
Contents
Step One
This is a common scroller to display images, which works on the movie clips position. Movie clip(mc1) scrolls by jumping to a new position. At some particular position the clip jumps to the starting position where it began and the scrolling continues.

First, import the images into separate movie clips (mc1, mc2, mc3, ....)
Step Two

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

Step Three
Type this 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.
}
}
Final note

Please note:

  • movie clips should have same width
  • "if(_x>=540)" value depends on the no. of movie clips.
This article was first published by www.internetcross.com.
 
©2007 Wildform, Inc | Policies | Contact Us | Newsletter Options
 
Wildform provides a 100% satisfaction guarantee on all our software. If you are not completely satisfied with our software for any reason you may request a refund within 15 days of purchase.