beginner having button issue


i have flash piece as3 , 2 buttons.

 

i getting reports second button not working people (i not getting consistent reports).

 

does see wrong code?

 

tia,
greg

 

 

 

roar_btn.addeventlistener(mouseevent.click, calllink); function calllink(event:mouseevent):void {
  var url:string = "http://www.firstlink.net";
  var request:urlrequest = new urlrequest(url);
  try {
    navigatetourl(request, '_blank');
  } catch (e:error) {
    trace("error occurred!");
  }
}

 

more_btn.addeventlistener(mouseevent.click, calllink2); function calllink2(event:mouseevent):void {
  var url:string = "http://www.secondlink.net";
  var request:urlrequest = new urlrequest(url);
  try {
    navigatetourl(request, '_self');
  } catch (e:error) {
    trace("error occurred!");
  }
}

there's nothing wrong code possible roar_btn fail if user had old popup blocker.  don't see reason 2nd button fail, though.



More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

Hur installera Joomla på One.com - Joomla! Forum - community, help and support

removing index.php from URL address - Joomla! Forum - community, help and support

「イメージマップのアンカー名には、...」のエラーが出ないようにしたい