# Tutorial question

**URL:** <https://forum.kirupa.com/t/tutorial-question/32435>\
**Category:** flash\
**Created:** [October 6, 2003, 9:26pm UTC](https://forum.kirupa.com/t/tutorial-question/32435 "2003-10-06T21:26:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![myko](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@myko](https://forum.kirupa.com/u/myko)\
**Post date:** [October 6, 2003, 9:26pm UTC](https://forum.kirupa.com/t/tutorial-question/32435/1 "2003-10-06T21:26:08Z")

</div>

Hi,

I’m having some difficulty understanding the “preloader and transition for dynamic files” tutorial. What I am trying to do is load an external swf file into the main movie while having a loading animation display within the main movie during the external swf load.

The tutorial I am referring to looks quite easy to learn but what I don’t understand is this code :

onClipEvent (enterFrame) {  
if (!loaded && this.\_url != \_root.\_url) {  
if (this.getBytesLoaded() == this.getBytesTotal()) {  
loaded = true;  
\_root.transition.gotoAndPlay(“opening”);  
}  
}  
}

How does that action know to call the profile.swf file?
