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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T00:30:49+00:00 2026-06-06T00:30:49+00:00

So i have two Class’s Class A and Class B . I have a

  • 0

So i have two Class’s Class A and Class B.

I have a function that i wish to use on Class A but my flash fla file is linked to Class B

So I have done the following:

Class A – the function

    public function Fb_Checks()
    {
        // constructor code
        load_top_bar();
    }

Class B – import

import ClassA;

then if i try to call the function in Class A from Class B:

Fb_Checks();

I get the following error:

Call to a possibly undefined method Fb_Checks.

Is there something more i should be doing to get this to work?

  • 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-06T00:30:51+00:00Added an answer on June 6, 2026 at 12:30 am

    You need to get more info about the OOP. How it is working then it will be easier to understand concepts.

    For now simple explanation: We have ClassA, ClassB and ClassC:

    ClassA
    {
        var value:ClassB;
    
        public function ClassA ()
        {
            // each variable needs to initialize unless it is the ClassC, see below
            // Only after that you will be able to reach the public properties
            // of the class.
            value = new ClassB();
            value.calculate();
        }
    }
    
    ClassB
    {
        var value:Number;
    
        public function ClassB ()
        {
    
        }
    
        public function calculate():void
        {
            // these must be statis
            ClassC.sum(150, 450);
        }
    }
    
    ClassC
    {
        // if the function is static, then you can call it without initializing
        // the class
        static public function sum(value1:Number, value2:Number):Number
        {
            return value1 + value2;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following two class: //file FruitTree.h @interface FruitTree : NSObject { Fruit
trying to have two class that reference each others, in the same file. What
I'm going to have two class functions. The first class function opens the file.
I have two class that are linked on foreign.weirdkey => substr(self.key, 1, 9) ...and
I have two class, one is an activity that can handle Chronometer, another is
we have two class A & B: class A{ var $settings; function getinfo(){ $settings['domain']=mydomain;
I have two class (AppDelegate and WebViewController) with two nib file: one is the
I have two classes : class A { public function load() { $var =
I have two Java class hierarchies that share a common ancestor and implement a
I have two class that inherit the same abstract base class: class base {

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.