I have attached the code on the first frame of the primary timeline Action, please remember to make your movie instance name correctly, they are slide1, slide2, slide3, slide4, slide5.
// slide_number: Total number of Slides on the stage
/ / You can modify this to increase or reduce the number of slides
SLIDE_NUMBER = 5;
// reel_speed: Control Rolling Speed of Reel
Reel_speed = 3;
// slide_count usually starts from 3,
// So Slide's 1 and 2 position is set in advance
SLIDE_COUNT = 3;
M1 = _root.slide_1;
M2 = _root.slide_2;
m1._x = 0;
m1._y = 0;
M2._x = 200;
M2._y = 0;
// Because our CLIPS is widely 200, Movie 2 starts from 200.
this.onterframe = function () {
_Root.moveleft (reel_speed);
}
// OK, this function moves the movie to the left until they move 200 pixels, then load the next one
// slide and make the front one in the same horizontal line
// This is always moving together, so when we add a mask, it looks continuous.
Function movefully (NPIXELS) {
M1._X - = npixels;
M2._X - = NPIXELS;
/ / Once the number of slides reaches the total, the IF statement returns the initial value.
// So SLIDE_1 will start again
IF (m1._x <-200) {
M1 = _root ["Slide_" Slide_count];
SLIDE_COUNT = SLIDE_COUNT = 1;
IF (slide_count> slide_number) {
SLIDE_COUNT = 1;
}
m1._x = 194;
m1._y = 0;
}
//, only to select Slide
IF (m2._x <-200) {
M2 = _root ["slide_" slide_count];
SLIDE_COUNT = SLIDE_COUNT = 1;
IF (slide_count> slide_number) {
SLIDE_COUNT = 1;
}
M2._x = 194;
M2._y = 0;
}
}
Test movie, you can see how it runs.
The above code works, then we have to make a mask.
Select Layer Mask, drag the reel_mc to go on the stage, disperse it (modify-> Break Apart or modify-> dispersion), then (press F8) to convert it into graphic (graphics), name Mask . The registration point is not important, because it does not move, but please ensure that you will put it (0, 0)
Right click on the layer Mask, select Mask command in the shortcut menu
Test the movie again.
The remaining work is background color and a graphic color to graphic, so that it has a slight 3D effect.
Change the background color to your favorite colors.
On the layer fade, create an instance of the image Mask, disperse and convert it into a graphic, name Fade, (yes, you guessed) put it on (0, 0) coordinates. Edit Graphics Fade: Open the Color Mixer Panel, select the shape and select Linear in the Color Mixer Panel.
As shown in the figure, add 7 TABS (Gradients), color and transparency settings as follows (from left to right):
1
2
3
4
5
6
Seduce
COLOR (color)
Background color background
Background color background
black
white
black
Background color background
Background color background
Alpha (transparency)
100%
90%
35%
10%
35%
90%
100%
(Finish)
First publish an article, please refer to it.
E-mail: xmanceo@yahoo.com.cn
related articles:
Create an adjustable continuously rolled movie film (1)