— Shang Liang

This is not news any more. Apple bundled Safari 3.1 together with iTune update and it’s a big concern for its ethics and potential security risks. I was just wondering, if Safari 3 happens to bring PC some serious virus, is it Microsoft’s fault or Apple’s?

Read More

Back in 2006, I encountered a strange problem with mc_tween2. mc_tween2.as was unable to be #included. In the end, I just re-saved the file in my system and it worked. Today I encountered the same problem with the as2 version of Tweener. The compiler keeps giving me “Equations.as not found” error. I did the same trick as for mc_tween2. I opened Equations.as file, key in some spaces at the end of the file, resaved it and it worked. I guess it’s a PC/Mac or PC/Linux file format issue.

Read More

Mac: “Hello, I’m a Mac.”

PC: “And I’m a PC.”

Mac: “Hi PC, what are these Thumb.db files for?”

PC: “Give me a minute. Let me figure out where these ._DS_Store files are from first.”

Use this PC batch file to remove all of them.

Read More

From 2005 to 2008, from Flash 7 to flash 9, from 2D to 3D, it’s quite some journey.

>>Enjoy<<

Read More

Why they release at the same time? Coincidence? I’ve been reading Godfather recently. I think it was pure “business”.

  1. IMPERATOR °FLA 4.0
  2. SoThink SWF Decompiler 4.0 
  3. ASV 6.0 is also on the way

Read More

http://www.myhateblog.com/2007/11/20/you-are-not-a-web-designer/

“Some of you may disagree with the points above, particularly the “Web 2.0? comment. If you do, then I have one thing to say to you. Fuck you. You clearly have no idea what “Web 2.0? is in reference to. It’s a concept, and has very little to actually do with design.”

Read More

I’m not sure how serious it is, but this may affect many sites especially flash websites.

In safari 3 when you call window.open(“url.html”,”window_name”,”width=”+screen.availWidth+”,height=”+screen.availHeight), being different from other browsers, safari sets the inner document width and height to the screen availWidth and availHeight. This means, the popup window is actually bigger than availWidth and availHeight because there is a title bar at the top of the window. There’ll be some content hidden outside the screen for Mac and some hidden underneath the task bar for PC.

To avoid this problem, write a window.resize(screen.availWidth, screen.availHeight) in the popped up page.

Will Safari 3 replace IE?

…becoming javascript’s public enemy No.1?

p.s.  An interesting thing I found out from my mistake. If you call window.moveTo(x,y) supplying x,y with something not numeric (NaN, null, undefined), the window will disappear. Interesting? Not?

Read More

Defining i:uint is not better than i:int since both of them take the same amount of memory. Besides, it’s risky to define i:unit because if i is accidentally assigned to a negative value it becomes a big positive int.

Read More

Excel files can be saved as XMLs. In ActionScript 2, reading Excel generated XML (EGX) files is really tedious and unreliable because EGX files’ data hierarchy is not fixed and they have lots of formatting/styling information. To ensure not missing any data, it requires traversing every single node. It’s very inefficient. With AS3, its XPath like approach allows to find nodes located anywhere in the document by using the “..” notation which is “//” in XPath (ActionScript 3 changed all the “/” into “.” which makes more sense for object oriented programmers”. But that’s not all for reading EGX files.

Read More

I think many programmers have encountered such situation: you need to modify some large amount data in plain text into a useful format, things like creating 1000 links in HTML based on 1000 web addresses, or generating some test data running in sequence user1, user2, user3 etc. This small Flash can do it for you.

Read More