A code snippet illustrating the setting of text format to a input text field.





Read more...

Pick a Random Number Between 2 numbers

This is one nifty function which is quite useful to get a random number between 2 numbers

it returns an integer number


Read more...

Hello There

Welcome to my blog. I am Aditya,


Here you will find creative solutions I’ve come across to some common development problems, links to really informative resources. You would also find some tutorials and experiments. Hope you find something useful and interesting. \m/. Don’t be a stranger now, kindly do leave a word, it makes my day to know I have been useful to someone or caught their interest.

Why am I doing this?  I have a pretty selfish motive to know the people to whom I have been useful in some way. Having started out my career as a Trainer the desire to share useful information holds special place in my heart. Dare I say? Motivate and mentor, but am much better at that in person.

And now for the real reason. I would like to connect with like minded people and developers to constantly improve myself and in a small way provide useful information to new comers.

Secretly I am an Evil Demon who is trying to Take Over Your Mind through your computer screen Rawrrr !


Read more...

Dear Visitor i'd love to Hear from You

Hi There Visitor,
Welcome to my blog. I have started this blog inspired by Emanuele Feronato. And I aspire to be like him to contribute and share useful information. It gives me happiness to know that the information I’ve shared has been of some use to someone or has at least caught their interest.

I would not know this unless you post a comment stating your views. Don’t hesitate if you aren’t able to find an appropriate place to comment this is the page for you.


 Speak already  ^_~


Read more...

Setup Custom Domain Name Without Credit Card!

The Problem:  I wanted a custom domain name for my blogger blog but   didn’t want to use credit card anywhere. The Steps I followed:


  • I looked at buying a custom domain through Google’s blogger but found out they have a version of PayPal called the Google check out and they needed Credit cards. No way!!
  • I understood I had to use a PayPal account to achieve my goal so I registered for one.
  • While creating the PayPal account the registration info page was hard pressed to extract my credit card info. No chance buddy!
  • And So I created the account linking it to my bank Account (which again cannot be verified as it is not based in US. go figure …)
  • After quite a bit of blogging and reading up on the issue I had come across some conclusions here regarding PayPal and your Credit Card.
  • Google Partners like Go Daddy won’t let you buy a domain through PayPal without the account being verified. I.e. they too want access to your credit card. And know what? Most of the domain name registrars have the auto renewal feature o_o.
  • Hence the solution is to buy the domain through PayPal at name.com it’s cheaper too.
  • Here is a great guide by Aneesh  to set up customain domain on blogger through Name.comhttp://www.bloggerplugins.org/2009/10/blogger-custom-domain-on-namecom.html
  • If You added Google analytics or stat counters like I did you will have to  refresh them  as your domain name changed and the code will still process hits to the old one ONLY.
  • Google analytics. Delete the old profile and set up new one pointing towards the new domain.  A good guide  to set up Analytics by David here  http://www.eblogtemplates.com/how-to-install-google-analytics-on-blogger/
  • In Stat  counter change the link in the control panel settings.  here is a good guide to set up a stat counter on blogger at the stat counter blog http://blog.statcounter.com/2008/09/statcounter-on-bloggerblogspot/



Read more...

PayPal and your Credit Card

Protect your Credit information from PayPal as long as you can if you have limited usage.

  • You cannot fund your PayPal account from your bank. Good because it means if PayPal wants to tap into funds in my bank it cannot. Although I suspect it can do so for US - Verified bank accounts
  • You cannot Purchase Online using PayPal where they ask for a Verified PayPal account.
  • You can Purchase online where they don’t require a verified PayPal accounts. I like these places because they deal with the money in all its forms is good and valued. Irrespective of whether you have access to the source of the money.
  • Verified PayPal accounts just mean you get access to a bigger fund in making transactions. IT also means you gave your credit card info and are potentially at risk.
  • Hence for those of you with Limited Online Purchase and Usage its best not to give any credit card info anywhere.
  • More Info regarding PayPal  registration and comparison of verified and un verified  status here http://www.artdrum.com/FAQ_TIPS_FOR_REGISTERING_WITH_PAYPAL.htm


Read more...

Blog Event 1


2010 the start of the new year I christened my website (blog) www.adityagameprogrammer.com 
This began its journey in an uneventful manner in late 2009.The first major event, hopefully of many in its lifetime.


Read more...

A3 Drop Target Problem

The mysterious drop target problem which plagues many newbie’s to concoct various work a round’s to achieve this functionality. This is usually seen when one is trying to achieve a drag drop type action in a puzzle and determine the object on which the dragged object was dropped. Trying to access its properties like:


trace (event.target.dropTarget);
//or
trace(event.target.dropTarget.name);

You end up with calling sprite instances of the object on the stage.Having faced a similar situation I’ve looked up closely at the class structure of the drop target property. It primarily belonged to the sprite class as is clear from the help. Now the objects that we try to access are movie clips on stage. Again checking up on the movie clip class I’ve found out it inherits the sprite class .So I still didn’t get why it doesn’t work! Hence after ardent scouring on the net I have landed at good explanation and solution here at
Hence the solution is to use .parent property after the dropTarget to get the movieclip on stage.
The trace now would be

trace(event.target.dropTarget.parent);

Now you have access to the dropped movie clip. Go nuts! Here is my version explaining the solution


Read more...

Pixel Perfect Collision System AS3

After days of obsessing to improve upon my first experiment this was a prototype of a perfectly elastic collision system. And few trails later I have finally realized this particular output.

This for the time being best satisfied what I wanted to do.

I have utilized 2 Key Classes here
  • The CDK – the collision detection kit by Corey O’Neil (a very good pixel based CDK) and his rich examples.The CDK

 I know there are Quite a few out there already gskinner ‘s ,troy gilbert ‘s and few others but I found the combination of these 2 quick and simple enough to implement achieving what I had in mind. Of course the CDK does have a return Angle method to detect the collision angel. The likes of which I haven’t really got my head around O_o .


Read more...

Unreal Engine is now Free

Things just keep getting better and better First Unity and now Unreal UNREAL Catch the Story Here Unity 2.6 Now Free These just opens up a world of opportunities for game developers


Read more...

My First Ball-Ball Collision System

my souvenir of sorts


 A Noob collision system  i  concocted while learning actionscript.


Read more...