Replacing characters

hi. got this lil problem which i hope some had bumped into this. i just want to change characters like, \ to // in actionsripting. like this for example:

destination = “C:\Macromedia\Flash”;

to

destination = “C://Macromedia//Flash”;

hope it wud be as easy as this:

while("" is still there){
replaceItWith("//");
}

Funny huh?