Repository: flex-asjs
Updated Branches:
  refs/heads/develop c9f9db9c2 -> 5c12cc72d


Added a README to the DesktopMap example.


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/5c12cc72
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/5c12cc72
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/5c12cc72

Branch: refs/heads/develop
Commit: 5c12cc72d469aedac6c95491303aaffb4aa8f8f1
Parents: c9f9db9
Author: Peter Ent <[email protected]>
Authored: Tue May 13 13:36:49 2014 -0400
Committer: Peter Ent <[email protected]>
Committed: Tue May 13 13:36:49 2014 -0400

----------------------------------------------------------------------
 examples/DesktopMap/README.txt | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c12cc72/examples/DesktopMap/README.txt
----------------------------------------------------------------------
diff --git a/examples/DesktopMap/README.txt b/examples/DesktopMap/README.txt
new file mode 100644
index 0000000..bb145ec
--- /dev/null
+++ b/examples/DesktopMap/README.txt
@@ -0,0 +1,19 @@
+DesktopMap Example
+
+This sample FlexJS application shows how you can integrate a 3rd party 
library, such as Google Maps, into the
+world of FlexJS.
+
+The ActionScript side is an AIR app that uses HTMLLoader to bring in the 
Google MAP JavaScript API. You could
+also try to use an iFrame with a web application (there are examples of iFrame 
and Flex scattered around the web).
+
+You can also cross-compile this sample into JavaScript. This is possible 
because there is a JavaScript version of the
+ActionScript Map class. When you generate the JavaScript code, an index.html 
file is created. You must add the following
+<script> lines to that index.html file in order to make the JavaScript version 
work (the ActionScript version of the Map
+class dynamically creates the <script> include statements):
+
+    <script type="text/javascript"
+      
src="https://maps.googleapis.com/maps/api/js?key={your-key-here}&sensor=false";>
+    </script>
+    
+You will need a Google API developer key. When you have it, replace 
{your-key-here} with your real key.
+

Reply via email to