Hey Rich,
Other than this hiccup, I'm well, thanks.
Here is a zip file with all the relevant stuff:
http://www.zeusprod.com/flash/tree_test.zip
I based this on sephiroth's example, and I'm clearly doing something wrong.
I want the top-level text to be blue (not white) by default and to switch to
white on rollover. Look at the sublevel under the first main level to see
the behavior (although the latter is a different font).
These three lines in the cellrenderer file cause the problem:
setStyle("fontFamily", "Trebuchet MS");
setStyle("fontSize", 13);
setStyle("fontWeight", "bold");
If I take these out, the rollovers work, but the font is not the desired
one.
I also looked at the TextRow and SelectableRow classes and there might be
some bugs in how setValue is invoked in those. I'm using the Flash MX core
classes.
Cheers,
Bruce
-------------------
Message: 8
Date: Fri, 04 May 2007 12:15:03 -0400
Hey Bruce, how are you (beyond this irritation, of course)?
I don't have an existing cell renderer, but I might be able to help if I can
see the code. One thing off the top of my head is that changing the font may
be changing the behavior of the text field/label component so that it is now
trapping your mouse event. You might be able to do something as simple as
change the text field to prevent selectable/editable or something along
those lines.
I say this, vaguely, because I had the exact same symptom in an AS3 project
recently and just set mouseEnabled to false on the text field to solve it.
It's certainly not the same, but it gives us somewhere to look.
Rich Shupe
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com