?

1119;access of posibly undefined property

Posted on 2017-06-23
0
Medium Priority
?
71 Views
Last Modified: 2017-07-31
I am trying to rotate an object and get the following error message: 1119:access of possibly undefined property Math through a reference with a static type class. Thank you for your help

 here is the code

import flash.events.MouseEvent;

stage.addEventListener(MouseEvent.MOUSE_MOVE, FollowMouse);
function FollowMouse(event:MouseEvent):void
{
      var SideY:Number = mouseY-circle.Y;
      var SideX:Number = mouseY-circle.X;
      
      var Rad:Number = Math.atan2(SideY,SideX);
      
      var Deg:Number = Rad * 180/Math.PI;
      
      circle.rotation = Deg;
}
0
Comment
Question by:code dreamer
0 Comments

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Join & Write a Comment

This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
Have you ever thought of installing a power system that generates solar electricity to power your house? Some may say yes, while others may tell me no. But have you noticed that people around you are now considering installing such systems in their …
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question