This content has been marked as final. Show 4 replies
"blake_" <firstname.lastname@example.org> wrote in message
> I've been having a problem with not just my own code, but
> from various tutorials in books and around the 'net, and it's obviously
> something stupid but I can't seem to puzzle it out. But in boiling the
> down to explain it, I think I have a clue.
> The problem is that my external action script classes are not being
> interpreted by Flex Builder. FB doesn't put in the import statements
> automatically, doesn't do code completion right, and complains that the
> properties may not exist when I try to use them.
> I've created two classes that are identical, except one I created fresh,
> it works, where the other is an old version stripped down. I've attached
> code, but I don't think it's relevant.
> What I've noticed, now that I boil it down, is that the one that's not
> has a blue icon while the working ones have black icons. I
> seem to find a legend anywhere, and from their properties, the files look
> http://tinypic.com/view.php?pic=edml5&s=5. The AClass and Another classes
> fine, but Winc does not.
> Does anyone have any idea? This has been tormenting me for a while.
> package junk.temp.discard
> public class Another
> public function Another()
> public function aProperty(): uint
> return 10;
All my as files have red icons, so I'm not sure what colors you get when you
don't have Flash installed. Why don't you post the _contents_ of your
>All my as files have red icons, so I'm not sure what colors you get when
> you don't have Flash installed. Why don't you post the _contents_ of your
That IS the content of my classes.
I have one called Winc and one called AClass and one called Another. They each have one public function called aProperty that returns the integer value 10. They're all in the same package, junk.temp.discard.
FB let's me use aProperty of AClass and aProperty of Another, but not aProperty of Winc!
OK, now I've "fixed" it by renaming the class. Maybe the problem is old versions of files being used over newer ones? Could it be an outdated .actionScriptProperties file or some conflict in all the Eclipse meta-data?
It's now at least objecting to the fact that I have a Winc.MXML and a Winc.as. I can understand that being an issue.
in my case blue icon next to .as files means that file is Module, or Main application,and always if file has blue icon that file is present somewhere in .actionScriptProperties file.
I would completely delete and recreate the project and that should solve all issues,
I think you're right, levancho, thanks.