hi sampath i got it. one member told wrap the code in try catch. now it is working fine
thanks, Gerald A On Tue, Oct 27, 2009 at 4:08 PM, Sampath Kumar <sampat...@gmail.com> wrote: > The Panel does not have any label attribute and hence you are getting the > error. An alternate approach would be to add click handler to the link > buttons instead of the panel. > > Regards > Sampath > > On Tue, Oct 27, 2009 at 3:53 PM, Gerald Anto > <flex.gerald.a...@gmail.com>wrote: > >> >> see this code >> >> <?xml version="1.0"?> >> <!-- events/SingleRegisterHandler.mxml --> >> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" >> creationComplete="createLinkHandler();"> >> <mx:Script><![CDATA[ >> private function linkHandler(event:MouseEvent):void { >> var url:URLRequest = new URLRequest("http:// >> finance.google.com/finance?q=" + >> event.target.label); >> navigateToURL(url); >> } >> private function createLinkHandler():void { >> p1.addEventListener(MouseEvent.CLICK,linkHandler); >> } >> ]]></mx:Script> >> <mx:Panel id="p1" title="Click on a stock ticker symbol"> >> <mx:LinkButton label="ADBE"/> >> <mx:LinkButton label="GE"/> >> <mx:LinkButton label="IBM"/> >> <mx:LinkButton label="INTC"/> >> </mx:Panel> >> </mx:Application> >> >> The above are code in the following page >> >> >> http://livedocs.adobe.com/flex/3/html/help.html?content=events_08.html#219544 >> >> >> it was working fine but when i click the title of the border, >> will through the error like >> >> ReferenceError: Error #1069: Property label not found on >> mx.core.UITextField and there is no default value. >> at >> check/linkHandler()[H:\workspace\flexspace\testing\src\check.mxml: >> 6] >> what is this error? >> >> when i click directly click on it in the corresponding help page >> it will not through the error >> >> why? >> >> Thanks&Regards, >> Gerald A >> >> >> >> >> >> >> >> >> > > > > -- Thanks & Regards, A Gerald --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to flex_india@googlegroups.com To unsubscribe from this group, send email to flex_india+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---