Home » Archive

Articles Archive for October 2008

ActionScript 2.0, ActionScript 3.0 »

[16 Oct 2008 | One Comment | ]

Today i came across the jptarry Blog and i found one intersting string replace function.

Split function splits at the given string and join method inserts and concats..
var str:String = strReplace(”this is a test page to replace this from the sentence”,”this”, “THIS”);
trace(str)
function strReplace($str:String, $search:String, $replace:String):String {
return $str.split($search).join($replace);
}
//outputs as “THIS is a test page to replace THIS from the sentence”

AIR »

[14 Oct 2008 | No Comment | ]

Trace command will not work in Flash CS3 + AIR development unless in debug mode..
I find dificult to work without trace command, I found the arthropod while searching for 2 mins in the WEB.
Its an AIR application.
Its simple to import the classes and to trace.
// Air debugger— Arthropod
import com.carlcalderon.arthropod.Debug;
and to trace call
Debug.log(String( event.target ));
here is the link to the website
Link to documentation
How to use
download the AIR App

ActionScript 3.0 »

[14 Oct 2008 | 5 Comments | ]

Google Suggest?
As you type into the search box, Google Suggest guesses what you’re typing and offers suggestions in real time. This is similar to Google’s “Did you mean?” feature that offers alternative spellings for your query after you search, except that it works in real time.
I had seen same feature done using Dot net, Ajax, and PHP etc.
You can also see the feature live here ObjectGraph Dictionary thats suggests us as we type.
I utilized the event driven nature of Action Script 3.0 and I came with this SearchManager class or …