Hi!
I’m using the following actionscript (along with deconcept’s FlashObject script) to make a “full browser” flash movie:
myListener = new Object();
myListener.onResize = function() {
_root.CN.pos = [Stage.width/2-_root.CN._width/2,Stage.height/2-_root.CN._height/2];
};
Stage.scaleMode = "noScale";
Stage.align = "TL";
Stage.addListener(myListener);
_root.CN.onEnterFrame = function() {
this._x = Stage.width/2;
this._y = Stage.height/2;
};
_root.bg.onEnterFrame = function() {
this._width += (Stage.width-this._width);
this._height += (Stage.height-this._height);
};
stop();
When opening it in a browser the cpu usage rises up to 80% or more.
Does someone have a solution?
Thanks,
Juergen