Select to view content in your preferred language

MapManager.mxml attribute and syntax errors during release build

1952
3
Jump to solution
04-09-2013 11:41 AM
AlisonPage
Regular Contributor
I'm receiving the following errors when I try to build out my project.. v.3.2 Flex Viewer. Please let me know what I'm missing..

See details for more information.   Encountered errors or warnings while building project TOCWidget.mxml.     MapManager.mxml: Syntax error: expecting rightparen before function.     MapManager.mxml: Syntax error: expecting identifier before dot.     MapManager.mxml: Attribute is invalid.     MapManager.mxml: Syntax error: expecting identifier before rightparen.   Encountered errors or warnings while building project WidgetContainer.mxml.     MapManager.mxml: Syntax error: expecting rightparen before function.     MapManager.mxml: Syntax error: expecting identifier before dot.     MapManager.mxml: Attribute is invalid.     MapManager.mxml: Syntax error: expecting identifier before rightparen.   Encountered errors or warnings while building project index.mxml.     MapManager.mxml: Syntax error: expecting rightparen before function.     MapManager.mxml: Syntax error: expecting identifier before dot.     MapManager.mxml: Attribute is invalid.     MapManager.mxml: Syntax error: expecting identifier before rightparen.   Encountered errors or warnings while building project LayerListWidget.mxml.     MapManager.mxml: Syntax error: expecting rightparen before function.     MapManager.mxml: Syntax error: expecting identifier before dot.     MapManager.mxml: Attribute is invalid.     MapManager.mxml: Syntax error: expecting identifier before rightparen.   Encountered errors or warnings while building project exportMap.mxml.     MapManager.mxml: Syntax error: expecting rightparen before function.     MapManager.mxml: Syntax error: expecting identifier before dot.     MapManager.mxml: Attribute is invalid.     MapManager.mxml: Syntax error: expecting identifier before rightparen.   Encountered errors or warnings while building project MapSwitcherWidget.mxml.     MapManager.mxml: Syntax error: expecting rightparen before function.     MapManager.mxml: Syntax error: expecting identifier before dot.     MapManager.mxml: Attribute is invalid.     MapManager.mxml: Syntax error: expecting identifier before rightparen.   Encountered errors or warnings while building project WidgetContainerWidget.mxml.     MapManager.mxml: Syntax error: expecting rightparen before function.     MapManager.mxml: Syntax error: expecting identifier before dot.     MapManager.mxml: Attribute is invalid.     MapManager.mxml: Syntax error: expecting identifier before rightparen.   Encountered errors or warnings while building project HeaderControllerWidget.mxml.     MapManager.mxml: Syntax error: expecting rightparen before function.     MapManager.mxml: Syntax error: expecting identifier before dot.     MapManager.mxml: Attribute is invalid.     MapManager.mxml: Syntax error: expecting identifier before rightparen.


Thank you,
Alison
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
AlisonPage
Regular Contributor
Now that I'm using FlashBuilder 4.7 all is happy.

Thanks again,
Alison

View solution in original post

0 Kudos
3 Replies
BjornSvensson
Esri Regular Contributor
Does it work fine if you just compile the Esri-provided source code?  Without any custom widgets or other changes you have made.
0 Kudos
AlisonPage
Regular Contributor
I get the following error when I try to build from "out of the box":

