# Making class problems

**URL:** <https://forum.kirupa.com/t/making-class-problems/231216>\
**Category:** Uncategorized\
**Created:** [July 2, 2007, 11:53pm UTC](https://forum.kirupa.com/t/making-class-problems/231216 "2007-07-02T23:53:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dfm\_](https://avatars.discourse-cdn.com/v4/letter/d/3da27b/32.png) [@dfm\_](https://forum.kirupa.com/u/dfm_)\
**Post date:** [July 2, 2007, 11:53pm UTC](https://forum.kirupa.com/t/making-class-problems/231216/1 "2007-07-02T23:53:43Z")

</div>

Hi, lately have a lot of questions  
so this is next

I’m making my class  
Here is the code  
[AS]  
package zPlayerClasses{  
public class vid {  
public static var vidHeight:Number;  
public static var vidWidth:Number;  
public static var vidDuration:Number;

```
    public function vid(Void):void {
        trace("vid class instance");
    }
    public function traceVars(Void):void {
        trace("video duration: " + vidDuration);
        trace("video width: " + vidWidth);
        trace("video height: " + vidHeight);
    }
}

```

}  
[/AS]

But have problem, so I trying to start function \*\*traceVars(); \*\*but no success so far.

A trying to create an instance of class **vid** ,but got error  
[AS]  
var myTest:zPlayerClasses.vid = new zPlayerClasses.vid();  
[/AS]

error:  
1136: Incorrect number of arguments.

and even zPlayerClasses.vid.traceVars(); get error message

error:  
1061: Call to a possibly undefined method traceVars through a reference with static type Class.

what to do… share some tips
