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

September 2010
M T W T F S S
« Sep    
 12345
6789101112
13141516171819
20212223242526
27282930