Featured Post

Flash, Flex and Html to pass parameters

FLASH access to HTML Lane came to achieve the parameters: Here are Flash and HTML-value between the two ways: url address parameters and flashVars. Method 1. HTML code: Method 2. Flex code: The above method is the FLEX project: the time required to use flash in the constructor where you can obtain...

Read More

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

Posted by activetofocus | Posted in Flash Technology | Posted on 28-08-2009

Tags:

0

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.

I have often posted out of the two solutions:

Method 1:

canvas of backgroundColor is not set, this is the most direct way, but if have to use the background color does not.

1

Method 2:

You can use the UIComponent to solve this problem, although annoying points, but it is pretty good.

2