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

March 2010
M T W T F S S
« Sep    
1234567
891011121314
15161718192021
22232425262728
293031