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

  • Home
  • SEARCH
  • 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 8430989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:44:06+00:00 2026-06-10T05:44:06+00:00

I was programming something and when I thought everything was nice and good, Flash

  • 0

I was programming something and when I thought everything was nice and good, Flash throws an error to me!?

At first I was dumbstruck. Then after checking my code, I couldn’t see the culprit. So what I did was ‘simple it down’, and changed it to just a trace statement.

I was still however getting the error. I don’t know what is wrong.

   package  {

     import flash.display.MovieClip;
     import src.data.DActors;

     public class DocumentClass extends MovieClip {

        public var dActors:DActors = new DActors;

        public function DocumentClass() {
        trace (dActors);
        trace ("Main");
        }

    }

}

This is the DActors Class:

package src.data 
{
  public class DActors
   {
       public var me:int = 1;

      public function DActors();
       {    
          trace(me);
       }

  }

}

Some scope I’m not aware of or something?

Oh, and by the way, it throws that ”me’ is not defined’!?

EDIT: Actually, I failed to realize the real problem, why the hell is my constructor not accepting variables!

 package src.data 
 {
public class DActors
{
    public var actors:Array = new Array();
    public var dActor:DActor = new DActor();

    public function DActors();
    {   
        actors.push(dActor);
    }

}

}

outputs:

1120: Access of undefined property actors.

1120: Access of undefined property dActor.

???? This worries me greatly. Either my eyes are fooling me or I’m missing something very basic.

  • 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-10T05:44:07+00:00Added an answer on June 10, 2026 at 5:44 am
    public function DActors();
    

    Constructor function will not end with ;(semicolon).

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

Sidebar

Related Questions

I am new at C programming. I thought when you type something like #define
I am programming some 'openvpn-like' thing and thought it would be a good candidate
I thought I was good at this programming thing, until I hit this devil
I'm coding something I thought was simple for my programming class but I'm a
I am programming something like e-mail for my users. I want to allow people
I'd like to start messing around programming and building something with an Arduino board,
Ever since I started programming this has been something I have been curious about.
Programming for my Arduino (in some kind of mix of C/C++), I noticed something
I am new to C++ programming and am obviously missing something. In the following
I'm trying to pick up Lua programming but I'm stuck on something that's probably

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.