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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:27:25+00:00 2026-05-31T04:27:25+00:00

I have been trying to develop a CustomButton class that extends MovieClip, however I

  • 0

I have been trying to develop a CustomButton class that extends MovieClip, however I am having problems. I have got this error:

ArgumentError: Error #1063: Argument count mismatch on
mkh.custombutton::CustomButton(). Expected 2, got 0. at
flash.display::Sprite/constructChildren() at flash.display::Sprite()
at flash.display::MovieClip()

I’ve tried to debug my code, but it says

“Cannot display source code at this location.”

I am not sure where is the problem, but I suppose it’s in the constructor:

public function CustomButton( buttonlabel:String, animationAR:Array,     active:Boolean=true, animated:Boolean = false, type:String = "free", group:int = 0 )

I would be very grateful if anyone helped me. Thank you.

EDIT2: I think I know why it’s not appearing, so nevermind.

  • 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-31T04:27:27+00:00Added an answer on May 31, 2026 at 4:27 am

    I think I know what the problem is, now I hope I can explain to you clearly enough (English is not my first language). Did you by any chance make a graphic MovieClip in the Flash program and linked it to your CustomButton class? If so, be careful with the instances you might have on the stage, because when Flash creates the Sprites/Movieclips objects that are on the stage it calls their constructor without any parameters.

    To avoid this, either:

    • Set default values for all parameters in your CustomButtonClass (EDIT: which would solve your problem, but is not very good practice)

    • Use addChild to put instances of your Button onto the stage (I recommend this one)

    Hope this helps!

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

Sidebar

Related Questions

I have been trying to develop a peer to peer application that uses Micosoft's
I have been trying to get around this error for a day now and
I have been trying to develop an app that will deal with content providers
I have been trying to develop an app for my ipad which i can
I have been trying to develop a Java ME application using WTK 2.5.2 (Java
I have been trying to follow the instructions in the answer to this question
I have been trying to develop an application in a landscape mode so I
I've been trying to develop a linq query that returns the ItemNumber column of
int duplicate (int cards[5][4][13]) I have been trying to develop a function (the prototype
I have been trying to make sense of some claims that Appcelerator Titanium makes.

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.