<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
   <title>Flash ActionScript3.0入門ノート</title>
   <link rel="alternate" type="text/html" href="http://oshige.com/flash/as3note/" />
   <link rel="self" type="application/atom+xml" href="http://oshige.com/flash/as3note/atom.xml" />
   <id>tag:oshige.com,2008:/flash/as3note//16</id>
   <updated>2008-05-11T04:37:10Z</updated>
   <subtitle>大重美幸　ActionScript 3.0はじめました。ノートとサンプル。</subtitle>
   <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.1</generator>


<entry>
   <title>Eventのグループ化</title>
   <link rel="alternate" type="text/html" href="http://oshige.com/flash/as3note/2008/05/event.html" />
   <id>tag:oshige.com,2008:/flash/as3note//16.3357</id>
   
   <published>2008-05-11T00:55:12Z</published>
   <updated>2008-05-11T04:37:10Z</updated>
   
   <summary>複数のイベントが完了したならば次の動作へ移行したいということがありますよね。次の...</summary>
   <author>
      <name></name>
      <uri>http://oshige.com/blog/yomo/</uri>
   </author>
   
      <category term="sample2" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://oshige.com/flash/as3note/">
      <![CDATA[複数のイベントが完了したならば次の動作へ移行したいということがありますよね。次のサンプルでは、そんな複数のイベントを管理するEventGroupというカスタムクラスの簡単なデモです。

円いボールは、それぞれ好きな時間だけ動作して止まります。そして全部のボールの動作が完了するまで待ち、全部が止まったならば次の動作へ移行します。

ここで、個々に発生する「動作完了イベント」を受けて「全部の動作完了イベント」を発生するのがEventGroupの仕事です。メインのスクリプトは、EventGroupのイベントリスナーになるだけで、全員の動作完了を知ることができるわけです。

<a href="http://oshige.com/flash/as3note/sample2/GroupAnimation_test.html" target="eg"><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="eventGroup.gif" src="http://oshige.com/flash/as3note/images/eventGroup.gif" width="248" height="180" class="mt-image-none" style="" /></span></a>

このサンプルは何の役にも立ちそうにないですが、たとえば複数の問題をクリアしないと先に進めないとか、ネットワークからの複数のデータの読み込みが完了しないと表示しないとか、そういう場合に役立つテクニックです。]]>
      
   </content>
</entry>

<entry>
   <title>袋文字キャプション</title>
   <link rel="alternate" type="text/html" href="http://oshige.com/flash/as3note/2008/05/post_17.html" />
   <id>tag:oshige.com,2008:/flash/as3note//16.3355</id>
   
   <published>2008-05-06T13:57:55Z</published>
   <updated>2008-05-06T14:17:14Z</updated>
   
   <summary>FLVPlaybackコンポーネントにFLVCaptioningコンポーネントを...</summary>
   <author>
      <name></name>
      <uri>http://oshige.com/blog/yomo/</uri>
   </author>
   
      <category term="sample2" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://oshige.com/flash/as3note/">
      <![CDATA[FLVPlaybackコンポーネントにFLVCaptioningコンポーネントを組み合わせれば、再生に合わせて表示するキャプション（字幕）を簡単に付けることができます。
でも、こんな風に袋文字で表示するにはちょっとした工夫が必要です。
さて、どうすればいいんでしょうか？
答えは・・・次の本が出るまで待ってね〜（いろいろ事情があるわけで）
<a href="http://oshige.com/flash/as3note/sample2/flv/caption_fukurompji/fukuromojiCaption.html" target="flvcap_fukuro"><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="flvCaption_fukuromoji.jpg" src="http://oshige.com/flash/as3note/images/flvCaption_fukuromoji.jpg" width="249" height="217" class="mt-image-none" style="" /></span>
</a>]]>
      
   </content>
</entry>

