home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
404 Jogos
/
CLJG.iso
/
Esportes
/
CrossingCup.swf
/
scripts
/
__Packages
/
CNationalFlag.as
< prev
next >
Wrap
Text File
|
2007-12-11
|
718b
|
24 lines
class CNationalFlag extends MovieClip
{
function CNationalFlag()
{
super();
this.setFlag(this.toid);
}
function setFlag(id)
{
id = id - 1;
var _loc8_ = flash.display.BitmapData.loadBitmap("flags");
var _loc3_ = new flash.display.BitmapData(32,20,false,13421772);
var _loc4_ = id % 61;
var _loc9_ = Math.floor(id / 61);
var _loc7_ = _loc9_ * 32;
var _loc6_ = _loc4_ * 20;
var _loc2_ = new flash.geom.Matrix();
_loc2_.tx = - _loc7_;
_loc2_.ty = - _loc6_;
_loc3_.draw(_loc8_,_loc2_,new flash.geom.ColorTransform(),null,new flash.geom.Rectangle(0,0,32,20),false);
this.attachBitmap(_loc3_,0);
}
}