# Help with Classes

**URL:** <https://forum.kirupa.com/t/help-with-classes/325403>\
**Category:** flash\
**Created:** [October 13, 2011, 1:14pm UTC](https://forum.kirupa.com/t/help-with-classes/325403 "2011-10-13T13:14:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeancnicolas](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)\
**Post date:** [October 13, 2011, 1:14pm UTC](https://forum.kirupa.com/t/help-with-classes/325403/1 "2011-10-13T13:14:05Z")

</div>

Hiya Im trying to make a video class so I can put in my src and video dimensions to load up a video …  
I am wishing to implement this in the following way

```auto
import MyClass;
MyClass.makeVideo("myMovie.mov",400,300);

```

so with loads of syntax issues involving static functions dynamic classes - what the heck - im lost. I assumed the following would work \>\>\>\>

```auto
package{
public class MyClass extends MovieClip {
  public var source:String;
  public var width:uint;
  public var height:uint;
  public function MyClass():void
  {
    // nothing to init yet
  }
  public function makeVideo(url:String,w:uint,h:uint)
  {
    source = url;
    width = w;
    height = h;
    // go the vars do the vid stuff - etc etc
    addChild(vid);
  }
} // urmmm too many errors

```

Any class help out there?!
