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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:26:35+00:00 2026-05-31T15:26:35+00:00

I have defined a class as package telmate.com.audioB.volume { import flash.display.MovieClip; public class Volume_Bar

  • 0

I have defined a class as

package telmate.com.audioB.volume {
import flash.display.MovieClip;

public class Volume_Bar extends MovieClip {
    public static const BAR_WIDTH = 20;

    public function Volume_Bar(op: Number, vol: Number) {
        alpha = Util.clamp(op);
        volume = vol;
    }
    
    private _volume:Number;// do we even need to store this?
    
    public function set volume(v: Number){
        _volume = v;
        var f:uint = Util.clamp(v * totalFrames, 0, totalFrames - 1) + 1;
        gotoAndStop(f);
    }

}

}

and I am getting two errors: I am calling the constant BAR_WIDTH and instantiating it with parameters – new Volume_Bar(op, vol) — and getting

/Users/dave/Documents/Audio/telmate/com/audioB/Audio_Bars.as, Line 152

1136: Incorrect number of arguments. Expected 0.

and

/Users/dave/Documents/Audio/telmate/com/audioB/Audio_Bars.as, Line 156

1119: Access of possibly undefined property BAR_WIDTH through a
reference with static type Class.

Why would this be?

  • 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-31T15:26:36+00:00Added an answer on May 31, 2026 at 3:26 pm

    Unfortunately, I don’t know how specific I can be here, but…

    That first error message indicates that when you’re calling a function, you’re passing arguments, but the function is not set up to handle arguments. Have you adjusted either the function itself, or the line of code that is calling it? (If you’re calling through an event listener, be sure to include an argument in the function to hold the referring event. See documentation.)

    What specifically is on Audio_bars.as, Line 152? That’s where the error is occurring.

    The second error seems to indicate that you haven’t declared a function/variable by the name of “BAR_WIDTH”. In reading your code, there doesn’t appear to be an error in the declaration. Thus, you may be having a weird issue I’ve had before.

    Hope that helps!

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

Sidebar

Related Questions

I have a EJB defined as this: package com.foo; @Stateless (mappedName=HelloWorld) public class HelloWorldBean
I have a class defined as public class viewGroups extends ListActivity Somewhere in the
I have defined in a xml config file: <bean id=bootstrap class=com.package.Bootstrap></bean> this works fine.
I have the following Java class defined in src/java package org.davisworld.trip; public class AirportHbm
I have defined the following class using COM to use the IGroupPolicyObject using C#.NET:
Let's say I have defined the following class: public abstract class Event { public
I have a class defined as: class Obj { public: int width, height; Obj(int
I have the following class: package lt.vic.valdos.domain.valda; public class Valda implements java.io.Serializable { private
I have defined a class A and derived a new class B from A
I have defined a class Listener and created a dictionary of Listener objects. Each

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.