— Shang Liang

Archive
Others

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

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


NerdTests.com says I'm a Technology Geek.  What are you?  Click here!

Read More

This script adjust the coordinates (x,y) of all elements on the stage and in the library into integers.

Read More

I’ve updated _vimrc and the syntax file to solve the following two issues:

  • Disable pasting using mouse middle button: added “map ” at the end of _vimrc.
  • Turn syntax to be case sensitive: commented out “syn case ignore”
  • You can download these two files here
    >>vimrc<<
    >>actionscript.vim<<

    Read More

    From time to time I get the problem that the compression type of imported images in the library is set to “Lossless PNG/GIF” (especially when using Mac) which blows up the swf file size a lot. It’s easy when there are just a few of them. You can manually click and change. But sometimes there are a few hundred…

    Today, I finally got the urge to try out jsfl to automate this pain (I really have hundreds of images to change). Surprisingly, jsfl is not difficult at all. I got the code out within 5 minutes. I’ve put in a few more options in the script. Anyone can modify it easily.

    Enjoy!

    Read More

    After trying SEPY, SciTE 1.53, SciTE 1.61 (meychi website down) and FlashDevelop, now I’ve moved to Vim (Vi improved).

    The nice thing about Vim is that it’s built for programmers and it can greatly improve your editing speed. You can do everything without touching your mouse or moving your hand to the arrow keys. And what I like most is that it has color schemes really friendly to your eyes.

    Read More