Hello, to see if I can help, but look not understand why I have this problem as specifically:
I have a logo in the header of a website (klancstudio (DOT) com) that is supposed to lead to the main page. It is a swf created with Flash and ActionScript 3.
The code I have is:
BotonInstancia.addEventListener (MouseEvent. CLICK, Hyperlink)
Hyperlink function (e: MouseEvent): void
{
var url: String = "http:// (W) klancstudio (DOT) com";
var iraURL: URLRequest = new URLRequest (url);
try
{
navigateToURL (iraURL, "self");
}
catch (e: Error)
{
trace ("Failed!")
}
}
BotonInstancia. buttonMode = true;
- BotonInstancia.addEventListener (MouseEvent. CLICK, Hyperlink)
-
- Hyperlink function (e: MouseEvent): void
- {
- var url: String = "http:// (W) klancstudio (DOT) com";
- var iraURL: URLRequest = new URLRequest (url);
- try
- {
- navigateToURL (iraURL, "self");
- }
- catch (e: Error)
- {
- trace ("Failed!")
- }
- }
-
- BotonInstancia. buttonMode = true;
"Self" does not underscore the thing done, was a suggestion I read in a forum through which I went as much to what I want. If I put "_self" direct link does not work, if I put "_blank" works but always opens new browser and do not want that.
The problem is that when you open the first time the web and click on the logo opens a window / tab new addition (which is not sought and does not understand why) but in this new window / tab you Click again on the logo and it works well and reload the page on the same browser.
If anyone has any suggestions will be very grateful.
Greetings!