Circular Flash animation effect with AS

Source: Internet
Author: User
Tags cos sin
Flash animation First look at the specific picture Circle Flash animation effect

See a lot of people talking about circular animation, some people say by frame, more tired; some people say that the polygon is rounded, this method is slow to run, and definitely not a real circle. Curve statement is actually good, very simple to achieve a circular animation.

Previous radians
The last Radian
Circle radius
LineStyle (1);
Line Style
MoveTo (0,R);
Starting point
_root.onenterframe=function () {
Load Frame function
if (N<=2*math.pi) {
Finish Drawing Circle Stop
Minimum unit
Curveto (R*math.sin (M), R*math.cos (M), R*math.sin (n), R*math.cos (n));
Curve Drawing Circle
Assign the latter radian to the previous one to copy the above textbooks to the frame, and a circle-drawing animation appears.

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: 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.