Adding Graphics to a Canvas

Flex Add comments

Interesting thing I discovered after spending 3 hours pulling my hair out. I’ve been adding Canvas components to a HBox in Flex and needed to draw graphics on the Canvas to render my content. Adding graphics to a Canvas though doesn’t give that Canvas width or height. Make sure you set this manually either as a percentage or to an absolute value to be sure that the canvas dimensions are taken into consideration by other containers. when I get more time I’ll try and demonstrate this along with other techniques for adding Sprites to Flex containers. Things aren’t as straightforward as they seem.

Digg!

One Response to “Adding Graphics to a Canvas”

  1. DesignersClubs Says:

    me too, use in my mini movie effect

Leave a Reply

 
WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in