<entry>
   <title>吹き出しFLV</title>
   <link rel="alternate" type="text/html" href="http://oshige.com/flash/as3note/2008/05/flv.html" />
   <id>tag:oshige.com,2008:/flash/as3note//16.3354</id>
   
   <published>2008-05-04T01:29:17Z</published>
   <updated>2008-05-04T01:35:42Z</updated>
   
   <summary>せっかく吹き出しを作るクラスを作ったので利用しましょう。 タイムに加えて吹き出し...</summary>
   <author>
      <name></name>
      <uri>http://oshige.com/blog/yomo/</uri>
   </author>
   
      <category term="sample2" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://oshige.com/flash/as3note/">
      <![CDATA[せっかく吹き出しを作るクラスを作ったので利用しましょう。
タイムに加えて吹き出しの表示座標と文を書いたキューポイントXMLを作り、これをスクリプトで読み込んでFLVにキューポイントを設定します。そして、FLV再生中のキューポイントの通過イベントを受けて吹き出しを表示するというサンプルです。

<a href="http://oshige.com/flash/as3note/sample2/fukidashi/fukidashiFLV1.html" target="kitesurf"><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="kitesurf.jpg" src="http://oshige.com/flash/as3note/images/kitesurf.jpg" width="238" height="207" class="mt-image-none" style="" /></span></a>

]]>
      
   </content>
</entry>

<entry>
   <title>吹き出し</title>
   <link rel="alternate" type="text/html" href="http://oshige.com/flash/as3note/2008/05/post_16.html" />
   <id>tag:oshige.com,2008:/flash/as3note//16.3353</id>
   
   <published>2008-05-04T01:03:44Z</published>
   <updated>2008-05-04T01:17:15Z</updated>
   
   <summary>メッセージ文をXMLから読み込み、それを吹き出しで表示するというサンプルです。X...</summary>
   <author>
      <name></name>
      <uri>http://oshige.com/blog/yomo/</uri>
   </author>
   
      <category term="sample2" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://oshige.com/flash/as3note/">
      <![CDATA[メッセージ文をXMLから読み込み、それを吹き出しで表示するというサンプルです。XMLでは文字サイズと背景色も指定できます。

吹き出しはドラッグして表示位置と重なりを変えることができます。
<a href="http://oshige.com/flash/as3note/sample2/fukidashi/embedFontsFukidashi.html" target="fukidashi_e"><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="fukidashi_e.gif" src="http://oshige.com/flash/as3note/images/fukidashi_e.gif" width="237" height="173" class="mt-image-none" style="" /></span></a>

日本語フォントを使う場合はフォントを埋め込むわけにいかないので、文字をビットマップに変換することでアニメーション中にも消えないようにしています。
<a href="http://oshige.com/flash/as3note/sample2/fukidashi/fukidashiBoard.html" target="fukidashi"><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="fukidashi.gif" src="http://oshige.com/flash/as3note/image/fukidashi.gif" width="237" height="173" class="mt-image-none" style="" /></span></a>]]>
      
   </content>
</entry>

<entry>
   <title>黒虫</title>
   <link rel="alternate" type="text/html" href="http://oshige.com/flash/as3note/2008/04/post_15.html" />
   <id>tag:oshige.com,2008:/flash/as3note//16.3340</id>
   
   <published>2008-04-20T03:02:05Z</published>
   <updated>2008-04-20T03:12:12Z</updated>
   
   <summary>黒虫（仮名）というムービーを作りました。似たようなムービーはあちこちで見たことが...</summary>
   <author>
      <name></name>
      <uri>http://oshige.com/blog/yomo/</uri>
   </author>
   
      <category term="sample2" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://oshige.com/flash/as3note/">
      <![CDATA[黒虫（仮名）というムービーを作りました。似たようなムービーはあちこちで見たことがあると思いますが、ちょっと試したいことがあって作ったものです。
クリックして追い回すと楽しいですよ。(^ ^)/
<a href="http://oshige.com/flash/as3note/sample2/kuro.html"  target="kuro"><img alt="kuro1.jpg" src="http://oshige.com/flash/as3note/images/kuro1-thumb-240x174.jpg" width="240" height="174" border="0" /></a>]]>
      
   </content>
</entry>

