Flash simple to make searchlight effect

Source: Internet
Author: User

This article by the Chinese tutorial net Breeze Glimpse original, reprint please keep this information!

Move the mouse over the screen to see the effect:

Click here to download the source file

First, create a new 300*400, background color for the black Flash document, select "File-Import-Import to stage" in layer one, and import a picture in advance, set the height and width to 400x300,x and y to 0 in the picture properties.


Figure 1


Figure 2

Second, press Ctrl+f8 to create a new graphic component, in the component to draw a circle, the size of random.


Figure 3


Figure 4

Third, in the return scene, create a new layer, press Ctrl+l to drag component 1 to the scene (that is, the component that just drew the circle), click the Circle, name it "Shan" (without quotes) in the property palette, and right-click in Figure 2 to select the mask.


Figure 5


Figure 6


Figure 7

Create a new layer 3, press F9 to open the action surface version, write code StartDrag ("Shan", true); 。


Figure 8

Well, press Ctrl+enter to test it.



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.