Terry, I am not real sure where you are going wrong then. I have done these steps (even naming my "MyPopupRendererSkin.mxml" just like yours) and I have no problem seeing the changes, to include the rectangle being removed. Here is my whole MyPopUpMediaBrowserSkin.mxml
Terry, Hmm... You can undue that.You are not replacing the actual PopUpMediaBrowser component. You are just updating the skinClass. You can undue that as well as they way the component knows to use your customized skin is through you setting the skinClass attribute.It looks like your issue is actually in this code:<supportClasses:PopUpMediaBrowser id="mediaBrowser" height="270" width="100%" skinClass="com.esri.viewer.skins.supportClasses.MyPopUpMediaBrowser"/>that should be:<supportClasses:PopUpMediaBrowser id="mediaBrowser" height="270" width="100%" skinClass="com.esri.viewer.skins.supportClasses.MyPopUpMediaBrowserSkin"/>
<supportClasses:PopUpMediaBrowser id="mediaBrowser" height="270" width="100%" skinClass="com.esri.viewer.skins.supportClasses.MyPopUpMediaBrowser"/>
<supportClasses:PopUpMediaBrowser id="mediaBrowser" height="270" width="100%" skinClass="com.esri.viewer.skins.supportClasses.MyPopUpMediaBrowserSkin"/>
I also added the import in the fx Script blockimport com.esri.viewer.skins.supporClasses.MyPopUpMediaBrowserSkin;
And in the default.css I enteredesri|PopUpMediaBrowser{ skinClass:ClassReference("com.esri.viewer.skins.supportClasses.MyPopUpMediaBrowser");}
Terry, What is your PopUpMediaBrowserSkin.mxml called and where did you place it? Your MyPopUpRenderSkin.mxml needs to point to your PopUpMediaBrowserSkin.mxml using the skinClass attribute.
Terry, For removing the border from the image you need to foloow this thread:http://forums.arcgis.com/threads/38375-Change-media-container-size-in-Pop-Up-Window
Thanks Robert - I do realize the importance of case and will go back through every step and try to identify my mistakes. Thanks for all your assistance in this.
Terry, It is pretty hard for me to know where things have went wrong for you. The only thing I can do is suggest you review each step and see if you missed something. You need to keep in mind that flex is a CaSe sensitive language so if your paths are off even by the case of one letter, that is no good.
Terry, I think that is normal as the Flex API is NOT open source.
Thanks I am feeling so much better about this - you have been so kind to provide me with detailed guidance. In reading the posts again it appears the file I need to make the change to however is the PopUpMediaBrowser. I tried applying the same logic you have guided me through but substituting MyPopUpMediaBrowser in place of the MyPopUpRendererSkin without success.I am having difficulties with locating the Host component.I managed somehow to get a copy of the PopUpMediaBrowserSkin.mxml into my project and so I moved it to the supportClasses folder.I attempted to add it to the defaults.css however that produced a warning the "Cannot resolve namespace qualified type "PopUpMediaBrowser' in CSS selector . . ."I attempted to remove the code I added, resave the file but I'm still getting these warnings even thought the code it is referencing is not in my project?I did a clean on the project and it appears that warning has cleared but I'm back to not having the PopUpMediaBroswer added to the css file. When I enter in the esri| and attempt to browse to the PopUpMediaBrowser it is not an option to select.I'm thinking I need to add a name space but not clear if that is correct or not. Still learning.
Terry, Once you have made the popup changes discussed earlier than you go to the Project menu and choose "Export release build" and that will create bin-release folder with all the compiled code can the contents of that folder is what you copy over to the web server.
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.
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.
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 Project2. Import project as file3. Browsed to the location of the zipped project4. Import method chose - Import new copy of project and extracted it to my local PC5. When I expand the libs folder (step 4) there is only a Link Type:Merged into Code6. 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 window9. Expanded the skins folder and did a right click New ? MXML skin and named it as instructed10. My default package does not have a default.cssCan 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,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=11842. 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.swc6. 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.PopUpRenderer12. Change nothing else, and clcik finish.13. Make your changes to the MyPopupRendererSkin.mxml.14. Expand the (default package) folder and choose defaults.css15. 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.
esri|PopUpRenderer { skinClass:ClassReference('com.esri.viewer.skins.MyPopupRendererSkin'); }
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.
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.