Results 1 to 2 of 2

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

  1. #1
    Join Date
    Dec 2009
    Posts
    13

    Default 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. #2
    Join Date
    Dec 2009
    Posts
    13

    Default 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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •