<?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/"
	>

<channel>
	<title>某人的栖息地 &#187; actionscript</title>
	<atom:link href="http://www.ooso.net/tag/actionscript/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ooso.net</link>
	<description>Linux + Apache + Mysql + Php + Flash</description>
	<lastBuildDate>Thu, 19 Jan 2012 01:21:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>用firebug来调试actionscript</title>
		<link>http://www.ooso.net/archives/442</link>
		<comments>http://www.ooso.net/archives/442#comments</comments>
		<pubDate>Thu, 03 Jul 2008 13:23:17 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[firefox]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[firebug]]></category>

		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/442</guid>
		<description><![CDATA[往常调试actionscript，是用的trace，在flash debug player里头输出变量内容。今天看到的方法比较有趣，是利用javascript在firebug中输出as的调试信息。
用firebug调试as的基本原理
ExternalInterface.call('console.log', "string is [%s]",  "abcde");
利用as的ExternalInterface和js交互，然后调用firebug的console.log，将as的变量输出到控制台，这样也能达到调试的目的。

				<span class="readmore"><a href="http://www.ooso.net/archives/442" title="用firebug来调试actionscript">阅读全文（307字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>往常调试actionscript，是用的trace，在flash debug player里头输出变量内容。今天看到的方法比较有趣，是利用javascript在<a href="http://www.ooso.net/index.php/archives/294">firebug</a>中输出as的调试信息。</p>
<h3>用firebug调试as的基本原理</h3>
<pre><code>ExternalInterface.call('console.log', "string is [%s]",  "abcde");</code></pre>
<p>利用as的ExternalInterface和js交互，然后调用firebug的console.log，将as的变量输出到控制台，这样也能达到调试的目的。</p>
<p>当然，要使用firebug，前提当然是你使用的firefox浏览器。如果是ie，那么只好使用alert弹出信息。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/442/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>用来调试flash的air应用</title>
		<link>http://www.ooso.net/archives/416</link>
		<comments>http://www.ooso.net/archives/416#comments</comments>
		<pubDate>Sun, 08 Jun 2008 22:44:31 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[flash]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[air]]></category>

		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/416</guid>
		<description><![CDATA[看到一个名为Arthropod的air应用，可以用来记录flash的log信息，并以颜色区分。如果你采用Flash CS3创建了一个air应用，那么它的trace命令不会生效，这样对调试是很不方便的。
这个时候Arthropod就显得很有用。
用法


				<span class="readmore"><a href="http://www.ooso.net/archives/416" title="用来调试flash的air应用">阅读全文（231字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>看到一个名为<a href="http://arthropod.stopp.se/">Arthropod</a>的<a href="/?tag=air">air</a>应用，可以用来记录flash的log信息，并以颜色区分。如果你采用Flash CS3创建了一个air应用，那么它的trace命令不会生效，这样对调试是很不方便的。</p>
<p>这个时候Arthropod就显得很有用。</p>
<h3>用法</h3>
<ul>
<li>在actionscript中导入Debug类:
<pre><code>import com.carlcalderon.arthropod.Debug;</code></pre>
</li>
<li>输出debug信息
<pre><code>Debug.log("My log message");</code></pre>
</li>
<li>然后启动arthropod</li>
</ul>
<p><img src="http://theflashblog.com/images/arthropod.jpg" alt="arthropod" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/416/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

