Zmags, Flash object and internal link
If you are using Zmags, and what to add internal link (go to some other page) into flash object. You could use this code in flash ( actionscript 3.0)
1
2
3
4
5
6
7 import flash.external.*;
but.addEventListener(MouseEvent.CLICK, function(e:MouseEvent) {
var curUrl:String = String( ExternalInterface.call(" function(){ return document.location.href.toString();}"));
curUrl = curUrl.replace(/\/([0-9]+)$/,'/'+YOUR_PAGE_NUMBER);
var myURL:URLRequest = new URLRequest(curUrl);
navigateToURL(myURL,"_self");
});
where YOUR_PAGE_NUMBER – is page number you want to go after click on button with instance name “but”
