Syntax checking does not?

Hi, I am getting a weird behavior in Flex Builder and don't know what the cause is... initially I got this as a class AS:
package AS.common.controls {}
Import mx.controls.DateField;
Import mx.formatters.DateFormatter;
SerializableAttribute public class StrictDateInput extends DateField {}
..
}
private class StrictDateFormatter extends DateFormatter {}
..
}
}

and there is no error... now, I made some changes to the code (in fact I just tried to put the class in a .mxml file... I has not yet changed the original code) and I get an error for the private class definition. If I change inside the error disappears. It's maybe just that I don't understand the difference between private and internal classes, but here's where I'm frustrated:
There are no errors displayed in Flex builder, but when I launch an application that has the class StrictDateInput, the pop-up appears in Flex Builder that I have an error in my project I want to run?

The only way I can get the thing to run is to comment on the definition of the internal class, THEN expand mx.controls.DateField (even if I imported it in the definition of the package).

Any ideas what's happening here? The code is bad? Flex Builder gives bad messages? Or Flex Builder checks the syntax correctly?

jpwrunyan wrote:
> Hi, I am getting a weird behavior in Flex Builder and not sure what the
> cause... originally, I had this as a class AS:
> package {AS.common.controls}
> import mx.controls.DateField;
> import mx.formatters.DateFormatter;
> / public class StrictDateInput extends DateField {}
> ..
> }
> private class StrictDateFormatter extends DateFormatter {}
> ..
> }
> }
>
> and there is no error... now, I made some changes to the code (in fact
> I just tried to put the class in a .mxml file... I did not even change the
(> original code) and I get an error for the private class definition. If I have
> Change it to internal error disappears. Maybe it's just that I don't have
> understand the difference between private and internal classes, but here is
> where I'm frustrated:

The class private inside the package declaration is not legal. He has been
legal in some versions beta, although only.

As you discovered, you need make the class "internal". Moreover,.
You can set the class outside of the package. For example,.

package AS.common.controls {}
Import mx.controls.DateField;
SerializableAttribute public class StrictDateInput extends DateField {}
..
}
}

Import mx.formatters.DateFormatter;
class StrictDateFormatter extends DateFormatter {}
..
}

Note that the import in the package instructions do not apply to the
class defined outside the package. You may need to repeat the same
import the accounts.

Definition of the class outside of the package, it is really "private".
Declared as "internal" classes are visible to other classes in the same
package.

-Greg Dow
-Adobe Flex Builder Team

Tags: Flex

Similar Questions

Maybe you are looking for

  • What happens if I lose my Apple Watch?

    It works like find my iPhone? is it possible to find a lost watch?

  • How to make my macbook apps on look like on my iPad?

    Hello My friend can make his macbook look like iPad when you put your password and applications are on it and you can drag the screen to change pages, I want to do on my mac but how? She can get on the screen as my iPad?

  • 7210 problem offline

    I have an officejet 7210. It announced today a carriage jam, I've finally managed to clear. The transport could not completely to the right mechanisms because he had come forward and is stuck. There was a piece of paper he of a paper jam, so I delete

  • Qosmio G30: blue vertical lines and crash dump blue screen

    I have a Qosmio G30, model No. PQG32C-AV605E with BIOS Version 3.40.I want to update 3.90, but I can't get into Windows. How update the BIOS without windows available?Y at - it a utility BACK? If so, please send and I will download it or send me an e

  • How do we know which email address I used to create my Skype account.

    Hello I have a Skype account, but do not remember the email address I used for this account. I know that I used it in the past for Skype credit and most of my friends and my family have me in their list of contacts under this name. I created a new ac