# Attaching Sound from Library

**URL:** <https://forum.kirupa.com/t/attaching-sound-from-library/300288>\
**Category:** flash\
**Created:** [November 18, 2009, 7:45pm UTC](https://forum.kirupa.com/t/attaching-sound-from-library/300288 "2009-11-18T19:45:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![melody\_doering](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@melody\_doering](https://forum.kirupa.com/u/melody_doering)\
**Post date:** [November 18, 2009, 7:45pm UTC](https://forum.kirupa.com/t/attaching-sound-from-library/300288/1 "2009-11-18T19:45:10Z")

</div>

I am creating a program to play sounds from the library when a button is CTRL + CLICK. I have no problem if I play either of the two sounds on the first frame and then move to other sounds. However, if I navigate past the first sound buttons and try to play later sounds, I get:  
TypeError: Error #1009: Cannot access a property or method of a null object reference.  
at soundFile\_fla::MainTimeline/playSound11()

How can I fix this? Thanks.
