Flash how to do mouse pointer style

Source: Internet
Author: User

First in the Flash edit state Press Ctrl+f8 to create a MC,MC content can be dynamic or static, it determines the style of your mouse pointer. Note: The center of the image is directed at the center of the MC scene (where the cross symbol is centered) because the computer takes the _x of the MC, the _y horizontal ordinate value is the coordinate of reading the Cross Center.

Return to the main scene, drag and drop the MC into the workspace. Note: It is best to drag and drop it directly outside the scene frame, otherwise the MC will appear in the scene at the beginning.

Anti-click the MC in the work area, add the action to the MC as follows:

Onclipevent (load) {

Mouse.hide ();

}

Onclipevent (MouseMove) {

_x = _root._xmouse;

_y = _root._ymouse;

Updateafterevent ();

}

Statement Explanation:

Mouse.hide to hide the mouse

_x = _root._xmouse; _y = _root._ymo use; To assign the mouse coordinates to the MC's coordinate variable updateafterevent (); its function is lets the MC can move smoothly, does not have the beating phenomenon.

Note: Please create a new layer at the top, in the area of the floor of the border with a black shaded box (oneself with four pieces of black rectangular block together), because your mouse moved outside the film, the MC will be near the border there are some remnants, we can do this to cover it. As shown in figure:

OK, test or export the movie to enjoy your creative mouse style!

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.