案件でのメモ
yahoo, gyaoなどに載るFlashバナーの制作においてかなり制約が多い。
使えないスクリプトも多数あり、toStringといった普通に使いそうなものも使えない。ので仕方がTweenerをレギュレーションへひっかからないように少しカスタムする。というか今後はライブラリの使用は控えるべきと判断。
・1フレーム目は30kb以内に。
・少フレームで作るとスクリプトメインで動かしているswfだろうが帯域幅計算にひっかかる。
・テキストも使用不可
など
yahoo広告仕様書
http://netadguide.yahoo.co.jp/info/rate/data/index.html
Abbey レギュレーションチェッカー
http://yac.yahoo.co.jp/babbey/index.html
Author: | Wednesday, July 7, 2010 | (0) comments | Permanent Link
Tweenerの挙動で例えば、
1frame: none
2frame: オブジェクトA
と配置してあるとして、
2frameでオブジェクトAに対しTweenerでトゥイーン(ex. alpha0→100)させている途中に、1frame目へgotoAndPlay()させる。2frame目にstop()があるので2frame目で停止。イメージ的には、1frameにオブジェクトAは無いので、初期化されたオブジェクトAが2frame目で表示されるイメージだが、トゥイーン途中であると、そのトゥイーンの続きが表示される場合などがあった。他のシーンへ移る時などは、必ずTweener.removeTweens()をしたほうが良さそうだ。
Author: | Monday, July 5, 2010 | (0) comments | Permanent Link
Author: | Tuesday, January 26, 2010 | (1) comments | Permanent Link
Author: | Tuesday, January 26, 2010 | (0) comments | Permanent Link
Author: | Tuesday, December 15, 2009 | (0) comments | Permanent Link
Author: | Tuesday, October 27, 2009 | (0) comments | Permanent Link
var n = "010";
if(n.substr(0, 1) == "0") {
n = parseInt(n.substr(1));
}
Author: | Saturday, August 15, 2009 | (0) comments | Permanent Link
■sin
0°=< R <=180°の範囲で0以上
180< R <360の範囲で0以下
■cos
0°=< R <=90°, 270°< R <=360°の範囲で0以上
90°< R <=270°の範囲で0以下
Author: | Friday, June 26, 2009 | (0) comments | Permanent Link
function singleRandomInt(min:int, max:int, notValue:Array):int {
var intFount : int = Math.floor(Math.random() * max) + min;
//check unique num
for(var i=0; i
"範囲を指定した固有のランダム数をつくる" more.. »
Author: | Monday, May 25, 2009 | (0) comments | Permanent Link