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 9226199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:46:19+00:00 2026-06-18T04:46:19+00:00

I have four classes: document , topPanel , listPanel and detailsPanel . In this

  • 0

I have four classes: document, topPanel, listPanel and detailsPanel. In this particular example the topPanel checks when to advanceDay (a function in document). When advanceDay is activated document tells topPanel to calculateDate, listPanel to sortList and detailsPanel to refreshDetails. calculateDate then works out the date and tries to update a dynamic text field but can’t find it’s instance. Similar problems occur in regards to sortList and refreshDetails.

topPanel:

function advanceLoop(a:Event)
{
    loopCounter +=  simSpeed;
    if ((loopCounter >= 24))
    {
        loopCounter = 0;
        document.advanceDay();
    }
}

public static function calculateDate()
{
    ... // sets moonCounter and yearCounter using day
    date.text = document.prettyNumbers[moonCounter] + " moon of the year " + yearCounter + " B.C.";
}

document:

public static var prettyNumbers:Array = ["Zeroth","First","Second","Third","Fourth","Fifth","Sixth","Seventh","Eighth","Ninth","Tenth","Eleventh","Twelfth","Thirteenth","Fourteenth"];

...

public static function advanceDay()
{
    topPanel.day++;
    topPanel.calculateDate();           
    listPanel.sortList();
    detailsPanel.refreshDetails();
}

The error returned:

Line 278 1120: Access of undefined property date.

date is the name of an instance (dynamic text field) within topPanel. The calculateDate function works perfectly when the advanceDay function is in the topPanel class and the “public static” bit is removed. Thanks for reading and I hope you can help!

  • 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-18T04:46:21+00:00Added an answer on June 18, 2026 at 4:46 am

    The functions marked static can only access properties which are static themselves. ‘date’, I believe, isn’t a static member variable which is why the compiler is saying it can’t find a ‘date’ with necessary ‘static’ qualifier’

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

Sidebar

Related Questions

This is Java, using BlueJ. I have four classes called Person, Letter, Address and
I have this scenario I have four classes User profiles Activity Workbook user can
I have four classes which share some arrangement of four properties. I have currently
I have four classes, let's call S1, S2, S3 and S4. These class are
I have got four classes A , B , C and D . Class
I have four view controller classes A, B, C, D. Class D is pushed
I have the following four classes: DataConsumer, DataProducer, SomeQualifier, a META-INF/beans.xml and a test.
I have four classes. Class Person , and three more, Student , Professor ,
Say I have four sub-classes of 'Car'. One for each color. I want to
I have four classes. Request, DerivedRequest, Handler, DerivedHandler. The Handler class has a property

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.