Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8634393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:42:48+00:00 2026-06-12T09:42:48+00:00

A few days back I created a simple point and click game and the

  • 0

A few days back I created a simple point and click game and the following error occurred

1180: Call to a possibly undefined method DisplayObject.

This is my code:

poster.addEventListener(MouseEvent.MOUSE_DOWN, clickposter);
stop();
function clickposter (event:MouseEvent):void
{
    removeChild(DisplayObject(event.target));
}

Now the weird thing is, this code worked fine at first but as soon as I added a document class to my project it stopped working and gave me the 1180 error.

My document class is nearly empty:

package 
{
    import flash.display.MovieClip;
    public class Main extends MovieClip
    {
        public function Main()  
        {
        }
    }
}   

I have searched around a bit but wasn’t able to solve this error.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T09:42:49+00:00Added an answer on June 12, 2026 at 9:42 am

    Importing DisplayObject into your document class will fix this:

    import flash.display.DisplayObject;
    

    I’m afraid I don’t know exactly what causes the issue as the code for the poster object is separate to the document class code (I assume), sorry it’s not the most informative answer but it’ll get your code working at least.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Few days back I put a question regarding mapping two classes Message and MessageStatusHistory
A few days back, while the built-in server (Tomcat v5.5) in eclipse was running,
I came across a competitor product to VisualSVN a few days back. It provides
Few days back i suddenly came up with getting empty result, I was surprised
A few days back I felt this question to be dumb and dint post
I've created a Back Up Database Task for a few selected databases in my
Few days back i upgrade to 10.6 and have to install everything from start.
A few days back, while writing an answer for this question here on overflow
Few days back, I posted a question about getting student marks results from database
I started to learn OO a few days back, I'm quite OK with procedural

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.