for each (var labelElement:UIComponent in labelElements)
labelElement.filters =
[new DropShadowFilter(1, 0, 0xFFFFFF, 1, 0, 0),
new DropShadowFilter(1, 90, 0xFFFFFF, 1, 0, 0),
new DropShadowFilter(1, 180, 0xFFFFFF, 1, 0, 0),
new DropShadowFilter(1, 270, 0xFFFFFF, 1, 0, 0)];
will take care of multiple series in your piechart. Otherwise, only the first will get the outline.
On 9/28/06, Pan Troglodytes <[EMAIL PROTECTED]> wrote:
I'm making an outline around my pie labels using the following code for the pie chart:
public function creationComplete():void
{
UIComponent( labelElements[0]).filters =
[new DropShadowFilter(1, 0, 0xFFFFFF, 1, 0, 0),
new DropShadowFilter(1, 90, 0xFFFFFF, 1, 0, 0),
new DropShadowFilter(1, 180, 0xFFFFFF, 1, 0, 0),
new DropShadowFilter(1, 270, 0xFFFFFF, 1, 0, 0)];
}
Is there anything about this that's not kosher? I suppose I could put a check in for labelElements.length != 0, but this isn't really for general purpose use. Are there any situations in a pie chart where this could blow up?
--
Jason
--
Jason __._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Software development tool | Software development | Software development services |
Home design software | Software development company |
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___