Search code examples
apache-flexclassactionscriptflexbuilder

Weird error when creating new Action Script class


Good Morning,

I have a very odd error working in adobe flexbuilder 3.

Ever since yesterday when ever I create a new class, Flex builder do not see anything wrong in my class.

how do i create one:

  1. Right click on a folder in the package hierarchy --> new --> action script class

  2. I leave everthing as is but i give it a name obviously

  3. finish

The class is created.

I can now type anything into this class... Even the words "abc" and flex builder do not see that this is wrong.

if i go to an existing class and type "abs" , the moment i hit save it complains about the "abc"

I have tried the following but the problem still persists.

  1. Deleted my workspace and created a new one and re-import.
  2. If i right click on the class in the Flex navigator the "inlcude class in library" is greyed out.

if anyone can give me an idea, even if it is silly, please do. I really need to be able to add new classes.

thanks

The new class that i have created looks like

package za.co.dcs.cib.das.application.vo.authorisation.appDetails.memberDetails
{
    public class MyNewlyTestClass
    {
        public function MyNewlyTestClass()
        {
        }

    }
}

and then i add "ABC" to it... to which it don't complain about. I can add just about anything i want to this class... and nothing is ever an error.

package za.co.dcs.cib.das.application.vo.authorisation.appDetails.memberDetails
{
    public class MyNewlyTestClass
    {
        public function MyNewlyTestClass()
        {
        abc
        }

    }
}

Or if i remove the function

package za.co.dcs.cib.das.application.vo.authorisation.appDetails.memberDetails
{
    public class MyNewlyTestClass
    {
        public MyNewlyTestClass()
        {

        }

    }
}

Solution

  • Don't know if this is default behavior but what i have found is that...

    If I change an existing class the compiler checks the syntax but if I add a random file the compiler will only check the file if that file is used by my application.

    I have tried this and it seems to work. The moment that you call that file from within your application it validates and give me errors where should be.

    Thanks for all your updates