Tuesday, January 17th, 2006

Category: Flash

Codehint breaks for methods beginning with n

When writing functions in Flash MX04/8 the codehint dropdown will not appear when using a name that starts with an “n”.

Here is an example of what I mean:

function n()

Typing the “:” afterwords should bring up the codehint dropdown for the method return type, but it doesn’t.

Also, none of the parameters you specify will get the codehint dropdown either.

The same is also the case for getters and setters:

function get whatever()

Anyone else see this and/or other similar issues?

3 Responses to 'Codehint breaks for methods beginning with n'

Subscribe to comments with RSS or TrackBack to 'Codehint breaks for methods beginning with n'.

  1. André Goliath | Sunday, January 22nd, 2006 | 6:56 pm

    yeah, I did notice that also, but it´s even funnier:

    try

    function nX () {
    }

    with X a single letter except ‘n’ - No Codehint

    BUT

    function nn () {
    }

    will work fine :D

    In fact, it depends on the number of the ‘n’s at the beginning of the name until the next non-n char follows:

    if you´ve got odd n’s it won´t work, an even number of n’s will do the trick,…

    I´ve mailed Adobe Support already about that but didn´t get any response yet…

  2. Derek Vadneau | Sunday, January 22nd, 2006 | 10:08 pm

    I thought I had too much time on my hands! ;)

  3. André Goliath | Monday, January 23rd, 2006 | 7:54 am

    Time come and goes, but knowledge stays ;)

Leave a Reply

If this is your first comment it will need to be approved before it will appear.