Jeremy,How are you compiling - using commandline, ant or an IDE?If IDE, which version of Flash Builder (or other IDE) are you using?Which version of the Adobe/Apache Flex SDK are you using?Are you seeing these errors when using Design View only, or when do they happen?
<target name="compileMap"> <!-- We store the root of the flex sdk in an environment variable so that we can easily run the same build both locally and on the server. --> <property name="flexsdk.dir" value="${environment::get-variable('FLEX_SDK_41_HOME')}"/> <exec basedir="${flexsdk.dir}/bin/" program="mxmlc.exe" failonerror="true"> <arg line="-target-player 10.0.0.0"/> <arg line="-library-path "${flexsdk.dir}/frameworks/libs""/> <arg line="-library-path "${flexsdk.dir}/frameworks/libs/player/10.1""/> <arg line="-library-path "${flexsdk.dir}/frameworks/locale/en_US""/> <arg line="-library-path ./myproject/libs/"/> <arg line="-source-path ./myproject/locale/{locale}"/> <arg line="-output ${map.compilerOutputDir}/bin/index.swf"/> <arg line="./myproject/src/index.mxml"/> </exec> </target>
hudson-build: [echo] [exec] Loading configuration file C:\Program Files (x86)\flex_sdk_4\frameworks\flex-config.xml [exec] Error: Unable to resolve resource bundle "ViewerStrings" for locale "en_US". [exec]
[exec] [exec] C:\Users\Administrator\.hudson\jobs\fv2\workspace\src\com\esri\viewer\skins\ScrollBarLeftButtonSkin.mxml: Error: unable to resolve 'assets/images/arrow_up.png' for transcoding [exec] [exec] C:\Users\Administrator\.hudson\jobs\fv2\workspace\src\com\esri\viewer\skins\ScrollBarLeftButtonSkin.mxml: Error: Unable to transcode assets/images/arrow_up.png.
Did you use Flash Builder to import the source zip into a new project?Your additional compiler args should be: -locale=en_US -source-path=locale/{locale} -keep-all-type-selectors=true
<compiler additionalCompilerArguments="-locale=en_US -source-path=locale/{locale} -keep-all-type-selectors=true" .....
Just download the viewer 2.1 and start playing with it...change its extend to our area. Then I noticed some errors being reported. See attached for details. I have no idea what's going on there. Thanks for your helping hand. (Sorry it's my bad. I forgot that an addtional arguments has been added to the compiler. Having removed that, it solves the issues.) Please delete this post if you can. It doesn't allow me to do so.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.