I have upgraded a project compiled using SDK 3.3 to 4.6. Everything build fine except I get 7 errors like the one below. I've seen several threads on the topic that just end with no resolution. I found one that said "Sorry to waste everyone's time it was an easy fix" with no explanation of the fix.
Can not resolve a multiname reference unambiguously. _class_embed_css__resources_images_dialog_close_default_png_825052198 _227383202
(from _class_embed_css__resources_images_dialog_close_default_png_825052198 _227383202.as)
and com.marketlinx.cma.ui.dialogs:_class_embed_css__resources_images_dial og_close_default_png_825052198_227383202
(from com\marketlinx\cma\ui\dialogs\_class_embed_css__resources_images_dial og_close_default_png_825052198_227383202.as)
are available. PresentationManagerDialog.mxml /CmaWizard/src/com/marketlinx/cma/ui/dialogs Unknown Flex Problem
I searched all of the code and the images are only embedded once in a stylesheet. The file throwing the compile time error has <mx:Style source="resources/styles/presentationManager.css" /> in it. If I remove that it builds and will run but I am missing several images. It would seem the css is necessary. Unfortunately the project is several years old and all of the people who originally did the work are no longer here.
I've tried cleaning and changing incremental build to false. Any ideas on how to resolve this?
It is unusual to have a fie called things like: classembed_css__resources_images_dialog_close_default_png_825052198_2273832 02.as
Those file names are usually generated by the compiler and not part of a project’s source files. I would try moving that file outside the source-path and see if everything builds. Any other file that references that file might be better off getting that asset via getStyle instead of a direct embed.
It used to compile fine with 3.3. The output is part of source control and my output folder may have remnants of the old build. Would it help to clear out that entire folder and rebuild?
I tried having it output to a new location but no luck. I realize the name in the error is generated but I cannot figure out where it is coming from. The images causing the problem are only ever embedded once in the css.
I don't know if the source from the page will help with anything but here it is. The images are in presentationManager.css.
<?xml version="1.0" encoding="utf-8"?>
<mx:Style source="resources/styles/presentationManager.css" />
private function creationCompleteHandler():void
dispatchEvent(new CloseEvent(CloseEvent.CLOSE, true));
<pages:PresentationManager id="presentationManager" top="0" bottom="0" left="0" right="0"
Sure, starting from fresh directories might clear this up. Is classembed_css__resources_images_dial og_close_default_png_825052198_227383202.as under source control? It shouldn’t be, like I said I think is generated.
It turned out that multiple CSS files were embedding the same images. I am sure there is a better solution but due to the fact that the images are small I made a copy of each image causing an error and named it differently to reflect the ui it supports. I then changed the CSS and the errors went away.