home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
404 Jogos
/
CLJG.iso
/
Esportes
/
CrossingCup.swf
/
scripts
/
__Packages
/
sandy
/
skin
/
MovieSkin.as
< prev
next >
Wrap
Text File
|
2007-12-11
|
852b
|
35 lines
class sandy.skin.MovieSkin extends sandy.skin.TextureSkin
{
function MovieSkin(mc, b)
{
super(new flash.display.BitmapData(mc._width - 2,mc._height - 2,false));
this._mc = mc;
b = undefined != b ? b : false;
if(false == b)
{
sandy.core.World3D.getInstance().addEventListener(sandy.core.World3D.onRenderEVENT,this,this.updateTexture);
}
else
{
this._mc.stop();
}
}
function getType(Void)
{
return sandy.skin.SkinType.__get__MOVIE();
}
function getMovie(Void)
{
return this._mc;
}
function toString(Void)
{
return "sandy.skin.MovieSkin";
}
function updateTexture(Void)
{
this._texture.dispose();
this.__set__texture(sandy.util.BitmapUtil.movieToBitmap(this._mc,true));
}
}