Author Archive

I don't know of an Adobe AIR property or method to make a NativeWindow modaled so here is my way of handling it.
The SetWindowModal class below creates an easy way to fake a functional modal by creating another NativeWindow which is transparent. This will block interaction with any content under it.
This is basic functionality that you can further modify to suit your precise needs. If there a built-in feature of Adobe AIR for making NativeWindows appear modal let me know please.

Example of modaled Adobe AIR NativeWindow

Example of modaled Adobe AIR NativeWindow


Read the rest of this entry »

Comments No Comments »

If one day you find Flash Builder 4.7 (win 7) doesn't start, try opening the Task Manager and end the Adobe Download Assistant process if it running. End Flash Builder's process to and retry launching it.

If that doesn't work try ending another process that listed that you know you don't need running. Chances are one of the processes are holding up Flash Builder from completing it launch.

Hey I'm just putting this online along with the many other weird causes and solutions for Flash Builder not launching successfully.

Comments No Comments »

I blame myself for typing typos, but the cause of this typo is harder to spot.
The compiler throws the error saying either "Internal Build Error" or "Classes Must Not Be Nested".
Knowing "gotchas" is helpful so I'm posting this.

For most errors we take the compiler for granted and it will tell you where you wrote some misspelled keyword or syntax because someone called you on the phone while you was in the middle of writing script. You get back to your code and run the compiler and bam! You can't figure out the cause of the error. You're already up late and tired while you read each line looking for the cause.

With my situation the compiler couldn't tell me where exactly I failed in life. I knew what classes I was working on before the error occurred. In each of them I commented out each class member declaration till the error disappeared. This let me know which class was potentially the problem.
Then in the suspect class I proofread each line of code and saw my very stupid mistake.
Here's a minimized example of the bad syntax...

package net.keithhair
{
	import flash.geom.Point;
	
	public class SomeInnocentClass
	{
		private var _x:Number = 0;
		private var _y = Number = 0; // Offending syntax.
		
		public function SomeInnocentClass()
		{
		
		}
	}
}

(Oh yea, if you're using Flash Builder, make sure you run "clean" after correcting the syntax)

I googled the error and read some comments here. The cause of the error is varied so It's a good thing when others post their causes too. It's easier to debug when you know "gotchas" to look out for.
http://rjowen.wordpress.com/2007/06/21/internal-build-error-or-classes-must-not-be-nested-error

Comments No Comments »

Thanks for visiting www.keith-hair.net