Content

Update: Configure FlashDevelop Code Autocompletion For AIR API

Sunday 6 September 2009 - Filed under Tips + Tools

Previously in Flash CS3, the trick of getting autocompletion in FlashDevelop is not working any more in Flash CS4, ast least not in my case. After testing a while I finally got it working again by setting the swc path of the project.

Choose “Project>>Properties…>>Compiler Options>>SWC Include Libraries” and add the path of AIR swc to it. Most likely it would be something like this: “C:\Program Files\Adobe\Adobe Flash CS4\AIK1.5\frameworks\libs\air\airglobal.swc”

Cheers!

1 comment  ::  Share or discuss  ::  2009-09-06  ::  admin

SWFObject 2.2 and SWFAddress 2.3 Conflict – flashvars have problem in IE

Tuesday 14 July 2009 - Filed under Others

The problem has been noted in SWFObject’s issue log. If you encounter any problem with flashvars not showing up in IE, downgrade SWFAdress to 2.2 will solve the problem. You can download other versions of SWFAdress from SourceForge.

 ::  Share or discuss  ::  2009-07-14  ::  5566

Unhappy with Flash CS4

Friday 10 July 2009 - Filed under News

Why “z” is not the shortcut key for zoom any more? There’s no “z” in “Bind Tool” but why it’s configured this way? I thought Adobe is trying to standardize all shortcut keys across all its software?

Why the help page is online? After I managed to set the help offline, I realized they took out Actionscript 2 references.

Fuck you whoever made these decisions!

11 comments  ::  Share or discuss  ::  2009-07-10  ::  admin

Algorithm for adding leading zeros

Thursday 2 July 2009 - Filed under Tips

I’ve always been writing this.

		function addZero(n:int):String {
			if (n < 10) {
				return "0" + n;
			}else {
				return "" + n;
			}
		}

The function adds one leading 0 quite well but if two 0 is needed, it's quite bad to write all the conditions to check whether it's less than 100 or 10. I think the following code is more efficient.


		function addZero(n:int, numZeros:int = 1):String {
			var str:String = n + "";
			while (str.length<numZeros+1)
			{
				str = "0" + str;
			}
			return str;
		}

5 comments  ::  Share or discuss  ::  2009-07-02  ::  admin

A new trick to make pixel fonts clear in Flash

Wednesday 1 July 2009 - Filed under Tips

Pixel fonts tend to get blur in Flash. Most of the time the problem can be solved by setting the textfield’s coordinates (x,y) into integers but sometimes it fails to work. I’ve found a new trick to solve this problem. If you check the option of the textfield to be selectable, the texts appear clear no matter what their x and y are.

1 comment  ::  Share or discuss  ::  2009-07-01  ::  admin

Glyphs Helper – A small tool to extract unique glyphs from text

Tuesday 23 June 2009 - Filed under Tools

Useful for Flash users and more useful for Flex users to geenerate the glyph ranges. Built with JavaScript.
>>enjoy<<

 ::  Share or discuss  ::  2009-06-23  ::  admin

Whitenoise Generator – Something helps to sleep

Tuesday 24 March 2009 - Filed under Experimental

Just something really random and stupid, but I think it may be useful. Sometimes it’s too quiet and your ear has the “ying ying ying” sound. It’s quite annoying. This small file generates white noise.  Built in Processing and Minim library.

Download: PC & Mac

1 comment  ::  Share or discuss  ::  2009-03-24  ::  admin

Trying PureMVC for website navigation

Friday 23 January 2009 - Filed under Others

I was always wondering how to use PureMVC for website development. Today, I’ve finally got a chance to try it.  I’ve read the documents many times but never really understand it so clearly after this small hands on practice. The example is the most typical scenario, some clickable buttons on the stage and click at one button will show the corresponding content.

source

 ::  Share or discuss  ::  2009-01-23  ::  5566

Not enough disk space to install flash player 10 problem

Tuesday 9 December 2008 - Filed under Tips

If your computer doesn’t have a C: drive, flash player 10 installer for firefox won’t be able to run properly. It keeps giving not enough disk space error. After Googling for a while, I found the solution in Yahoo answers.

If you don’t have a C-drive, then you can also share a folder or your root drive and then add this folder as a network drive and assign the letter C to it. after the installation you can disconnect the share again and disable sharing. Worked for me. -Yahoo! Answers

* The method that uses a USB drive didn’t work for me. My system drive is named as “W”, stands for Windows. I’m weird, I know.

It’s such a low level bug and it’s really unaccetable. I’ve installed tons of stuff in my computer and had never encounter this kind of problem before.

6 comments  ::  Share or discuss  ::  2008-12-09  ::  admin

Processing is 1.0 now

Tuesday 25 November 2008 - Filed under News

It only took 162 attempts, but Processing 1.0 is here!?

 ::  Share or discuss  ::  2008-11-25  ::  admin