A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: String.replace()

Hybrid View

  1. #1
    Senior Member
    Join Date
    Nov 2004
    Toronto, Canada


    theres a replace method in the string class, but its not documented in the actionscript 2.0 reference on devnet. The syntax is pretty self explanatory looking at the method in the class in the first run folder:

    function replace( re:String, repl:String ):String; // Central API
    It doesnt seem to work

    var test:String = "testerosa";
    trace(test.replace("test", "tits"));
    outputs undefined in flash 8 using player 8 (the method is in the flash player 7 string class as well)
    Last edited by Ogre11; 03-02-2006 at 11:06 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center