Flash as continuous scrolling picture effect

Source: Internet
Author: User
The idea of a picture effect is to append a picture beyond the visual range to the end of the last picture or to a position in the stage. As long as you can follow the last picture in the back of the line.
For (I=1 i<7; i++) {
This.createemptymovieclip ("MC" +i, I)//create a blank movie (in fact, there is I, so that the movement of each MC will not affect other MC movement.)
This["MC" +i]._x = 10;
This["MC" +i]._y = (i-1) *100+20;//set the location of its x,y
This["MC" +i].attachmovie ("M" +i, "MC" +i, 7*i);/Load Internal MC
This["MC" +i].onenterframe = function () {//Add a Enterframe event
This._y = this._y-2;//Let every film loaded with MC be in motion
if (this._y<-128) {//Determine whether the position of the movie has reached the specified location, if it arrives, execute the following statement.
This._y = stage.height+80;//The Y-position of the MC with the bounds set to Stage height
}
};
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.