# Is there a way to do this..?

**URL:** <https://forum.kirupa.com/t/is-there-a-way-to-do-this/87241>\
**Category:** flash\
**Created:** [April 19, 2005, 2:13pm UTC](https://forum.kirupa.com/t/is-there-a-way-to-do-this/87241 "2005-04-19T14:13:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![2005](https://avatars.discourse-cdn.com/v4/letter/2/e480ec/32.png) [@2005](https://forum.kirupa.com/u/2005)\
**Post date:** [April 19, 2005, 2:13pm UTC](https://forum.kirupa.com/t/is-there-a-way-to-do-this/87241/1 "2005-04-19T14:13:20Z")

</div>

Hello everyone

I´m loading html content like my ownforum,own chatroom weblog etc scripted with cgi-php into my flash site as they´re called by different buttons, I have some AS around just like this:  
_buttom event (not on the main timeline)_

```auto
on (release) { 
address = "[http://www.mysite/cgi-bin/webchat.php.cgi?nopopup=1](http://www.mysite/cgi-bin/webchat.php.cgi?nopopup=1)"; 
target_winName = "chatroom"; 
width = 650; 
height = 420; 
toolbar = 0; 
location = 0; 
directories = 0; 
status = 0; 
menubar = 0; 
scrollbars = 1; 
resizable = 0; 
openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable); 
} 

```

_ActionFrame(not on the main timeline)_

```auto
this.openWinCentre = function (url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) { 
getURL ("javascript:var myWin; if(!myWin || myWin.closed){myWin = window.open('" + url + "','" + winName + "','" + "width=" + w + ",height=" + h + ",toolbar=" + toolbar + ",location=" + location + ",directories=" + directories + ",status=" + status + ",menubar=" + menubar + ",scrollbars=" + scrollbars + ",resizable=" + resizable + ",top='+((screen.height/2)-(" + h/2 + "))+',left='+((screen.width/2)-(" + w/2 + "))+'" + "')}else{myWin.focus();};void(0);"); 
} 

```

Ok ok, it works fine actually but my questions is: is it possible to pre/load these external html content? I ´d like to get this content using my generic preloader, yes the same one that preloads all my external swf´s into a Container MC

any sujestions and help are welcome:cool:

Thx in advance
