1119;access of posibly undefined property

Posted on 2017-06-23
Medium Priority
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;
Question by:code dreamer

Featured Post

Build your data science skills into a career

Are you ready to take your data science career to the next step, or break into data science? With Springboard’s Data Science Career Track, you’ll master data science topics, have personalized career guidance, weekly calls with a data science expert, and a job guarantee.

Join & Write a Comment

I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
We are taking giant steps in technological advances in the field of wireless telephony. At just 10 years since the advent of smartphones, it is crucial to examine the benefits and disadvantages that have been report to us.
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 select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

586 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