<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: [技术]原创-完美的loading-完美到底[基础]</title>
	<atom:link href="http://www.awflasher.com/blog/archives/444/feed" rel="self" type="application/rss+xml" />
	<link>http://www.awflasher.com/blog/archives/444</link>
	<description>分享互联网, 分享人生</description>
	<lastBuildDate>Sun, 12 Feb 2012 04:59:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: FLYBKK</title>
		<link>http://www.awflasher.com/blog/archives/444#comment-57517</link>
		<dc:creator>FLYBKK</dc:creator>
		<pubDate>Fri, 29 Feb 2008 13:02:05 +0000</pubDate>
		<guid isPermaLink="false">#comment-57517</guid>
		<description>......................完全看不懂。。。= =

LOADING。。。。

不懂AS代码FLASH还未入门的飘~~``

看见代码头大。。。没人手把手的教我绝对学不会。。。

难道我这辈子都做不好FLASH么？（扶墙）</description>
		<content:encoded><![CDATA[<p>&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.完全看不懂。。。= =</p>
<p>LOADING。。。。</p>
<p>不懂AS代码FLASH还未入门的飘~~&#8220;</p>
<p>看见代码头大。。。没人手把手的教我绝对学不会。。。</p>
<p>难道我这辈子都做不好FLASH么？（扶墙）</p>
<div digg="0" bury="0" class="diggcomment" cid="57517"></div>]]></content:encoded>
	</item>
	<item>
		<title>By: 动漫小子</title>
		<link>http://www.awflasher.com/blog/archives/444#comment-56984</link>
		<dc:creator>动漫小子</dc:creator>
		<pubDate>Tue, 26 Feb 2008 08:13:47 +0000</pubDate>
		<guid isPermaLink="false">#comment-56984</guid>
		<description>1. 在网络环境比较差的情况下，你的 p 值很可能是 NaN，原因是 bytesTotal 尚未读取到。
如果你用了 if (bytesLoaded==bytesTotal) 则有可能在刚开始加载就跳过去了，因为bytesLoaded=0, bytesTotal也可能为0。
我的解决方法: if (p==100 &amp;&amp; bytesTotal&gt;10);</description>
		<content:encoded><![CDATA[<p>1. 在网络环境比较差的情况下，你的 p 值很可能是 NaN，原因是 bytesTotal 尚未读取到。<br />
如果你用了 if (bytesLoaded==bytesTotal) 则有可能在刚开始加载就跳过去了，因为bytesLoaded=0, bytesTotal也可能为0。<br />
我的解决方法: if (p==100 &amp;&amp; bytesTotal&gt;10);</p>
<div digg="0" bury="0" class="diggcomment" cid="56984"></div>]]></content:encoded>
	</item>
	<item>
		<title>By: asdf</title>
		<link>http://www.awflasher.com/blog/archives/444#comment-19077</link>
		<dc:creator>asdf</dc:creator>
		<pubDate>Wed, 13 Jun 2007 08:50:15 +0000</pubDate>
		<guid isPermaLink="false">#comment-19077</guid>
		<description>谢谢~
但如果是as2下应该放在哪个timeline上呢？</description>
		<content:encoded><![CDATA[<p>谢谢~<br />
但如果是as2下应该放在哪个timeline上呢？</p>
<div digg="0" bury="0" class="diggcomment" cid="19077"></div>]]></content:encoded>
	</item>
	<item>
		<title>By: aw</title>
		<link>http://www.awflasher.com/blog/archives/444#comment-19047</link>
		<dc:creator>aw</dc:creator>
		<pubDate>Wed, 13 Jun 2007 03:59:58 +0000</pubDate>
		<guid isPermaLink="false">#comment-19047</guid>
		<description>asdf: 目前这篇教程并不适用于AS3环境，非常抱歉。我稍后会在as3blog.com放出针对AS3的loading教程。</description>
		<content:encoded><![CDATA[<p>asdf: 目前这篇教程并不适用于AS3环境，非常抱歉。我稍后会在as3blog.com放出针对AS3的loading教程。</p>
<div digg="0" bury="0" class="diggcomment" cid="19047"></div>]]></content:encoded>
	</item>
	<item>
		<title>By: asdf</title>
		<link>http://www.awflasher.com/blog/archives/444#comment-19045</link>
		<dc:creator>asdf</dc:creator>
		<pubDate>Wed, 13 Jun 2007 03:36:47 +0000</pubDate>
		<guid isPermaLink="false">#comment-19045</guid>
		<description>首先，把创意定好。然后给你的MC一个实例名字，比如叫做loader_mc。这时候在timeline上写代码，记住，是timeline而不是MC上。
