Browse posteets
About
Contact us
Log In
Register
View: ActionScript replace function
ActionScript replace function
10 months ago
by
spirit
function
replace
(
str:
String
,find:
String
,replace:
String
)
:
String
{
var
index
:
Number
;
while
(
str.
indexOf
(
find
)
!=
-1
)
{
index
= str.
indexOf
(
find
)
;
str = str.
substr
(
0
,
index
)
+ replace + str.
substr
(
index
+ find.
length
)
;
}
return
str;
}
actionscript
flash
replace
string
View source
0 comment
about "ActionScript replace function"
Tags
actionscript
flash
replace
string
0 comment about "ActionScript replace function"