| Ultrashock Forums
• Little help with mc alignment |
|||
![]() |
||||
| Search this Thread | Thread Tools | Display Modes |
|
|
|||||||||||||||||||||||||
![]() |
Ultrashock Member Comments:
17 Creative Assets
|
2010-02-09
#2 |
||
|
If you want to place center_mc in the center of the stage, you can do this: Code:
center_mc._x = ( Stage.width - center_mc._width ) / 2; Code:
center_mc._x = left_mc._width; center_mc._width = Stage.width - ( left_mc._width + right_mc._width );
|
|
|
2010-02-09
#3 |
||
|
Thank you very much Nutrox Case is solved but besides
center_mc._x = left_mc._width; I added center_mc._width = Stage.width - ( left_mc._width + right_mc._width );
center_mc._y = Stage.height-center_mc._height;
|
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|


2 comments
| 85 views


17 Creative Assets

Linear Mode
Stage.align = "TL";
// *** Stop the stage from scaling with the browser window.
Stage.scaleMode = "noScale";
stop ();
// initiate postitions and scaling values for objects
bg._height = Stage.height;
bg._width = Stage.width;
left_mc._x = 0;
left_mc._y = Stage.height-left_mc._height;
right_mc._x = Stage.width-right_mc._width;
right_mc._y = Stage.height-right_mc._height;
CENTER_MC ??????????????????????????????????????????????????????????????????
//create a listner that checks to see if the browser window is resized
sizeListener = new Object();
sizeListener.onResize = function() {
// change movieclip properties when the window is resized.
bg._height = Stage.height;
bg._width = Stage.width;
left_mc._x = 0;
left_mc._y = Stage.height-left_mc._height;
right_mc._x = Stage.width-right_mc._width;
right_mc._y = Stage.height-right_mc._height;
CENTER_MC ??????????????????????????????????????????????????????????????????
};
Stage.addListener(sizeListener);