Welcome to my actionscript snippet library!

Actionscript Snips is a small repository of actionscript code that aims to save developers and designers time when developing a website.  

Removes Whitespace From String


var str:String = "action script";

function removeWhiteSpace(str:String):String {
var newstring = str.split(" ").join("");
return newstring;
}

trace(removeWhiteSpace(str)); //Outputs actionscript

0 comments:

Post a Comment