# Full Browser Flash - CPU usage

**URL:** <https://forum.kirupa.com/t/full-browser-flash-cpu-usage/168347>\
**Category:** flash\
**Created:** [November 6, 2005, 11:41am UTC](https://forum.kirupa.com/t/full-browser-flash-cpu-usage/168347 "2005-11-06T11:41:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![simontemplar](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@simontemplar](https://forum.kirupa.com/u/simontemplar)\
**Post date:** [November 6, 2005, 11:41am UTC](https://forum.kirupa.com/t/full-browser-flash-cpu-usage/168347/1 "2005-11-06T11:41:08Z")

</div>

Hi!

I’m using the following actionscript (along with deconcept’s [FlashObject](http://blog.deconcept.com/flashobject/) script) to make a “full browser” flash movie:

```auto
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
