# Please Help!

**URL:** <https://forum.kirupa.com/t/please-help/315373>\
**Category:** Uncategorized\
**Created:** [October 24, 2010, 6:12pm UTC](https://forum.kirupa.com/t/please-help/315373 "2010-10-24T18:12:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mc\_cold](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mc\_cold](https://forum.kirupa.com/u/mc_cold)\
**Post date:** [October 24, 2010, 6:12pm UTC](https://forum.kirupa.com/t/please-help/315373/1 "2010-10-24T18:12:15Z")

</div>

import flash.events.MouseEvent;

btn1.addEventListener(MouseEvent.CLICK,pClick);

btn2.addEventListener(MouseEvent.CLICK,wClick);

function pClick(event:MouseEvent):void{  
gotoAndStop(“getVid1”);  
}

function wClick(event:MouseEvent):void{  
gotoAndStop(“getVid2”);  
}

this is how simple my flash movie is. but I get the following error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.

my video works fine in flash but when I try to put it on a page in dream weaver the buttons become useless and the video is lost.

I would really appreciate some advice with experience on this matter.  
Just started learning to use flash.
