Wednesday, October 28, 2009

Cannot find System.Globalization.CultureAndRegionInfoBuilder??

Kindly add reference and choose sysglobl under the .NET tab.

Thursday, October 22, 2009

Resizing a Photographic image with GDI+ for .NET

http://www.codeproject.com/KB/GDI-plus/imageresize.aspx

Channel 9 learning center

http://channel9.msdn.com/learn/

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/

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>