Posts filed under 'ActionScript'

ActionScript Search and Replace

Mario Laflamme June 6th, 2006 Add comment

ActionScript doesn’t provide a built in String.replace() function to search and replace text in a string. Then, here is a small function (but very effective) which is a good alternative.

function replace(search, replace, subject) {
    return subject.split(search).join(replace);
}

Schedule

July 2008
M T W T F S S
« May    
 123456
78910111213
14151617181920
21222324252627
28293031