Posted By

heathbo on 01/20/11


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

burnandbass
kure69


Find and Change text in a variable or textfield


 / Published in: ActionScript 3
 

  1. var textToInsert:String = "the brown fox jumped over the fence";
  2.  
  3. textToInsert = textToInsert.split("fence").join("river");
  4.  
  5.  
  6.  
  7.  
  8. the end result is:
  9. the brown fox jumped over the river.

Report this snippet  

You need to login to post a comment.