`
天梯梦
  • 浏览: 13634304 次
  • 性别: Icon_minigender_2
  • 来自: 洛杉矶
社区版块
存档分类
最新评论

元件变色 change movieclip's color

阅读更多

 

// 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;
}
 

 

 

 

视频讲解

 

 

 

 

 

a闪百度博客

http://hi.baidu.com/%B0%B5%BA%DA%B2%E0%CE%C0

 

 

分享到:
评论
1 楼 keete 2010-10-08  
感谢分享。

相关推荐

Global site tag (gtag.js) - Google Analytics