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.
Aug 20



December 23rd, 2008 at 12:21 am
me too, use in my mini movie effect