Flex - weird display behavior on large number of Canvas
Posted
by itarato
on Stack Overflow
See other posts from Stack Overflow
or by itarato
Published on 2010-05-10T12:07:36Z
Indexed on
2010/05/10
12:14 UTC
Read the original article
Hit count: 278
flex
|actionscript-3
Hi,
I have a Flex app (SDK 3.5 - FP10) that does mindmap trees. Every node is a Canvas (I'm using Canvas specific properties so I needed it). It has a shadow effect, background color and some small ui element on it (like icons, texts...). It works perfectly until it goes over ~700 nodes (Canvas). Over that number it shows grey rectangles: http://yfrog.com/bhw2pj . If I turn off the DropShadowFilter effect for the Canvas, they are also gone, so I assume it's a DropShadowFilter problem: http://yfrog.com/2d9y8j .
The effect is simple:
private static var _nodeDropShadow:DropShadowFilter = new DropShadowFilter(1, 45, 0x888888, 1, 1, 1);
_backgroundComp.filters = _nodeDropShadow;
Is it possible that Flex can't handle that much?
Thanks in advance
© Stack Overflow or respective owner