<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
  <channel rdf:about="http://w.atwiki.jp/fieds_labo4/">
    <title>Fieds_labo4</title>
    <link>http://w.atwiki.jp/fieds_labo4/</link>
    <atom:link href="https://w.atwiki.jp/fieds_labo4/rss10.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
    <description>Fieds_labo4</description>

    <dc:language>ja</dc:language>
    <dc:date>2010-09-23T11:31:09+09:00</dc:date>
    <utime>1285209069</utime>

    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="https://w.atwiki.jp/fieds_labo4/pages/26.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/fieds_labo4/pages/1.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/fieds_labo4/pages/25.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/fieds_labo4/pages/2.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/fieds_labo4/pages/15.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/fieds_labo4/pages/16.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/fieds_labo4/pages/24.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/fieds_labo4/pages/23.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/fieds_labo4/pages/14.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/fieds_labo4/pages/22.html" />
              </rdf:Seq>
    </items>
	
		
    
  </channel>
    <item rdf:about="https://w.atwiki.jp/fieds_labo4/pages/26.html">
    <title>frio3-tips</title>
    <link>https://w.atwiki.jp/fieds_labo4/pages/26.html</link>
    <description>
      *Tips

-ビルド
--最新：509　アップデータ
--購入時：456

-設定とか
--デフォルト：FLASH8、AS2

-ムービークリップの部品化
--ムービークリップを作成し、SWF書き出し。
--SWFファイルをライブラリ読み込み。

-線スタイル
--シェイプとグラフィックを新規作成時、線スタイルを指定。
--シェイプは、シェイプを選択し、プロパティで線スタイルを変更。
--シェイプの塗りと線は分離可能。
--グラフィックはダブルクリックし、シンボル編集に入り、シェイプを選択し、プロパティで線スタイルを変更。
--シェイプとグラフィックを新規作成時に線スタイル無しで作成した場合、後から線スタイルの追加ができない。
--インクボトルで図形の縁をクリックすると線を生成。
--インクボトル、難易度高いｗ
--うまくいかないですｈ
--テキストに線スタイル（文字縁）は無い。
--テキストにはグローを使うか、分離して、インクボトルを使用

-逆再生
--メインタイムラインにMC1を配置。MC1は再生後停止。
--先頭から再生ボタンMC2と最終から逆再生ボタンMC3を付けて、MC1の再生／逆再生（フレームを戻していくやり方）はOK。
--テスト時のシンボル数８、MC数３
--作成中のsqf（この段階でシンボル数６４、MC数２７。もっと増える予定）で同様に配置MCの再生／逆再生を行ったところ、逆再生時に違うグラフィックが表示されて、何？な感じになる。
--配置MCのステージを見直したけど、ゴミ見つからない。
--逆再生時個々のオブジェクトの位置はあってるんだけど、絵が違う。違うのに置き換わってるみたい。何で？ｗ
--配置してるのは、グラフィックシンボル。
--んー、わからない。
--１フレ前に戻るともう壊れてる。。。
--短いメニューMCなので、逆再生を止めて、閉じる動きを作って、フレーム指定再生で対処。
--使い方が悪いのかfrimo3がおかしいのか不明ってところが痛いですｈ



　    </description>
    <dc:date>2010-09-23T11:31:09+09:00</dc:date>
    <utime>1285209069</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/fieds_labo4/pages/1.html">
    <title>トップページ</title>
    <link>https://w.atwiki.jp/fieds_labo4/pages/1.html</link>
    <description>
      *トップ
雑記帳。。。
ActionScript3の予定です。

