# Load next flash file as next page

**URL:** <https://forum.kirupa.com/t/load-next-flash-file-as-next-page/240362>\
**Category:** Uncategorized\
**Created:** [October 2, 2007, 11:44am UTC](https://forum.kirupa.com/t/load-next-flash-file-as-next-page/240362 "2007-10-02T11:44:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kubana](https://avatars.discourse-cdn.com/v4/letter/k/d2c977/32.png) [@kubana](https://forum.kirupa.com/u/kubana)\
**Post date:** [October 2, 2007, 11:44am UTC](https://forum.kirupa.com/t/load-next-flash-file-as-next-page/240362/1 "2007-10-02T11:44:46Z")

</div>

Hi everybody!  
I am first timer and I am amaized how good this website is. So much good tips and help.  
I am stuck with one thing. I did preloader page as in tutorial on kirupa. there are three frames the first one is:

```auto
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent*100;
this.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
	this.gotoAndPlay(3);
}

```

Than the second:

```auto
this.gotoAndPlay(1);

```

and third frame i put action:

```auto
loadClip.onEnterFrame("firstpage.swf");

```

My next page I want to load is firstpage.html in the same folder. Should I load swf or html and is this code right?  
Please help!

Thanks
