Calling a function in a parent SWF from a loaded SWF

I’m trying to figure out how to call a function from a loaded SWF. The function is in an AS file that gets called from my main SWF (my main SWF runs on an AS file containing all the code, but the external SWF does not, it is timeline based).

In my external SWF that is loaded, I use this piece of code to access a function but it’s not working.

if(this.parent.parent != null){
    var parentObj:Object = parent.parent.parent as Object;
}

skip_btn.addEventListener(MouseEvent.CLICK, nextSection);

function nextSection(e:MouseEvent):void{
    parentObj.callLine();
    parentObj.whereTo = "photoDemo";
}

I used 3 parents because this piece of code is inside a movieclip on the loaded swf’s timeline. I know usually it’s 2 parent references.

What am I doing wrong? Why am I getting a 1006: callLine function not found error?