Create an adjustable continuously rolled movie film (1)
Author: Jim Durand, durand AT iinet DOT net DOT au
Easy to degree: beginners
Software requirements: Flash 5 and above
Keywords: instance and mask
Example effect
Source program
Can't remember where I found that the first guidance class I had to have some ideas has I don't know who I believe. I wrote this because the very continuous scroll requires your side of the two different graphics and just repeats. Because this you can put your graphics anywhere on the stage. This is an adjustable continuous news piece from the top volume.
Create an adjustable continuously rolled movie film
We started from 5 small pieces, but you can change the number you want by changing the 1-line code. This example has a little mask and 3D effect, while the scriptization allows you to put movies anywhere in the stage (convenient). This tutorial is positioned in (0,0), you can place your first slide at any location of the stage, and the rest will be automatically put.
OK, let us start.
Establish a layer named Action, Fade, Mask, Movie Clips, and arrange them from top to bottom in the above order.
All code written in the first frame of layer Action.
Painting a rectangle of 200 x 80 on the layer movie clips, the upper left corner coordinates are (0,0).
We will convert it into Movie Clip, but we must ensure that our coordinates in the movie are still in (0, 0). We can edit after we transform, or now guarantee the shape at 0, 0 and select the small box in the upper left corner during the registration point dialog.
Press F8 to convert it to Movie Clip, named reel_ 1 (as shown below)
The registration point is very important in the upper left corner, which realizes the value of the attribute _x we reference Movie Clip, because the attribute _x of the Movie Clip is relative to the main timeline. If this (registration point problem) is incorrect, you will get an expectation result. Edit the movie reel_1, guarantee the shape in the (0, 0) coordinate point.
You can create five Instance (instances) of Reel_ 1 on the stage, and give these instances Reel_1, ..., reel_5, however, you can't have different materials for each slip. How to do? Copy reel_1 (movie clip), which has 5 movies in the library (library). (Control L Open Library, then right click on Reel_1., as shown below)
Make sure that these five films in Library have an instance on the stage, editing each movie clip and adding something to distinguish between them.
As you can see, in addition to slide1, the remaining Slide placed positions have no relationship.
(Obvious you can edit these movies clips and add buttons, videos, etc.)
OK, give them a name: Slide1, ..., Slide5. Next, let's see the code:
(Endlessly)
related articles:
Create an adjustable continuously rolled movie film (2)