Hi,I'm experiencing some strange behavior with the FlexViewer when the ViewerContainer is not directly instantiated at run-time : randomly, the initial extent specified in the main configuration file is not taken into account resulting in a wrong localization.Steps to reproduce :- In the "index.mxml" file, add the following lines :
<s:states>
<s:State name="button" />
<s:State name="map" />
</s:states>
<s:Button includeIn="button" click="{currentState = 'map';}" />
- In the "index.mxml" file, add the following parameter to the ViewerContainer :
includeIn="map"
- Compile and run the application : The previous modification modify the application so that when it's run, first, a white page with a button will appear; a click on the button will enable the viewer container.- Run several times the application to notice that sometimes, the initial extent is correct and sometimes not.Is there a solution or a workaround ti this issue?For more information, I'm using :- Flex viewer 2.4 with agslib 2.4,- Adobe Flex SDK 4.5.1.I've also run my tests with SDK 4.1.Sincerely yours,Yann