# New to flash...pls help!

**URL:** <https://forum.kirupa.com/t/new-to-flash-pls-help/285337>\
**Category:** Uncategorized\
**Created:** [March 30, 2009, 6:16pm UTC](https://forum.kirupa.com/t/new-to-flash-pls-help/285337 "2009-03-30T18:16:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![twistednbroken](https://avatars.discourse-cdn.com/v4/letter/t/3e96dc/32.png) [@twistednbroken](https://forum.kirupa.com/u/twistednbroken)\
**Post date:** [March 30, 2009, 6:16pm UTC](https://forum.kirupa.com/t/new-to-flash-pls-help/285337/1 "2009-03-30T18:16:40Z")

</div>

I’m working on an audio slide show presentation with multiple scenes. I’ve created buttons and I’m trying to write the action script to make each button go to it’s cooresponding scene. I keep getting the following error message, which prevent my movie from playing:

TypeError: Error #1009: Cannot access a property or method of a null object reference.  
at flowershowflash\_fla::MainTimeline/frame1()

Here is the code in my actions, which are on frame one, scene one:

flower1\_btn.addEventListener(MouseEvent.CLICK, scene2);  
flower2\_btn.addEventListener(MouseEvent.CLICK, scene3);  
flower3\_btn.addEventListener(MouseEvent.CLICK, scene4);  
flower4\_btn.addEventListener(MouseEvent.CLICK, scene5);  
flower5\_btn.addEventListener(MouseEvent.CLICK, scene6);

function scene2(Event)  
{  
gotoAndPlay(1, “Scene 2”);  
}

function scene3(Event)  
{  
gotoAndPlay(1, “Scene 3”);  
}

function scene4(Event)  
{  
gotoAndPlay(1, “Scene 4”);  
}

function scene5(Event)  
{  
gotoAndPlay(1, “Scene 5”);  
}

function scene6(Event)  
{  
gotoAndPlay(1, “Scene 6”);

Any help would be greatly greatly appreciated.
