I have as suggested recently on this site been "playing" with arcgis server. For reasons perhaps not obvious to "real" programmers I have built a fairly extensive series of web mapping applications (not real applications) based on flex sample viewer.

It has been very difficult for me to understand the ins and outs of flex but am beginning to get a grip on it.

I stated these are not real applications meaning - when I get an "application working with all the widgets and layers, etc working.

I simply copy that folder structure and rename it to a new application name.
I then edit config.xml (notepad) and default.htm to reflect the new application name.

I don't own any programming software i.e. msvs, flashbuilder, etc.

Because of the power and marketing of apple, I am now in the dilemma of whether to find an x-code programmer to help with the esri IOS application, or switch to Java for all applications, and websites.

One problem I have is even understanding the java terminology. Java, javascript, etc.

Is there an easy to understand resource for Java?

I'm certain there is nothing to convert my flex applications to java.

Has any had experience with what I am going through?

closed as too broad by PolyGeo Aug 7 '17 at 5:58

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    There's a flag to have this question deleted, which would mean deletion of the answers, and loss of rep for those two users. Is there any chance that you might be able to edit your question in a way that basically says "I originally asked ...., but nowadays I think this question is obsolete and that the path I was on is one that no one should follow"? – PolyGeo Aug 8 '17 at 23:22

Here's the short answer to some of your questions:

Java is a programming language similar to C# in both syntax and execution. It compiles to something called bytecode which can then be run on multiple platforms (Unix, Windows, etc.) via a "virtual machine."

Javascript is not at all related to Java. There is no bytecode run on a "virtual machine"; the code is interpreted line by line.

So, what I am assuming you want to do is take the applications you currently have running under Flex and convert them to Javascript so that they can be run in a browser on multiple platforms, i.e. iOS, Android, Windows, OS X, etc.

If that's the case, you'll most likely need to rewrite the applications in Javascript using ESRI's Javascript API. There's no automatic conversion from Flex to Javascript that I'm aware of, so you'd have to start from the beginning when creating the first application. If written correctly, that first application can be used as a template to rewrite the rest of the applications (similar to the way you did with the Flex applications).

Comment if I missed something or if you need a deeper explanation.

  • Adding: the flex is all about the view, java is mostly all about the business/application logic and most;y on the back end, in the context you are using. As Michael says, you need to get this ported over to Javascript. Windows Mobile is dropping support for flash, so it's a good idea anyway, to be honest, and would open up any applications you build. – Hairy Jan 20 '12 at 17:10

Some tips to get you started:

I would first read some tutorials on JavaScript just so you know the basics. If you want some in depth knowledge of JavaScript I'd suggest you to pick up a copy of JavaScript : The Definitive Guide or JavaScript The Good Parts. Although that second book is more for programmers making the move to JavaScript. Then I would take a look at the Basic Viewer template that ESRI published on ArcGIS.com http://blogs.esri.com/Dev/blogs/arcgisserver/archive/2011/10/11/ArcGIS-API-for-JavaScript-2D00-Basic-Viewer-template-now-available.aspx. The code of the template can be found here: http://www.arcgis.com/home/item.html?id=89db99ee00834c85b3f9284d9e81c964. The javascript api docs also have a lot of samples. Note that if you want your site to look good on mobile devices you'll have to ensure that your design is usable on small screen sizes

Not the answer you're looking for? Browse other questions tagged or ask your own question.