A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: chr() and asc()

  1. #1

    chr() and asc()

    chr() and asc() are no longer built in, so I made these replacements. They worked before, but aren't now. How should I do these in 4.9.8.7?


    global function asc ( String Char ):int
    {
    return (Char.charCodeAt(0));
    }

    global function chr (int AsciiNum ):String
    {
    return String.fromCharCode (AsciiNum);
    }

  2. #2
    Senior Member kusco's Avatar
    Join Date
    Nov 2001
    Posts
    681
    These functions work for me
    Cheers,
    kusco
    (3DFA Support Team)

  3. #3
    A Senior Newbie - How Odd ForumNewbie's Avatar
    Join Date
    Mar 2003
    Posts
    590
    Thanks for these functions

    I was getting really fed up of trying to work out how to replace chr()

    Cheers,

    Morgan.
    Please note that my domain has changed to http://www.morganmultinational.com

  4. #4
    Senior Member Zoranan's Avatar
    Join Date
    May 2008
    Posts
    126
    Don't even know what those did in the first place...

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