# Loading External SWFs

**URL:** <https://forum.kirupa.com/t/loading-external-swfs/187259>\
**Category:** Uncategorized\
**Created:** [April 27, 2006, 9:47pm UTC](https://forum.kirupa.com/t/loading-external-swfs/187259 "2006-04-27T21:47:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pep3799](https://avatars.discourse-cdn.com/v4/letter/p/71c47a/32.png) [@pep3799](https://forum.kirupa.com/u/pep3799)\
**Post date:** [April 27, 2006, 9:47pm UTC](https://forum.kirupa.com/t/loading-external-swfs/187259/1 "2006-04-27T21:47:45Z")

</div>

I’m doing the tutorial for “transitions between external SWFs”, but I’m having a problem because in the tutorial all of the buttons are on the main timeline, but in my site the buttons are on a different timeline. This is the actionscript that the tutorial tells me to use…

on (release) { if (\_root.currMovie == undefined) { \_root.currMovie = “work”; container.loadMovie(“work.swf”); } else if (\_root.currMovie != “work”) { if (container.\_currentframe \>= container.midframe) { \_root.currMovie = “work”; container.play(); } } }  
But that only works if your buttons are on the main timeline. How do I reference a different timeline? Any help would be greatly appreciated…Thanks!!!
