# Scale problem

**URL:** https://forum.kirupa.com/t/scale-problem/182786
**Category:** Uncategorized
**Created:** [March 21, 2006, 1:22pm UTC](https://forum.kirupa.com/t/scale-problem/182786 "2006-03-21T13:22:48Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![MyDNA](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@MyDNA](https://forum.kirupa.com/u/MyDNA)
#### Post date: [March 21, 2006, 1:22pm UTC](https://forum.kirupa.com/t/scale-problem/182786/1 "2006-03-21T13:22:48Z")

</div>

Earlier this week i posted already two treads wich both did not help me any further itried a lot and searched over the internet for a solution but my problem is the next. I made a 100% x 100% flash site. Now i want to add a menu. But the menu has to be on the left of any screen. It has to appear out of the screen on the left and stay there 10 pixels from the edge of the users screen. No i tried the codes with Stage.align = “MT” and Stage.ScaleMode = “NoScale” But it does not giving the right result.  
Does someone can help me? I got a main swf. in this swf files web.swf and menu.swf has to load. web.swf always centered in height and width.  
The menu.swf needs to stay on the total left in the middle.  
I 'm really working on my actionscript skills but after trying for more then a week i’m getting a bit desparate.

Greets Jos

---

<div class="post-metadata">

### Author: ![B\_L\_U\_E](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@B\_L\_U\_E](https://forum.kirupa.com/u/B_L_U_E)
#### Post date: [March 21, 2006, 5:24pm UTC](https://forum.kirupa.com/t/scale-problem/182786/2 "2006-03-21T17:24:03Z")

</div>

[AS]Stage.align = “LT”;  
Stage.scaleMode = “noScale”;  
var stageListener = new Object();  
Stage.addListener(stageListener);  
stageListener.onResize = function (){  
leftmc.\_x= 10;  
leftmc.\_y= (Stage.height/2)-(leftmc.\_height/2);  
};[/AS]

---

<div class="post-metadata">

### Author: ![MyDNA](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@MyDNA](https://forum.kirupa.com/u/MyDNA)
#### Post date: [March 21, 2006, 6:14pm UTC](https://forum.kirupa.com/t/scale-problem/182786/3 "2006-03-21T18:14:25Z")

</div>

Thank you Bluenar but the problem with this code that it only works when i resize the browserscreen (i tested it on mac safari 2 mac and windows firefox 1.5 and windows IE 6

next to that i changed the Stage.align = “LT” with “CM” because the rest of the flashfiles/movieclips needs to be centered.

On another topic i saw this code:

[AS]  
Stage.align = “TL”;  
Stage.scaleMode = “noScale”;

container.\_xscale = Stage.width \*.10;  
container.\_yscale = Stage.height \*.15;

stageListener = new Object();  
// Create a function for the event you want to listen for  
stageListener.onResize = function ()  
{  
container.\_xscale = Stage.width \*.10;  
container.\_yscale = Stage.height \*.15;

// Code for response to browser resizing here  
}  
// Assign a listener for the Stage object  
Stage.addListener(stageListener);  
[/AS]

In that case i think container is the leftmc.  
but what meanse the code:  
[AS]  
container.\_xscale = Stage.width \*.10;  
container.\_yscale = Stage.height \*.15;  
[/AS]  
??

And even whit this code how can i make sure the rest of the movie is centered? Is that even possible?

kind regards  
Jos

---

<div class="post-metadata">

### Author: ![MyDNA](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@MyDNA](https://forum.kirupa.com/u/MyDNA)
#### Post date: [March 22, 2006, 12:17pm UTC](https://forum.kirupa.com/t/scale-problem/182786/4 "2006-03-22T12:17:44Z")

</div>

i’ve found the solution  
with special thanks to scotty.

check [http://www.dri360](http://www.dri360) for the temporary website…

---

<div class="post-metadata">

### Author: ![MyDNA](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@MyDNA](https://forum.kirupa.com/u/MyDNA)
#### Post date: [March 22, 2006, 12:18pm UTC](https://forum.kirupa.com/t/scale-problem/182786/5 "2006-03-22T12:18:18Z")

</div>

i’ve found the solution:hugegrin::hugegrin::hugegrin:  
with special thanks to scotty.

check [http://www.dri360](http://www.dri360) for the temporary website…

---

<div class="post-metadata">

### Author: ![B\_L\_U\_E](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@B\_L\_U\_E](https://forum.kirupa.com/u/B_L_U_E)
#### Post date: [March 22, 2006, 5:43pm UTC](https://forum.kirupa.com/t/scale-problem/182786/6 "2006-03-22T17:43:45Z")

</div>

> [@MyDNA](#):
>
> i’ve found the solution:hugegrin::hugegrin::hugegrin:  
> with special thanks to scotty.
> 
> check [http://www.dri360](http://www.dri360) for the temporary website…

Well, what was the solution? 🙂 [OT]Is that your site? Pretty nice[/OT]

---

<div class="post-metadata">

### Author: ![MyDNA](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@MyDNA](https://forum.kirupa.com/u/MyDNA)
#### Post date: [March 23, 2006, 7:33am UTC](https://forum.kirupa.com/t/scale-problem/182786/7 "2006-03-23T07:33:42Z")

</div>

I added al the stuff that needed to be centered in one movieclip called main

and gave it the firstframe the code:

Stage.align = “TL”;  
Stage.scaleMode = “noScale”;  
stageListener = new Object();  
stageListener.onResize = function() {  
main.\_x = Stage.width/2-main.\_width/2;  
main.\_y = Stage.height/2-main.\_width/2; }; Stage.addListener(stageListener);  
stageListener.onResize();

Thanks for all the help form you side either, BlueNar

---

<div class="post-metadata">

### Author: ![MyDNA](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@MyDNA](https://forum.kirupa.com/u/MyDNA)
#### Post date: [March 23, 2006, 7:35am UTC](https://forum.kirupa.com/t/scale-problem/182786/8 "2006-03-23T07:35:13Z")

</div>

The site is for now… [http://www.dri360.com](http://www.dri360.com)  
in the future it’ll be [http://www.itbone.nl](http://www.itbone.nl)

---

<div class="post-metadata">

### Author: ![jasarius](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@jasarius](https://forum.kirupa.com/u/jasarius)
#### Post date: [March 24, 2006, 11:51pm UTC](https://forum.kirupa.com/t/scale-problem/182786/9 "2006-03-24T23:51:04Z")

</div>

> [@MyDNA](#):
>
> The site is for now… [http://www.dri360.com](http://www.dri360.com)  
> in the future it’ll be [http://www.itbone.nl](http://www.itbone.nl)

Very nice. Which tutorial did you use to get the ‘resizing’ for your external clips so smooth?