---------------------------------------
请问这里提到的“timeline”，是loader_mc的timeline还是主场景的timeline？
为什么我会出现symbol loader_mc 的错误：1105 Target of assignment must be a reference value
（as3环境下）</description>
		<content:encoded><![CDATA[<p>首先，把创意定好。然后给你的MC一个实例名字，比如叫做loader_mc。这时候在timeline上写代码，记住，是timeline而不是MC上。<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
请问这里提到的“timeline”，是loader_mc的timeline还是主场景的timeline？<br />
为什么我会出现symbol loader_mc 的错误：1105 Target of assignment must be a reference value<br />
（as3环境下）</p>
<div digg="0" bury="0" class="diggcomment" cid="19045"></div>]]></content:encoded>
	</item>
	<item>
		<title>By: aw's blog 姿态永恒 &#187; [技术]原创-完美的loading-完美到底[利器]</title>
		<link>http://www.awflasher.com/blog/archives/444#comment-8050</link>
		<dc:creator>aw's blog 姿态永恒 &#187; [技术]原创-完美的loading-完美到底[利器]</dc:creator>
		<pubDate>Mon, 05 Mar 2007 03:02:59 +0000</pubDate>
		<guid isPermaLink="false">#comment-8050</guid>
		<description>[...] Not in Portland - You own me an answer        &#171; [技术]原创-完美的loading-完美到底[基础] 搜集一堆在线服务 &#187;          2006-3 23   [...]</description>
		<content:encoded><![CDATA[<p>[...] Not in Portland &#8211; You own me an answer        &laquo; [技术]原创-完美的loading-完美到底[基础] 搜集一堆在线服务 &raquo;          2006-3 23   [...]</p>
<div digg="0" bury="0" class="diggcomment" cid="8050"></div>]]></content:encoded>
	</item>
	<item>
		<title>By: Jack</title>
		<link>http://www.awflasher.com/blog/archives/444#comment-4711</link>
		<dc:creator>Jack</dc:creator>
		<pubDate>Wed, 25 Oct 2006 11:13:26 +0000</pubDate>
		<guid isPermaLink="false">#comment-4711</guid>
		<description>还有两个问题需要考虑:

1. 在网络环境比较差的情况下，你的 p 值很可能是 NaN，原因是 bytesTotal 尚未读取到。
如果你用了 if (bytesLoaded==bytesTotal) 则有可能在刚开始加载就跳过去了，因为bytesLoaded=0, bytesTotal也可能为0。
我的解决方法: if (p==100 &amp;&amp; bytesTotal&gt;10);

2. 精确度，p = (bytesLoaded/bytesTotal)*100 不如 bytesLoaded*100/bytesTotal，如果你只是取整那就不用考虑了，如果需要更精确的进度，则应该是这样。

愿意交流的朋友可以 mailto: jack(at)xnux(dot)net</description>
		<content:encoded><![CDATA[<p>还有两个问题需要考虑:</p>
<p>1. 在网络环境比较差的情况下，你的 p 值很可能是 NaN，原因是 bytesTotal 尚未读取到。<br />
如果你用了 if (bytesLoaded==bytesTotal) 则有可能在刚开始加载就跳过去了，因为bytesLoaded=0, bytesTotal也可能为0。<br />
我的解决方法: if (p==100 &amp;&amp; bytesTotal&gt;10);</p>
<p>2. 精确度，p = (bytesLoaded/bytesTotal)*100 不如 bytesLoaded*100/bytesTotal，如果你只是取整那就不用考虑了，如果需要更精确的进度，则应该是这样。</p>
<p>愿意交流的朋友可以 mailto: jack(at)xnux(dot)net</p>
<div digg="0" bury="0" class="diggcomment" cid="4711"></div>]]></content:encoded>
	</item>
	<item>
		<title>By: lync</title>
		<link>http://www.awflasher.com/blog/archives/444#comment-4576</link>
		<dc:creator>lync</dc:creator>
		<pubDate>Fri, 13 Oct 2006 18:42:12 +0000</pubDate>
		<guid isPermaLink="false">#comment-4576</guid>
		<description>好贴再顶个～</description>
		<content:encoded><![CDATA[<p>好贴再顶个～</p>
<div digg="0" bury="0" class="diggcomment" cid="4576"></div>]]></content:encoded>
	</item>
	<item>
		<title>By: aw</title>
		<link>http://www.awflasher.com/blog/archives/444#comment-1524</link>
		<dc:creator>aw</dc:creator>
		<pubDate>Sat, 25 Feb 2006 18:03:57 +0000</pubDate>
		<guid isPermaLink="false">#comment-1524</guid>
		<description>-_-# 偶错了…… 谢谢！</description>
		<content:encoded><![CDATA[<p>-_-# 偶错了…… 谢谢！</p>
<div digg="0" bury="0" class="diggcomment" cid="1524"></div>]]></content:encoded>
	</item>
	<item>
		<title>By: harryzhxu</title>
		<link>http://www.awflasher.com/blog/archives/444#comment-1523</link>
		<dc:creator>harryzhxu</dc:creator>
		<pubDate>Sat, 25 Feb 2006 17:33:41 +0000</pubDate>
		<guid isPermaLink="false">#comment-1523</guid>
		<description>var p = getBytesLoaded()/getBytesTotal();
  if (p==100){

}