See details for more information.
  Encountered errors or warnings while building project PrintWidget.mxml.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
  Encountered errors or warnings while building project MapSwitcherWidget.mxml.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
  Encountered errors or warnings while building project QueryWidget.mxml.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
  Encountered errors or warnings while building project HeaderControllerWidget.mxml.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
  Encountered errors or warnings while building project LegendWidget.mxml.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
  Encountered errors or warnings while building project InfoColumnChartWidget.mxml.
    IInfowindowTemplate.as: Definition com.esri.ags:Map could not be found.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
  Encountered errors or warnings while building project AttributeTableWidget.mxml.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
  Encountered errors or warnings while building project StaticImageWidget.mxml.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
  Encountered errors or warnings while building project LayerListWidget.mxml.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
  Encountered errors or warnings while building project SearchWidget.mxml.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
  Encountered errors or warnings while building project SplashWidget.mxml.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
  Encountered errors or warnings while building project GeoprocessingWidget.mxml.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
  Encountered errors or warnings while building project BookmarkWidget.mxml.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
  Encountered errors or warnings while building project HelloWorldWidget.mxml.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
  Encountered errors or warnings while building project CoordinateWidget.mxml.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
  Encountered errors or warnings while building project DirectionsWidget.mxml.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
  Encountered errors or warnings while building project DrawWidget.mxml.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
  Encountered errors or warnings while building project LocateWidget.mxml.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
  Encountered errors or warnings while building project ChartWidget.mxml.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
  Encountered errors or warnings while building project index.mxml.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
    IInfowindowTemplate.as: Definition com.esri.ags:Map could not be found.
    ForcedImports.as: Definition com.esri.ags.tasks:PrintTask could not be found.
    ForcedImports.as: Access of undefined property PrintTask.
    LayerObjectUtil.as: Type was not found or was not a compile-time constant: Layer.
    ClustererParser.as: Type was not found or was not a compile-time constant: ESRIClusterer.
    ClustererParser.as: Type was not found or was not a compile-time constant: Symbol.
    ClustererParser.as: Type was not found or was not a compile-time constant: Symbol.
    ClustererParser.as: Type was not found or was not a compile-time constant: Symbol.
    RendererParser.as: Type was not found or was not a compile-time constant: IRenderer.
    RendererParser.as: Type was not found or was not a compile-time constant: IRenderer.
    RendererParser.as: Type was not found or was not a compile-time constant: IRenderer.
    SymbolParser.as: Type was not found or was not a compile-time constant: Symbol.
    SymbolParser.as: Type was not found or was not a compile-time constant: SimpleMarkerSymbol.
    SymbolParser.as: Type was not found or was not a compile-time constant: SimpleMarkerSymbol.
    SymbolParser.as: Type was not found or was not a compile-time constant: SimpleMarkerSymbol.
    SymbolParser.as: Type was not found or was not a compile-time constant: SimpleMarkerSymbol.
    SymbolParser.as: Type was not found or was not a compile-time constant: SimpleLineSymbol.
    SymbolParser.as: Type was not found or was not a compile-time constant: SimpleLineSymbol.
    SymbolParser.as: Type was not found or was not a compile-time constant: SimpleLineSymbol.
    SymbolParser.as: Type was not found or was not a compile-time constant: PictureMarkerSymbol.
    SymbolParser.as: Type was not found or was not a compile-time constant: SimpleLineSymbol.
    SymbolParser.as: Type was not found or was not a compile-time constant: SimpleLineSymbol.
    SymbolParser.as: Type was not found or was not a compile-time constant: SimpleLineSymbol.
    SymbolParser.as: Type was not found or was not a compile-time constant: SimpleLineSymbol.
    SymbolParser.as: Type was not found or was not a compile-time constant: SimpleFillSymbol.
    SymbolParser.as: Type was not found or was not a compile-time constant: SimpleFillSymbol.
    SymbolParser.as: Type was not found or was not a compile-time constant: SimpleFillSymbol.
    SymbolParser.as: Type was not found or was not a compile-time constant: SimpleFillSymbol.
    InfoPopup.mxml: Type was not found or was not a compile-time constant: Map.
    InfoPopup.mxml: Type was not found or was not a compile-time constant: Map.
  Encountered errors or warnings while building project NavigationWidget.mxml.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
  Encountered errors or warnings while building project EditWidget.mxml.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
  Encountered errors or warnings while building project OverviewMapWidget.mxml.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
  Encountered errors or warnings while building project WidgetContainerWidget.mxml.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
  Encountered errors or warnings while building project ThematicQueryWidget.mxml.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
  Encountered errors or warnings while building project GeoRSSWidget.mxml.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
  Encountered errors or warnings while building project TimeWidget.mxml.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
  Encountered errors or warnings while building project DataExtractWidget.mxml.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.
    IBaseWidget.as: Type was not found or was not a compile-time constant: Map.


I think it might be because I'm using FlashBuilder 4 instead of FlashBuilder 4.6. I'm trying to get licensing for 4.6 right now... do you think that the issue?

Thanks,
Alison
0 Kudos
AlisonPage
Regular Contributor
Now that I'm using FlashBuilder 4.7 all is happy.

Thanks again,
Alison
0 Kudos