E: me@sabisin.com | T: +4915168651209

Success is a catalyst for failure

Why don’t successful people become really successful? Greg McKeown explains in The Disciplined Pursuit of Less.

Why don’t successful people and organizations automatically become very successful? One important explanation is due to what I call “the clarity paradox,” which can be summed up in four predictable phases:

Phase 1: When we really have clarity of purpose, it leads to success.
Phase 2: When we have success, it leads to more options and opportunities.
Phase 3: When we have increased options and opportunities, it leads to diffused efforts.
Phase 4: Diffused efforts undermine the very clarity that led to our success in the first place.

Restart an AIR application

It takes an application ID and a publisher ID of the currently running application (that is, of itself), then attempts to launch the application with these IDs (that is, another instance of itself) and closes itself. Thus effectively doing a restart.

Also note that this will only work if ‘allowBrowserInvocation’ is set to true in application descriptor.

public function restart():void {
	new ProductManager("airappinstaller").launch("-launch " + NativeApplication.nativeApplication.applicationID + " " + NativeApplication.nativeApplication.publisherID);  
	NativeApplication.nativeApplication.exit(); 
}