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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T12:03:25+00:00 2026-05-12T12:03:25+00:00

With the display list in Actionscript 3.0, I’m often inclined to have children add

  • 0

With the display list in Actionscript 3.0, I’m often inclined to have children add themselves to their parent because they often already have that reference. That would look like:

_myParent.addChild(this);

or when removing…

this.parent.removeChild(this);

By the wording of the addChild() syntax, this way seems backwards — the name suggests the parent should be the only one calling that function.

  • Does anyone else do this?
  • Or does this seem backwards and confusing?
  • Perhaps I’m getting myself into situations I shouldn’t be in?

It seems like a violation of responsibilities because the parent should be the only one calling its own method and in charge of its own display list.

  • 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-05-12T12:03:25+00:00Added an answer on May 12, 2026 at 12:03 pm

    You’ll want to be cautious whenever a child refers to its parent. While it doesn’t break any rules associated with Object-Orientation, it does start to make your Composite structure more difficult to maintain and understand.

    The Display List in ActionScript 3.0 is designed to use method calls when interacting with children, and events (sometimes bubbling) whenever a child does something that may be interesting to a parent.

    This direction helps us keep children ignorant of their position in the hierarchy, and design them more like general purpose (reusable) components. In general, an ActionScript Display List moves from more to less specific as it moves from parent to child. For example, a CreditCardForm might contain a TextInput control.

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

Sidebar

Related Questions

On web page I display list of comments, I want to add an option
I have a WPF application with ListBox that display list of items. Each item
I have two activities. The first activity display list of the users with short
I have a table that contain follow logic. The table display list of names
I have geometry stored in a display list, but I'd like to be able
I have a list view in this activity First, i will display list view
let's say i have the following HTML page. <A panel to display list of
If I added some objects to the Display List via addChild(), how often does
I have a WinForms application which uses a list box to display list of
I have a display list for some cubes... very simple stuff. Here's a snippet:

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.