You can get FlashBuilder to "Create as a copy of" by setting the source attachment path on the API swc. Under the "Flex Build Path" expand the API swc and double-click "Source attachment" and then browse to ".../ArcGIS_Flex/skins/src" after unziping the API download.
esri|PopUpRenderer
{
skinClass:ClassReference('com.esri.viewer.skins.MyPopupRendererSkin');
}Terry,
Here is step by step instructions:
1. Download the ArcGIS API for Flex - http://www.esri.com/apps/products/download/index.cfm?fuseaction=download.main&downloadid=1184
2. Unzip this to your local machine.
3. In your ArcGIS Viewer for Flex project. Right clcik the project in the package explorer, and choose properties.
4. Click the Flex Build Path (in the left window), in the Build path libraries (right window) expand the libs folder.
5. Expand the agslib-3.6-2013-12-13.swc
6. Select "Source attachment" and then clcik the edit button.
7. Browse to the location your unzipped the API to and select the src folder (i.e. C:\Flex Stuff\arcgis_api_for_flex_3_6\ArcGIS_Flex\src).
8. Close out the properties window and the project should rebuild.
9. Expand the FlexViewer3.6/src/com/esri/viewer/skins/ folder and right click the skins folder and choose new > MXML Skin.
10. Name it (i.e. MyPopupRendererSkin).
11. Host component = com.esri.ags.portal.PopUpRenderer
12. Change nothing else, and clcik finish.
13. Make your changes to the MyPopupRendererSkin.mxml.
14. Expand the (default package) folder and choose defaults.css
15. Add this:esri|PopUpRenderer { skinClass:ClassReference('com.esri.viewer.skins.MyPopupRendererSkin'); }
15. launch project in run or debug mode and you should now be using your modified popuprendererskin.
First let me say I really appreciate your response. The instructions you provided are excellent in regards to being detail for a beginner - but evidently my problem starts with not having Flash builder setup correctly as your instructions do not correspond to what I see. We are on ArcGIS ver 10.1, Using FB 4.6, Created the base project using the ArcGIS for Flex View App 4.6 - this is residing on our server so I created a zip of this file.
In Flash Builder (FB)
1. File Import Flash builder Project
2. Import project as file
3. Browsed to the location of the zipped project
4. Import method chose - Import new copy of project and extracted it to my local PC
5. When I expand the libs folder (step 4) there is only a Link Type:Merged into Code
6. I did an Add SWC browsed to the location with the swc (your step 5)
7. Did step 6 Browsed to the src folder in the unzipped API (step 7)
8. closed the properties window
9. Expanded the skins folder and did a right click New ? MXML skin and named it as instructed
10. My default package does not have a default.css
Can you set me on the right track here.
Also please note for reasons I haven't figured out yet I am not receiving any notifications when you responded to my post and I wasn't able to locate this using advanced search criteria and my name.
I feel confident you can get me started on the right track and I do so much appreciate it.
Terry,
So it sounds to me like you are starting with a compiled viewer that has just been configured and you are not starting with the viewers source code as your starting point and that is an issue. You can start with a compiled version of the viewer it is just more complicated. So the way to tell if you are beginning with a compiled viewer or not is do you have access to the actual mxml files for your site. If you are only dealing with swfs than your are just using the compiled version and the only thing you have done is configure the viewers XML files to suit your needs. To what you want you have to start with the actual viewer source code downloaded from the Github site. You can then just overwrite all the default XML files (that come with the source code) with your own XML files and then you will be at a good starting point for your manipulation of the popup.
Terry,
Your steps for importing the source code to start fresh sounds good except that you are missing the part of the readme.txt from the down load that states that the viewer source code does not contain the Flex API SWC so you have to manually add it to the libs folder of your new project to get rid of all those errors. XMLs does not mean source code MXMLs and .as mean that you are dealing with the sources code.