Yes, it's possible. You have to embed the symbol from the Assets.swf
that comes with the Flex framework. I'm using CSS to do this in a
similar scenario, and my code looks like this:
ClassName
{
disclosure-open-icon: Embed( souce="Assets.swf",
symbol="TreeDisclosureOpen" );
disclosure-closed-icon: Embed( souce="Assets.swf",
symbol="TreeDisclosureClosed" );
}
Then, I have an <mx:Image/> that gets its source property modified based
on disclosure state:
disclosureIcon.source = getStyle( "disclosureOpenIcon" ); // or
"disclosureClosedIcon"
-d
Lachlan Cotter wrote:
>
> Hi List,
>
> Is it possible to use the disclosure triangle from the Tree view
> control outside of a tree view? I want to use it to switch between
> states on an item renderer (a collapsed, summary state, and a full,
> detail state). There doesn't seem to be a disclosure triangle component.
>
> Cheers,
> Lach
>
>