all groups > flash actionscript > july 2004 >
You're in the

flash actionscript

group:

New Window No Toolbars!!!


New Window No Toolbars!!! DisasterCompleX
7/18/2004 10:36:54 PM
flash actionscript:
I am trying to make it so when my loading page finishes loading that a new
window opens lets say http://www.disastercomplex.com/home.htm at the size and
placement i want it to. I also want this page to have no toolbars or address
bar and be Unresizable. Can i do this with actionscript?

Here's the actionscript i'm using

Code:

onClipEvent (load) {
_root.pBar.setMaximum(_root._totalframes);
}
onClipEvent (enterFrame) {
_root.pBar.setValue(_root._currentframe);
}
onClipEvent (load) {
function completed() {
_root.functionCompleteTextBox.text = "Done";
stop();
getURL("http://www.disastercomplex.com/home.htm", "_blank");
}
}

Re: New Window No Toolbars!!! DisasterCompleX
7/20/2004 12:45:08 AM
Re: New Window No Toolbars!!! hemendras NO[at]SPAM mindfiresolutions.com
7/20/2004 2:24:01 AM
Hi,

You can very well do this but with the help of javascript.
You can mange size placement and bars of the browser with javascript, and you
can use chromeless window of you want to take up full screen screen.

look for chromeless window on google you will get full information.

Good Luck

Hemendra Singh Shaktawat

Mindfire Solutions
Re: New Window No Toolbars!!! tusharwadekar
7/20/2004 7:22:09 AM
you can use javascript to do that.
Just call javascript function from flash.

Code can be something like this,
---------------- Javascript ------------------------
<script language="javascript">
function showPopup(PU_url, winWidth, winHeight) {
window.open(PU_url, "popup",
"width="+winWidth+",height="+winHeight+",scrollbars=no");
}
</script>

---------------- Code in Flash ------------------------
getURL("javascript:showPopup('http://www.disastercomplex.com',740,700)");

Just pass width & height of your choice as parameters.
And copy the javascript code in the HTML file in which the Flash file is
embedded.

Also, if you want to place the popup window at the location of your choice,
just use "top" & "left".
window.open(PU_url, "popup",
"width="+winWidth+",height="+winHeight+",scrollbars=no,top=0,left=0");

it will open new popup window at top left corner.
AddThis Social Bookmark Button