I am working on an application that dynamically populates the program with assets from the library. I have a simple need to call a function from the root timeline. so in the AS layer of the Object I have the following
pr_01_01_pdf.addEventListener(MouseEvent.CLICK, sendPDF);
function sendPDF(event:MouseEvent):void {
root.openPDF(event.target.name);
}
I get the following error: 1061: Call to a possibly undefined method openPDF through a reference with static type flash.display:DisplayObject.
I have about 45 of these that go in the application and I basically need the hyperlink to call a function with the targeted name.