getting error TypeError: Error #1009: Cannot access a property or method of a null object reference
getting error TypeError: Error #1009: Cannot access a property or method of a null object reference I'm trying to call a function on two buttons nav1or2.navi1.navBtn1.addEventListener(MouseEvent.CLICK, goSmall); nav4.navi4.navBtn4.addEventListener(MouseEvent.CLICK, goSmall); function goSmall(event:MouseEvent):void { gotoAndPlay(41); } the second button nav4.navi4.navBtn4.addEventListener(MouseEvent.CLICK, goSmall); is not working and i m getting this TypeError: nav4.navi4.navBtn4.addEventListener(MouseEvent.CLICK, goSmall); Error #1009: Cannot access a property or method of a null object reference. please help. Can you show some more of your code? Is nav4.navi4.navBtn4 on the displaylist when you try to add the listener? – putvande Aug 9 '13 at 13:57 nav4.navi4.navBtn4 this is the code only, of if nee...
