Classes causing components to not work?


I’ve made a custom class as a test, but when I instantiate it, it causes all the components in my movie to disappear.

Here is the class:

class Style
var id:Number
function Style(id:Number)

and when I instantiate it

var newStyle:Style = new Style(1);

It causes the components to disappear. Any idea of what could be causing this?