Hi
This is the code I have…
[COLOR=dimgray]// I need to get the swf URL path and attach this variable to a link //[/COLOR]
var pagePath:String=ExternalInterface.call(‘window.loc ation.pathname.toString’);
but.addEventListener(MouseEvent.MOUSE_DOWN, myHandler);
function myHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("[COLOR=#003366]http://email.testing.com[/COLOR]" + pagePath ), “_self”);
}
This is working fine…
I now need to see if a word in the variable ‘pagePath’ contains the word ‘ecard’ and if it does, change this word to ‘form’ for the button link.
Each variable URL path will be unique for each user session, so the end keys at the end of the URL path i.e. /uVB2GC1F/xGG30X1F will always be different, but the rest of the URL path will be the same (see below).
needs to change to
How would I set up the code to listen for and change the word in the variable ‘pagePath’ for the button link ?
I am stumped, any help would be fabulous.
Thanks in advance