Stacy,

 

I spoke too soon…it’s not working for me.  I must have thought my following example was my recompiled code with the getProperty call…but I mustn’t have refreshed to revuild my app to use the modified label maker function.  Very sad.  It’s very odd…if I make the return value of my labelMaker function below just val, it works and for every node, I get something that looks like this:

 

 

But when I change the return of my function to be val.getProperty(“label”) which SHOULD work, it no longer does and if I add a trace statement to my label maker function, I see the following output in my flash log file when the screen loads:

 

val.getProperty(label): DLTA - Long/Short Hedge

val.getProperty(label): DLTA0 - Delta Long/Short Hedge 1

val.getProperty(label): DLTA1 - Delta Long/Short Hedge 2

val.getProperty(label): undefined

val.getProperty(label): undefined

 

And when I mouse over any of the nodes, nothing pops up now, even though my trace file shows clearly it did, at some point, recognize the call to val.getProperty for the label attribute.

 

Weird.

 

Anyone have any thoughts about this?

 

robert l. brueckmann

senior web developer

merlin securities

595 madison avenue

new york, ny 10022

p: 212.822.4821
f: 212.822.4820


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Stacy Young
Sent: Wednesday, July 13, 2005 2:15 PM
To: [email protected]
Subject: RE: [flexcoders] ToolTips on Tree Nodes?

 

I have the exact same setup…but nothing is being passed to the dataTipFunction…wondering if it’s because the dataprovider is not set until after the tree has initialized?

 

-Stace

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Brueckmann
Sent: Wednesday, July 13, 2005 1:38 PM
To: [email protected]
Subject: RE: [flexcoders] ToolTips on Tree Nodes?

 

Nevermind…I created a label maker function and set my tree component’s dataTipFunction to this function and the val object sent to the label maker function is the entire tree node, so I just return val.getProperty(“label”) (because the dataprovider of my tree is XML) and my data tips work perfectly now.

 

<mx:Script>

 

function dataTipMaker(val):String {

                                                return val.getProperty("label");

                                    }

</mx:Script>

 

<mx:Tree id="portfolioTree" dataProvider="{portfolios}" width="100%" height="400" showDataTips="true" dataTipFunction="dataTipMaker" />

 

robert l. brueckmann

senior web developer

merlin securities

595 madison avenue

new york, ny 10022

p: 212.822.4821
f: 212.822.4820




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



 

This message contains information from Merlin Securities, LLC, or from one of its affiliates, that may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify the sender immediately by telephone or by replying to this transmission.
 
Merlin Securities, LLC is a registered broker-dealer. Services offered through Merlin Securities, LLC are not insured by the FDIC or any other Federal Government Agency, are not deposits of or guaranteed by Merlin Securities, LLC and may lose value. Nothing in this communication shall constitute a solicitation or recommendation to buy or sell a particular security.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to