Wednesday, October 28, 2009
Cannot find System.Globalization.CultureAndRegionInfoBuilder??
Kindly add reference and choose sysglobl under the .NET tab.
Thursday, October 22, 2009
Flash cannot read a plain text file directly
Today, I knew that flash cannot read a plain text file directly.
The file content has to be:
1. variable format
value=32
2. xml format
<xml>32<xml>
but not only "32".
At least, I can't find any way to do that using AS2 now.
For as3 to read a file, you can look at the following link:
http://www.thekuroko.com/2007/05/26/reading-a-file-with-actionscript-3/
The file content has to be:
1. variable format
value=32
2. xml format
but not only "32".
At least, I can't find any way to do that using AS2 now.
For as3 to read a file, you can look at the following link:
http://www.thekuroko.com/2007/05/26/reading-a-file-with-actionscript-3/
Wednesday, October 21, 2009
Check whether children elements exceed the overflow parent
<div id="f" style="overflow: hidden; background-color: red; width: 300px; height: 300px;">
<div id="s" style="background-color: green; width: 350px; height: 300px;">
</div>
<script><br />if (f.scrollWidth > f.clientWidth){<br />alert("overflowed");<br />}<br /></script></div>
<div id="s" style="background-color: green; width: 350px; height: 300px;">
</div>
<script><br />if (f.scrollWidth > f.clientWidth){<br />alert("overflowed");<br />}<br /></script></div>
Tuesday, October 20, 2009
Monday, October 19, 2009
Subscribe to:
Posts (Atom)