Archive for October, 2010

Draw a Circle based on Time/Timer

I am writing this post so that people searching can benifit. When it came to me no search engine could find what I was looking for.

Well Drawing a Circle based on timer is not a good idea, Yes it is not.

In flash runtime, the specific timing of both scediled screen-update checks and TimerEvent.Timer events not guranted. The Event.ENTER_FRAME event often executes later the time scheduled by designated frame rate, and TimerEvent.Timer events often occur later than the time specified by Timer object’s delay variable.

And you get unpredicatable animation.

to gurantee that given object will travel a specified distance in specified time,


Refer To Essential Action Script 3 book (Page 627)

I will put code in short while….

Create Certificate Valid till 2033 – AIR Android apk upload

When uploading your android .apk file you may be asked for Certificate valid for certain years.

“Market requires that the certificate used to sign the apk be valid until at least October –, 2033/2034. Create a new certificate.”

Adobe Air Certificate generator does not Create a time Stamp valid for certain years. Work around for this is use keytool command line key generator.

keytool -genkey -v -storetype pkcs12 -keystore AndroidCertificate.p12 -keyalg RSA -validity 20000

above syntax creates certificate valid for 20000 days.

Hope this is helpful.

Warning: Application has not specified its permission requirements in application.xml

Problem can be solved by uncommenting following code in application descriptor

<manifest android:installLocation=”auto”>
<uses-permission android:name=”android.permission.INTERNET”/>
<uses-permission android:name=”android.permission.WRITE_EXTERNAL_STORAGE”/>
<uses-permission android:name=”android.permission.ACCESS_FINE_LOCATION”/>
<uses-configuration android:reqFiveWayNav=”true”/>
<supports-screens android:normalScreens=”true”/>
<uses-feature android:required=”true” android:name=”android.hardware.touchscreen.multitouch”/>
<application android:enabled=”true”>
<activity android:excludeFromRecents=”false”>
<action android:name=”android.intent.action.MAIN”/>
<category android:name=”android.intent.category.LAUNCHER”/>




There has been change in build 20100909 of Air for Android.


For physical device:

adt.bat -package -target apk -storetype pkcs12…


For emulator:

adt.bat -package -target apk-emulator -storetype pkcs12…




SmartFox and SQL Server 2005 Connection

For Java 1.6

Downloaded Microsoft SQL Server JDBC Driver 3.0

copy sqljdbc4.jar to SmartFoxServerPRO_1.6.6\jre\lib\ext

Remove sqljdbc.jar or else error while starting server to put sqljdbc4.jar

Change config.xml for zone you need to create extension for.

<DatabaseManager active=”true”>







Set your connection type to active=true in order to excute DB ..

check sample application from smartfoxServerDoc