<entry>
   <title>XMLSlideShow.asに機能追加</title>
   <link rel="alternate" type="text/html" href="http://oshige.com/flash/as3note/2008/04/tweenimageloader.html" />
   <id>tag:oshige.com,2008:/flash/as3note//16.3338</id>
   
   <published>2008-04-14T14:40:26Z</published>
   <updated>2008-04-16T07:44:05Z</updated>
   
   <summary>TweenImageLoaderクラスの訂正記事だけだと申し訳ないので、Twee...</summary>
   <author>
      <name></name>
      <uri>http://oshige.com/blog/yomo/</uri>
   </author>
   
      <category term="sample" scheme="http://www.sixapart.com/ns/types#category" />
   
      <category term="正誤データ（3版）" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://oshige.com/flash/as3note/">
      <![CDATA[TweenImageLoaderクラスの訂正記事だけだと申し訳ないので、TweenImageLoaderクラスと組み合わせて使うXMLSlideShowクラスにスライドショーの送り、戻し、ジャンプ、停止トグルの関数を追加したいと思います。XMLSlideShowクラスは、XMLファイルから写真リストを読み込んでスライドショーを行うクラスです。p.434に掲載されています。</br>
次のスクリプトをXMLSlideShow.asに追加して、XMLSlideShowのインスタンスから呼んでください。この追加機能が正しく動作するように、先の<a href="http://oshige.com/flash/as3note/2008/04/p432.html">TweenImageLoaderクラスの訂正</a>を必ず行ってください。</br>
なお、この追加機能はp.430のSlideShowクラスでも利用できます。</br>

<pre class="code">
//--------追加関数
//１つ進む
 public function goNext():void {
	timerObj.reset();
	timerObj.start();
	//currentNoのカウントアップ
	currentNo = (currentNo>=photoXml.photo.length())?1:(currentNo+1);
	loadImageNo(currentNo);
}
//１つ戻る
 public function goPrev():void {
	timerObj.reset();
	timerObj.start();
	//currentNoのカウントダウン
	currentNo = (currentNo<=1)?photoXml.photo.length():(currentNo-1);
	loadImageNo(currentNo);
}
//指定の番号へジャンプ
 public function goNo(no:int):void {
	timerObj.reset();
	timerObj.start();
	currentNo = Math.max(1, Math.min(photoXml.photo.length(), no));
	loadImageNo(currentNo);
}
//停止と再生のトグル
 public function togglePause():void {
	if(timerObj.running){
		timerObj.stop();
	}else{
		timerObj.start();
	}
}
</pre>
使用例は次のようになります。p.437の最初に書いてあるフレームアクションに加筆したスクリプトです。ステージにはnext_mc、prev_mcのムービークリップを作っておきます。

<pre class="code">
import XMLSlideShow_work;
var xmlUrl:String = "xml/photolist.xml";
var slideObj:XMLSlideShow = new XMLSlideShow(container_mc, xmlUrl);

container_mc.addEventListener(MouseEvent.CLICK, onClick);
next_mc.addEventListener(MouseEvent.CLICK, onNext);
prev_mc.addEventListener(MouseEvent.CLICK, onPrev);

function onClick(event:MouseEvent):void {
	slideObj.togglePause();
}
function onNext(event:MouseEvent):void {
	slideObj.goNext();
}
function onPrev(event:MouseEvent):void {
	slideObj.goPrev();
}
</pre>
]]>
      
   </content>
</entry>

<entry>
   <title>p432</title>
   <link rel="alternate" type="text/html" href="http://oshige.com/flash/as3note/2008/04/p432.html" />
   <id>tag:oshige.com,2008:/flash/as3note//16.3337</id>
   
   <published>2008-04-14T14:29:25Z</published>
   <updated>2008-04-14T14:34:07Z</updated>
   
   <summary>p380で紹介しているTweenImageLoaderクラスをp.432でも使用...</summary>
   <author>
      <name></name>
      <uri>http://oshige.com/blog/yomo/</uri>
   </author>
   
      <category term="正誤データ（3版）" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://oshige.com/flash/as3note/">
      p380で紹介しているTweenImageLoaderクラスをp.432でも使用しています。こちらのスクリプトでもTweenクラスのトゥイーンが途中で中断してしまうことがないように、インスタンスをインスタンス変数imgTweenに保存するように訂正してください。
imgTweenをローカル変数で保持すると使用中にも関わらずガベージコレクションされてしまうことがあるようです。

-------------
p.432スクリプト　18行目に挿入
訂正前：
		var imgHolder:MovieClip;

		//コンストラクタ

