This content has been marked as final. Show 3 replies
> private function itemOver(event:MouseEvent) : void
> var itemID:Object = event.currentTarget.id;
> itemID.setStyle("color", "#FFFFFF") --- When I debug itemID is
> defined as lblHome
I think the problem is that itemID is actually the literal string
"lblHome", not the label whose id is "lblHome". You probably want to do
var item: Object = event.currentTarget;
Flex Builder team
Thanks that did the trick... I should have thought of that, I guess I am just used to using eval(). I think I read somewhere else, but is there a problem w/ getting the hand cursor to display? I set useHandCursor="true" and I dont get the hand cursor over the label? Will this be fixed in the next version?
> I think I read somewhere else, but is there a problem w/
> getting the hand cursor to display? I set useHandCursor="true" and I dont get
> the hand cursor over the label? Will this be fixed in the next version?
useHandCursor is not supported for Label (it's a documentation bug that they
are listed there). But you can use <mx:LinkButton> instead (and you can
change its styles, as desired, to make it look more like a Label if you want to.)
By the way, on those controls that *do* support useHandCursor, don't forget to
also set buttonMode="true".
Developer, Flex Builder team