<?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>RichMedia+ &#187; Adobe Error Solution</title>
	<atom:link href="http://blog.richmediaplus.com/tag/adobe-error-solution/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.richmediaplus.com</link>
	<description>About the Adobe&#039;s RIA related solution and technology, like Adobe Air, Adobe Flex, Mobile Dev. You also can find the SEO for Flex, RIA, User Ex in this blog.</description>
	<lastBuildDate>Fri, 16 Dec 2011 09:33:27 +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>VerifyError: Error #1107 Solution</title>
		<link>http://blog.richmediaplus.com/2009/08/verifyerror-error-1107-solution/</link>
		<comments>http://blog.richmediaplus.com/2009/08/verifyerror-error-1107-solution/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 02:44:36 +0000</pubDate>
		<dc:creator>Alvin / Aedis.Ju</dc:creator>
				<category><![CDATA[ActionScript3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[richmediaplus Lab]]></category>
		<category><![CDATA[Adobe Bug]]></category>
		<category><![CDATA[Adobe Error Solution]]></category>
		<category><![CDATA[Adobe Flex]]></category>

		<guid isPermaLink="false">http://blog.richmediaplus.com/?p=336</guid>
		<description><![CDATA[VerifyError: Error #1107: The ABC data is corrupt, attempt to read out of bounds VerifyError: Error #1107: ABC 数据已损坏，尝试的读取操作超出范围。 今天遇到了 Adobe Flex VerifyError: Error #1107 的錯誤，囧了一天。 在網上搜了很多，貌似都沒有幾個合理的解釋，因此總結一下網上搜索的結果和自己的實際經驗來給大家分享下解決方案。 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- Class is too large, or contains too much large arrays http://forums.ilog.com/elixir/index.php?topic=858.0 Marc Said: It seems that the compiled actionscript class is too large, or contains too much [...]
Related posts:<ol>
<li><a href='http://blog.richmediaplus.com/2010/04/taobao-flashplayer-error/' rel='bookmark' title='Taobao Flashplayer Error'>Taobao Flashplayer Error</a></li>
<li><a href='http://blog.richmediaplus.com/2009/04/create-trail-information-and-expired-date-in-actionscript3-and-flex3/' rel='bookmark' title='Create Trail Information &amp; Expired Date in ActionScript3 &amp; Flex'>Create Trail Information &#038; Expired Date in ActionScript3 &#038; Flex</a></li>
<li><a href='http://blog.richmediaplus.com/2011/05/flex-style-module/' rel='bookmark' title='Flex 4 Style Module'>Flex 4 Style Module</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff0000;"><code>VerifyError: Error #1107: The ABC data is corrupt, attempt to read out of  bounds</code><br />
<code>VerifyError: Error #1107: ABC 数据已损坏，尝试的读取操作超出范围。</code></span></p>
<p>今天遇到了 Adobe Flex VerifyError: Error #1107 的錯誤，囧了一天。<br />
在網上搜了很多，貌似都沒有幾個合理的解釋，因此總結一下網上搜索的結果和自己的實際經驗來給大家分享下解決方案。</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
<strong>Class is too large, or contains too much large arrays</strong></p>
<p>http://forums.ilog.com/elixir/index.php?topic=858.0</p>
<p>Marc Said:<br />
<span style="color: #3366ff;">It seems that the compiled actionscript class is too large, or contains too much  large arrays, which confuses the Flash Player. To get a smaller class, I did use  the simplification threshold to generate the class. A value of 50000 meters did  work for me.</span> Note that you will also need some patience  because the  simplification process in Custom Map Converter is quite time consuming.</p>
<p>metman Said:<br />
<span style="color: #3366ff;">Reducing the number of points did work &#8211; thanks.</span> Is there anyway of telling what this is? Or if that array size will be increased in a future release to prevent this happening? BTW the simplification process is very fast and is not a problem.</p>
<p>說明 Reduce the number of points 有效，class文件太大或者內容里面還有太多的 Array，導致編譯器發生錯誤。<br />
我沒有唉。:-(</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
<strong>Update to Flex3.2</strong></p>
<p>我的錯誤發生的編譯環境是 Flex2.0.1 Hotfix3 ，而如果<span style="color: #3366ff;">使用 Flex3.2 的SDK，并不會發生 VerifyError: Error #1107 的錯誤</span>。<br />
因此升級為 Flex3.2 的版本，不會有這樣的錯誤發生。<br />
但是目前工程情況不允許。 <img src='http://blog.richmediaplus.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
<strong>Common Flex 2 compiler errors and known issues</strong></p>
<p><strong>175465:</strong> The following runtime error is produced because the compiler fails to report an error when <span style="color: #3366ff;">there is a protected set method in base class with the same name as a protected member variable in a derived class</span>: <code>VerifyError: Error #1107: The ABC data is corrupt, attempt to read out of  bounds</code>.</p>
<p>大概的意思是 a protected set method 命名重復了。<br />
自己找了一下，protected set method 沒有重復。Orz&#8230; <img src='http://blog.richmediaplus.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
<strong>奇異的命名重復</strong></p>
<p>最好發現原來在2個 Class 里面對同一個 Instance 進行了 MouseDown 的監聽，而且直接在后面跟上 function ，名字都是 handleMouseDown 。<br />
<code>XXX.getInstance().addEventListener(MouseEvent.MOUSE_DOWN, function handleMouseDown(event:Event):void{...})</code><br />
那么會出現 VerifyError: Error #1107 的錯誤。</p>
<p>如果1個 Class 里面命名為 a ，一個命名為 b，還是會發生錯誤。 囧</p>
<p>目前情況是 把handleMouseDown單獨提出來寫，不管是否命名重復，那么錯誤不會發生。因此這應該是 Adobe 的BUG。 <img src='http://blog.richmediaplus.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p><span style="color: #3366ff;">VerifyError: Error #1107 Solution: 因此避免錯誤的總結是 按照編碼規約，監聽事件的處理程式要單獨提出來寫。</span></p>
<p>Related posts:<ol>
<li><a href='http://blog.richmediaplus.com/2010/04/taobao-flashplayer-error/' rel='bookmark' title='Taobao Flashplayer Error'>Taobao Flashplayer Error</a></li>
<li><a href='http://blog.richmediaplus.com/2009/04/create-trail-information-and-expired-date-in-actionscript3-and-flex3/' rel='bookmark' title='Create Trail Information &amp; Expired Date in ActionScript3 &amp; Flex'>Create Trail Information &#038; Expired Date in ActionScript3 &#038; Flex</a></li>
<li><a href='http://blog.richmediaplus.com/2011/05/flex-style-module/' rel='bookmark' title='Flex 4 Style Module'>Flex 4 Style Module</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.richmediaplus.com/2009/08/verifyerror-error-1107-solution/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

