AIR – DanDev.com http://www.dandev.com Tidbits about software development Sat, 26 Oct 2013 00:24:13 +0000 en-US hourly 1 Displaying the version number in Adobe AIR http://www.dandev.com/2011/10/displaying-the-version-number-in-adobe-air/ http://www.dandev.com/2011/10/displaying-the-version-number-in-adobe-air/#respond Wed, 12 Oct 2011 04:00:55 +0000 http://www.dandev.com/?p=220 In the Adobe AIR application descriptor file there are many options you can set. One of which is the tag(or in Flex SDK v4.1 and below), which lets you differentiate […]

The post Displaying the version number in Adobe AIR appeared first on DanDev.com.

]]>
In the Adobe AIR application descriptor file there are many options you can set. One of which is the tag(or in Flex SDK v4.1 and below), which lets you differentiate your release as well as utilize the Adobe AIR updater library.

It can be useful to display your version number inside of your app to inform the user as well as help with bug reports among other reasons. In order to prevent you from having to update the version number in multiple places you can use AS3 to grab it from the application descriptor and update your text for your app on the fly, as it loads. Here is an example of how to do that:


		

Flex Builder Project

The post Displaying the version number in Adobe AIR appeared first on DanDev.com.

]]> http://www.dandev.com/2011/10/displaying-the-version-number-in-adobe-air/feed/ 0 Add a click event to a BitmapImage in Adobe Flex/AIR http://www.dandev.com/2011/10/add-a-click-event-to-a-bitmapimage-in-adobe-flexair/ http://www.dandev.com/2011/10/add-a-click-event-to-a-bitmapimage-in-adobe-flexair/#respond Wed, 05 Oct 2011 04:00:29 +0000 http://www.dandev.com/?p=215 You may have noticed MouseEvent.Click is not an event available to be set on the BitmapImage Spark primitive(in the current Flex SDK). But, there is a simple workaround for this. […]

The post Add a click event to a BitmapImage in Adobe Flex/AIR appeared first on DanDev.com.

]]>
You may have noticed MouseEvent.Click is not an event available to be set on the BitmapImage Spark primitive(in the current Flex SDK). But, there is a simple workaround for this. All you have to do is place it inside of a Graphic primitive wrapper. In MXML it would look like this:



	
	
		
	
	
		
	
	
	
		
			
		
	
	

Flex Builder Project

In AS3 it looks like this:



	
	
		
	
	
		
	
	
	
	
	

Flex Builder Project

The post Add a click event to a BitmapImage in Adobe Flex/AIR appeared first on DanDev.com.

]]>
http://www.dandev.com/2011/10/add-a-click-event-to-a-bitmapimage-in-adobe-flexair/feed/ 0
VerifyError: Error #1014: Class IIMEClient could not be found. http://www.dandev.com/2010/07/verifyerror-error-1014-class-iimeclient-could-not-be-found/ http://www.dandev.com/2010/07/verifyerror-error-1014-class-iimeclient-could-not-be-found/#comments Mon, 12 Jul 2010 03:49:55 +0000 http://www.dandev.com/?p=189 If you have run across this error recently: VerifyError: Error #1014: Class IIMEClient could not be found. You may be wondering what it means, and more importantly how to fix […]

The post VerifyError: Error #1014: Class IIMEClient could not be found. appeared first on DanDev.com.

]]>
If you have run across this error recently: VerifyError: Error #1014: Class IIMEClient could not be found.

You may be wondering what it means, and more importantly how to fix it. What appears to be the sole cause of this error is your versions not matching up between your Flex/AIR SDK and the AIR application descriptor file. This can happen after you update/reinstall Flash Builder, or the SDK folder manually.

The fix is pretty easy: Just open your AIR descriptor file(generally the only XML file in the project src folder) and change the xmlns to the current version of the SDK you are using(1.5.3 => 2.0 for instance). See screenshot below for an example(warning: it’s big):

The post VerifyError: Error #1014: Class IIMEClient could not be found. appeared first on DanDev.com.

]]>
http://www.dandev.com/2010/07/verifyerror-error-1014-class-iimeclient-could-not-be-found/feed/ 13