# How in the world?!?!

**URL:** <https://forum.kirupa.com/t/how-in-the-world/58930>\
**Category:** Uncategorized\
**Created:** [July 27, 2004, 5:42am UTC](https://forum.kirupa.com/t/how-in-the-world/58930 "2004-07-27T05:42:57Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![bkimball](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/bkimball/32/458_2.png) [@bkimball](https://forum.kirupa.com/u/bkimball)\
**Post date:** [July 27, 2004, 5:42am UTC](https://forum.kirupa.com/t/how-in-the-world/58930/1 "2004-07-27T05:42:57Z")

</div>

i was looking at last weeks SOTW, blackpulp, and was wondering if anyone out there knew how on earth they got the swf file to resize itself in the window? if anyone has an idea or a link it would be greatly appreciated.

---

<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:** [July 27, 2004, 5:45am UTC](https://forum.kirupa.com/t/how-in-the-world/58930/2 "2004-07-27T05:45:41Z")

</div>

they just set it’s width and height to 100% if I remember correctly, then probably defined the location of stuff in terms of stage.width and stage.height minus or plus whatever they needed 😉

---

<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:** [July 27, 2004, 7:50am UTC](https://forum.kirupa.com/t/how-in-the-world/58930/3 "2004-07-27T07:50:24Z")

</div>

ah… i see, i never thought about that… i never would have thought about that, thanks!

---

<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:** [July 28, 2004, 3:25am UTC](https://forum.kirupa.com/t/how-in-the-world/58930/4 "2004-07-28T03:25:12Z")

</div>

when you said, “stage.width and stage.height minus or plus,” is ‘stage’ a variable you set… because i don’t see it anywhere in the flash index… could you give an example of what the code would look like?

---

<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:** [July 28, 2004, 3:48am UTC](https://forum.kirupa.com/t/how-in-the-world/58930/5 "2004-07-28T03:48:34Z")

</div>

it’s a global variable to flash, just use it like this:

```auto
this.width=Stage.width;

```

and it’ll be the same width as the entire stage 😉

---

<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:** [July 28, 2004, 3:53am UTC](https://forum.kirupa.com/t/how-in-the-world/58930/6 "2004-07-28T03:53:14Z")

</div>

that can be tricked tho… like if you are trying to position something in the middle of the window, you would use this: box.\_x = )Stage.width/2)-box.\_width;. but, when you go to preview it, it’s way over to the right, until you make the movie it’s normal size (not 100%). So that makes me wonder if it would be in the center if you published the html to be 100%x100%.

…just some thoughts.

:p:

---

<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:** [July 28, 2004, 3:56am UTC](https://forum.kirupa.com/t/how-in-the-world/58930/7 "2004-07-28T03:56:53Z")

</div>

I’ve had the same problem, but when I go to the browser it’s all happy and fine 😉

---

<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:** [July 28, 2004, 4:30am UTC](https://forum.kirupa.com/t/how-in-the-world/58930/8 "2004-07-28T04:30:44Z")

</div>

i see, i’ll give it a try and let everyone 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:** [August 10, 2004, 3:38am UTC](https://forum.kirupa.com/t/how-in-the-world/58930/9 "2004-08-10T03:38:37Z")

</div>

ok so i understand how to make something the whole width of the stage, but… how do i make the stage 100% wide??

---

<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:** [August 10, 2004, 3:47am UTC](https://forum.kirupa.com/t/how-in-the-world/58930/10 "2004-08-10T03:47:42Z")

</div>

in the html ;)… look for a width, and change it to 100% and same goes for height

or in export settings set the width
