To anybody who's interested, the problem was an if statement without curly
braces, where the conditional line of code was split over multiple lines of
source. IE, this causes the auto-complete to die:

            if(event.token.hasOwnProperty("daoToken"))
                (event.token.daoToken as Token).dispatchEvent(new
FaultEvent(event.type,
                    event.bubbles,
                    event.cancelable,
                    event.fault,
                    event.token,
                    event.message));

But this works fine:

            if(event.token.hasOwnProperty("daoToken")) {
                (event.token.daoToken as Token).dispatchEvent(new
FaultEvent(event.type,
                    event.bubbles,
                    event.cancelable,
                    event.fault,
                    event.token,
                    event.message));
            }

Both forms are valid ECMAScript I believe, and both compile. So either the
compiler is too lenient, or the Flex builder discovery code has a bug (more
likely I believe).

I've filed a bug report:

http://bugs.adobe.com/jira/browse/FB-12032

Cheers,
-Josh

On Feb 11, 2008 10:02 AM, Josh McDonald <[EMAIL PROTECTED]> wrote:

> Hmmm. I guess I'll go back and go over the class again with a fine-tooth
> comb =)
>
> -J
>
>
> On Feb 8, 2008 5:57 PM, Rob Rusher <[EMAIL PROTECTED]> wrote:
>
> >   Quirky sometimes.
> >
> > Other than the obvious matching case, etc...
> > Make sure each line of ActionScript is ended properly. I've seen where
> > not putting the ";" after property declarations caused problems.
> >
> > Often just choosing a better coding font will help you spot these little
> > things more easily.
> > My font is: Bitstream Vera Sans 
> > Mono<http://ftp.gnome.org/pub/GNOME/sources/ttf-bitstream-vera/1.10/>
> >
> > I once helped a guy find out that he mixed VO (vee-oh) and V0 (vee-zero)
> > together. Which with the right font, looks exactly the same.
> >
> > Regards,
> > Rob
> >
> >
> > On Feb 7, 2008 9:43 PM, Josh McDonald <[EMAIL PROTECTED]> wrote:
> >
> > >   Hi guys, maybe you can help me...
> > >
> > > I have one class that is auto-complete-proof. I can't find it with
> > > auto-complete from other classes, nor can I auto-complete when I'm editing
> > > it. Everything is compiling and running just fine, and the same class 
> > > seems
> > > to work fine in another project. I've seen similar problems when there's a
> > > curly brace missing or the package name is wrong, but then it won't 
> > > compile
> > > or run, either. It's obviously not end-of-the world, but it's kinda 
> > > annoying
> > > :)
> > >
> > > BTW I've tried in beta 2 and beta 3, with the same result.
> > >
> > > -Josh
> > >
> > > --
> > > "Good people will do good things, and bad people will do bad things.
> > > But for good people to do bad things—that takes religion."
> > >
> > > :: Josh 'G-Funk' McDonald
> > > :: 0437 221 380 :: [EMAIL PROTECTED]
> > >
> >
> >
> >
> > --
> > --
> > Regards,
> > Rob Rusher
> >
> > Adobe Certified AIR, Connect, ColdFusion MX and Flex Instructor
> > m: 303-885-7044
> > im: robrusher
> > 
> >
>
>
>
> --
> "Good people will do good things, and bad people will do bad things. But
> for good people to do bad things—that takes religion."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>



-- 
"Good people will do good things, and bad people will do bad things. But for
good people to do bad things—that takes religion."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]

Reply via email to