# Slide screen preloader

**URL:** <https://forum.kirupa.com/t/slide-screen-preloader/303977>\
**Category:** Uncategorized\
**Created:** [January 29, 2010, 11:06pm UTC](https://forum.kirupa.com/t/slide-screen-preloader/303977 "2010-01-29T23:06:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![allendupras](https://avatars.discourse-cdn.com/v4/letter/a/5e9695/32.png) [@allendupras](https://forum.kirupa.com/u/allendupras)\
**Post date:** [January 29, 2010, 11:06pm UTC](https://forum.kirupa.com/t/slide-screen-preloader/303977/1 "2010-01-29T23:06:37Z")

</div>

hello,

I have a seperate swf for my pre loader.  
It’s just a text layer and an actions layer with this in the first frame.  
(I am using the slide screen presentation template)

```auto
var l:Loader = new Loader();
l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS. loop);
l.contentLoaderInfo.addEventListener(Event.COMPLETE. done);
l.load(new URLRequest("Presentation1.swf"));

function loop(e:ProgressEvent):void
{
    var perc:Number = e.bytesLoaded / e.bytesTotal;
    percent.text = Math.ceil(perc*100).toString();

function done(e:Event):void
{
    removeChildAt(0);
    percent = null;
    addChild(l);
}

```

It gives me this error

> 1084: Syntax error: expecting rightbrace before end of program.

If you need more info let me know.  
And I really hope you can help
