mardi 17 janvier 2017

Coding swf in order to force running in my site

I recently have secure https on my site. So I'd like to update few coding lines in my swf flash games.

Now I have this:

path = _url.substring(0,22);
if (path == "http://lnx.sinapsi.org" || path == "http://win.sinapsi.org")
{
play();
}else{
stop();
getURL("http://www.sinapsi.org","_parent");
}

But I need adding also the https path, how? I tried this:

path = _url.substring(0,23);
if (path == "https://lnx.sinapsi.org" || path == "https://win.sinapsi.org")
{
play();
}else
path = _url.substring(0,22);
if (path == "http://lnx.sinapsi.org" || path == "http://win.sinapsi.org")
{
play();
}else{
stop();
getURL("http://www.sinapsi.org","_parent");
}

But doesn't work :-(

Please, help. Thanks.

Aucun commentaire:

Enregistrer un commentaire