<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>BGS-WORKS Blog &#187; AS3</title>
	<atom:link href="http://blog.bgs-works.com/category/flash/as3/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.bgs-works.com</link>
	<description>WEB業界で生き残るためのTipsやカスタマイズ方法をご紹介　 bgs-works.com</description>
	<lastBuildDate>Sun, 13 Mar 2011 04:22:53 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.bgs-works.com/category/flash/as3/feed/" />
		<item>
		<title>[AS3] Flashの重なり順を思い通りに変更する</title>
		<link>http://blog.bgs-works.com/2010/10/as3-flash%e3%81%ae%e9%87%8d%e3%81%aa%e3%82%8a%e9%a0%86%e3%82%92%e6%80%9d%e3%81%84%e9%80%9a%e3%82%8a%e3%81%ab%e5%a4%89%e6%9b%b4%e3%81%99%e3%82%8b/</link>
		<comments>http://blog.bgs-works.com/2010/10/as3-flash%e3%81%ae%e9%87%8d%e3%81%aa%e3%82%8a%e9%a0%86%e3%82%92%e6%80%9d%e3%81%84%e9%80%9a%e3%82%8a%e3%81%ab%e5%a4%89%e6%9b%b4%e3%81%99%e3%82%8b/#comments</comments>
		<pubDate>Tue, 12 Oct 2010 07:05:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[setChildIndex]]></category>

		<guid isPermaLink="false">http://blog.bgs-works.com/?p=709</guid>
		<description><![CDATA[前に一番前にする方法だけ記事で書いたんですけど、
その後、順番をさまざまに操作する方法でまた調べまくったのでメモです。
オブジェクトを最前面にする方法
オブジェクトを最背面にする方法
順番をひとつ上に上げる方法
順番をひ [...]]]></description>
			<content:encoded><![CDATA[<p>前に一番前にする方法だけ記事で書いたんですけど、<br />
その後、順番をさまざまに操作する方法でまた調べまくったのでメモです。</p>
<p>オブジェクトを最前面にする方法</p>
<pre class="brush: as3; title: ; notranslate">
container.setChildIndex(sprite, container.numChildren - 1);
</pre>
<p>オブジェクトを最背面にする方法</p>
<pre class="brush: as3; title: ; notranslate">
container.setChildIndex(sprite, 0);
</pre>
<p>順番をひとつ上に上げる方法</p>
<pre class="brush: as3; title: ; notranslate">
var index:int = container.getChildIndex(sprite);
if (index + 1 &lt; container.numChildren) {
container.swapChildren(sprite, container.getChildAt(index + 1));
}
</pre>
<p>順番をひとつ下に下げる方法</p>
<pre class="brush: as3; title: ; notranslate">
var index:int = container.getChildIndex(sprite);
if (index - 1 &gt;= 0) {
container.swapChildren(sprite, container.getChildAt(index - 1));
}
</pre>
<p>参考サイト<br />
・<a href="http://lab.branberyheag.com/2009/08/17/as3%E3%82%AA%E3%83%96%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%E3%81%AE%E9%87%8D%E3%81%AA%E3%82%8A%E9%A0%86%E5%88%B6%E5%BE%A1%E3%81%99%E3%82%8B%E3%81%AB%E3%81%AF%E3%83%BB%E3%83%BB%E3%83%BB.html">[AS3]オブジェクトの重なり順制御するには・・・</a><br />
・<a href="http://www.adobe.com/jp/devnet/flash/quickstart/display_list_programming_as3/">表示リストのプログラミング </a></p>

	<div class="clearfloat"></div>タグ:<a href="http://blog.bgs-works.com/category/flash/as3/" title="AS3" rel="tag">AS3</a>, <a href="http://blog.bgs-works.com/tag/as3/" title="AS3" rel="tag">AS3</a>, <a href="http://blog.bgs-works.com/category/flash/" title="Flash" rel="tag">Flash</a>, <a href="http://blog.bgs-works.com/tag/setchildindex/" title="setChildIndex" rel="tag">setChildIndex</a><br />
]]></content:encoded>
			<wfw:commentRss>http://blog.bgs-works.com/2010/10/as3-flash%e3%81%ae%e9%87%8d%e3%81%aa%e3%82%8a%e9%a0%86%e3%82%92%e6%80%9d%e3%81%84%e9%80%9a%e3%82%8a%e3%81%ab%e5%a4%89%e6%9b%b4%e3%81%99%e3%82%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.bgs-works.com/2010/10/as3-flash%e3%81%ae%e9%87%8d%e3%81%aa%e3%82%8a%e9%a0%86%e3%82%92%e6%80%9d%e3%81%84%e9%80%9a%e3%82%8a%e3%81%ab%e5%a4%89%e6%9b%b4%e3%81%99%e3%82%8b/" />
	</item>
		<item>
		<title>[AS3] 重なり順最上位へ上げる方法</title>
		<link>http://blog.bgs-works.com/2010/04/as3-%e9%87%8d%e3%81%aa%e3%82%8a%e9%a0%86%e6%9c%80%e4%b8%8a%e4%bd%8d%e3%81%b8%e4%b8%8a%e3%81%92%e3%82%8b%e6%96%b9%e6%b3%95/</link>
		<comments>http://blog.bgs-works.com/2010/04/as3-%e9%87%8d%e3%81%aa%e3%82%8a%e9%a0%86%e6%9c%80%e4%b8%8a%e4%bd%8d%e3%81%b8%e4%b8%8a%e3%81%92%e3%82%8b%e6%96%b9%e6%b3%95/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 14:09:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://blog.bgs-works.com/?p=608</guid>
		<description><![CDATA[めちゃ今更ですが、重なり順をあげるのって大切ですね〜
そのムズーズさでなんか単純な動きも綺麗に見える・・・
という事で、覚え書きです。
いっつもわけわからんくなるんだよね〜コード本当に覚えないよな〜悲しいな〜
上記コード [...]]]></description>
			<content:encoded><![CDATA[<p>めちゃ今更ですが、重なり順をあげるのって大切ですね〜<br />
そのムズーズさでなんか単純な動きも綺麗に見える・・・<br />
という事で、覚え書きです。<br />
いっつもわけわからんくなるんだよね〜コード本当に覚えないよな〜悲しいな〜</p>
<pre class="brush: as3; title: ; notranslate">
setChildIndex(Sprite(e.currentTarget), numChildren - 1);
</pre>
<p>上記コードを、重なり順をあげたいターゲットが指定できるとこにいれる。<br />
頑張れ私！！<br />
<div class="tmkm-amazon-view">
	<p><a href="http://www.amazon.co.jp/ActionScript-3-0%E8%BE%9E%E5%85%B8-FlashPlayer10-9%E5%AF%BE%E5%BF%9C-%E3%81%AE%E3%82%8A%E3%82%86%E3%81%8D/dp/4798119016%3FSubscriptionId%3DAKIAJG4HHB32QSOJVPGQ%26tag%3Dbgscre-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D4798119016" target="_blank"><img src="http://ecx.images-amazon.com/images/I/51ry2e8HtIL._SL160_.jpg" border="0" alt="" /></a></p>
	<p><a href="http://www.amazon.co.jp/ActionScript-3-0%E8%BE%9E%E5%85%B8-FlashPlayer10-9%E5%AF%BE%E5%BF%9C-%E3%81%AE%E3%82%8A%E3%82%86%E3%81%8D/dp/4798119016%3FSubscriptionId%3DAKIAJG4HHB32QSOJVPGQ%26tag%3Dbgscre-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D4798119016" target="_blank">ActionScript 3.0辞典 [FlashPlayer10/9対応]</a></p>
	<p><em>著者／訳者：</em>伊藤 のりゆき 大重 美幸 野中 文雄 植木 友浩 林 拓也 </p>
	<p><em>出版社：</em>翔泳社( 2009-11-17 )</p>
	<p><em>定価：</em>￥ 3,129</p>
	<p><em>Amazon価格：</em>￥ 3,129</p>
	<p>単行本（ソフトカバー） ( 800 ページ )</p>
	<p>ISBN-10 : 4798119016</p>
	<p>ISBN-13 : 9784798119014</p>
<hr class="tmkm-amazon-clear" /></div>

	<div class="clearfloat"></div>タグ:<a href="http://blog.bgs-works.com/category/flash/as3/" title="AS3" rel="tag">AS3</a>, <a href="http://blog.bgs-works.com/tag/as3/" title="AS3" rel="tag">AS3</a>, <a href="http://blog.bgs-works.com/category/flash/" title="Flash" rel="tag">Flash</a><br />
]]></content:encoded>
			<wfw:commentRss>http://blog.bgs-works.com/2010/04/as3-%e9%87%8d%e3%81%aa%e3%82%8a%e9%a0%86%e6%9c%80%e4%b8%8a%e4%bd%8d%e3%81%b8%e4%b8%8a%e3%81%92%e3%82%8b%e6%96%b9%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.bgs-works.com/2010/04/as3-%e9%87%8d%e3%81%aa%e3%82%8a%e9%a0%86%e6%9c%80%e4%b8%8a%e4%bd%8d%e3%81%b8%e4%b8%8a%e3%81%92%e3%82%8b%e6%96%b9%e6%b3%95/" />
	</item>
		<item>
		<title>[AS3] 新たなTweenライブラリ続々・・・</title>
		<link>http://blog.bgs-works.com/2010/03/as3-%e6%96%b0%e3%81%9f%e3%81%aatween%e3%83%a9%e3%82%a4%e3%83%96%e3%83%a9%e3%83%aa%e7%b6%9a%e3%80%85%e3%83%bb%e3%83%bb%e3%83%bb/</link>
		<comments>http://blog.bgs-works.com/2010/03/as3-%e6%96%b0%e3%81%9f%e3%81%aatween%e3%83%a9%e3%82%a4%e3%83%96%e3%83%a9%e3%83%aa%e7%b6%9a%e3%80%85%e3%83%bb%e3%83%bb%e3%83%bb/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 05:42:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[ActionScript3]]></category>
		<category><![CDATA[BetweenAS3]]></category>
		<category><![CDATA[KTween]]></category>
		<category><![CDATA[Tweensy]]></category>

		<guid isPermaLink="false">http://blog.bgs-works.com/?p=588</guid>
		<description><![CDATA[どんどん出てきますね～Tweenライブラリ。
私は今Tweensyを使っているのですが、いまどきの記事を読んでも「Tweensy」の名前が上がってこなくて寂しい。
もしかして開発終わってるのかな？
Tweenerに続き、 [...]]]></description>
			<content:encoded><![CDATA[<p>どんどん出てきますね～Tweenライブラリ。<br />
私は今Tweensyを使っているのですが、いまどきの記事を読んでも「Tweensy」の名前が上がってこなくて寂しい。<br />
もしかして開発終わってるのかな？<br />
Tweenerに続き、またも鞍替えの危機かな？？<br />
とか思って最近はAS3があんまりわからない私にも使いやすそうな、コードが短く済みそうなライブラリを探し求めてさ迷っている次第です。</p>
<p>1. <a href="http://www.be-interactive.org/?itemid=505">BetweenAS3</a><br />
BetweenAS3は「Wonderfl」に<a href="http://wonderfl.net/search?q=BetweenAS3">サンプル</a>がたくさん出ていたので、なんとなく触って遊んでいました。<br />
軽そうだな～楽なのかな～程度で、まだ業務で使ったことはなかったんですね。</p>
<div style="text-align:center;width:465px;"><iframe title="DoBetweenAS3 draft - wonderfl build flash online" scrolling="no" src="http://wonderfl.net/blogparts/14aab12dfba0a6a25f97a33f8056c047f39cf953" width="465" height="490" style="border:1px black solid;"></iframe><a href="http://wonderfl.net/code/14aab12dfba0a6a25f97a33f8056c047f39cf953" title="DoBetweenAS3 draft - wonderfl build flash online">DoBetweenAS3 draft &#8211; wonderfl build flash online</a></div>
<p>おお～WonderflでBetween使っているサンプルめちゃ増えてる。びっくりだ。<br />
こりゃ本格的に勉強始めなきゃ。</p>
<p>2. <a href="http://kawa.at.webry.info/201002/article_2.html">KTween</a><br />
ほんとうに極々最近の公開みたいです。<br />
これはコード短くて楽そうです。<br />
私が一目見ただけで、「こういう指定でこうなるかな？」という想像がついてしまいました。<br />
今会社で作っているような単純Flashならこれは楽かも～　と思いました。</p>
<p>どっちにしても、使ってみないと始まらないっすね～～<br />
動きが短いコードで処理できるライブラリはもう私の生活に欠かせません！！</p>

	<div class="clearfloat"></div>タグ:<a href="http://blog.bgs-works.com/tag/actionscript3/" title="ActionScript3" rel="tag">ActionScript3</a>, <a href="http://blog.bgs-works.com/category/flash/as3/" title="AS3" rel="tag">AS3</a>, <a href="http://blog.bgs-works.com/tag/betweenas3/" title="BetweenAS3" rel="tag">BetweenAS3</a>, <a href="http://blog.bgs-works.com/category/flash/" title="Flash" rel="tag">Flash</a>, <a href="http://blog.bgs-works.com/tag/ktween/" title="KTween" rel="tag">KTween</a>, <a href="http://blog.bgs-works.com/tag/tweensy/" title="Tweensy" rel="tag">Tweensy</a><br />
]]></content:encoded>
			<wfw:commentRss>http://blog.bgs-works.com/2010/03/as3-%e6%96%b0%e3%81%9f%e3%81%aatween%e3%83%a9%e3%82%a4%e3%83%96%e3%83%a9%e3%83%aa%e7%b6%9a%e3%80%85%e3%83%bb%e3%83%bb%e3%83%bb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.bgs-works.com/2010/03/as3-%e6%96%b0%e3%81%9f%e3%81%aatween%e3%83%a9%e3%82%a4%e3%83%96%e3%83%a9%e3%83%aa%e7%b6%9a%e3%80%85%e3%83%bb%e3%83%bb%e3%83%bb/" />
	</item>
		<item>
		<title>[AS3]  swfを読み込んだときnullのエラーを回避する方法</title>
		<link>http://blog.bgs-works.com/2010/02/as3-swf%e3%82%92%e8%aa%ad%e3%81%bf%e8%be%bc%e3%82%93%e3%81%a0%e3%81%a8%e3%81%8dnull%e3%81%ae%e3%82%a8%e3%83%a9%e3%83%bc%e3%82%92%e5%9b%9e%e9%81%bf%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95/</link>
		<comments>http://blog.bgs-works.com/2010/02/as3-swf%e3%82%92%e8%aa%ad%e3%81%bf%e8%be%bc%e3%82%93%e3%81%a0%e3%81%a8%e3%81%8dnull%e3%81%ae%e3%82%a8%e3%83%a9%e3%83%bc%e3%82%92%e5%9b%9e%e9%81%bf%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 10:02:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[swf]]></category>

		<guid isPermaLink="false">http://blog.bgs-works.com/?p=570</guid>
		<description><![CDATA[preloaderを他で作っておき、swfファイルを読み込むと・・・
「TypeError: Error #1009: null のオブジェクト参照のプロパティまたはメソッドにアクセスすることはできません。」
というエラ [...]]]></description>
			<content:encoded><![CDATA[<p>preloaderを他で作っておき、swfファイルを読み込むと・・・<br />
「TypeError: Error #1009: null のオブジェクト参照のプロパティまたはメソッドにアクセスすることはできません。」<br />
というエラーが出て、ちっとも先に進みませんでした。</p>
<p>先にstageを参照しちゃうと、「ステージに何もないやんけ！！」と怒っているということは判明したのですが、<br />
オブジェクトの位置をstageからの参照で決めていたり、ブラウザをリサイズしたときに、位置や大きさなどを変更かける内容だったので、<br />
どうすればいいんじゃい！と悩み続けていたのですが、このたび解決しましたので、覚え書きです。</p>
<p>まず、コンストラクタ内にEvent.ADDED_TO_STAGE イベントを登録し、<br />
それまでコンストラクタに一気に書いていた内容を、そのイベントハンドラ内に移す。</p>
<pre class="brush: as3; title: ; notranslate">
public function preLoader() {
addEventListener(Event.ADDED_TO_STAGE, init);
}
private function init(e:Event):void{
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
myResize(null);
stage.addEventListener(Event.RESIZE, myResize);
・
・
・
}
</pre>
<p>これで、最初stageにぽんっと置かれた状態になるので、<br />
その後stageを参照してもnullだnullだといわれずに済むようなんです。</p>
<p>わかれば、そうかそうかと思ったものの、<br />
ここに考えがたどり着くまでにすご〜く時間がかかってしまいましたね。<br />
私は何するのも時間がかかりすぎて嫌になります・・・<br />
<div class="tmkm-amazon-view">
	<p><a href="http://www.amazon.co.jp/ActionScript-3-0%E3%82%A2%E3%83%8B%E3%83%A1%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3-%E2%80%95%E8%A1%9D%E7%AA%81%E5%88%A4%E5%AE%9A%E3%83%BBAI%E3%83%BB3D%E3%81%8B%E3%82%89%E3%83%94%E3%82%AF%E3%82%BB%E3%83%AB%E3%82%B7%E3%82%A7%E3%83%BC%E3%83%80%E3%81%BE%E3%81%A7Flash%E4%B8%8A%E7%B4%9A%E3%83%86%E3%82%AF%E3%83%8B%E3%83%83%E3%82%AF-Keith-Peters/dp/4873114373%3FSubscriptionId%3DAKIAJG4HHB32QSOJVPGQ%26tag%3Dbgscre-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D4873114373" target="_blank"><img src="http://ecx.images-amazon.com/images/I/51EPW3U4xpL._SL160_.jpg" border="0" alt="" /></a></p>
	<p><a href="http://www.amazon.co.jp/ActionScript-3-0%E3%82%A2%E3%83%8B%E3%83%A1%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3-%E2%80%95%E8%A1%9D%E7%AA%81%E5%88%A4%E5%AE%9A%E3%83%BBAI%E3%83%BB3D%E3%81%8B%E3%82%89%E3%83%94%E3%82%AF%E3%82%BB%E3%83%AB%E3%82%B7%E3%82%A7%E3%83%BC%E3%83%80%E3%81%BE%E3%81%A7Flash%E4%B8%8A%E7%B4%9A%E3%83%86%E3%82%AF%E3%83%8B%E3%83%83%E3%82%AF-Keith-Peters/dp/4873114373%3FSubscriptionId%3DAKIAJG4HHB32QSOJVPGQ%26tag%3Dbgscre-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D4873114373" target="_blank">詳解 ActionScript 3.0アニメーション ―衝突判定・AI・3DからピクセルシェーダまでFlash上級テクニック</a></p>
	<p><em>著者／訳者：</em>Keith Peters</p>
	<p><em>出版社：</em>オライリージャパン( 2010-01-25 )</p>
	<p><em>定価：</em>￥ 3,990</p>
	<p><em>Amazon価格：</em>￥ 3,990</p>
	<p>大型本 ( 484 ページ )</p>
	<p>ISBN-10 : 4873114373</p>
	<p>ISBN-13 : 9784873114378</p>
<hr class="tmkm-amazon-clear" /></div>

	<div class="clearfloat"></div>タグ:<a href="http://blog.bgs-works.com/category/flash/as3/" title="AS3" rel="tag">AS3</a>, <a href="http://blog.bgs-works.com/tag/as3/" title="AS3" rel="tag">AS3</a>, <a href="http://blog.bgs-works.com/category/flash/" title="Flash" rel="tag">Flash</a>, <a href="http://blog.bgs-works.com/tag/flash/" title="Flash" rel="tag">Flash</a>, <a href="http://blog.bgs-works.com/tag/swf/" title="swf" rel="tag">swf</a><br />
]]></content:encoded>
			<wfw:commentRss>http://blog.bgs-works.com/2010/02/as3-swf%e3%82%92%e8%aa%ad%e3%81%bf%e8%be%bc%e3%82%93%e3%81%a0%e3%81%a8%e3%81%8dnull%e3%81%ae%e3%82%a8%e3%83%a9%e3%83%bc%e3%82%92%e5%9b%9e%e9%81%bf%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.bgs-works.com/2010/02/as3-swf%e3%82%92%e8%aa%ad%e3%81%bf%e8%be%bc%e3%82%93%e3%81%a0%e3%81%a8%e3%81%8dnull%e3%81%ae%e3%82%a8%e3%83%a9%e3%83%bc%e3%82%92%e5%9b%9e%e9%81%bf%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95/" />
	</item>
		<item>
		<title>[AS3]  TextFieldにアルファをかける方法</title>
		<link>http://blog.bgs-works.com/2010/02/as3-textfield%e3%81%ab%e3%82%a2%e3%83%ab%e3%83%95%e3%82%a1%e3%82%92%e3%81%8b%e3%81%91%e3%82%8b%e6%96%b9%e6%b3%95/</link>
		<comments>http://blog.bgs-works.com/2010/02/as3-textfield%e3%81%ab%e3%82%a2%e3%83%ab%e3%83%95%e3%82%a1%e3%82%92%e3%81%8b%e3%81%91%e3%82%8b%e6%96%b9%e6%b3%95/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 14:32:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[alphafilter]]></category>
		<category><![CDATA[TextField]]></category>

		<guid isPermaLink="false">http://blog.bgs-works.com/?p=558</guid>
		<description><![CDATA[TextFieldってそのままだとアルファがかけれないんデスよね。
いや〜気づくまでに結構時間を食ってしまいました。
埋め込みフォントで作るとか、ビットマップ化してしまうとか、
TextFieldへアルファをかける方法を [...]]]></description>
			<content:encoded><![CDATA[<p>TextFieldってそのままだとアルファがかけれないんデスよね。<br />
いや〜気づくまでに結構時間を食ってしまいました。</p>
<p>埋め込みフォントで作るとか、ビットマップ化してしまうとか、<br />
TextFieldへアルファをかける方法を見つけたんですけど、<br />
デフォルトのフォントで簡単にアルファをかける方法はないのか？？と調べていると、見つけました！！<br />
頼りになるFlash参考サイト「<a href="http://wonderfl.net/">wonderfl</a>」からです。</p>
<div style="text-align:center;width:465px;margin:10px auto;"><iframe title="TextFieldのアルフィー - wonderfl build flash online" scrolling="no" src="http://wonderfl.net/blogparts/7beb8650734b794c73fde3cc45f96a93acc05fb1" width="465" height="490" style="border:1px black solid;"></iframe><a href="http://wonderfl.net/code/7beb8650734b794c73fde3cc45f96a93acc05fb1" title="TextFieldのアルフィー - wonderfl build flash online">TextFieldのアルフィー &#8211; wonderfl build flash online</a></div>
<p>使用方法は至って簡単！！<br />
BlendModeをインポートして、<br />
表示オブジェクトに関する透明度グループを強制的に作成する「BlendMode.LAYER」を定数で渡すだけ。</p>
<blockquote><p>
import flash.display.BlendMode;<br />
blendMode = BlendMode.LAYER;
</p></blockquote>
<p>もうまじっすか。<br />
なんか、知るってすごいです。<br />
これを指定するだけで、単純にalphaを指定することも出来るし、<br />
TweenerとかTweensyとか、トゥイーンライブラリからかけてあげることもできるんです。</p>

	<div class="clearfloat"></div>タグ:<a href="http://blog.bgs-works.com/tag/alphafilter/" title="alphafilter" rel="tag">alphafilter</a>, <a href="http://blog.bgs-works.com/category/flash/as3/" title="AS3" rel="tag">AS3</a>, <a href="http://blog.bgs-works.com/tag/as3/" title="AS3" rel="tag">AS3</a>, <a href="http://blog.bgs-works.com/category/flash/" title="Flash" rel="tag">Flash</a>, <a href="http://blog.bgs-works.com/tag/textfield/" title="TextField" rel="tag">TextField</a><br />
]]></content:encoded>
			<wfw:commentRss>http://blog.bgs-works.com/2010/02/as3-textfield%e3%81%ab%e3%82%a2%e3%83%ab%e3%83%95%e3%82%a1%e3%82%92%e3%81%8b%e3%81%91%e3%82%8b%e6%96%b9%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.bgs-works.com/2010/02/as3-textfield%e3%81%ab%e3%82%a2%e3%83%ab%e3%83%95%e3%82%a1%e3%82%92%e3%81%8b%e3%81%91%e3%82%8b%e6%96%b9%e6%b3%95/" />
	</item>
		<item>
		<title>[AS3]  外部asを呼び出すときに引っかかったワナ・・・</title>
		<link>http://blog.bgs-works.com/2010/01/as3-%e5%a4%96%e9%83%a8as%e3%82%92%e5%91%bc%e3%81%b3%e5%87%ba%e3%81%99%e3%81%a8%e3%81%8d%e3%81%ab%e5%bc%95%e3%81%a3%e3%81%8b%e3%81%8b%e3%81%a3%e3%81%9f%e3%83%af%e3%83%8a%e3%83%bb%e3%83%bb%e3%83%bb/</link>
		<comments>http://blog.bgs-works.com/2010/01/as3-%e5%a4%96%e9%83%a8as%e3%82%92%e5%91%bc%e3%81%b3%e5%87%ba%e3%81%99%e3%81%a8%e3%81%8d%e3%81%ab%e5%bc%95%e3%81%a3%e3%81%8b%e3%81%8b%e3%81%a3%e3%81%9f%e3%83%af%e3%83%8a%e3%83%bb%e3%83%bb%e3%83%bb/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 06:12:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[error]]></category>

		<guid isPermaLink="false">http://blog.bgs-works.com/?p=507</guid>
		<description><![CDATA[ずっと不明だったことの一つ。
「1180: 未定義である可能性が高いメソッド addFrameScript の呼び出しです。」のエラー。
エラー先は外部asのpackage　にかかってる。
変な全角入ってるのかと思ったり [...]]]></description>
			<content:encoded><![CDATA[<p>ずっと不明だったことの一つ。</p>
<p>「1180: 未定義である可能性が高いメソッド addFrameScript の呼び出しです。」のエラー。<br />
エラー先は外部asのpackage　にかかってる。<br />
変な全角入ってるのかと思ったり、importの書き方がだめなのかと思ったり、色々変えてみたけど、エラーは消えず。。<br />
くそう～と思って調べると解決しました。</p>
<p>flaファイル側に外部asをインポートするとき、<br />
1つ目のフレームにスクリプト書きたいときは「ドキュメントクラス」からの直接指定でインポートできないらしい。</p>
<p>ということで、フレームスクリプトに「import ○○」で指定するとあっさりクリアしました。</p>
<p>くそう～どんだけ時間かかったんじゃぃ！！</p>

	<div class="clearfloat"></div>タグ:<a href="http://blog.bgs-works.com/category/flash/as3/" title="AS3" rel="tag">AS3</a>, <a href="http://blog.bgs-works.com/tag/as3/" title="AS3" rel="tag">AS3</a>, <a href="http://blog.bgs-works.com/tag/error/" title="error" rel="tag">error</a>, <a href="http://blog.bgs-works.com/category/flash/" title="Flash" rel="tag">Flash</a><br />
]]></content:encoded>
			<wfw:commentRss>http://blog.bgs-works.com/2010/01/as3-%e5%a4%96%e9%83%a8as%e3%82%92%e5%91%bc%e3%81%b3%e5%87%ba%e3%81%99%e3%81%a8%e3%81%8d%e3%81%ab%e5%bc%95%e3%81%a3%e3%81%8b%e3%81%8b%e3%81%a3%e3%81%9f%e3%83%af%e3%83%8a%e3%83%bb%e3%83%bb%e3%83%bb/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.bgs-works.com/2010/01/as3-%e5%a4%96%e9%83%a8as%e3%82%92%e5%91%bc%e3%81%b3%e5%87%ba%e3%81%99%e3%81%a8%e3%81%8d%e3%81%ab%e5%bc%95%e3%81%a3%e3%81%8b%e3%81%8b%e3%81%a3%e3%81%9f%e3%83%af%e3%83%8a%e3%83%bb%e3%83%bb%e3%83%bb/" />
	</item>
		<item>
		<title>[AS3]  マスクアクションでtweensyを使ってみました</title>
		<link>http://blog.bgs-works.com/2009/10/as3-%e3%83%9e%e3%82%b9%e3%82%af%e3%82%a2%e3%82%af%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%a7tweensy%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%be%e3%81%97%e3%81%9f/</link>
		<comments>http://blog.bgs-works.com/2009/10/as3-%e3%83%9e%e3%82%b9%e3%82%af%e3%82%a2%e3%82%af%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%a7tweensy%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%be%e3%81%97%e3%81%9f/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 06:00:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[mask]]></category>
		<category><![CDATA[Tweensy]]></category>

		<guid isPermaLink="false">http://blog.bgs-works.com/?p=415</guid>
		<description><![CDATA[むかしむかしのドラマやアニメのように、小さい隙間から背景がびよ～んと見える感じを、
マスクとtweensyを使って作ってみました。
いやまぁ、違うと思うんですけど、なんか出来上がった時嬉しくて、投稿しちゃいます。
[SW [...]]]></description>
			<content:encoded><![CDATA[<p>むかしむかしのドラマやアニメのように、小さい隙間から背景がびよ～んと見える感じを、<br />
マスクとtweensyを使って作ってみました。<br />
いやまぁ、違うと思うんですけど、なんか出来上がった時嬉しくて、投稿しちゃいます。<br />
[SWF]http://blog.bgs-works.com/wp-content/uploads/2009/10/sample.swf, 600, 400[/SWF]</p>
<p>flaファイル側にimageとmask用のムービークリップを用意して、リンケージ名をそれぞれ「img1」「mask1」として指定してあります。<br />
ただし、下に表示するものに動きがないのであればビットマップで十分です。<br />
私はほかにやりたいこともあってムービークリップにしております。</p>
<p>ちなみにソースは、最近勉強していることもあって外部asファイルで作りました。外に出している意味はとくにないです・・・ハハッ</p>
<pre class="brush: java; title: ; notranslate">
package
{
	import fl.motion.easing.*;
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import com.flashdynamix.motion.*;			//tweensyファイルの読み込み
	import com.flashdynamix.motion.Tweensy;		//tweensyファイルの読み込み

	public class main  extends Sprite
	{

		private var tween:TweensyGroup = new TweensyGroup();		//Tweensy Groupを作ります。
		private var mc1:MovieClip = new img1();					//下に表示する画像
		private var mask_mc:MovieClip = new mask1();				//マスク

		public function main() {

			mask_mc.x = stage.stageWidth/2;
			mask_mc.y = stage.stageHeight/2;
			mask_mc.width = 1;
			mask_mc.height = 1;
			mask_mc.visible = false;

			addChild(mc1);
			addChild(mask_mc);

			Mask(mc1);

		}

		private function Mask(MC:MovieClip):void{

			MC.mask = mask_mc;		//下に見せるための画像をマスクにセットします。

			tween.scaleTo(mask_mc, 2, 2, Elastic.easeOut, 1);　//1秒後にマスクを2秒かけて2倍にします
			tween.scaleTo(mask_mc, 20, 2, Quintic.easeIn, 3);　//さらに3秒後に2秒かけて20倍にします

		}

	}
}
</pre>
<div class="tmkm-amazon-view">
	<p><a href="http://www.amazon.co.jp/ActionScript-%E3%82%A8%E3%83%A9%E3%83%BC%E3%82%A2%E3%83%BC%E3%82%AB%E3%82%A4%E3%83%96%E3%82%B9-%E3%82%B3%E3%83%B3%E3%83%91%E3%82%A4%E3%83%AB%E3%82%A8%E3%83%A9%E3%83%BC%E3%83%BB%E3%82%B3%E3%83%B3%E3%83%91%E3%82%A4%E3%83%A9%E8%AD%A6%E5%91%8A%E3%83%BB%E3%83%A9%E3%83%B3%E3%82%BF%E3%82%A4%E3%83%A0%E3%82%A8%E3%83%A9%E3%83%BC%E3%81%AE%E8%A7%A3%E6%B3%95-%E5%8A%A0%E8%8C%82%E9%9B%84%E4%BA%AE-%E6%A0%AA%E5%BC%8F%E4%BC%9A%E7%A4%BE%E3%83%AD%E3%82%AF%E3%83%8A%E3%83%8A/dp/488337646X%3FSubscriptionId%3DAKIAJG4HHB32QSOJVPGQ%26tag%3Dbgscre-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D488337646X" target="_blank"><img src="http://ecx.images-amazon.com/images/I/41NXXyu0FeL._SL160_.jpg" border="0" alt="" /></a></p>
	<p><a href="http://www.amazon.co.jp/ActionScript-%E3%82%A8%E3%83%A9%E3%83%BC%E3%82%A2%E3%83%BC%E3%82%AB%E3%82%A4%E3%83%96%E3%82%B9-%E3%82%B3%E3%83%B3%E3%83%91%E3%82%A4%E3%83%AB%E3%82%A8%E3%83%A9%E3%83%BC%E3%83%BB%E3%82%B3%E3%83%B3%E3%83%91%E3%82%A4%E3%83%A9%E8%AD%A6%E5%91%8A%E3%83%BB%E3%83%A9%E3%83%B3%E3%82%BF%E3%82%A4%E3%83%A0%E3%82%A8%E3%83%A9%E3%83%BC%E3%81%AE%E8%A7%A3%E6%B3%95-%E5%8A%A0%E8%8C%82%E9%9B%84%E4%BA%AE-%E6%A0%AA%E5%BC%8F%E4%BC%9A%E7%A4%BE%E3%83%AD%E3%82%AF%E3%83%8A%E3%83%8A/dp/488337646X%3FSubscriptionId%3DAKIAJG4HHB32QSOJVPGQ%26tag%3Dbgscre-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D488337646X" target="_blank">ActionScript 3.0 エラーアーカイブス コンパイルエラー・コンパイラ警告・ランタイムエラーの解法</a></p>
	<p><em>著者／訳者：</em>加茂雄亮(株式会社ロクナナ)</p>
	<p><em>出版社：</em>ソシム( 2009-09-09 )</p>
	<p><em>定価：</em>￥ 2,940</p>
	<p><em>Amazon価格：</em>￥ 2,940</p>
	<p>単行本 ( 376 ページ )</p>
	<p>ISBN-10 : 488337646X</p>
	<p>ISBN-13 : 9784883376469</p>
<hr class="tmkm-amazon-clear" /></div>

	<div class="clearfloat"></div>タグ:<a href="http://blog.bgs-works.com/category/flash/as3/" title="AS3" rel="tag">AS3</a>, <a href="http://blog.bgs-works.com/category/flash/" title="Flash" rel="tag">Flash</a>, <a href="http://blog.bgs-works.com/tag/mask/" title="mask" rel="tag">mask</a>, <a href="http://blog.bgs-works.com/tag/tweensy/" title="Tweensy" rel="tag">Tweensy</a><br />
]]></content:encoded>
			<wfw:commentRss>http://blog.bgs-works.com/2009/10/as3-%e3%83%9e%e3%82%b9%e3%82%af%e3%82%a2%e3%82%af%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%a7tweensy%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%be%e3%81%97%e3%81%9f/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.bgs-works.com/2009/10/as3-%e3%83%9e%e3%82%b9%e3%82%af%e3%82%a2%e3%82%af%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%a7tweensy%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%be%e3%81%97%e3%81%9f/" />
	</item>
		<item>
		<title>[Flex]  各種アセットの読み込み　「Embed」</title>
		<link>http://blog.bgs-works.com/2009/06/flex-%e5%90%84%e7%a8%ae%e3%82%a2%e3%82%bb%e3%83%83%e3%83%88%e3%81%ae%e8%aa%ad%e3%81%bf%e8%be%bc%e3%81%bf%e3%80%80%e3%80%8cembed%e3%80%8d/</link>
		<comments>http://blog.bgs-works.com/2009/06/flex-%e5%90%84%e7%a8%ae%e3%82%a2%e3%82%bb%e3%83%83%e3%83%88%e3%81%ae%e8%aa%ad%e3%81%bf%e8%be%bc%e3%81%bf%e3%80%80%e3%80%8cembed%e3%80%8d/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 13:23:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[assets]]></category>
		<category><![CDATA[Embed]]></category>
		<category><![CDATA[font]]></category>
		<category><![CDATA[埋め込み]]></category>

		<guid isPermaLink="false">http://blog.bgs-works.com/?p=275</guid>
		<description><![CDATA[なんとなくサンプルに出てきていたから使っていた「Embed」ですが、なんだか使い方は様々だったようです。
実際使う時絶対忘れそうなので覚書。
1.　ActionScript ファイルまたは MXML ファイルの  ブロッ [...]]]></description>
			<content:encoded><![CDATA[<p>なんとなくサンプルに出てきていたから使っていた「Embed」ですが、なんだか使い方は様々だったようです。<br />
実際使う時絶対忘れそうなので覚書。</p>
<p>1.　ActionScript ファイルまたは MXML ファイルの  ブロック内にアセットを埋め込む場合に使用する時<br />
<span style="color: #008080;"><code>[Embed(</code><code><em>parameter1, paramater2, ...</em></code><code>)] </code>メタデータタグ </span></p>
<p>2.　MXML タグ定義で使用する時<span style="color: #008080;"><br />
<code>@Embed(</code><code><em>parameter1, paramater2, ...</em></code><code>)</code> ディレクティブ </span></p>
<p>3.　MXML ファイルの <code>&lt;mx:Style&gt;</code> ブロック内で使用する時<br />
<span style="color: #008080;"><code>Embed(</code><code><em>parameter1, paramater2, ...</em></code><code>)</code> ディレクティブ</span></p>
<p>ちょっとずつEmbedの書き方が違いますよね。</p>
<p>例えば 1. の書き方で画像を読み込んだ場合</p>
<pre class="brush: java; title: ; notranslate">
&lt;mx:Script&gt;
&lt;![CDATA[
[Embed(source=&quot;assets/logo.png&quot;)]
[Bindable]

public var Logo:Class;
]]&gt;
&lt;/mx:Script&gt;

&lt;mx:Image id=&quot;myLogo&quot; source=&quot;{Logo}&quot;/&gt;

&lt;mx:Image id=&quot;myLogo2&quot; source=&quot;{Logo}&quot;/&gt;
</pre>
<p>とidを別の名前でふってあげると画像をコピー出来るんですが、<br />
2. のやり方で書くと</p>
<pre class="brush: java; title: ; notranslate">
&lt;mx:Image id=&quot;myLogo&quot; source=&quot;@Embed('assets/logo.png')&quot;/&gt;
</pre>
<p>直接書いてしまうので、もちろん画像を１つだけしか使えません。</p>
<p>1. の使い方でもう一つ。<br />
上記の<br />
<code>[Embed(source="assets/logo.png")]</code><br />
の部分をswfにするともちろんswfファイルが読めるのですが、もうひとつ加える事によって、そのswfファイルの中にあるButton および MovieClip シンボルだけを読み込む事が出来るようなのです。<br />
ただし、Graphic シンボルは ActionScript 用にエクスポートできないので、埋め込むことはできません。<br />
となっていました。<br />
回避方法は探すとみつかるとは思いますが、基本の方法では無理なようです。</p>
<pre class="brush: java; title: ; notranslate">
&lt;mx:Script&gt;
&lt;![CDATA[
[Embed(source=&quot;assets/library.swf&quot;, symbol=&quot;BadApple&quot;)]

[Bindable]
public var BadApple:Class;

[Embed(source=&quot;assets/library.swf&quot;, symbol=&quot;Pumpkin&quot;)]

[Bindable]
public var Pumpkin:Class;

]]&gt;
&lt;/mx:Script&gt;

&lt;mx:Image id=&quot;badApple&quot; source=&quot;{BadApple}&quot; width=&quot;150&quot; height=&quot;151.8&quot;/&gt;

&lt;mx:Image id=&quot;pumpkin&quot; source=&quot;{Pumpkin}&quot; width=&quot;150&quot; height=&quot;131.7&quot;/&gt;
</pre>
<p>symbol プロパティにシンボルのリンケージ名を書いてやる事で、それだけを使用する事が出来るようです。<br />
これ、どうするんだろうとちょっと思っていたので、すっきりです。</p>
<p>mxmlコンポーネントButtonに対して画像を当てはめる場合。</p>
<pre class="brush: java; title: ; notranslate">
&lt;mx:Style&gt;
Button
{
upSkin: Embed(&quot;assets/box_closed.png&quot;);

overSkin: Embed(&quot;assets/box.png&quot;);
downSkin: Embed(&quot;assets/box_new.png&quot;);

}
&lt;/mx:Style&gt;

&lt;mx:Button/&gt;
</pre>
<p>と書けばButtonをデフォルトからグラフィカルに変化！！です。<br />
これもすっきり。</p>
<p>あと、フォントの読み込み。<br />
これも疑問に思っていた内容なので、覚書です。</p>
<p>1. の書き方なのですが、</p>
<pre class="brush: java; title: ; notranslate">
[Embed(source='myfont.ttf', fontName='foo', mimeType='application/x-font')]
var myfont:Class;

MainTextField.defaultTextFormat=new TextFormat(&quot;font&quot;, 12, 0x000000);
MainTextField.embedFonts = true;
</pre>
<p>source にハードディスク上のフォントファイルにあるTrueTypeのフォントを指定します。<br />
読み込めるフォントタイプはTTFだけです。これも要注意！！<br />
で、TextFormatに読み込んだファイルのClass名をしていてあげて、embedFontsを”true”にしてやればOK。</p>
<p>フォントもMXML ファイルの  での読み込みも出来ます。</p>
<pre class="brush: java; title: ; notranslate">
&lt;mx:Style&gt;
@font-face
{
font-family: Copacetix;

src: url(&quot;assets/copacetix.ttf&quot;);
unicode-range:
U+0020-U+0040, /* Punctuation, Numbers */

U+0041-U+005A, /* Upper-Case A-Z */
U+005B-U+0060, /* Punctuation and Symbols */
U+0061-U+007A, /* Lower-Case a-z */
U+007B-U+007E; /* Punctuation and Symbols */

}

.MyTextStyle
{
font-family: Copacetix;
font-size: 24pt;
}

&lt;/mx:Style&gt;

&lt;mx:Text styleName=&quot;MyTextStyle&quot; text=&quot;Embedded fonts rock!&quot; width=&quot;100%&quot;/&gt;
</pre>
<p>ううん〜〜<br />
色々方法がありますねぇ。<br />
使い方、使いどころ、考える事が多いですなぁ。</p>
<p>最後に<br />
<span style="color: #008080;">MIME タイプについて</span></p>
<p>指定しなければFlex側でファイルの拡張子に基づいて、読み込むファイルのタイプを推測してくれるようです。<br />
指定した場合はオーバーライドで書き換えてくれるみたいです。</p>
<ul>
<li> application/octet-stream</li>
<li>application/x-font</li>
<li>application/x-font-truetype</li>
<li>application/x-shockwave-flash</li>
<li>audio/mpeg</li>
<li>image/gif</li>
<li>image/jpeg</li>
<li>image/png</li>
<li>image/svg</li>
<li>image/svg-xml</li>
</ul>
<p>上記すべてを参考にさせてもらったサイト様<br />
<a href="http://www.adobe.com/jp/devnet/flex/quickstart/embedding_assets/#EmbeddingFonts"></a></p>
<ul>
<li><a href="http://www.adobe.com/jp/devnet/flex/quickstart/embedding_assets/#EmbeddingFonts">アプリケーションアセットの埋め込み</a></li>
<li><a href="http://livedocs.adobe.com/flex/2_jp/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&amp;file=00000970.html">アセット埋め込みのシンタックス</a></li>
<li><a href="http://www.zkdesign.jp/arch/index.php?Web%C0%A9%BA%EE%2FFlash%2FActionScript%2FActionScript3%2F%A5%D5%A5%A9%A5%F3%A5%C8%A4%F2%CB%E4%A4%E1%B9%FE%A4%E0">フォントを埋め込む</a></li>
</ul>

	<div class="clearfloat"></div>タグ:<a href="http://blog.bgs-works.com/category/flash/as3/" title="AS3" rel="tag">AS3</a>, <a href="http://blog.bgs-works.com/tag/assets/" title="assets" rel="tag">assets</a>, <a href="http://blog.bgs-works.com/tag/embed/" title="Embed" rel="tag">Embed</a>, <a href="http://blog.bgs-works.com/category/flash/flex/" title="Flex" rel="tag">Flex</a>, <a href="http://blog.bgs-works.com/tag/flex/" title="Flex" rel="tag">Flex</a>, <a href="http://blog.bgs-works.com/tag/font/" title="font" rel="tag">font</a>, <a href="http://blog.bgs-works.com/tag/%e5%9f%8b%e3%82%81%e8%be%bc%e3%81%bf/" title="埋め込み" rel="tag">埋め込み</a><br />
]]></content:encoded>
			<wfw:commentRss>http://blog.bgs-works.com/2009/06/flex-%e5%90%84%e7%a8%ae%e3%82%a2%e3%82%bb%e3%83%83%e3%83%88%e3%81%ae%e8%aa%ad%e3%81%bf%e8%be%bc%e3%81%bf%e3%80%80%e3%80%8cembed%e3%80%8d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.bgs-works.com/2009/06/flex-%e5%90%84%e7%a8%ae%e3%82%a2%e3%82%bb%e3%83%83%e3%83%88%e3%81%ae%e8%aa%ad%e3%81%bf%e8%be%bc%e3%81%bf%e3%80%80%e3%80%8cembed%e3%80%8d/" />
	</item>
		<item>
		<title>[AS3]  MovieClipの複製方法</title>
		<link>http://blog.bgs-works.com/2009/06/as3-movieclip%e3%81%ae%e8%a4%87%e8%a3%bd%e6%96%b9%e6%b3%95/</link>
		<comments>http://blog.bgs-works.com/2009/06/as3-movieclip%e3%81%ae%e8%a4%87%e8%a3%bd%e6%96%b9%e6%b3%95/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 05:34:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[MovieClip]]></category>
		<category><![CDATA[複製]]></category>

		<guid isPermaLink="false">http://blog.bgs-works.com/?p=258</guid>
		<description><![CDATA[またまた使わなきゃいけない機会があったので、覚書。
参考っていうか、もうそのまま使わせていただいたのはKAYACさまのブログです
AS3でduplicateMovieClipできちゃう？
いつもいつもありがとうございます [...]]]></description>
			<content:encoded><![CDATA[<p>またまた使わなきゃいけない機会があったので、覚書。</p>
<p>参考っていうか、もうそのまま使わせていただいたのはKAYACさまのブログです</p>
<p><a href="http://level0.kayac.com/2009/02/as3duplicatemovieclip.php"><strong>AS3でduplicateMovieClipできちゃう？</strong></a></p>
<p>いつもいつもありがとうございます。</p>
<p>リンケージ名ｍｙMCというMovieClipを複製したいとき、以下を追加します。</p>
<pre class="brush: java; title: ; notranslate">
var itemClass:Class = myMc.constructor;
var copyItem:* = new itemClass();
this.addChild(copyItem);
</pre>
<p>「copyItem」がｍｙMcの複製されたものです。<br />
こんな短いスクリプトでイケるなんて・・・・</p>
<p>しかし、結局「constructor」が何者なのかちょっとまだ判り兼ねております。<br />
今の作業がひと段落したら、ちゃんとしらべてみましょうね。（←自分への忠告）</p>

	<div class="clearfloat"></div>タグ:<a href="http://blog.bgs-works.com/category/flash/as3/" title="AS3" rel="tag">AS3</a>, <a href="http://blog.bgs-works.com/tag/as3/" title="AS3" rel="tag">AS3</a>, <a href="http://blog.bgs-works.com/category/flash/" title="Flash" rel="tag">Flash</a>, <a href="http://blog.bgs-works.com/tag/movieclip/" title="MovieClip" rel="tag">MovieClip</a>, <a href="http://blog.bgs-works.com/tag/%e8%a4%87%e8%a3%bd/" title="複製" rel="tag">複製</a><br />
]]></content:encoded>
			<wfw:commentRss>http://blog.bgs-works.com/2009/06/as3-movieclip%e3%81%ae%e8%a4%87%e8%a3%bd%e6%96%b9%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.bgs-works.com/2009/06/as3-movieclip%e3%81%ae%e8%a4%87%e8%a3%bd%e6%96%b9%e6%b3%95/" />
	</item>
		<item>
		<title>[AS3]  Tweenerでモザイク処理出来る拡張ライブラリ</title>
		<link>http://blog.bgs-works.com/2009/05/as3-tweener%e3%81%a7%e3%83%a2%e3%82%b6%e3%82%a4%e3%82%af%e5%87%a6%e7%90%86%e5%87%ba%e6%9d%a5%e3%82%8b%e6%8b%a1%e5%bc%b5%e3%83%a9%e3%82%a4%e3%83%96%e3%83%a9%e3%83%aa/</link>
		<comments>http://blog.bgs-works.com/2009/05/as3-tweener%e3%81%a7%e3%83%a2%e3%82%b6%e3%82%a4%e3%82%af%e5%87%a6%e7%90%86%e5%87%ba%e6%9d%a5%e3%82%8b%e6%8b%a1%e5%bc%b5%e3%83%a9%e3%82%a4%e3%83%96%e3%83%a9%e3%83%aa/#comments</comments>
		<pubDate>Wed, 27 May 2009 07:54:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Library]]></category>
		<category><![CDATA[Tweener]]></category>

		<guid isPermaLink="false">http://blog.bgs-works.com/?p=193</guid>
		<description><![CDATA[凄いものをはっけん！！
私のなじみ深いTweenerに「_mosaic」のプロパティを追加するだけで読み込んだものをモザイク処理してくれる、拡張ライブラリが公開されていました！！！
Tweenerでモザイク処理できるよう [...]]]></description>
			<content:encoded><![CDATA[<p>凄いものをはっけん！！</p>
<p>私のなじみ深いTweenerに「_mosaic」のプロパティを追加するだけで読み込んだものをモザイク処理してくれる、拡張ライブラリが公開されていました！！！</p>
<p><a href="http://a24log.weblike.jp/?p=86">Tweenerでモザイク処理できるようにしてみた</a><br />
作者様　本当にありがとうございます！！</p>
<p>使い方もいたって簡単！<a href="http://a24log.weblike.jp/?p=86">@24Log</a>様のサイトより一式ダウンロードしてきて、<br />
いつも通りパスを通す。<br />
そんで、いつものimport Tweenerの際にちょっと追加。</p>
<pre class="brush: java; title: ; notranslate">
import a24.external.tweener.MosaicShortcuts;

MosaicShortcuts.init();
</pre>
<p>そうすると「alpha」とか「time」とかみたく「_mosaic」が使えてしまいます。<br />
指定するのは何ピクセルのモザイクを作るか。<br />
なので</p>
<pre class="brush: java; title: ; notranslate">
Tweener.addTween(mc, {_mosaic : 20,time : 1,transition : &quot;easeInOutSine&quot;, delay:0.5});
</pre>
<p>みたいな指定だけで素敵な事になります。<br />
嬉しすぎる〜〜<br />
<div style="text-align: center; width:400px; height:300px; line-height:300px; margin: auto; margin-right: auto; background: #ffffff;"><div id="swfc9382">This movie requires Flash Player 9.0.0</div></div>
<script type="text/javascript">
	swfobject.embedSWF("http://blog.bgs-works.com/wp-content/uploads/2009/05/mosaic_test_as3.swf", "swfc9382", "400", "300", "9.0.0", "http://blog.bgs-works.com/wp-content/plugins/wp-al-swfobject/expressInstall.swf", {}, {bgcolor:"#FFFFFF",wmode:"window",menu:"false",quality:"high",allowFullScreen:"true"}, {});
</script>
</p>
<p>上のサンプルのスクリプトも上げときますか。いらんと思いますが・・・</p>
<pre class="brush: java; title: ; notranslate">
import caurina.transitions.Tweener;
import a24.external.tweener.MosaicShortcuts;

MosaicShortcuts.init();

function onMosaic(e:MouseEvent):void{

	Tweener.addTween(mc, {_mosaic : 20,time : 1,transition : &quot;easeInOutSine&quot;, delay:0.5});
	Tweener.addTween(mc, {_mosaic : 0,time : 1,transition : &quot;easeInOutSine&quot;, delay:2});

}

btn.addEventListener(MouseEvent.CLICK, onMosaic);
</pre>
<p><strong>&#8212;&#8212;-2009/06/07　追記&#8212;&#8212;-</strong></p>
<p>Tweenerモザイクプロパティの作者様＠24様よりコメントを頂き、<br />
バージョンアップされたそうです！以前のものでも相当感動ダッタンデスケドネ。<br />
最新バージョンのご使用は下記からどうぞ！！</p>
<p><a href="http://a24log.weblike.jp/?p=440">Tweener でモザイクかけるやつを作り直した</a></p>

	<div class="clearfloat"></div>タグ:<a href="http://blog.bgs-works.com/category/flash/as3/" title="AS3" rel="tag">AS3</a>, <a href="http://blog.bgs-works.com/tag/as3/" title="AS3" rel="tag">AS3</a>, <a href="http://blog.bgs-works.com/category/flash/" title="Flash" rel="tag">Flash</a>, <a href="http://blog.bgs-works.com/category/flash/library/" title="Library" rel="tag">Library</a>, <a href="http://blog.bgs-works.com/tag/library/" title="Library" rel="tag">Library</a>, <a href="http://blog.bgs-works.com/tag/tweener/" title="Tweener" rel="tag">Tweener</a><br />
]]></content:encoded>
			<wfw:commentRss>http://blog.bgs-works.com/2009/05/as3-tweener%e3%81%a7%e3%83%a2%e3%82%b6%e3%82%a4%e3%82%af%e5%87%a6%e7%90%86%e5%87%ba%e6%9d%a5%e3%82%8b%e6%8b%a1%e5%bc%b5%e3%83%a9%e3%82%a4%e3%83%96%e3%83%a9%e3%83%aa/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.bgs-works.com/2009/05/as3-tweener%e3%81%a7%e3%83%a2%e3%82%b6%e3%82%a4%e3%82%af%e5%87%a6%e7%90%86%e5%87%ba%e6%9d%a5%e3%82%8b%e6%8b%a1%e5%bc%b5%e3%83%a9%e3%82%a4%e3%83%96%e3%83%a9%e3%83%aa/" />
	</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
