[flexcoders] can't get Tooltips and Drag and Drop to play nice
When I perform a Drag n Drop on one of my components I get my tool tip. I have implemented a custom tooltip using Adobe's example (the one with the Panel). Using the DragManager.isDragging in a couple of spots I can prevent the creation of my custom tool tip, but it defaults to creating the tool tip with the single space as defined below. Through trial and error I found the toolTip= is required in order for the custom tool tip to happen. It's this default tool tip I can't solve. The ToolTipEvent seems to be uncancelable, so I am stuck. I thought about trying to call destroyToolTip() on ToolTipManager, but I am afraid the default tool tip will still show. I haven't tried yet. Thanks for any future help. . view:MyParentContainer id=myPCont height=100% width=100 fx:Script ![CDATA[ : private function onCreateTooltip(event : ToolTipEvent) : void { if(DragManager.isDragging) return; myCont.createTooltip(event); } ]] /fx:Script view:MyContainer id=myCont height=100% width=100% toolTipCreate=onCreateTooltip(event) toolTip= / /view: MyParentContainer
[flexcoders] quick XML question
I have a variable named report set to an xml document. var report : XML = dls-configurationsystem/system./dls-configuration var n1 : XML = report.system as XML; var n2 : XML = report.children()[0]; n1 = null n2 = the system node I have accessed nodes many times like I do for n1 and not a problem with it evaluating to null. I can't figure out what I am doing differently with the above. Any help showing me the obvious is appreciated. -Steve
RE: [flexcoders] quick XML question
Found an article online reporting the dashes are a problem in E4X syntax. http://www.insideria.com/2009/01/flex-xml-quick-tip.html if anyone is interested. However it addresses the problem of… dg.dataProvider = xmlDataSource.data-one; And recommends… dg.dataProvider = xmlDataSource[data-one]; But in my problem, I do not explicitly state a dash in my syntax. I expanded my experiment a little and defined report to be var report : XML = dls-configurationsystemproduct-name/product-name/system………/dls-configuration and tried var n1 : XML = report.system[product-name] as XML; and n1 is null. Still confused. -S From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of claudiu ursica Sent: Tuesday, November 17, 2009 2:09 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] quick XML question I think the -dls-configuration is the issue. There is a solution for this but i cannot remember where i read about it. Do some google-ing... C From: Pruitt, Byron S steve.pru...@hp.com To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Sent: Tue, November 17, 2009 8:29:22 PM Subject: [flexcoders] quick XML question I have a variable named report set to an xml document. var report : XML = dls-configurationsystem/system………/dls-configuration var n1 : XML = report.system as XML; var n2 : XML = report.children( )[0]; n1 = null n2 = the system node I have accessed nodes many times like I do for n1 and not a problem with it evaluating to null. I can’t figure out what I am doing differently with the above. Any help showing me the obvious is appreciated. -Steve
[flexcoders] HttpService headers
This seems to be an age-old issue. I need to set the Authorization header for GET requests. I have no cross-domain issues. Everything is sent to the same server. I found the following adobe TechNote: http://kb.adobe.com/selfservice/viewContent.do?externalId=kb403184sliceId=1 appears to state that post Flash player 9.0.115.0 the Authorization header can be sent with either GET or POST. I have player 9.0.224.0. However, it appears to work only for POST. Has anyone successfully set the Authorization header for any customer header for that matter with the HttpService? Thanks. -S