# Controlling timelines across levels

**URL:** <https://forum.kirupa.com/t/controlling-timelines-across-levels/228438>\
**Category:** Uncategorized\
**Created:** [June 7, 2007, 7:19pm UTC](https://forum.kirupa.com/t/controlling-timelines-across-levels/228438 "2007-06-07T19:19:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bo\_doodle](https://avatars.discourse-cdn.com/v4/letter/b/ecae2f/32.png) [@bo\_doodle](https://forum.kirupa.com/u/bo_doodle)\
**Post date:** [June 7, 2007, 7:19pm UTC](https://forum.kirupa.com/t/controlling-timelines-across-levels/228438/1 "2007-06-07T19:19:40Z")

</div>

Hi please can anyone help with this, what i hope little problem.

I am building a site using levels, level2 is my navigation which will load a swf into level1.

what i am trying to do is get the movie in level1 to call an action on level2 once it has loaded, i though merely adding a \_level2.gotoAndPlay into the if statement on the loader would do this but i can’t make it work, i think perhaps i am not targetting correctly…

below is the code for the loader as it is at the moment.

```auto
myLoaded = Math.round(getBytesLoaded());
myTotal = Math.round(getBytesTotal());
myPercent = myLoaded/myTotal;
myBar._width = myPercent*560;
myText = Math.round(myPercent*100)+"%";
if (myLoaded == myTotal) {
    gotoAndStop("mindmap",1);
     _level2.gotoAndPlay(21)
} else {
    gotoAndPlay(1);
}

```

:cap:
