Flash Addiction Game – Paper Pilot

One of best reality games built on flash, This has been a game you would have probably played in your classrooms, playground or at your sweet home.

  1. Amazing physics and wonderful reality. (few things are still missing like wind direction etc but that is ok)
  2. May be you could teach you kid on how to fly paper planes?
  3. What would be the best angle for the paper plane to reach longer distance.
  4. best part is you could compete with your friends, send them mail invite and the scores should reflect.

Here is the link to the site

Any idea
folks about the degree at which a paper plane should cover long distance (still wondering what I learnt from school holds good)
Result is down below

Result:45 degrees
If you think, I am wrong do comment.

Technorati Tags: , , , , , , , ,

N Game -Flash game, beware total addiction

N Game

  1. Beware: This game is total addiction.
  2. The file size so small (371 KB). You could download it to your computer and play it while you are disconnected from the Internet.
  3. Physics is awesome.
  4. Minute details are great, when the guys skids,  or when the rocket hit the guy.
  5. Game play – 5 Star.

If you are bored this is the right game for you. All you need is a browser and flash player installed. Check it out for yourself, Here is the link

Technorati Tags: , , , , ,

ESC key capture failed IE6 & flash player 8

Currently been working on a flash project where the ESC sequence was of much use. The ESC key got captured perfectly in FireFox 2.0, IE 7 but failed in IE6.

Here are the screenshots of IE6 version on which I have tested


Here is the flashplayer version checked on Adobe


Here is the Flash Actionscript code:
   1:  this.createTextField("mytext_txt", this.getNextHighestDepth(), 0, 0, 100, 20);
   2:  var keyListener:Object = new Object();
   3:  keyListener.onKeyDown = function() {
   4:       if (Key.isDown(Key.ESCAPE) ) {
   5:           trace("ESC key pressed");
   6:           mytext_txt.text ="ESC key pressed";
   7:       }
   8:  }
   9:  Key.addListener(keyListener);   
  10:  // be sure to disable key shortcuts in flash IDE during testing

Can any one tell me where I have gone wrong. Is it something to do with IE6 or any hack, needs to be done on the Actionscript. AS Guru’s looking for your help.

Technorati Tags: , , , , , , , , , , , , ,

Array() VS Array()

What is the fundamental difference between the two arrays when dealt with the functions pointer2array() and duplicateArray()


   1:  var original_arr:Array = new Array()
   2:  var some_arr:Array = new Array("one","two","three")
   4:  function pointer2array(){
   5:      original_arr = some_arr
   6:  }
   7:  function duplicateArray(){
   8:     for(var k:Number=0;k
   9:        original_arr.push(some_arr[k]);
  10:    }
  11:  }
first using the duplicateArray()

   1:  trace(original_arr.toString() + newline);
   2:  duplicateArray();
   3:  some_arr.push("four")
   4:  trace("some_arr="+ some_arr.toString() + newline)
   5:  trace("original_arr="+original_arr.toString() + newline)

Now Publish the flash swf to have the below result





Now try using the pointer2array()

      1: trace(original_arr.toString() + newline);

   2:  pointer2array();
   3:  some_arr.push("four")
   4:  trace("some_arr="+ some_arr.toString() + newline)
   5:  trace("original_arr="+original_arr.toString() + newline)
After you publish the flash swf you will be shocked to see the result




The difference is that original_arr is a reference to some_arr, so be careful.

Well I am not a hard core programmer, I have been programming for days and some times you tend to forget the concepts. Just a reminder

The above code holds good for JavaScript too.


Flash 8 Context Menu Bug – no work around

Flash 8 has an excellent example of creating a context Menu, but the issue I faced was when I used actionscript to dynamically attached clips on stage and on right click I want to activate the Context Menu.

It seems like there is Bug with context menu in flash 8 player, one example from a user I found on Kaourantin page which would actually crash the browser, player or even flash 8 IDE, so I turned around to check for any work around’s, found one on Abdul Quabiz site (link to the context menu workaround page), well, his workaround also was not of big help to me.

No one from the flash team seems to say when the bug will be fixed or will there be any issue tracking page for the flash users to check whether the same has been fixed so that we could update our software. BTW I had updated my flash 8, still I am unable to make this functionality working on my product.

hope some day there will fix to this Context Menu.

Kindly Note: I am unable to attach my flash source file as I don’t have public domain where I can upload files for all you to download and test the files. If any one has a workaround please let me know.

Easy way to pop() your Array List

