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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:54:37+00:00 2026-05-27T10:54:37+00:00

Background: I have a project where i need to create multiple objects that consume

  • 0

Background:

I have a project where i need to create multiple objects that consume the same base calss from an external .as file.

each of the individual fla files that consume the base class need to pass a variable to the base class so the class can return information specific to the fla.

My question is,

if i have an external class path set up, how do i get a variable on the first frame of the movie to be visible to the base class && how do i call upon its value from within the class.

Thanks for all your 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-05-27T10:54:38+00:00Added an answer on May 27, 2026 at 10:54 am

    All stage instances that are on the stage in Frame 1 are accessible to the main document Class in the constructor.

    So:

    package {
       public class YourChildClass extends MovieClip {
          protected var _something:String;
          public function get something():String {
             return _something;
          }
          public function set something(value:String): void {
             _something=value;
             //do something with the value, like setting a text field's text
          }
       }
    }
    
    package {
       public class MainDocument extends MovieClip {
          public var child1:YourChildClass;
          public var child2:YourChildClass;
          public var child3:YourChildClass;
          public function MainDocument() {
             child1.something='hello';
             child2.something='world';
             child3.something='!';
          }
       }
    }
    

    For more information, see http://www.developria.com/2010/04/combining-the-timeline-with-oo.html

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

Sidebar

Related Questions

Background : I have a asp.net webapplication project that should contain a public and
Background: we have an application that generates reports from HTML (that may or may
I have a project in Python 2.7 and PyGTK. I need to create a
I have a script, that I need to run after committing to a project
I have been working on a project that dynamically creates a javascript file using
As a college project I need to implement a basic file system from within
background:Me and my coworkers are working on asp.net mvc project ... we have a
Background I have been asked by a client to create a picture of the
Background: I have a kubuntu laptop right now that I can't use wirelessly, i.e.
I'm working on a project and I need to create an API. I am

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.