# Access of undefined property

**URL:** <https://forum.kirupa.com/t/access-of-undefined-property/260015>\
**Category:** flash\
**Created:** [May 11, 2008, 5:40pm UTC](https://forum.kirupa.com/t/access-of-undefined-property/260015 "2008-05-11T17:40:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![myCatMishka](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@myCatMishka](https://forum.kirupa.com/u/myCatMishka)\
**Post date:** [May 11, 2008, 5:40pm UTC](https://forum.kirupa.com/t/access-of-undefined-property/260015/1 "2008-05-11T17:40:21Z")

</div>

1120: Access of undefined property mySnd.

I have simplified the code to post here, the issue is I keep getting the 1120 error, yesterday it worked like it should, today it throws the error. I just don’t get it, it has happened more then once.

```auto

package {
    
    import flash.media.*;
    import flash.events.*;
    

    public class MyClassXYZ extends MovieClip {

        var mySnd:Sound = new Sound();
             mySnd.load(new URLRequest("xyz.mp3"));
             mySnd.addEventListener(Event.COMPLETE, mySndLoader, false, 0, true);
        function mySndLoader(e:Event):void {mySnd.play();}
    }
}

```

Any suggestions or info would be appreciated, I am sure I will figure it out, next time I open Flash.

Thanks  
MCM
