Orkut Gmail Calendar Documents Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion doubt in following code please do let me clear
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
koteshwar Rao myneni  
View profile  
 More options Oct 27 2009, 4:40 pm
From: koteshwar Rao myneni <mkoteshwar...@gmail.com>
Date: Tue, 27 Oct 2009 16:40:40 +0530
Local: Tues, Oct 27 2009 4:40 pm
Subject: Re: [Pune Flex Users:1978] doubt in following code please do let me clear

*Try  this*

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"

creationComplete="createLinkHandler();">

   <mx:Script><![CDATA[
       import mx.controls.Alert;
       private function linkHandler(event:MouseEvent):void {
           try{
                var url:URLRequest = new URLRequest("
http://finance.google.com/finance?q=" +
             event.target.label);
             navigateToURL(url);
           }catch(err:Error){
               Alert.show("Please select a stock ticker");
           }

       }
       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>

Myneni Koteshwar Rao Chowdary

On Tue, Oct 27, 2009 at 3:55 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.htm...

> 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


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google