[[ActionScript(Wikipedia)&gt;http://ja.wikipedia.org/wiki/ActionScript]]

FlashDevelopを使い始めた私に、グッドタイミング？ｗ
[[Flash Develop JP&gt;http://flashdevelop.jp/]]




&amp;color(red){[ご注意]　下に表示しているグーグルアドセンスは、このwikiスペースを運営されている@wiki様のアフェリエイトです。}
&amp;color(red){ご利用に関しましては、各個人の責任でお願いいたします。}     </description>
    <dc:date>2010-02-15T19:36:57+09:00</dc:date>
    <utime>1266230217</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/fieds_labo4/pages/25.html">
    <title>frimo3-link</title>
    <link>https://w.atwiki.jp/fieds_labo4/pages/25.html</link>
    <description>
      *frimo3 リンク

-[[frimo3発売元AHS&gt;http://www.ah-soft.com/]]
-[[開発元Sothink&gt;http://www.sothink.com/]]
-[[Sothink SWF Easy - F.A.Q.&gt;http://www.sothink.com/product/swfeasy/faq.htm]]
-[[SWF Easy V6.2&gt;http://www.sothink.com/product/swfeasy/index.htm]]
-[[SWF Quicker V5.0&gt;http://www.sothink.com/product/swfquicker/index.htm]]




　    </description>
    <dc:date>2010-02-15T13:35:16+09:00</dc:date>
    <utime>1266208516</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/fieds_labo4/pages/2.html">
    <title>メニュー</title>
    <link>https://w.atwiki.jp/fieds_labo4/pages/2.html</link>
    <description>
      [[Home&gt;トップページ]] / [[History&gt;更新履歴]]
■Information
└[[このサイトについて]]


■[[開発環境]]
■[[AdobeFlex3.2リファレンスガイド]]
■[[フロー制御]]
■[[ライブラリ]]
■[[ゲーム]]

&amp;html(&lt;div class=&quot;menubar&quot;&gt;Practice&lt;/div&gt;)├[[ライフ１&gt;Practice-life01]]
├[[基本１&gt;Practice-basic01]]
├[[基本２&gt;Practice-basic02]]
├[[基本３&gt;Practice-basic03]]
└Practice

&amp;html(&lt;div class=&quot;menubar&quot;&gt;frimo3&lt;/div&gt;)├[[tips&gt;frio3-tips]]
├[[リンク&gt;frimo3-link]]
└frimo3


//&amp;html(&lt;div class=&quot;menubar&quot;&gt;VAIO W&lt;/div&gt;)■[[TOP&gt;vaiow-top]]
//├[[リカバリ&gt;vaiow-recovery]]
//├[[削除アプリ&gt;vaiow-defaultapp]]
//├[[インストアプリ&gt;vaiow-installapp]]
//└VAIO W

//&amp;html(&lt;div class=&quot;menubar&quot;&gt;Meadow&lt;/div&gt;)■INSTALL
//├[[準備&gt;インストール準備]]
//├[[インストール開始&gt;インストール開始]]
//├[[ImageMagick&gt;ImageMagick]]
//├[[インストール終了&gt;インストール終了]]
//├[[設定&gt;設定]]
//├[[リンク&gt;リンク]]
//└Meadow

■取り置き
└[[リンク&gt;linktemp01]]    </description>
    <dc:date>2010-02-15T13:17:22+09:00</dc:date>
    <utime>1266207442</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/fieds_labo4/pages/15.html">
    <title>開発環境</title>
    <link>https://w.atwiki.jp/fieds_labo4/pages/15.html</link>
    <description>
      *開発環境

-WindowsXPSP3
-FlashDevelop
-FlexSDK
-frimo3


-[[Adobe AIR製ソフトやFlashコンテンツを作成できる無償の開発環境「FlashDevelop」&gt;http://www.forest.impress.co.jp/docs/review/20090824_308521.html]]
-[[アンダー1万円でプロ級Flashアニメが作れる「Frimo3」を試す！&gt;http://ascii.jp/elem/000/000/434/434319/]]


-frimo3で[[基本３&gt;Practice-basic03]]で作ったSWFを読み込んで解析して、AS生成。
-- プレビューするとコンパイルエラー。FlexSDKとJREが必要って出ます。
-- オプション設定で、FlexSDKのパスを指定して、プレビュー。
-- jvm.dll のロードエラー。無理やり継続しても、真っ白なムービーが出来上がります。
-コンパイル出来なくても困りはしないんですけど、惜しいって感じｗ



　    </description>
    <dc:date>2009-11-21T11:51:32+09:00</dc:date>
    <utime>1258771892</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/fieds_labo4/pages/16.html">
    <title>linktemp01</title>
    <link>https://w.atwiki.jp/fieds_labo4/pages/16.html</link>
    <description>
      **　一時リンク置き場

配列のクローンの作成
Array クラスには、配列のコピーを作成する組み込みメソッドは用意されていません。
配列の &quot;浅いコピー&quot; （参照のみ）、&quot;深いコピー&quot;（実態コピー）
[[http://www.adobe.com/livedocs/flex/201_jp/html/10_Lists_of_data_166_5.html]]
[[http://ameblo.jp/n2works/page-2.html]]


サウンド
[[http://hakuhin.hp.infoseek.co.jp/main/as3/sound.html]]
[[http://cs3book.flashoop.jp/wiki/index.php?AS3%E3%81%A7%E6%89%B1%E3%81%86%E3%82%B5%E3%82%A6%E3%83%B3%E3%83%89]]
[[【AS3入門】読み込み可能なMP3ファイルのフォーマット&gt;http://d.hatena.ne.jp/ActionScript/20090718/as3_mp3_embed_format]]
[[AS3 での Embed の話&gt;http://blog.bk-zen.com/2009/08/07/203/]]
[[【AS3入門】続・読み込み可能なMP3ファイルのフォーマット（追検証とLAMEの仕様について）&gt;http://d.hatena.ne.jp/ActionScript/20090808/as3_mp3_embed_lame]]
[[mp3というフォーマットと特許・著作権&gt;http://www.initialt.org/lame/patent.html]]
[[LAME 3.98 stable コマンドラインオプション&gt;http://www001.upp.so-net.ne.jp/yama-k/codec/lame3.98option.html]]
[[Lame&gt;http://lame.sourceforge.net/]]
[[Win用バイナリ配布&gt;http://www.rarewares.org/mp3.php]]

 lame -b 64 --resample 44.1 source.wav destination.mp3

[[ActionScript3.0 における音楽再生と停止&gt;http://d.hatena.ne.jp/kaityo/20090626/1246031610]]
[[AS3でwavファイルをEmbedしたりエフェクトかけたり（要POPFORGE）&gt;http://memo.kappa-lab.com/2008/01/as3wavembedpopforge.html]]
[[3分で作れる、Flashに使える効果音クッキング&gt;http://level0.kayac.com/2009/10/3min_sound.php]]
第38回　Flashムービーに外部MP3ファイルを読み込んでみよう
[[http://itpro.nikkeibp.co.jp/article/COLUMN/20070223/263058/]]


Jiglibflash is a as3 open source 3D physics
[[http://code.google.com/p/jiglibflash/]]
Simple AS3 Contact Form Using PHP
[[http://active.tutsplus.com/freebies/actionscript-30-classes/simple-as3-contact-form-using-php/]]
3D、[[ゲーム]]、物理エンジン、トゥイーンなど、ActionScript3用便利[[ライブラリ]]集
[[http://phpspot.org/blog/archives/2008/08/3dactionscript3.html]]
ActionScript で描画内容を JPEG ファイルとして保存するコード 
[[http://kawa.at.webry.info/200907/article_3.html]]
Flashで3Dゲームを作成するには
http://oshiete1.goo.ne.jp/qa2211974.html
Creating 3D Classes with ActionScript 2.0
http://www.adobe.com/devnet/flash/articles/3d_classes.html
How well does Macromedia Flash do 3D?
http://www.adobe.com/devnet/flash/articles/samurai_ch2.html



Flex基礎講座（パート1）:はじめてのFlexアプリケーション開発
[[http://codezine.jp/article/detail/106?p=2]]
Flex基礎講座（パート3）:コンテナの利用
[[http://codezine.jp/article/detail/108]]

セッションサーバーの実装
[[http://d.hatena.ne.jp/viver/20080317/p1]]

Flex FAQ コーディング関連
[[http://www.geocities.jp/takuji_kawata/faq/faq_coding3.htm]]

第2回Flex勉強会
[[http://www.fores.jp/labs/wiki/index.php?%E7%AC%AC2%E5%9B%9EFlex%E5%8B%89%E5%BC%B7%E4%BC%9A]]
nullとundefinedはほぼ同等だが、「===」で比較すると別扱いになる。
    //こちらはtrue
    if(null == undefined)
    {
    }

    //これだとfalse
    if(null === undefined)
    {
    }

変数のスコープは{}ブロック単位ではなく関数単位なので、以下の例のようにfor文で使う「i」などの変数名が重複するとコンパイル時に警告が出てしまうので注意
    private function foo() :void
    {
        //forループその1
        for(var i :int = 0; i &lt; 3; i++)
        {
        }

        //forループその2
        for(var i :int = 0; i &lt; 5; i++)
        {
        }
    }

AS3で配列の要素に入る型を指定する方法
[[http://www.noridon.net/weblogs/archives/2006/06/as3.html]]

配列を扱う_Flash
[[http://ft-lab.ne.jp/cgi-bin/wiki.cgi?page=%C7%DB%CE%F3%A4%F2%B0%B7%A4%A6_Flash]]

TileListからCanvasへドラッグ＆ドロップしたい。
[[http://www.fxug.net/modules/xhnewbb/viewtopic.php?topic_id=1220&amp;forum=2&amp;post_id=5069]]

アクティベーションオブジェクトによるメモリリーク
[[http://www.imajuk.com/blog/archives/2008/04/post_3.html]]

同じ親を持つクラスをひとつの変数で使いまわす
[[http://blog.initt.org/?cat=148]]

Flex3基礎講座(第1章 AdvancedDataGridを使う)
[[http://www.necst.co.jp/product/ibiz/column/flex3/chap1.html]]

SQLiteのDB操作を追加してAIRウィジェットを完成
[[http://www.atmarkit.co.jp/fwcr/rensai2/airwidget04/airwidget04_3.html]]

Flex3におけるMixinに関して
[[http://prepro.wordpress.com/2009/08/23/flex3%E3%81%AB%E3%81%8A%E3%81%91%E3%82%8Bmixin%E3%81%AB%E9%96%A2%E3%81%97%E3%81%A6/]]

Flex SDK を Mate と PHP と組み合わせて使う
[[http://www.ibm.com/developerworks/jp/opensource/library/os-php-flexsdk/index.html]]

ActionScriptメモ.txt
[[http://homepage2.nifty.com/takaaki024/tips/programs/flex/actionscript3.html]]

マウスの動きで10個のアイコンを変化させる
[[http://cesare.jp/as3/tutorial/tutorial_4]]

クロスプラットフォームなAIRアプリ開発時の注意点　〜Dockアイコンやタスクトレイアイコンについて〜
[[http://flashcast.jp/blog/2009/02/airdock.html]]

IBM ILOG Elixir：AIRでExcel XMLスプレッドシート形式のファイルを読む
[[http://builder.japan.zdnet.com/member/u522342/blog/2009/09/29/entry_27025172/]]

Vol.3:モダンJavaScript
[[http://www.xenophy.com/technology/ux/pdg/javascript/javascript01.html]]

ActionScript 3.0におけるパフォーマンス向上のヒント
[[http://www.fumiononaka.com/Sample/Adobe_MAX_Japan_2009/FA090130.html]]

コリン・ムック「今から始めるActionScript 3.0」に行ってきました
-「変数には値そのものが格納されているわけじゃない。変数は値の参照を持っているだけ」
-「変数はコンテナではない。参照を持つ事のみ可能。本来のコンテナはシステムメモリ」
[[http://www.func09.com/wordpress/archives/176]]

ActionScript 3.0とは
[[http://www.saturn.dti.ne.jp/~npaka/flash/as30/]]
Flex User Group
[[http://www.fxug.net/]]
モーショントゥイーン
[[http://hikipuro.is-a-geek.org/flash/game/sample/s022.php]]
[[http://livedocs.adobe.com/flex/3_jp/langref/mx/effects/package-detail.html]]

ActionScript3での音生成
[[http://technote.gabocoy.com/archives/000336.php]]

スーパー高速に射影変換するには
[[http://saqoosha.net/2009/05/25/1750/]]

Box2DでActionScript物理プログラミング
[[http://gihyo.jp/dev/feature/01/box2d]]

クラスメンバーとインスタンスメンバーの違い
[[http://www.1art.jp/flash9/chapter/140/]]

「表示リスト」とインスタンス
[[http://d.hatena.ne.jp/tomtomjacktom/20090311/1236773174]]

第5回　「表示リスト」で画面上のインスタンスの階層や重ね順を管理する 
[[http://itpro.nikkeibp.co.jp/article/COLUMN/20071129/288309/?ST=webdesign&amp;P=1]]

ランダム
Math.random() でランダムな整数を取得する方法
[[http://www.adobe.com/jp/support/kb/ts/228/ts_228622_ja-jp.html]]
Math.random() で任意の範囲のランダムな数を得たい
[[http://d.hatena.ne.jp/yukku0423/20090414/1239677185]]
random関数
[[http://www.ajaxtower.jp/js/math_class/index8.html]]

グループ化したテキストにアクセス・・
[[http://tenten100.blog123.fc2.com/blog-entry-245.html]]

第90回　Webで動画を楽しもう！
[[http://www.tdk.co.jp/techmag/knowledge/200804/index.htm]]
FLASH関連用語集
[[http://www.mitsue.co.jp/case/design/f_index.html]]
第1回：ざっくり解説 - Flash Liteの仕様
[[http://thinkit.jp/article/734/1/]]






　    </description>
    <dc:date>2009-11-21T11:32:31+09:00</dc:date>
    <utime>1258770751</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/fieds_labo4/pages/24.html">
    <title>Practice-basic03</title>
    <link>https://w.atwiki.jp/fieds_labo4/pages/24.html</link>
    <description>
      *基本３
画像の移動と音の再生

-やりたかったこと
-- 画像の表示
-- 画像の移動
-- 画像の拡大縮小
-- 画像の透明化
-- BGM再生
-- 効果音再生
-- 画像への効果は Tweener を使用してみました。
--- ムービーを配置しておいて、ガーッと再生って感じかな？
--- Flashでムービーを作ったことが無いとどうすればいいかイメージができないかも。
-- 画像3枚を動かして、BGMと効果音入れてます。再生のみ。UI無し。
#highlight(){{
package 
{
	//import flash.display.DisplayObject;
	import flash.display.Bitmap;
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.media.Sound;
	import flash.media.SoundMixer;
	import flash.media.SoundTransform;
    import flash.text.*;
    import flash.utils.Timer;
	import flash.geom.Point;
	import flash.utils.setInterval;
	import caurina.transitions.Tweener;
	import caurina.transitions.properties.FilterShortcuts;
	
	/**
	 * ...
	 * @author ss
	 */
	public class Main extends Sprite 
	{
        [Embed(source=&#039;../mp3/bgm01.mp3&#039;)] private static const BGM01:Class;
        [Embed(source=&#039;../mp3/pon01.mp3&#039;)] private static const PON01:Class;
        [Embed(source=&#039;../img/usi.gif&#039;)] private static const UsiImg:Class;
        [Embed(source=&#039;../img/tora.gif&#039;)] private static const ToraImg:Class;
        [Embed(source = &#039;../img/usa.gif&#039;)] private static const UsaImg:Class;
		private var bgm01:Sound = new BGM01();
		private var pon01:Sound = new PON01();
		private var usi:Bitmap = new UsiImg();
		private var tora:Bitmap = new ToraImg();
		private var usa:Bitmap = new UsaImg();
		
		public function Main():void 
		{
			if (stage) init();
			else addEventListener(Event.ADDED_TO_STAGE, init);
			//stage.width = 660;      // override error!
			//stage.height = 250;     // override error!
			FilterShortcuts.init();
			bgm01.play(1000, 3);      // play start delay=1s ,loop=3
			Anime1();
		}
		
		private function init(e:Event = null):void 
		{
			removeEventListener(Event.ADDED_TO_STAGE, init);
			// entry point
		}
		
        public function Anime1():void {
			// usi
			usi.x = 220;
			usi.y = 0;
			usi.alpha = 0;   // invisible
			addChild(usi);
			// usa
			usa.x = 220;
			usa.y = 0;
			usa.alpha = 0;   // invisible
			addChild(usa);
			// tora
			tora.x = 220;
			tora.y = 0;
			tora.alpha = 0;   // invisible
			addChild(tora);

			// move start
			Tweener.addTween(usi, {
				delay: 1,
				time: 1,
				alpha: 1,
				transition: &quot;liner&quot;
			});
			Tweener.addTween(usi, {
				delay: 2,
				time: 4,
				x:0,
				y:0,
				transition: &quot;liner&quot;
			});
			Tweener.addTween(usa, {
				delay: 6,
				time: 1,
				alpha: 1,
				transition: &quot;liner&quot;
			});
			Tweener.addTween(usa, {
				delay: 7,
				time: 4,
				x:440,
				y:0,
				transition: &quot;liner&quot;
			});
			Tweener.addTween(tora, {
				delay: 11,
				time: 1,
				alpha: 1,
				transition: &quot;liner&quot;
			});
			// scale change half
            Tweener.addTween(usi, {
				delay: 12,
                time: 3,    // 1sec animation
				x:55,
				y:62,
                scaleX: 0.5,  // scaleX moveto 5
                scaleY: 0.5,   // scaleY moveto 5
				transition: &quot;liner&quot;
            });
            Tweener.addTween(tora, {
				delay: 12,
                time: 3,    // 1sec animation
				x:275,
				y:62,
                scaleX: 0.5,  // scaleX moveto 5
                scaleY: 0.5,   // scaleY moveto 5
				transition: &quot;liner&quot;
            });
            Tweener.addTween(usa, {
				delay: 12,
                time: 3,    // 1sec animation
				x:495,
				y:62,
                scaleX: 0.5,  // scaleX moveto 5
                scaleY: 0.5,   // scaleY moveto 5
				transition: &quot;liner&quot;
            });
			// scale reset
            Tweener.addTween(usi, {
				delay:15,
                time: 3,    // 1sec animation
				x:0,
				y:0,
                scaleX: 1,  // scaleX moveto 5
                scaleY: 1,   // scaleY moveto 5
				transition: &quot;liner&quot;
            });
            Tweener.addTween(tora, {
				delay:15,
                time: 3,    // 1sec animation
				x:220,
				y:0,
                scaleX: 1,  // scaleX moveto 5
                scaleY: 1,   // scaleY moveto 5
				transition: &quot;liner&quot;
            });
            Tweener.addTween(usa, {
				delay:15,
                time: 3,    // 1sec animation
				x:440,
				y:0,
                scaleX: 1,  // scaleX moveto 5
                scaleY: 1,   // scaleY moveto 5
				transition: &quot;liner&quot;
            });
			// scale change half and invisible
            Tweener.addTween(usi, {
				delay: 18,
                time: 3,    // 1sec animation
				x:55,
				y:62,
				alpha:0,
                scaleX: 0.5,  // scaleX moveto 5
                scaleY: 0.5,   // scaleY moveto 5
				transition: &quot;liner&quot;
            });
            Tweener.addTween(tora, {
				delay: 24,
                time: 3,    // 1sec animation
				x:275,
				y:62,
				alpha:0,
                scaleX: 0.5,  // scaleX moveto 5
                scaleY: 0.5,   // scaleY moveto 5
				transition: &quot;liner&quot;
            });
            Tweener.addTween(usa, {
				delay: 21,
                time: 3,    // 1sec animation
				x:495,
				y:62,
				alpha:0,
                scaleX: 0.5,  // scaleX moveto 5
                scaleY: 0.5,   // scaleY moveto 5
				transition: &quot;liner&quot;
            });
			// reset scale
            Tweener.addTween(usi, {
				delay:27,
                time: 3,    // 1sec animation
				x:0,
				y:0,
				alpha:1,
                scaleX: 1,  // scaleX moveto 5
                scaleY: 1,   // scaleY moveto 5
				transition: &quot;liner&quot;
            });
            Tweener.addTween(tora, {
				delay:27,
                time: 3,    // 1sec animation
				x:220,
				y:0,
				alpha:1,
                scaleX: 1,  // scaleX moveto 5
                scaleY: 1,   // scaleY moveto 5
				transition: &quot;liner&quot;
            });
            Tweener.addTween(usa, {
				delay:27,
                time: 3,    // 1sec animation
				x:440,
				y:0,
				alpha:1,
                scaleX: 1,  // scaleX moveto 5
                scaleY: 1,   // scaleY moveto 5
				transition: &quot;liner&quot;
            });
			// move out
            Tweener.addTween(usi, {
				delay:36,
                time: 3,    // 1sec animation
				x:-230,
				y:0,
				transition: &quot;liner&quot;,
				onStart:function():void { pon01.play(); }
			});
            Tweener.addTween(tora, {
				delay:33,
                time: 3,    // 1sec animation
				x:220,
				y:-260,
				transition: &quot;liner&quot;,
				onStart:function():void { pon01.play(); }
            });
            Tweener.addTween(usa, {
				delay:30,
                time: 3,    // 1sec animation
				x:670,
				y:0,
				transition: &quot;liner&quot;,
				onStart:function():void { pon01.play(); }
            });
			// reset move
            Tweener.addTween(usi, {
				delay:39,
                time: 3,    // 1sec animation
				x:0,
				y:0,
				transition: &quot;liner&quot;
            });
            Tweener.addTween(tora, {
				delay:39,
                time: 3,    // 1sec animation
				x:220,
				y:0,
				transition: &quot;liner&quot;
            });
            Tweener.addTween(usa, {
				delay:39,
                time: 3,    // 1sec animation
				x:440,
				y:0,
				transition: &quot;liner&quot;
            });
		}
		
	}
	
}
}}


　    </description>
    <dc:date>2009-10-31T20:24:05+09:00</dc:date>
    <utime>1256988245</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/fieds_labo4/pages/23.html">
    <title>Practice-basic02</title>
    <link>https://w.atwiki.jp/fieds_labo4/pages/23.html</link>
    <description>
      *基本２

-ステージサイズは、[Project]のプロパティで設定する。
-stageでは設定不可。readonly.





　    </description>
    <dc:date>2009-10-31T15:31:36+09:00</dc:date>
    <utime>1256970696</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/fieds_labo4/pages/14.html">
    <title>このサイトについて</title>
    <link>https://w.atwiki.jp/fieds_labo4/pages/14.html</link>
    <description>
      *このサイトについて

このサイトは、忘れん坊のFiedsのメモ帳です^^;
ソース貼る時にTABとかずれたままです^^;　面倒くさいので直しませんｗ









&amp;color(red){■グーグルアドセンスについて}
&amp;color(red){[ご注意]　下に表示しているグーグルアドセンスは、このwikiスペースを運営されている@wiki様のアフェリエイトです。}
&amp;color(red){ご利用に関しましては、各個人の責任でお願いいたします。}
　    </description>
    <dc:date>2009-10-31T13:49:32+09:00</dc:date>
    <utime>1256964572</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/fieds_labo4/pages/22.html">
    <title>Practice-basic01</title>
    <link>https://w.atwiki.jp/fieds_labo4/pages/22.html</link>
    <description>
      *基本
[[プログラマのためのFlash遊び方&gt;http://gihyo.jp/dev/feature/01/flash-sdk/0001]]

- ActionScript3でFlashの人は7回目まででOKかな？
- アニメーションの説明で Tweener が出てきます。
- 8回目はWEBアプリの話。
- 9回目はAIRの話。
- Flash Develop の場合、8回目、9回目はどうやればいんでしょ？
- Flash Develop にフォーム作る機能とかついてないのか？
- バッジを４っつ並べてみた
#highlight(){{
package 
{
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.geom.Matrix;
	import flash.geom.Point;
	import flash.filters.DropShadowFilter;
	import flash.text.TextField;
	
	/**
	 * ...
	 * @author ss
	 */
	public class Main extends Sprite 
	{
		// instance
		private var LINE_COLOR:uint = 0xffffff;
		private var BODY_COLOR1:uint = 0xffff66;
		private var BODY_COLOR2:uint = 0xffcc00;
		private var CORNER:int = 12;
		private var RADIUS1:Number = 26;
		private var RADIUS2:Number = 22;
		private var TEXT:String = &quot;BETA&quot;;

		public function Main():void 
		{
			if (stage) init();
			else addEventListener(Event.ADDED_TO_STAGE, init);
			init_01();
			Web2Badge(100,100);
			init_02();
			Web2Badge(100,200);
			init_03();
			Web2Badge2(100,300);
			init_04();
			Web2Badge2(100,400);
		}
		
		private function init(e:Event = null):void 
		{
			removeEventListener(Event.ADDED_TO_STAGE, init);
			// entry point
		}
		
		private function init_01():void {
			LINE_COLOR = 0xffffff;
			BODY_COLOR1 = 0xffff66;
			BODY_COLOR2 = 0xffcc00;
			CORNER = 12;
			RADIUS1 = 26;
			RADIUS2 = 22;
			TEXT = &quot;BETA&quot;;			
		}
		private function init_02():void {
			LINE_COLOR = 0x7FCE3D;
			BODY_COLOR1 = 0xCDEEB7;
			BODY_COLOR2 = 0x74CA31;
			CORNER = 8;
			RADIUS1 = 26;
			RADIUS2 = 18;
			TEXT = &quot;SALE&quot;;			
		}
		private function init_03():void {
			LINE_COLOR = 0xAEAFB1;
			BODY_COLOR1 = 0xAEAFB1;
			BODY_COLOR2 = 0x2B2B2B;
			CORNER = 10;
			RADIUS1 = 20;
			RADIUS2 = 26;
			TEXT = &quot;BETA&quot;;			
		}
		private function init_04():void {
			LINE_COLOR = 0xffffff;
			BODY_COLOR1 = 0xFFDAED;
			BODY_COLOR2 = 0xFD037F;
			CORNER = 16;
			RADIUS1 = 26;
			RADIUS2 = 18;
			TEXT = &quot;SALE&quot;;			
		}
		public function Web2Badge(pox:int, poy:int):void {
			// badge little
			var d:Number = Math.min(RADIUS1, RADIUS2) * 2;

			// make Sprite
			var s:Sprite = new Sprite();
			s.graphics.lineStyle(1, LINE_COLOR);

			// gradation renge 
			// (d×d renge -45°direction)
			var matrix:Matrix = new Matrix();
			matrix.createGradientBox(d, d, -Math.PI / 4);

			// gradation setting
			s.graphics.beginGradientFill(
				&quot;linear&quot;,                    // style
				[BODY_COLOR1, BODY_COLOR2],  // color
				[1, 1],                      // alpher
				[0, 255],                    // color position
				matrix);                     // renge and direction

			// star shape
			var angle:Number = 2 * Math.PI / CORNER;
			var p1:Point, p2:Point;
			s.graphics.moveTo(RADIUS1, 0);
			for(var i:int = 0; i &lt; CORNER; i++) {
				p1 = Point.polar(RADIUS2, angle * (i + 0.5));
				p2 = Point.polar(RADIUS1, angle * (i + 1));
				s.graphics.lineTo(p1.x, p1.y);
				s.graphics.lineTo(p2.x, p2.y);
			}
			s.graphics.endFill();

			// add shadow
			s.filters = [new DropShadowFilter(4, 45, 0, 0.5)];

			// text
			var size:int = d / TEXT.length;
			var text:TextField = new TextField();
			text.htmlText = &#039;&lt;font size=&quot;&#039; + size + &#039;&quot; color=&quot;#ffffff&quot;&gt;&#039;
				+ &#039;&lt;b&gt;&#039; + TEXT + &#039;&lt;/font&gt;&lt;/b&gt;&#039;;
			text.x = -text.textWidth / 2;
			text.y = -text.textHeight / 2;
			text.filters = [new DropShadowFilter(1, 45, 0, 0.8)];
			s.addChild(text);

			// (100, 100) view
			//s.x = s.y = 100;
			s.x = pox;
			s.y = poy;
			addChild(s);
		}
		public function Web2Badge2(pox:int, poy:int):void {
			// badge little
			var d:Number = Math.min(RADIUS1, RADIUS2) * 2;

			// make Sprite
			var s:Sprite = new Sprite();
			s.graphics.lineStyle(1, LINE_COLOR);

			// gradation renge 
			// (d×d renge -45°direction)
			var matrix:Matrix = new Matrix();
			matrix.createGradientBox(d, d, -Math.PI / 4);

			// gradation setting
			s.graphics.beginGradientFill(
				&quot;linear&quot;,                    // style
				[BODY_COLOR1, BODY_COLOR2],  // color
				[1, 1],                      // alpher
				[0, 255],                    // color position
				matrix);                     // renge and direction

			// star shape
			var angle:Number = 2 * Math.PI / CORNER;
			var p1:Point, p2:Point;
			s.graphics.moveTo(RADIUS1, 0);
			for(var i:int = 0; i &lt; CORNER; i++) {
				p1 = Point.polar(RADIUS2, angle * (i + 0.5));
				p2 = Point.polar(RADIUS1, angle * (i + 1));
				s.graphics.curveTo(p1.x, p1.y, p2.x, p2.y);
			}
			s.graphics.endFill();

			// add shadow
			s.filters = [new DropShadowFilter(4, 45, 0, 0.5)];

			// text
			var size:int = d / TEXT.length;
			var text:TextField = new TextField();
			text.htmlText = &#039;&lt;font size=&quot;&#039; + size + &#039;&quot; color=&quot;#ffffff&quot;&gt;&#039;
				+ &#039;&lt;b&gt;&#039; + TEXT + &#039;&lt;/font&gt;&lt;/b&gt;&#039;;
			text.x = -text.textWidth / 2;
			text.y = -text.textHeight / 2;
			text.filters = [new DropShadowFilter(1, 45, 0, 0.8)];
			s.addChild(text);

			// (100, 100) view
			//s.x = s.y = 100;
			s.x = pox;
			s.y = poy;
			addChild(s);
		}
		
	}
	
}
}}
- [[4回目&gt;http://gihyo.jp/dev/feature/01/flash-sdk/0004?page=3]]のイベントの伝播が大事っぽい。
-- イベントをとめる（伝播停止、親に渡さない）
--- event.stopPropagation();
-- ターゲットを判定して、処理する
--- if(event.target != stage) { return; }
-- イベント段階を判定して、処理する。
--- if(event.eventPhase != EventPhase.AT_TARGET) { return; }
- [[6回目&gt;http://gihyo.jp/dev/feature/01/flash-sdk/0006]]のTweenerではまると思うので、[[ライブラリ]] を参照のこと。
#highlight(){{
package 
{
	import flash.display.Sprite;
	import flash.events.Event;
    import flash.events.MouseEvent;
    import caurina.transitions.Tweener;
	import caurina.transitions.properties.FilterShortcuts;
	
	/**
	 * ...
	 * @author ss
	 */
	public class Main extends Sprite 
	{
		
		public function Main():void 
		{
			if (stage) init();
			else addEventListener(Event.ADDED_TO_STAGE, init);
			FilterShortcuts.init();
			Anime2();
		}
		
		private function init(e:Event = null):void 
		{
			removeEventListener(Event.ADDED_TO_STAGE, init);
			// entry point
		}

        public function Anime2():void{
            // click evnet check
            stage.addEventListener(&quot;click&quot;, clickHandler);
        }

        private function clickHandler(event:MouseEvent):void {
            // make circle
            var s:Sprite = new Sprite();
            s.graphics.beginFill(Math.random() * 0x1000000);
            s.graphics.drawCircle(0, 0, 10);
            s.graphics.endFill();
            addChild(s);

            // moveto circle onClick
            s.x = event.stageX;
            s.y = event.stageY;
            s.scaleX = s.scaleY = 0;

            //Tweener.addTween(s, {time:1, scaleX:5, scaleY:5, x:0});
			//var param:Object = new Object();
			//param.time = 1;
			//param.scaleX = 5;
			//param.scaleY = 5;
			//param.x = 0;

			//Tweener.addTween(s, param);
            Tweener.addTween(s, {
                time: 1,    // 1sec animation
                scaleX: 5,  // scaleX moveto 5
                scaleY: 5,   // scaleY moveto 5
				//x:0
				transition: &quot;easeOutBounce&quot;
				//onComplete: function():void {
				//	removeChild(s);
				//}
            });
			Tweener.addTween(s, {
				time: 0.5,
				delay: 1,
				alpha: 0,
				_Blur_blurX: 30,
				_Blur_blurY: 30,
				//_blur_blurX: 30,
				//_blur_blurY: 30,
				onComplete: function():void {
					removeChild(s);
				}
			});
        }
		
	}
	
}
}}


　    </description>
    <dc:date>2009-10-31T13:47:13+09:00</dc:date>
    <utime>1256964433</utime>
  </item>
  </rdf:RDF>
