---
title: "Flash Tip(3) MovieClip 由 colorTransform 改变颜色会覆盖 内部的Child MovieClip 解决办法 "
author: "shine1200"
date: "2011-12-30T10:57:20Z"
tags: []
categories: ["Web前端"]
slug: "flash-tip-3-movieclip-colortransform-child-movieclip"
draft: false
lastmod: "2011-12-30T10:57:20Z"
id: 1330035
url: "https://shine1200.iteye.com/blog/1330035"
---

Flash Tip(3) MovieClip 由 colorTransform 改变颜色会覆盖 内部的Child MovieClip 解决办法 
分类： Flash ActionScript 基本用法 2008-09-26 09:55 296人阅读 评论(0) 收藏 举报 
通过加入背景色MovieClip 来实现Background变化效果，从而避开这个问题。

 

我找见更好的办法是 用Graphics.Fill的方法 来绘制背景色

 

var rectangle : Rectangle = this.getBounds(this);
this.graphics.beginFill(0x333333);
this.graphics.drawRect(0,0,rectangle.width,rectangle.height);
addChild(mBrandImage);

