Archive

Archive for March, 2009

An internal build error has occurred – Flex

March 20, 2009 1 comment

While debugging on my current project, my flex builder got crashed with out any known reason.

And when I restart my Flex builder I got this error.

An internal build error has occurred. Right-click for more information.

Well just to start with…

  • No information provided at all on right clicking.

  • You don’t get jumped on the location. Strange but don’t know why?
  • Shows error at line -1.  Where to find this line?

After googling for a while I encounter that many of the Flex developer has faced this similar error. Have a look what  9Media has to say for the same. They have compile some of the most interesting set of reason found for this error.

I was more interested in the  2nd point which talks about “adl.exe” process. I couldn’t locate the specified process.

After, trying hare I restarted my system. Well, yes it solved my problem too.

So, my conclusion is that there might be any other process which still running (considering my last action i.e. debugging the application).

I also tried the empty “switch“  case. And yes, it is one of the reason for this error. I guess Flex builder throws a general error for all these unknown and strange reasons.

Hope Adobe came up with little bit more creative and informative error messages in next build.

Finding Client Machine Capabilities using Flex / Flash

March 17, 2009 1 comment

In my current project Flipbook, we needed to tackle with the resolution settings on the Client side.

After googling for a while, we came to know about a very handy API from Action Script 3.0 named Capabilities. Many importent  system setting on Client machine can be viewed using it which includes …

  • System Resoultions
  • Operating System
  • Version
  • Player Type
  • Audio Capabilities
  • Video Encouder

Using various properties for Capabilities class, you can determine different client side settings in your application. For ex. I needed to set the  browser resolution based on the Current Client Resolution settings. Certainly it’s preety good to know this API.

<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml” layout=”absolute”
creationComplete=”onCreationComplete(event);”>
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.events.FlexEvent;
import flash.system.Capabilities

public function onCreationComplete(event:FlexEvent):void
{
showCapabilities();
}

private function showCapabilities():void
{
trace("avHardwareDisable: " + Capabilities.avHardwareDisable);
trace("hasAccessibility: " + Capabilities.hasAccessibility);
trace("hasAudio: " + Capabilities.hasAudio);
trace("hasAudioEncoder: " + Capabilities.hasAudioEncoder);
trace("hasEmbeddedVideo: " + Capabilities.hasEmbeddedVideo);
trace("hasMP3: " + Capabilities.hasMP3);
trace("hasPrinting: " + Capabilities.hasPrinting);
trace("hasScreenBroadcast: " + Capabilities.hasScreenBroadcast);
trace("hasScreenPlayback: " + Capabilities.hasScreenPlayback);
trace("hasStreamingAudio: " + Capabilities.hasStreamingAudio);
trace("hasVideoEncoder: " + Capabilities.hasVideoEncoder);
trace("isDebugger: " + Capabilities.isDebugger);
trace("language: " + Capabilities.language);
trace("localFileReadDisable: " + Capabilities.localFileReadDisable);
trace("manufacturer: " + Capabilities.manufacturer);
trace("os: " + Capabilities.os);
trace("pixelAspectRatio: " + Capabilities.pixelAspectRatio);
trace("playerType: " + Capabilities.playerType);
trace("screenColor: " + Capabilities.screenColor);
trace("screenDPI: " + Capabilities.screenDPI);
trace("screenResolutionX: " + Capabilities.screenResolutionX);
trace("screenResolutionY: " + Capabilities.screenResolutionY);
trace("serverString: " + Capabilities.serverString);
trace("version: " + Capabilities.version);
}

]]>
</mx:Script>

</mx:Application>

           

Flex 3 in Action by Manning publication

March 16, 2009 Leave a comment

For the first time I heard about this book from one of the blog on flex.  Since then i’ve been looking forward for the development made in this release.

I have managed to get PDF version for the same and currently going through the initial chapters.

So far so good, it has been an immense level of learning experience .

Many thanks to Tariq Ahmed, Jon Hirschi and Faisal Abid for this great work.

Friends go for it. It’ll be your true friend on your Flex journey.

Follow

Get every new post delivered to your Inbox.