title: how to fill solid color into the shape of a transparent PNG file with actionscript3?
body: <p>For example, I have a transparent png file, the shape is a car.
  In the png file, I only draw the white border shape.
  Outside and inside the border are all transparent.</p>
  
  <p>I want to use actionscript3 code to show the car object with different color, it means only fill color inside the border, and for the outside of the border, keep transparent.
  How to do that?</p>
  
  <p>So far, the simplest workaround is to prepare many images with PhotoShop, but it's not good enough for me. When I have many shapes and use many colors, I've to prepare many many images.</p>
  
  <p>Add more details:
  (Because I'm using white border, you may not see the basic png file if your background of browser is white)
  <img src="https://i.stack.imgur.com/00KCp.png" alt="This is my basic png file"></p>
  
  <p><img src="https://i.stack.imgur.com/iuOWc.png" alt="this is my expected car 1"></p>
  
  <p><img src="https://i.stack.imgur.com/simh3.png" alt="this is my expected car 2"></p>
  
  <p>Change my boarder of shape to black, hope this is helpful to understand my question.</p>
  
  <p><img src="https://i.stack.imgur.com/R2vRv.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/6s2kS.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/QAmCP.png" alt="enter image description here"></p>