1 Reply Latest reply on Jul 11, 2008 7:22 AM by Gregory Lafrance

    Create linkbutton with AS3

      Error: Severity and Description Path Resource Location Creation Time Id
      1119: Access of possibly undefined property click through a reference with static type mx.controls:LinkButton. FlexIntro/src/views Portofolio.mxml line 56 1215783211750 605

      in line link.click, what???
      private function newWin(url:String):void {
      var urlRequest:URLRequest = new URLRequest(url);
      navigateToURL(urlRequest, String("_blank"));

      private function init():void {
      //inserindo o link
      var link:LinkButton = new LinkButton();
      link.click="newWin(' http://www.adobe.com/')";