Chaz Meyers (cpm) wrote,
Chaz Meyers

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

  • My tweets

    Sun, 11:22: RT @ B20e: I'm an ER Nurse in Seattle. Last night @ SeattlePD officers came to the ER to obtain a statement from an assault…

  • My tweets

    Fri, 01:08: RT @ DrLisaCorrigan: Get in girls. We're going hunting.

  • My tweets

    Sun, 15:31: RT @ dinoman_j: Sun, 15:44: As a Google Fi customer, I'm confused by Google's phone offerings, esp…

  • Post a new comment


    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