I am using action scripts for creating a extension for Illustrator CS5.
What I need is to add a new tool in tools panel.
Can I do so using action scripts or c++ plugin is only way to add the tool?
You need to use a C++ plugin to add tools. There are a couple of examples in the Illustrator SDK, available here: http://www.adobe.com/devnet/illustrator/sdk.html
Retrieving data ...