Announcement Announcement Module
Collapse
No announcement yet.
Getting error "[EventHandler]/[RouteEvents] cannot be declared on public elements." Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Getting error "[EventHandler]/[RouteEvents] cannot be declared on public elements."

    Hi, all.

    I'm using SpringAS 1.0RC1 and recently switched from Flex SDK 4.0 to 4.1.
    Curious to know if anyone else is getting compiler errors in FlashBuilder 4.0.1.
    It seems I can no longer add [RouteEvents] or [EventHandler] tags to mxml without getting the following error:

    [EventHandler] cannot be declared on public elements.

    Or

    [RouteEvents] cannot be declared on public elements.

    Thanks.
    J.

  • #2
    Resolved

    The issue had to do with the way I was using the Sourcemate plugin. I think it occurs when a project has its own Sourcemate configuration (separate from the workspace-wide configuration) and the configuration doesn't contain information about all the metadata used in the project.

    Comment

    Working...
    X