Event Flex


    creationComplete="createLinkHandler()">
    
    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);
    }