nice demonstration
Posted 10 months ago
This allow you to align movieclips in the scene, and autoalign them when windows resize.
You can control the vertical and horizontal alignment of movieclips as follow: mc.v_align=’top’; mc.h_align=’bottom’;
OR you can specify the distance(in pixels) from top-left corner
HOW IT WORKS When windows resize, script search objects in the scene and place them on right place.
This embed an image on the background and resize them only if scene resolution is bigger than image resolution.
Please rate it 
This is really useful – can you tell me how I can get obj1 to be centered without the moving? – ie just static.
Thanks
Posted 10 months ago
Yes, this work with *.swf file as well. About your problem i will find a solution as soon as possible
Posted 10 months ago
this resize background pic (and keep aspect ratio) only if screen resolution is bigger than image resolution
so, if you want to scale the background image always, just remove this line from the code
search for place_image() function)
“if (bg._width
and later remove “}”
On my code, these are on lines 130 and 140
Valé
Posted 10 months ago
Sorry, but seems to be a problem in my last post:
@FMD: just replace place_image() function with this:
function place_image() {
//if (bg._width<Stage.width or bg._height<Stage.height) {
var stage_raport = Stage.width/Stage.height;
var image_raport = bg._width/bg._height;
if (stage_raport>=image_raport) {
bg._width = Stage.width;
bg._height = Stage.width/image_raport;
} else {
bg._height = Stage.height;
bg._width = Stage.height*image_raport;
}
//}
bg._x = (Stage.width-bg._width)/2;
bg._y = (Stage.height-bg._height)/2;
}
Posted 10 months ago
””””Yes, this work with *.swf file as well. About your problem i will find a solution as soon as possible”””“
if you succeed I buy it .. 
I solve this problem
First of all open fla file and replace move_mc() function with this:
function move_mc() {
var stop_move:Boolean = true;
for (clips in _root) {
if (_root[clips].motion == "yes") {
stop_move = false;
var xSpeed = ((_root[clips].x_destination-_root[clips]._x)/10);
if (Math.abs(xSpeed)<0.1 || _root[clips].no_animation) {
_root[clips]._x = _root[clips].x_destination;
xSpeed = 0;
}
_root[clips]._x = _root[clips]._x+xSpeed;
var ySpeed = ((_root[clips].y_destination-_root[clips]._y)/10);
if (Math.abs(ySpeed)<0.1 || _root[clips].no_animation) {
_root[clips]._y = _root[clips].y_destination;
ySpeed = 0;
}
_root[clips]._y = _root[clips]._y+ySpeed;
if (Math.abs(xSpeed)<0.1 && Math.abs(ySpeed)<0.1) {
_root[clips].motion = "no";
}
}
}
if (stop_move) {
clearInterval(moveMC);
}
}
And now, for every movieClip you want to place without animation set no_animation attribute to true:
obj1.no_animation = true;
That’s all
excuse zissis, I have not understood well, in this way the image on the bottom comes replaced from a MC?
excuse for English :-/
Posted 10 months ago
the background image doesn’t seem to load in FF 2 .0.0.8? loads fine in Ie…
Posted 10 months ago
Nice work 
I was woundering if there a way to the center movie clip to never leave the coordinates or the stage !!
So when the user resize the window to a very small size the centre movie will never leave the stage…
Let me know if you understand what i mean !
Posted 9 months ago
is there any why to use this script without using Stage.align? this moves my whole site to the left, not just the stage of the loaded .swf (loaded onto level 5)
Posted 9 months ago
hi, this is a resizable application. If you want to use it like a non-resizable you have to remove the first and the second lines code:
Stage.scaleMode = “noScale”;
Stage.align = “TL”;
Posted 9 months ago
Many thanks for your speedy response, however have tried this and i still do not get the desired effect! it does not align the loaded .swf to the left like i want it to be!
Posted 9 months ago
Hello,
I like your app a lot… but…
I am trying to load an external swf into a holder… The holder i am using in here is obj2; the middle mc in the stage with this command:
obj2.loadMovie(“externalSWF.swf”
;
The problem:
the swf loads up; but is not centered and will not be animated nor move when i resize the window as well.... It stays in the same place.
thanks in advance for the help
Posted 7 months ago
Hello,
Problem solved may be solved. The external swf now moves/animate upon resizing; but it is still not quite centered.
What was wrong: in the external swf i had to add some values: this._lockroot = true;
1. of course all the dynamic stage scales (no scale etc....);
2. the align() function along with the move_mc;
3. the mc had to be aligned as well.... (mc.v_align = "center"; // mc.h_align = "center"
4. and the most important thing, on the first frame of the ext swf:
My problem is not really solved because the ext swf is still not centered; it is like 10 or 20 px off… I can deal with that tho
it might be the margins (var topmargin:Number = 10
id have to look into it when i get back home!
Thx.
Posted 7 months ago
Not working…
the animation is working fine… the ext swf moves…. but is not centered….
pls help ?!
Posted 7 months ago
hey, sorry for late...try this:
obj2.createEmptyMovieClip("container",1)
obj2.container.loadMovie(“externalSWF.swfâ€
;
Posted 6 months ago
if its not a problem can anyone write me exactly what to do to load external swf with the align center to obj2?
i’m newbie to flash…
thanks george
Posted 3 months ago
I’m not that experienced in Flash yet…
But I think you need to have the registration point at the top left corner of the external SWF that you are loading…and have that registration point…at coordinates 0x,0y.
If the SWF you are loading is not set with it’s top left corner at 0,0 it may not center correctly.
I’m seriously considering a purchase of this file.
Posted 2 months ago
what did u mean with the registration point actually? the problem is that when u load any swf into the obj that obj lost the movement function and the swf load into the TL only, i try to load with cord. to center this but nothink happend the most importand think is to have the movement because when u change the browser size the swf do nothink just stays into the positions that load at the start.
Posted 2 months ago