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

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.
thanks
chompos is offline   Reply With Quote
Old 05-01-2001, 07:24 PM   #2
mgb
New Member
 
Join Date: Jan 2001
Posts: 245
Default

Use this to create a new window;

<TITLE>centWin</TITLE>
<script language="JAVASCRIPT" type="TEXT/JAVASCRIPT"><!--
if(screen){
topPos=0
leftPos=0
}
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)
}
// -->
</script>
</HEAD>

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
mgb is offline   Reply With Quote
Reply


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 08:33 AM.

///
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.