# Targeting the main timeline from loaded swf

**URL:** <https://forum.kirupa.com/t/targeting-the-main-timeline-from-loaded-swf/247678>\
**Category:** Uncategorized\
**Created:** [December 28, 2007, 1:30am UTC](https://forum.kirupa.com/t/targeting-the-main-timeline-from-loaded-swf/247678 "2007-12-28T01:30:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stephanief](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@stephanief](https://forum.kirupa.com/u/stephanief)\
**Post date:** [December 28, 2007, 1:30am UTC](https://forum.kirupa.com/t/targeting-the-main-timeline-from-loaded-swf/247678/1 "2007-12-28T01:30:56Z")

</div>

Hi everyone

well I have an swf that loads an external swf with this code:  
loadMovie(“Portfolio\_1.swf”,0); [so far so good!]

but now from inside Portfolio\_1.swf I want to go back to the main  
timeline to “Scene2, porfolio” (name of scene,frame)  
…so I used this code on in a frame targeting the back button in Portfolio\_1.swf coz I  
thought it would take me to the main movie on frame “portfolio”

code:  
Code:  
back\_btn.onRelease=function() {

```
_parent.gotoAndStop("Scene 2", "portfolio");

} 

```

PLEASE HELP…!! Thanks
