home *** CD-ROM | disk | FTP | other *** search
- class smashing.Renderable extends MovieClip
- {
- var mpX = 16777215;
- var mpY = 16777215;
- var mpZ = 16777215;
- var mpScale = 16777215;
- var mScale = 100;
- var changed = true;
- var scaleMod = 1;
- function Renderable()
- {
- super();
- }
- function set scale(n)
- {
- var _loc1_ = this;
- _loc1_._xscale = n;
- _loc1_._yscale = n;
- }
- function render()
- {
- var _loc3_ = this;
- var _loc1_ = smashing.Viewport.getPos(_loc3_);
- if(_loc1_ != undefined)
- {
- var _loc2_ = _loc1_.scale;
- if(_loc1_.x != undefined)
- {
- _loc3_._x = _loc1_.x * _loc2_ + smashing.Viewport.centerX;
- }
- if(_loc1_.y != undefined)
- {
- _loc3_._y = _loc1_.y * _loc2_ + smashing.Viewport.centerY;
- }
- if(_loc2_ != _loc3_.mpScale)
- {
- _loc3_.mpScale = _loc2_;
- _loc3_.scale = _loc2_ / _loc3_.scaleMod * 100;
- }
- }
- }
- }
-