Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 05-01-2001, 01:40 PM   #1
Registered User
Join Date: Jan 2001
Location: San Diego
Posts: 14

I'm wondering if there is a "set property" command that I can use at the beginning of my movie, so that when it's launched, the browser opens a new window of the correct size and places it in the center of the users monitor.
chompos is offline   Reply With Quote
Old 05-01-2001, 07:24 PM   #2
New Member
Join Date: Jan 2001
Posts: 245

Use this to create a new window;

<script language="JAVASCRIPT" type="TEXT/JAVASCRIPT"><!--
function getPage(thePage,wt,ht){
leftPos= (screen.width-wt)/2
topPos = (screen.height-ht)/2
newWin1 = window.open(thePage,'aWin','toolbars=no,resizeable =no,scrollbars=no,left='+leftPos+',top='+topPos+', width='+wt+',height='+ht)
// -->

Place it in the head section of the page that LAUNCHES the popup and for your GetURL action;

GetURL("javascript:getPage('yourfile.html',400,500 )")

mgb is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tutorial for Launching a Centered Pop-Up Window vazbo ActionScript 1.0 (and below) 9 01-01-2010 11:01 PM
Window "rendering" size Chrille ActionScript 2.0 1 02-02-2004 10:55 AM
GetURL- setting new window size without access to HTML file to add Javascript marclalosh ActionScript 1.0 (and below) 3 04-10-2003 06:20 PM
Change MC change size...simulate an open window efect Gerebeto ActionScript 1.0 (and below) 0 10-09-2002 01:28 PM
Pop up window.......size problem max_payne ActionScript 1.0 (and below) 3 03-26-2002 08:07 PM

All times are GMT. The time now is 09:05 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.