This is driving me insane trying to figure this out because I know it's simple.

I have the following code in the last frame of a movie clip on the timeline. When the framehead hits the last frame of the mc, i want to go back to the frame "photoIntro" on the main timeline.

addEventListener(Event.ENTER_FRAME, goBackToTimeline);

function goBackToTimeline(event:Event):void
{
Object(this.parent).gotoAndStop("photoIntro");
}

The output error I keep getting is:

TypeError: Error #1006: gotoAndStop is not a function.
at PandU_EmergingIssuesKiosk_v1c_fla::logoAnimationMO V_1/goBackToTimeline().

Help? Thanks.