When I program in actionscript I have to ba aware of the various updates each version of the plugin has. One new security feature(?) is when accessing an external url new versions of the plugin pop up with a security message:"flash player has stopped a potentially unsafe operation"
well thats a pain in the @*$% if you have made a bunch of getUrl links in your script.
Anyway here is a workaround:
lets say I want to have 2 links, one to www.foobar.com and one to www.google.com hosted on my site www.lollipop.com I would usually have a line such asgetURL("http://www.foobar.com", _blank
andgetURL("http://www.google.com", _blank)
each referenced to a button.
Unfortunately this no longer is feasible because of the new popup "feature".
local urls are fine ie.getUrl(/lovers/);
will get the local url and the path /lovers/ like so:
http://www.foobar.com/lovers/
So with a little help from php we call a helper script like so:getURL("/helper.php?url=foobar");
andgetURL("/helper.php?url=google");
in the root of our php installed web server create the file helper.php:/************************************************************************/
Note similarly we could use javascript, asp, even modRewrite etc.. I just like php. The concept is always the same actionscript -> local url -> external url.
/* Simple forwading helper to external urls */
/* =========================== */
/* */
/* Copyright(c)2008 Bernard Edlington bernard(at)nexusinternational.jp */
/* http://www.nexusinternational.jp */
/* */
/************************************************************************/
// the following gets the url var passed to php and makes sure its lower case
$urlpass = strtolower($_GET['url']);
if ($urlpass == "foobar"){
header( "Location: http://www.foobar.com" );
exit;
}elseif ($urlpass == "google"){
header( "Location: http://www.google.com/" );
exit;
}else{
// for safety this last line will push all other vars to our web root
header( "Location: /" );
exit;
}
?>
See no need for that silly security "feature" afterall.
Popular Posts
-
Yesterday February the 22nd marked Toneplus ’ 19th year anniversary, reincorporated nearly 5 years ago as a stock Corporation so I could inv...
-
The following is a few tips on how to change an entire studio to a Blender pipeline. If you think things wont change... When I first arrive...
-
Re: https://www.japanindustrynews. com/2016/02/employ-people- japan-legal-perspective/ 人は日本の雇用制度がどのぐらい複雑か分ってくれないと思います 。 法律の範囲を越えないようにするのは重...
-
アシスタントアニメーターのポジションに空席あり Toneplusでは、 ある一つのプロジェクトにおいて日本人の研修アニメーターを募集 しています。 仕事の成果が優秀であれば、長期契約を得ることも可能です。 研修はカナダ人リードアニメーターによって行われます。 ...
-
以下は、スタジオ全体をブレンダーパイプラインに変更する方法に関するコツの情報です。 あなたはどうせ物事が変わらないと思っていませんか? 私が最初に来日した時、私はTDIとWavefrontを使用することに慣れていて、それからSoftimge、次にAlias、そしてMayaへと変更...
-
Recently I haven't had much time to blog. You may have seen a lot of the cool things that I am doing with toneplus. Anyway this piece ...
-
イベント: 8月4日(木)19:00より銀座 記憶に残っている方も多いと思いますが、私は東京GAFという旗印のもと、多くのイベントを主催していました。私はボートやクラブを貸し出し、映画の有名人を迎えたこともあります。 ここにいくつかの思い出があります: https://www.f...
-
#event : Thursday August 4 at 19:00 Ginza A lot of you remember I used to host a lot of events under the banner TokyoGAF. I rented out boa...
-
On Sunday I was over in Toyosu and decided to pop into the Tokyo Gas Science museum. I animated the exhibit a few years ago so I was curious...
-
I held the eighth TokyoGAF party at club Womb in Dogenzaka this time. A spectacular night with good friends and some new faces representin...
Blogger news
Blogroll
RSS Subscribe
Post a Comment