flashMX center Q
flashMX center Q
Out of context: Reply #7
- Started
- Last post
- 8 Responses
- unfittoprint0
stewart,
I beg to differ regarding the onClip event. With that your movie is constantly centering the mc even when that's not necessary, therefore spending much more processor resources [and making the overall functionality much, much slower with each asset 'thrown' into Stage].
you should use a listener to trigger a center function ONLY when the Stage is resized:
//________ RESIZE
Stage.align = "LT";
Stage.scaleMode = "noScale";
center = function () {
mc._y = Math.round((Stage.height-mc._hei...
mc._x = Math.round((Stage.width-mc._widt...
};
Reziser = new Object();
Stage.addListener(Reziser);
Reziser.onResize = function() {
center();
};