这个p是不是1啊？</description>
		<content:encoded><![CDATA[<p>var p = getBytesLoaded()/getBytesTotal();<br />
  if (p==100){</p>
<p>}</p>
<p>这个p是不是1啊？</p>
<div digg="0" bury="0" class="diggcomment" cid="1523"></div>]]></content:encoded>
	</item>
	<item>
		<title>By: rison</title>
		<link>http://www.awflasher.com/blog/archives/444#comment-1513</link>
		<dc:creator>rison</dc:creator>
		<pubDate>Fri, 24 Feb 2006 23:07:50 +0000</pubDate>
		<guid isPermaLink="false">#comment-1513</guid>
		<description>回贴好快 [eek]</description>
		<content:encoded><![CDATA[<p>回贴好快 [eek]</p>
<div digg="0" bury="0" class="diggcomment" cid="1513"></div>]]></content:encoded>
	</item>
	<item>
		<title>By: blank</title>
		<link>http://www.awflasher.com/blog/archives/444#comment-1500</link>
		<dc:creator>blank</dc:creator>
		<pubDate>Fri, 24 Feb 2006 14:06:32 +0000</pubDate>
		<guid isPermaLink="false">#comment-1500</guid>
		<description>for(var i:Number = 0;i&lt;10001;i++){

trace(&quot;사랑해요!&quot;);

}</description>
		<content:encoded><![CDATA[<p>for(var i:Number = 0;i&lt;10001;i++){</p>
<p>trace(&quot;사랑해요!&quot;);</p>
<p>}</p>
<div digg="0" bury="0" class="diggcomment" cid="1500"></div>]]></content:encoded>
	</item>
	<item>
		<title>By: aw</title>
		<link>http://www.awflasher.com/blog/archives/444#comment-1496</link>
		<dc:creator>aw</dc:creator>
		<pubDate>Fri, 24 Feb 2006 12:51:36 +0000</pubDate>
		<guid isPermaLink="false">#comment-1496</guid>
		<description>to Rison: 节约计算量这个提法很好！不过如果在外面，_root上就多了一个不必要的变量了，呵呵。
不过仔细回味，还是你的提法好，因为做Flash，CPU比内存更重要。</description>
		<content:encoded><![CDATA[<p>to Rison: 节约计算量这个提法很好！不过如果在外面，_root上就多了一个不必要的变量了，呵呵。<br />
不过仔细回味，还是你的提法好，因为做Flash，CPU比内存更重要。</p>
<div digg="0" bury="0" class="diggcomment" cid="1496"></div>]]></content:encoded>
	</item>
	<item>
		<title>By: rison</title>
		<link>http://www.awflasher.com/blog/archives/444#comment-1495</link>
		<dc:creator>rison</dc:creator>
		<pubDate>Fri, 24 Feb 2006 12:38:13 +0000</pubDate>
		<guid isPermaLink="false">#comment-1495</guid>
		<description>不错，再学习ing... [lol] 
