Flash several pictures end to end connection cycle scrolling

Source: Internet
Author: User

To allow several pictures to roll, the simplest principle is to copy a continuous picture to the tail, after the first picture rolling after the copy of the scroll. The schematic diagram is shown in Figure 7-5.

Fig. 7-5 schematic diagram

Whether using as control or using frame hand-made can use this principle, the schematic diagram, a total of two pictures as "picture One" and "picture two" and he copied a group.

When the first group rolls out of the viewport, the second group takes over into the display area and returns to the starting state of our first frame. If you use frame control, just jump back to the start of the first frame on the line, if it is controlled by as, we reset the first set of X axis position to the second group also can form a picture loop scrolling.

Now that we know the principle, let's start with a circular scrolling picture.

(1). Create a new flash document with the stage size set to 300*160px frame frequency 30fps. Then press "Ctrl+r" to import the picture photo2.jpg by the CD directory.

(2). Select the picture we imported, press the shortcut key "F8" jump out of the "Convert to Symbol dialog box" Enter any symbol name, convert the picture to "movie clip." Create an action tween to keep the movie moving from the stage until it rolls out of the stage, as shown in Figure 7-6.

Figure 7-6 The first group from the stage until it rolls out of the stage area

(3). The first group of rolling tweens are done, and then the second group of scrolling pictures can form a loop.

Create a new layer, copy a movie clip to a new layer at frame 50th, press "F7" to insert a blank keyframe, where we insert a second set of movie clips. And then to the end of Layer 1, press "F6" to insert keyframes to set the x axis of the movie clip to 0, which is the same as a movie clip that sets his bitmap to the first frame, and you can also copy the first frame directly here.

Note that when you create a second set of movie clips, the y-axis bitmap is the same and will not wobble when you play. In the last frame, the x axis of the second group is the same as the first group, otherwise the switch diagram will wobble. It can be released after the adjustment is done, as shown in Figure 7-7.

Figure 7-7 Publishing a continuous scrolling picture

According to this principle, we can do a picture merry-go animation, as shown in Figure 7-8.

Figure 7-8 Making picture merry-go effect

The use of continuous scrolling can produce a lot of effects, this is also the application of small tips, need readers to play their own imagination.

The Merry-go animation effect is shown below.

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.