# Preloader and Transition for Dynamic Files Tut Question

**URL:** <https://forum.kirupa.com/t/preloader-and-transition-for-dynamic-files-tut-question/253410>\
**Category:** flash\
**Created:** [February 29, 2008, 8:42pm UTC](https://forum.kirupa.com/t/preloader-and-transition-for-dynamic-files-tut-question/253410 "2008-02-29T20:42:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![almaline03](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@almaline03](https://forum.kirupa.com/u/almaline03)\
**Post date:** [February 29, 2008, 8:42pm UTC](https://forum.kirupa.com/t/preloader-and-transition-for-dynamic-files-tut-question/253410/1 "2008-02-29T20:42:35Z")

</div>

Ok I have used this tutorial for creating a preloader and trasitions for my external swfs:  
[http://www.kirupa.com/developer/mx/preloader\_transition.htm](http://www.kirupa.com/developer/mx/preloader_transition.htm)

It worked great but I want to add multiple transitions. I added another transition to the timeline inside the transition mc. The closing transition works great but the opening referes back to the opening of the first transition(Frame Label-“opening”). I need it to refer to its own opening transition(Frame Label-“opening2”).

I know why this is happening but I have know idea how to fix it.

On the empty mc that bring in the tranisiton on the main timeline there is this actionscript:

```auto
onClipEvent (enterFrame) {
	if (!loaded && this._url != _root._url) {
		if (this.getBytesLoaded() == this.getBytesTotal()) {
			loaded = true;
			_root.transition.gotoAndPlay("opening");
		}
	}
}

```

That is where it keeps refereing it back to the original “opening” transition. Is it possible to create some sort of if/else statement that will say if its on “closing2” transition then gotoAndplay “opening2”?

Please help???
