Hi i've got two questions about Viewer for Flex source code. Im completely new to AS3 and MXML so it's a bit hard for me to navigate through the entire code.
1. Let's say i've copied all that i needed for the "Mapswitcher" widget to my new flex project(a lot of files are needed to be honest, I thought that only few classes and mxml files will be required...). Now im digging in these files to get knowledge about how is this widget working and where i can modify this code to for e.g provide my own services to populate the basemap button(?) - so here is my first question - can someone point in which file i should look for it. I did find a "PortalBasemapAppender.as" - in this class file i've found a function named "portal_queryItemResultHandler" and i think im a bit closer but still the "portalURL" variable is only declared in that file(as a String). While debugging i've found that basemaps URLs are taken from one of the esri sites. And that they are a written as a JSONs(i'm not sure if this is correct formulation). What i would like to do is: get URL list from my own created file(is XML appropriate?) but i dont want to change the whole logic for the basemapappender so i need to do it with JSON notation - so the getJSONData function will work. I hope you do understand my problem, i've tried to make it understandable.
2. Can someone give me some tips how to navigate in the viewer source code? I know that this require a few weeks maybe(as i mentioned i'm completely new to Flex, i have some experience with c# but it's surely not the same - working with MXML and AS3 is a bit hard for me for now) to get a grip on this source code and use it efficiently in my application.
Thanks in advance!