# Help with scaling and centering entire website's window

**URL:** https://forum.kirupa.com/t/help-with-scaling-and-centering-entire-websites-window/38519
**Category:** flash
**Created:** [December 24, 2003, 6:42am UTC](https://forum.kirupa.com/t/help-with-scaling-and-centering-entire-websites-window/38519 "2003-12-24T06:42:57Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![tltaylor6](https://avatars.discourse-cdn.com/v4/letter/t/e19b73/32.png) [@tltaylor6](https://forum.kirupa.com/u/tltaylor6)
#### Post date: [December 24, 2003, 6:42am UTC](https://forum.kirupa.com/t/help-with-scaling-and-centering-entire-websites-window/38519/1 "2003-12-24T06:42:57Z")

</div>

I really need some specific and direct help with being able to scale and center the window that holds my website, as a whole.  
There is one perfect example, @ _[http://flashtracking.com/calvin/default.asp?aid=](http://flashtracking.com/calvin/default.asp?aid=)_  
which creates a window that pops up that is centered and in the very middle of the computer screen.

If there is a tutorial or specific directions in helping with this, I’d really appreciate it…as I am a beginner with all of this within Flash and using ActionScript.

If anyone can help with applying the sound and the sound bar/selection buttons on the referred site, that would be wonderful as well. Thanks so much.

Thanks so very much!  
and God Bless you 🙂

— Timothy.Lee.Taylor.Jr —

MERRY CHRISTMAS!!!

[The referred website:Calvin Richerdson](http://flashtracking.com/calvin/default.asp?aid=)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 24, 2003, 6:50am UTC](https://forum.kirupa.com/t/help-with-scaling-and-centering-entire-websites-window/38519/2 "2003-12-24T06:50:04Z")

</div>

the centred window is done using javascript, there are plenty of tutes out there about doing this, use google for a start.

hth

🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 25, 2003, 12:04am UTC](https://forum.kirupa.com/t/help-with-scaling-and-centering-entire-websites-window/38519/3 "2003-12-25T00:04:48Z")

</div>

Oh dude can someone tell me how they made those scroll arrows on the about page. I really want to know!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 25, 2003, 3:36am UTC](https://forum.kirupa.com/t/help-with-scaling-and-centering-entire-websites-window/38519/4 "2003-12-25T03:36:24Z")

</div>

well, it isn’t really javascript.

to horizontally center the flash, just use \<p align="center’\>

to vertically center the flash, just use a table and make the td height 100% and for valign, use middle. [http://www3.telus.net/oliverz](http://www3.telus.net/oliverz) would be a very simple example. look at the source code.

hope this helps

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 25, 2003, 3:46am UTC](https://forum.kirupa.com/t/help-with-scaling-and-centering-entire-websites-window/38519/5 "2003-12-25T03:46:55Z")

</div>

no its done with javascript

just view his source. theres the html page, and theres a file called popups.js with the script in it.  
(copying it is stealing; reading it and making your own with the help of other sources is not)

textfields have a .scrollposition property. you can increase or decrease it on button press.  
i find this is an excellent resource.

[http://www.macromedia.com/support/flash/action\_scripts/actionscript\_dictionary/#contents](http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/#contents)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 26, 2003, 3:23pm UTC](https://forum.kirupa.com/t/help-with-scaling-and-centering-entire-websites-window/38519/6 "2003-12-26T15:23:58Z")

</div>

Heh thnx dude! I’ve used it in my website. Really nice. Since the scrollbar component was removed out of flash mx 2004 I made all my pages by loading different .txt files in a text box. With this I can load one text file in a textbox and just scroll through it.

BTW Is there a possibility to make a slider with that? So you can directly scroll down to the section you want in stead of pressing the scroll button a couple of times?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 30, 2003, 12:19am UTC](https://forum.kirupa.com/t/help-with-scaling-and-centering-entire-websites-window/38519/7 "2003-12-30T00:19:07Z")

</div>

Please, does anyone know how to do that? THNX!
