Chaz Meyers (cpm) wrote,
Chaz Meyers
cpm

Highs and Lows.

I got really excited when I saw addListener() and onChanged. So much better than onSetFocus() for my needs.

Then, I got really sad when I realized that there is no RegEx's in the core ActionScript language.

The second one is a bit of a headache for error checking. I suppose I have a few options. I can:
  1. See what I can do with the methods provided by the String object. These methods are less comprehensive than those provided standard for C++. Gah.
  2. I can use a third party RegEx library. This has it's own set of problems. I have no idea how stress tested anything I'll find will be, so I'll have no idea how well it's been QA'ed. Also, after many attempts at reading the Cammel Book's detailed explanation of Perl's regex engine, I gather that something that complex should be very slow if not written in something like C. I haven't benchmarked ActionScript, but I hesitate to give it the benefit of the doubt in this area. :-P


I guess I answered my own dilema. Error checking by using indexOf() and charAt() methods. Gosh. How perfectly retro. Just like using C++. :-P
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 1 comment