2009-01-22
ActionScriptの練習3
今日は流れ星!
なんかコピペになってるきがするけど気にしないw
見せかたについての勉強なんだよ!きっと!
・レイヤー側
var id = 1;
var hoshiObserver = setInterval(function() {
for (i=0;i<=2;i++)
star0.duplicateMovieClip('star'+(++id), id, {_y:0});
if (id >= 200)
clearInterval(hoshiObserver);
}, 500);
・おほし様側(star0)
onClipEvent(load) {
frame = 0;
this._x = Math.random() * Stage.width;
this._y = Math.random() * Stage.height;
this._alpha = 50 + Math.random() * 20;
this._xscale = this._yscale = 50 + Math.random() * 50;
//trace('create '+this._name);
}
onClipEvent(enterFrame) {
if (++frame < 10) {
this._x-=10;
this._y+=5;
this._alpha-=5;
}
else {
this._alpha=0;
//this.removeMovieClip();
}
}
コメントを書く
トラックバック - http://d.hatena.ne.jp/rin1024/20090122/1232638852
リンク元
- 3 http://projects.sorauta.net/hoshi/
- 3 http://www.google.co.jp/search?hl=ja&lr=lang_ja&client=firefox-a&rls=org.mozilla:ja:official&hs=Hma&q=javascript+div+スクロールバー&revid=427757749&sa=X&oi=revisions_inline&resnum=0&ct=top-revision&cd=4
- 3 http://www.google.co.jp/search?q=firefox3+落ちる&lr=lang_ja&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:ja:official&client=firefox
- 2 http://d.hatena.ne.jp/keyword/流れ星
- 2 http://ezsch.ezweb.ne.jp/search/ezGoogleMain.php?query=ダイクストラ&sr=0001
- 2 http://s.hatena.ne.jp/rin1024/
- 2 http://www.google.co.jp/search?client=firefox-a&rls=org.mozilla:ja:official&channel=s&hl=ja&q=SQL+SERVER+信頼接続&lr=&btnG=Google+検索
- 2 http://www.google.co.jp/search?hl=ja&client=firefox-a&rls=org.mozilla:ja-JP-mac:official&q=centos+apxs&btnG=検索&lr=lang_ja
- 2 http://www.google.co.jp/search?hl=ja&q=このユーザーは+SQL+Server+の信頼関係接続と関連付けられて??
- 2 http://www.google.co.jp/search?hl=ja&q=信頼関係接続+sqlserver&lr=&aq=0&oq=信頼関係接続+
