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.
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