Button inside MovieClip don't work...?!
Hello,
I\m traying to create AIR for Android app & I have 2 MovieClips in the main timeline the first in frame 35 and the second in frame 99 with the name of quary_mc. Inside the second movieclip there is a button with the name of sID_btn. When i addEventListener in frame 1 of the main timeline it display:
Error #1009: Cannot access a property or method of null object reference
This is the code:
quary_mc.sID_btn.addEventListener(MouseEvent.CLICK, displayData);
function displayData(evt:MouseEvent):void
{
trace("Hello");
}
Regards,