0
点赞
收藏
分享

微信扫一扫

元件变色 change movieclip's color

kolibreath 2023-05-12 阅读 121


// This line defines a variable of type ColorTransform and naming it colorTransform 
var colorTransform:ColorTransform = new ColorTransform();

color_btn.addEventListener(MouseEvent.CLICK, paint);

// here is what happens when the button is clicked 
function paint(event:Event):void
{
	colorTransform.color = 0xFF0000;
	test_mc.transform.colorTransform = colorTransform;
}

 

 

 

视频讲解

 


 

举报

相关推荐

0 条评论