訂正後：
		var imgHolder:MovieClip;
		var imgTween:Tween;

		//コンストラクタ
-------------
p.432スクリプト　下から2行目
訂正前：
var imgTween:Tween = new Tween(
訂正後：
imgTween = new Tween(

      
   </content>
</entry>

<entry>
   <title>p381〜p383</title>
   <link rel="alternate" type="text/html" href="http://oshige.com/flash/as3note/2008/04/p381p383.html" />
   <id>tag:oshige.com,2008:/flash/as3note//16.3336</id>
   
   <published>2008-04-14T14:19:31Z</published>
   <updated>2008-04-14T14:39:37Z</updated>
   
   <summary>TweenImageLoaderクラスのスクリプトにおいて、Tweenクラスのイ...</summary>
   <author>
      <name></name>
      <uri>http://oshige.com/blog/yomo/</uri>
   </author>
   
      <category term="正誤データ（3版）" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://oshige.com/flash/as3note/">
      TweenImageLoaderクラスのスクリプトにおいて、Tweenクラスのインスタンスをローカル変数imgTweenで保持していますが、マウス操作などを行うとトゥイーンの途中でもimgTweenがガベージコレクションされてしまい、トゥイーンが最後まで行われないことがあるようです。トゥイーンが最後まで行われるように、imgTweenをインスタンス変数で宣言してください。お手数かけます。

p.381スクリプト　10行目に挿入
訂正前：
		var imgHolder:MovieClip;

		//コンストラクタ

訂正後：
		var imgHolder:MovieClip;
		var imgTween:Tween;

		//コンストラクタ

-------------
p.381スクリプト　下から10行目
訂正前：
var imgTween:Tween = new Tween(
訂正後：
imgTween = new Tween(

-------------
p.382 １つ目の例：Tweenクラスでフェードイン
訂正前：
var imgTween:Tween = new Tween(
訂正後：
imgTween = new Tween(

-------------
p.382 ３つ目の例：水平スケールをトゥイーンする
訂正前：
var imgTween:Tween = new Tween(
訂正後：
imgTween = new Tween(

-------------
p.383 1つ目の例：回転角度をトゥイーンする
訂正前：
var imgTween:Tween = new Tween(
訂正後：
imgTween = new Tween(
      
   </content>
</entry>

<entry>
   <title>Flash Player 9の普及率</title>
   <link rel="alternate" type="text/html" href="http://oshige.com/flash/as3note/2008/02/flash_player_9.html" />
   <id>tag:oshige.com,2008:/flash/as3note//16.3296</id>
   
   <published>2008-02-05T05:01:50Z</published>
   <updated>2008-02-05T05:03:50Z</updated>
   
   <summary>AS3で制作するには、Flash Player 9の普及率も気になるところ・・・...</summary>
   <author>
      <name></name>
      <uri>http://oshige.com/blog/yomo/</uri>
   </author>
   
      <category term="note" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://oshige.com/flash/as3note/">
      <![CDATA[AS3で制作するには、Flash Player 9の普及率も気になるところ・・・
この数字があれば、クライアントも説得できるのではないでしょうか。

<a href="http://www.adobe.com/products/player_census/flashplayer/version_penetration.html" target="new">Flash Playerバージョン普及率</a>

]]>
      
   </content>
</entry>

<entry>
   <title>WOW-Engine</title>
   <link rel="alternate" type="text/html" href="http://oshige.com/flash/as3note/2008/01/wowengine.html" />
   <id>tag:oshige.com,2008:/flash/as3note//16.3288</id>
   
   <published>2008-01-23T01:56:41Z</published>
   <updated>2008-01-23T03:17:09Z</updated>
   
   <summary>ActionScript 3の3D物理（３次元での質量とか加速とか衝突とか）のク...</summary>
   <author>
      <name></name>
      <uri>http://oshige.com/blog/yomo/</uri>
   </author>
   
      <category term="note" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://oshige.com/flash/as3note/">
      <![CDATA[ActionScript 3の3D物理（３次元での質量とか加速とか衝突とか）のクラスライブラリWOW-Engineってのが出ましたよ。 

<a href="http://seraf.mediabox.fr/wow-engine/as3-3d-physics-engine-wow-engine/">WOW-Engine
http://seraf.mediabox.fr/wow-engine/as3-3d-physics-engine-wow-engine/</a>

ちなみに、2Dなら<a href="http://box2dflash.sourceforge.net/">box2dflash</a>。
こっちは3D描画をしなくていいので、そのぶん手軽。
でも、2D描画でも3Dで考えた方がいろいろ応用が効くように思えますね。
Zの値は重なりとかサイズとか、別のプロパティ表現に置き換えればいいわけだし・・・

]]>
      
   </content>
</entry>

<entry>
   <title>輪を描いて飛ぶトンボ</title>
   <link rel="alternate" type="text/html" href="http://oshige.com/flash/as3note/2008/01/post_14.html" />
   <id>tag:oshige.com,2008:/flash/as3note//16.3282</id>
   
   <published>2008-01-19T00:11:01Z</published>
   <updated>2008-01-19T00:53:55Z</updated>
   
   <summary>竹ざおに止まっているトンボに触ると別の竹ざおに飛んで逃げるというサンプルです。ト...</summary>
   <author>
      <name></name>
      <uri>http://oshige.com/blog/yomo/</uri>
   </author>
   
      <category term="sample2" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://oshige.com/flash/as3note/">
      <![CDATA[竹ざおに止まっているトンボに触ると別の竹ざおに飛んで逃げるというサンプルです。トンボはを描き、ちゃんと進む方向を向いて飛びます。ちょっと楽しいでしょ。
<a href="http://oshige.com/flash/as3note/sample2/event_tombo2.html" target="new"><img alt="tombo1.jpg" src="http://oshige.com/flash/as3note/mages/tombo1.jpg" width="358" height="244" border="0"/></a>

このムービーのヒントになるのが次のサンプルです。トンボがマウスカーソルの周りをグルグル周回します。こちらはソースファイルを置いておくので、これを元に考えてみてください。

<a href="http://oshige.com/flash/as3note/sample2/event_tombo.html" target="new"><img alt="tombo2.jpg" src="http://oshige.com/flash/as3note/images/tombo2.jpg" width="258" height="166"  border="0"/></a>

ソースファイル > <a href="http://oshige.com/flash/as3note/sample2/event_tombo.fla.zip">event_tombo.fla.zip</a>
]]>
      
   </content>
</entry>

<entry>
   <title>グレースケールに変換</title>
   <link rel="alternate" type="text/html" href="http://oshige.com/flash/as3note/2008/01/post_13.html" />
   <id>tag:oshige.com,2008:/flash/as3note//16.3277</id>
   
   <published>2008-01-08T07:48:27Z</published>
   <updated>2008-01-19T00:57:47Z</updated>
   
   <summary>今日はビットマップをグレースケールに変換するサンプルです。グレースケールからカラ...</summary>
   <author>
      <name></name>
      <uri>http://oshige.com/blog/yomo/</uri>
   </author>
   
      <category term="sample2" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://oshige.com/flash/as3note/">
      <![CDATA[今日はビットマップをグレースケールに変換するサンプルです。グレースケールからカラーに色が変わるエフェクトや、選択されている絵だけをカラーするなど、いろんな応用ができそうです。

スクリプトのポイントは３つ。１つは、MovieClipインスタンスのBitmapDataをどうやって取り出すか？という点。２つ目は色の取り出しと設定。そして３つ目がグレースケール変換の方法です。

RGBカラーをグレースケールに変換する換算式はいろいろあるようですが、ここではNTSC係数の加重平均法を使っています。

<a href="http://oshige.com/flash/as3note/sample2/toGrayScale_test-1.html"  target="new"><img alt="toGrayScale.jpg" src="http://oshige.com/flash/as3note/images/toGrayScale.jpg" width="364" height="145" border="0"/></a>

左がオリジナルの写真。右がスクリプトで作ったグレースケール写真。
]]>
      
   </content>
</entry>

<entry>
   <title>インスタンスの追加と再帰呼び出しなど</title>
   <link rel="alternate" type="text/html" href="http://oshige.com/flash/as3note/2008/01/post_12.html" />
   <id>tag:oshige.com,2008:/flash/as3note//16.3273</id>
   
   <published>2008-01-05T13:27:27Z</published>
   <updated>2008-01-09T08:40:04Z</updated>
   
   <summary>サーフィンで新年早々、足の甲をケガ（剥離骨折）してしまいました・・・とほほ。 （...</summary>
   <author>
      <name></name>
      <uri>http://oshige.com/blog/yomo/</uri>
   </author>
   
      <category term="sample2" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://oshige.com/flash/as3note/">
      <![CDATA[サーフィンで新年早々、足の甲をケガ（剥離骨折）してしまいました・・・とほほ。
（ps.再検査したら指の骨が3本折れてました。ぎゃぽ〜）

さて、新年１個目のサンプルはちょっと入り組んでいます。ポイントは２つ。１つ目のポイントは二枚葉をDisplayObjectのツリーとして入れ子のように追加して植物を作るところ。2つ目は、すべて植え終わったというイベントを受けて全ての花を咲かせるところです。

双葉と花のシンボルはMovieClipクラスを拡張したクラスとリンケージしているので、そこも注目してください。また、花は茎の先頭の二枚葉に咲くように、入れ子になっているchildの末端を特定するために「再帰呼び出し」も使っています。


<a href="http://oshige.com/flash/as3note/sample2/plants.html" target="new"><img alt="plants.gif" src="http://oshige.com/flash/as3note/images/plants.gif" width="341" height="170" border="0"/></a>

ソースファイル > <a href="http://oshige.com/flash/as3note/sample2/plants.zip">plants.zip</a>
]]>
      
   </content>
</entry>

<entry>
   <title>フォーメーションアニメーション</title>
   <link rel="alternate" type="text/html" href="http://oshige.com/flash/as3note/2007/12/post_11.html" />
   <id>tag:oshige.com,2007:/flash/as3note//16.3267</id>
   
   <published>2007-12-29T08:15:24Z</published>
   <updated>2007-12-31T03:52:16Z</updated>
   
   <summary>今日はこういうサンプルを作ってみました。 スプライトの並びが定期的に変わるアニメ...</summary>
   <author>
      <name></name>
      <uri>http://oshige.com/blog/yomo/</uri>
   </author>
   
      <category term="sample2" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://oshige.com/flash/as3note/">
      <![CDATA[今日はこういうサンプルを作ってみました。
スプライトの並びが定期的に変わるアニメーション。

<a href="http://oshige.com/flash/as3note/sample2/formations.html" target="formations"><img alt="formation.jpg" src="http://oshige.com/flash/as3note/images/formation.jpg" width="311" height="110" /></a>

ソースファイル > <a href="http://oshige.com/flash/as3note/sample2/formations.zip">formations.zip</a>

ps.
DLできるようになりました。zipファイル名を間違えていました。(^ ^;;]]>
      
   </content>
</entry>

<entry>
   <title>dispatchEventを手軽に使う</title>
   <link rel="alternate" type="text/html" href="http://oshige.com/flash/as3note/2007/12/dispatchevent.html" />
   <id>tag:oshige.com,2007:/flash/as3note//16.3264</id>
   
   <published>2007-12-28T08:58:54Z</published>
   <updated>2008-01-06T05:55:02Z</updated>
   
   <summary>dispatchEventは何やら難しそうなメソッドですが、実は意外と手軽に使え...</summary>
   <author>
      <name></name>
      <uri>http://oshige.com/blog/yomo/</uri>
   </author>
   
      <category term="sample2" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://oshige.com/flash/as3note/">
      <![CDATA[dispatchEventは何やら難しそうなメソッドですが、実は意外と手軽に使えます。次のサンプルプログラムのポイントは、円いインスタンスがにょりっと伸びるアニメーションが終了したよ〜っていうのをdispatchEventするところにあります。
ソースファイルを置いておきますので、ちょっと研究してみてくださいね。

<a href="http://oshige.com/flash/as3note/sample2/leafs.html" target="swf"><img alt="leaf.jpg" src="http://oshige.com/flash/as3note/images/leaf.jpg" width="234" height="191" border="0"/></a>


ソースファイル > <a href="http://oshige.com/flash/as3note/sample2/leafs.zip">leafs.zip</a>
]]>
      
   </content>
</entry>

</feed>
