# Flash player error message

**URL:** <https://forum.kirupa.com/t/flash-player-error-message/305183>\
**Category:** flash\
**Created:** [February 20, 2010, 3:55pm UTC](https://forum.kirupa.com/t/flash-player-error-message/305183 "2010-02-20T15:55:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![promotiff](https://avatars.discourse-cdn.com/v4/letter/p/b5a626/32.png) [@promotiff](https://forum.kirupa.com/u/promotiff)\
**Post date:** [February 20, 2010, 3:55pm UTC](https://forum.kirupa.com/t/flash-player-error-message/305183/1 "2010-02-20T15:55:19Z")

</div>

I converted the Scrolling thumbnail panel tutorial at gotoAndLearn to AS3.  
Here is the code I used to create the scrolling thumbnail panel:  
//////////////////////////////////////////////////////////////////////////////

panel.addEventListener(MouseEvent.MOUSE\_OVER, panelOver);

function panelOver(event:MouseEvent):void  
{  
panel.removeEventListener(MouseEvent.MOUSE\_OVER, panelOver);  
panel.addEventListener(Event.ENTER\_FRAME, scrollPanel);

}

var b:Rectangle = stroke.getBounds(this);

function scrollPanel(event:Event):void

{  
if(mouseX \< b.left || mouseX \> b.right || mouseY \< b.top || mouseY \> b.bottom) {  
panel.removeEventListener(Event.ENTER\_FRAME, scrollPanel);  
panel.addEventListener(MouseEvent.MOUSE\_OVER, panelOver);  
}

if(panel.x \> 200) {  
panel.x = 200;  
}  
if(panel.x \< -450) {  
panel.x = -450;  
}  
var xdist = mouseX - 512;  
panel.x += -(xdist / 7);  
}

//////////////////////////////////////////////////////////////////////////////////////////////////////////

panel.addEventListener(MouseEvent.CLICK, btnClick);  
var btnName = “”;  
function btnClick(event:MouseEvent):void  
{  
btnName = event.target.name;  
gotoAndStop(btnName);  
}

Everything seems to be working fine but I get an  
(TypeError: Error #1009: Cannot access a property or method of a null object reference.at NewShow\_N03\_C\_fla::MainTimeline/scrollPanel()[NewShow\_N03\_C\_fla.MainTimeline::frame15:36])  
from the Player.  
Please help.
