Posted By

activetofocus on 09/26/10


Tagged

form display line graphic draw or not issues does


Versions (?)

Canvas graphics (draw line or graphic form does not display issues)


 / Published in: ActionScript 3
 

URL: http://blog.activetofocus.com/2009/08/28/canvas-graphics-draw-line-or-graphic-form-does-not-display-issues/

  1. Flex in the Canvas is the most commonly used containers, but the canvas is not the use of graphics makes them very comfortable to use. When the container used or set the backgroundColor of this attribute, the object re-use graphics to draw lines or to draw graphics on the will not be displayed because the graphics layer and backgroundColor using the same level, so graphics rendering will be blocked can not be displayed.
  2.  
  3. I have often posted out of the two solutions:
  4.  
  5. Method 1:
  6.  
  7. canvas of backgroundColor is not set, this is the most direct way, but if have to use the background color does not.
  8.  
  9. 1
  10.  
  11. Method 2:
  12.  
  13. You can use the UIComponent to solve this problem, although annoying points, but it is pretty good.
  14.  
  15. 2

Report this snippet  

You need to login to post a comment.