# Preload to main page php...from flash

**URL:** <https://forum.kirupa.com/t/preload-to-main-page-php-from-flash/61628>\
**Category:** Uncategorized\
**Created:** [August 20, 2004, 3:49am UTC](https://forum.kirupa.com/t/preload-to-main-page-php-from-flash/61628 "2004-08-20T03:49:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pixeldude](https://avatars.discourse-cdn.com/v4/letter/p/57b2e6/32.png) [@pixeldude](https://forum.kirupa.com/u/pixeldude)\
**Post date:** [August 20, 2004, 3:49am UTC](https://forum.kirupa.com/t/preload-to-main-page-php-from-flash/61628/1 "2004-08-20T03:49:13Z")

</div>

Ello …i just stuck up in the code below…hope someone can clear up for me…i just want to connect to php main page from flash let’s say after the status show 100% loading i want to connectto php mainpage…is it possible?then i come up with this code below…but it’s seem when it connect to page…it keep open new window…for same page…so how i gonna stop this…i just want connect the page once only…

```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.getURL("www.blablabla.com/main.php", "_self");
	}

```

any help would be greatful…