I have been working on Arrays in Flash and had to repopulate the array with the new set of values. I have been using array.pop() method to empty the list with a for loop, currently I found an easier way


   1:  var a_arr:Array = new Array("one","two","three");
   2:  var b_arr:Array = new Array("one","two","three");
   4:  function clearArray(arr:Array):Void
   5:  {
   6:      arr.splice(0,arr.length);
// splice removes elements from index,count
   7:  }
   8:  function oldarraypopmethod(arr:Array):Void
   9:  {
  10:     for(var i:Number=0;i
  11:     arr.pop();
  12:  }
  13:  // new method 
  14:  trace("before a_arr"+ a_arr.toString());
  15:  clearArray(a_arr);
  16:  trace("after a_arr"+ a_arr.toString());
  17:  trace("before b_arr"+ b_arr.toString());
  18:  oldarraypopmethod(b_arr);
  19:  trace("after b_arr"+ b_arr.toString());
I find the new Method doesn't take too much line. 
The above line of code can be applied to JavaScript too.

Programmer meet Designer

I remember my X  Boss would ask me whether he could get reliable freelancers for short term project and we would be calling up friends to check on the designers or developers.

Seems like the end of nagging your pals and a start of a new search on the web

Now you could partner with a new friend and even start a new company

Concept is excellent – Site is with good functionality, well if you are designer of developer and would like to work as freelancer, this is one site which could help you to make some money

Technorati Tags: , , , , ,

Adobe releases Flash player 9

flash 9
Adobe Flash Player Download Center

File size: 1,324 K
Download Time Estimate: 2 minutes @ 56K modem
Version: 9,0,16,0
Browser: Firefox, Mozilla, Netscape, Opera, and CompuServe
Date Posted: 6/27/2006
Language: English

Did you find some thing missing on the browser listing- Internet Explorer -(IE)

Not sure whether it intentional

Technorati Tags: , , , ,

Confusions of a developer – Choice of Ajax Framework

Top 10 Web Developer Libraries – Cameron Olthuis

Top 10 Web Developer Libraries June 16th, 2006 39 Comments I decided to make a list of the top libraries that I have come across or that I personally use. Libraries can be a web developers best friend. They are great resources to learn from and can save hours and hours of time. These libraries include JavaScript, Ajax, Colors, PHP, and CSS. These should be in any web developers bookmarks, so go ahead and look through these libraries and bookmark your favorite ones. The list is in no particular order.
1) Moo.fx – A superlightweight, ultratiny, megasmall javascript effects library, written with prototype.js. It’s easy to use, fast, cross-browser, standards compliant, provides controls to modify Height, Width, and Opacity with builtin checks that won’t let a user break the effect with multiple crazy clicks. It’s also optimized to make you write the lesser code possible.
2) Rico – An open source JavaScript library for creating rich internet applications. Provides full Ajax support, drag and drop management, and a cinematic effects library.
3) Swat – Developed by silverorange, Swat is an open source web application toolkit built with PHP.
4) ColorCombos – Who would’ve thought a color library would end up mixed in with a bunch of JavaScript and PHP libraries? Well they do have a pretty sweet little color library for finding color combinations, all you do is select the color and they show you some nice combos that work with that color.
5) script.aculo.us – Provides you with easy-to-use, compatible and, ultimately, totally cool JavaScript libraries to make your web sites and web applications fly, Web 2.0 style. I’m sure I’m not alone when I say this library is my favorite.
6) Mochikit – A kick-ass lightweight JavaScript library that will help you get shit done fast.
7) Dynamic Drive CSS Library – Here you’ll find original, practical CSS codes and examples such as CSS menus to give your site a visual boast.
8) PEAR – A framework and distribution system for reusable PHP components. PEAR provides the above mentioned PHP components in the form of so called “Packages”.
9) DHTML Goodies – A good sized library of DHTML and AJAX scripts.
10) dojo – Open source JavaScript toolkit that makes professional web development better, easier, and faster. Honorable Mentions
11) Cross Browser | Toys – Huge JavaScript library.
12) Yahoo UI Library – The Yahoo! User Interface (YUI) Library is a set of utilities and controls, written in JavaScript, for building richly interactive web applications using techniques such as DOM scripting, DHTML and AJAX. The YUI Library also includes several core CSS resources.

I should thank Cameron Olthuis for the above post
well few more frame  works are missing on the above list, I would like to add few more Dojo Toolkit, Adobe Ajax toolkit, Google Toolkit
The only problem I face as a developer, Which one is the right framework for me or my project.
options are too good, Imagine a situation where

  1. developer will love one framework for his ease
  2. Designer likes the other for the effects
  3. and my Team Manager Loves it for functionality
  4. Oops, do I have my choice

Absolutely no way

You can even say depending on my size and complexity of the project and the choice of platform ( the programming language ) I could make my choice, Absolutely true.
Most of time, when you combine frameworks you land on a mess with incompatability or memory leaks or awful effects because of the content heavyness it would slow down the who page look shabby.

Kindly Note: All we need is a better exposure to the frameworks and little more time to excercise and play it with caution. The whole thing is that I could be Wrong because I had lot of options of different frameworks and I couldn’t lay hands on all of them. I can’t be JACK of all trades. May be I should like the statement

I take my life head on

Technorati Tags: , , , , , , , , , ,