# Preloader for loading the main scene

**URL:** <https://forum.kirupa.com/t/preloader-for-loading-the-main-scene/255760>\
**Category:** Uncategorized\
**Created:** [March 26, 2008, 5:45pm UTC](https://forum.kirupa.com/t/preloader-for-loading-the-main-scene/255760 "2008-03-26T17:45:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![christinelalala](https://avatars.discourse-cdn.com/v4/letter/c/90ced4/32.png) [@christinelalala](https://forum.kirupa.com/u/christinelalala)\
**Post date:** [March 26, 2008, 5:45pm UTC](https://forum.kirupa.com/t/preloader-for-loading-the-main-scene/255760/1 "2008-03-26T17:45:26Z")

</div>

Hi everyone,

I have a question regarding to the preloader for loading the main scene using AS3,  
I already searched on the internet but I couldn’t find the information I need.

I have a scene that is already done, and there’re interactions in it. This scene is  
linked to a document class main.as. Now I want to have a preloader for this whole scene.

I tried to make a new file and load the swf externally, but the interactions won’t work that  
way. Then I tried to put some code I found on the internet in the main.as, still there’s error  
saying that  
1061: Call to a possibly undefined method gotoAndStop through a reference with static type flash.display:DisplayObject

What it the best way of doing this?  
Thank you.
