# Image Gallery Null Object Error

**URL:** <https://forum.kirupa.com/t/image-gallery-null-object-error/291528>\
**Category:** flash\
**Created:** [July 1, 2009, 1:04am UTC](https://forum.kirupa.com/t/image-gallery-null-object-error/291528 "2009-07-01T01:04:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![turk121](https://avatars.discourse-cdn.com/v4/letter/t/58f4c7/32.png) [@turk121](https://forum.kirupa.com/u/turk121)\
**Post date:** [July 1, 2009, 1:04am UTC](https://forum.kirupa.com/t/image-gallery-null-object-error/291528/1 "2009-07-01T01:04:06Z")

</div>

I have a page containing multiple image galleries and thumbnail scrollers pulling in from external XMLs. The first scene containing gallery 1 loads the thumb and full size image perfectly.

We I navigate to the second scene containing a new instance of my scrollpanel and container movie clip for my full size image I this error: Error #1009: Cannot access a property or method of a null object reference.  
at index\_fla::MainTimeline/index\_fla::frame6()

I am wondering if I have to remove an event listener from the previous frame. Everything on the stage has an instance name and I am calling all new variable son the second frame.

Any suggestions or tips would be supremely appreciated. I’m tearing my hair out on this one as I’m sure I am missing something simple.

Thanks