偶也有几点体会，var getTar:MovieClip = this._parent;和 getBytesTotal();值在onEnterFrame外面var出来，节约计算量。
一般写成这样：
var owner=this
var _totalBytes=owner.getBytesTotal();
function loadCheck()
{
  var p=owner.getBytesLoaded()/ _totalBytes
  ......
}
var intervalID = setInterval(loadCheck,interval);</description>
		<content:encoded><![CDATA[<p>不错，再学习ing&#8230; [lol]<br />
偶也有几点体会，var getTar:MovieClip = this._parent;和 getBytesTotal();值在onEnterFrame外面var出来，节约计算量。<br />
一般写成这样：<br />
var owner=this<br />
var _totalBytes=owner.getBytesTotal();<br />
function loadCheck()<br />
{<br />
  var p=owner.getBytesLoaded()/ _totalBytes<br />
  &#8230;&#8230;<br />
}<br />
var intervalID = setInterval(loadCheck,interval);</p>
<div digg="0" bury="0" class="diggcomment" cid="1495"></div>]]></content:encoded>
	</item>
	<item>
		<title>By: aw</title>
		<link>http://www.awflasher.com/blog/archives/444#comment-1489</link>
		<dc:creator>aw</dc:creator>
		<pubDate>Thu, 23 Feb 2006 21:40:04 +0000</pubDate>
		<guid isPermaLink="false">#comment-1489</guid>
		<description>一切等我把那个日本人的英文论文翻译完再说：）

真不好意思啦！~</description>
		<content:encoded><![CDATA[<p>一切等我把那个日本人的英文论文翻译完再说：）</p>
<p>真不好意思啦！~</p>
<div digg="0" bury="0" class="diggcomment" cid="1489"></div>]]></content:encoded>
	</item>
	<item>
		<title>By: blank</title>
		<link>http://www.awflasher.com/blog/archives/444#comment-1488</link>
		<dc:creator>blank</dc:creator>
		<pubDate>Thu, 23 Feb 2006 21:03:45 +0000</pubDate>
		<guid isPermaLink="false">#comment-1488</guid>
		<description>你那个WORKS的原创LOADING可以写一教程哦..不要舍不得撒! [smile]</description>
		<content:encoded><![CDATA[<p>你那个WORKS的原创LOADING可以写一教程哦..不要舍不得撒! [smile]</p>
<div digg="0" bury="0" class="diggcomment" cid="1488"></div>]]></content:encoded>
	</item>
	<item>
		<title>By: tdus</title>
		<link>http://www.awflasher.com/blog/archives/444#comment-1482</link>
		<dc:creator>tdus</dc:creator>
		<pubDate>Thu, 23 Feb 2006 12:43:14 +0000</pubDate>
		<guid isPermaLink="false">#comment-1482</guid>
		<description>[smile] 好的,正事要紧,你先忙吧</description>
		<content:encoded><![CDATA[<p>[smile] 好的,正事要紧,你先忙吧</p>
<div digg="0" bury="0" class="diggcomment" cid="1482"></div>]]></content:encoded>
	</item>
	<item>
		<title>By: aw</title>
		<link>http://www.awflasher.com/blog/archives/444#comment-1481</link>
		<dc:creator>aw</dc:creator>
		<pubDate>Thu, 23 Feb 2006 12:19:14 +0000</pubDate>
		<guid isPermaLink="false">#comment-1481</guid>
		<description>我先卖个官子咯^_^

等我先把那该死的日本人的英语翻译成中文……抱歉了~~</description>
		<content:encoded><![CDATA[<p>我先卖个官子咯^_^</p>
<p>等我先把那该死的日本人的英语翻译成中文……抱歉了~~</p>
<div digg="0" bury="0" class="diggcomment" cid="1481"></div>]]></content:encoded>
	</item>
	<item>
		<title>By: rian</title>
		<link>http://www.awflasher.com/blog/archives/444#comment-1480</link>
		<dc:creator>rian</dc:creator>
		<pubDate>Thu, 23 Feb 2006 11:19:42 +0000</pubDate>
		<guid isPermaLink="false">#comment-1480</guid>
		<description>学习来啦.. [lol]</description>
		<content:encoded><![CDATA[<p>学习来啦.. [lol]</p>
<div digg="0" bury="0" class="diggcomment" cid="1480"></div>]]></content:encoded>
	</item>
	<item>
		<title>By: tdus</title>
		<link>http://www.awflasher.com/blog/archives/444#comment-1479</link>
		<dc:creator>tdus</dc:creator>
		<pubDate>Thu, 23 Feb 2006 11:08:53 +0000</pubDate>
		<guid isPermaLink="false">#comment-1479</guid>
		<description>不明白,还请指教?</description>
		<content:encoded><![CDATA[<p>不明白,还请指教?</p>
<div digg="0" bury="0" class="diggcomment" cid="1479"></div>]]></content:encoded>
	</item>
</channel>
</rss>

