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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:01:17+00:00 2026-05-16T21:01:17+00:00

i found the error here what should i type in the constructor function between

  • 0

i found the error here what should i type in the constructor function between the braces
to call the function to the main time line
public function creation() {

that’s my code in the fla file

//var createClass:creation = new Circle( this ); 

the constructor

package  {
import flash.display.InteractiveObject;
import flash.text.TextField;
import flash.text.TextFormat;
import flash.display.MovieClip;


public class creation extends MovieClip {

    // global variables
            public function creation():void {
            // constructor code
            for (i= 0 ; i<= 4; i++)
    {       first1[i]= createCustomTextField(0,(i*100),75,45);
            op[i]= createCustomTextField(150,(i*100),75,45);
            second[i]= createCustomTextField(300,(i*100),75,45);
            res[i]= createCustomTextField(450,(i*100),75,45);
            if (operation_Count == 1)
        {
            op[i].text = "+";
        }   else if (operation_Count == 2)
        {   
            op[i].text = "-";
        }else if (operation_Count == 3)
        {   
            op[i].text = "*";
        }else if (operation_Count == 4)
        {   
            op[i].text = "/";
        }
            first1[i].text = String(k1[i]=Math.round(Math.random()*10));
            second[i].text = String(k2[i]=Math.round(Math.random()*10));
        }
 }
  • 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-16T21:01:18+00:00Added an answer on May 16, 2026 at 9:01 pm

    You call a class constructor when you create a new instance of the class. In your case , createClass() is not only wrong but it’s also redundant. The constructor has alsready been called.

    now, if you want to call a method of that class on a specific frame

    //calling the class constructor
    var myClass:MyClass = new MyClass();
    
    //calling a class method
    myClass.myMethod();
    

    ok, the error says that a method expects an argument, if it’s not your constructor, you will have to look elsewhere. to debug your app, go to the first function that’s called , check it, if ok, go to the second one etc… in your case , that would be createCustomTextField(). this can be a long process , so one of the ways is to simplify , break down your code in smaller parts and try to identify where it breaks

    You could try this for instance , if there’s an error , go to createCustomTextField and try something similar , namely split your function in smaller parts until you find the one that breaks…

    public function creation():void {
    
        first1[0]= createCustomTextField(0,(i*100),75,45);
    
     }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm basically wondering what is included in each error level, as found here in
I get a 404 HTTP status error (not found) on a specific WebResource.axd call
When a user comes across your site's 404 File Not Found error page, it
It is obviosly some Perl extensions. Perl version is 5.8.8. I found Error.pm, but
While running a batch file in Windows XP I have found randomly occurring error
I found this in an error log and am trying to work out how
I found the always stop on error (dbstop if error) to be very useful
I'm getting the error: wintypes.dcu not found several times a day in the Delphi
By looking at our DB's error log, we found that there was a constant
I have an error handling method in my ApplicationController: rescue_from ActiveRecord::RecordNotFound, :with => :not_found

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.