# Weird return to timeline bug

**URL:** <https://forum.kirupa.com/t/weird-return-to-timeline-bug/150259>\
**Category:** Uncategorized\
**Created:** [June 6, 2005, 10:58am UTC](https://forum.kirupa.com/t/weird-return-to-timeline-bug/150259 "2005-06-06T10:58:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Melanie\_Haycock](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@Melanie\_Haycock](https://forum.kirupa.com/u/Melanie_Haycock)\
**Post date:** [June 6, 2005, 10:58am UTC](https://forum.kirupa.com/t/weird-return-to-timeline-bug/150259/1 "2005-06-06T10:58:49Z")

</div>

I’m having a strange thing happen. I am loading external swf files into the main movie. At the beginning of each swf I have the code:

dialogue1 = new Sound(EMI01);  
dialogue1.loadSound(“MP3s/EMI01.mp3”, true);

And at the end I have:

dialogue1.onSoundComplete = function(){  
\_root.gotoAndPlay(“dialogue2”);  
}  
stop();

I have about 10 swfs - all with the exact same code. Now, my problem is that some of them are returning to the timeline as expected, and others are not. Any ideas? I am copying the same code for each so I don’t understand why some are working and some are not. On the main timeline I have several frame labels for each swf with this code attached:

```
if(this.mcContainer == Number(this.mcContainer)){
    loadMovieNum("dialogue1.swf",this.mcContainer);
} else {
    this.mcContainer.loadMovie("dialogue1.swf");
}

```

I am going a bit mental here trying to work this out - I really hope someone can help!
