A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Configure string

  1. #1
    Senior Member
    Join Date
    Mar 2001
    Posts
    197

    Configure string

    In actionscrip 1, how could I delete all the # symbols out of a string? Been working on this for a while, but with no success.

    I want to turn something like this:
    str = 'this # is my sting #';

    into this:
    str = 'this is my sting';


    thanks in advance..

  2. #2
    ___________________
    Join Date
    May 2004
    Posts
    3,174
    Code:
    var a="this is a #string with### some pou######nd signs ####";
    trace(a);
    trace(a.split("#").join(""));

  3. #3
    Senior Member
    Join Date
    Mar 2001
    Posts
    197
    Worked like a charm...

    Thank you so very much...

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