# Help me debug this.. what this means?

**URL:** <https://forum.kirupa.com/t/help-me-debug-this-what-this-means/232116>\
**Category:** Uncategorized\
**Created:** [July 11, 2007, 10:49am UTC](https://forum.kirupa.com/t/help-me-debug-this-what-this-means/232116 "2007-07-11T10:49:48Z")\
**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 11, 2007, 10:49am UTC](https://forum.kirupa.com/t/help-me-debug-this-what-this-means/232116/1 "2007-07-11T10:49:48Z")

</div>

hello,

so because to debug my error **Error #1009** make some class.  
So heir is the class  
[AS]package portfolioClasses{  
import flash.display.Stage;  
import flash.display.MovieClip;

```
public class order extends MovieClip {
    public function order():void {
        trace("order plz ");
        trace(stage.stageWidth);
    }
}

```

}  
[/AS]

In stage timeline write  
[AS]import portfolioClasses.order;  
stop();

new order();[/AS]

and linkage one MovieClip which is on stage.

Here is the output

> order plz  
> 800  
> order plz  
> TypeError: Error #1009: Cannot access a property or method of a null object reference.  
> at portfolioClasses::order$iinit()  
> at portfolio\_fla::MainTimeline/portfolio\_fla::frame2()

first message come from the movieclip I link, second is from my AS write in the timeline, why for linkage work and for timeline not??? What this means…
