loading google Maps issue part 2

I found an example of using the ExternalInterface class to transmit to AS2, but I'm stuck on how to get a google map to a clip.
Here's the HTML:
"" < html xmlns = " http://www.w3.org/1999/xhtml ' XML: lang ="fr"lang ="fr">
< head >
< meta http-equiv = "Content-Type" content = text/html"; charset = iso-8859-1 "/ >"
fi < title > < /title >
"" < script src = " http://maps.google.com/maps?file=api & amp; v = 2 & amp; key = ABQIAAAAREqiX-rchDAf5rxchuz6dBRqQJ_ot-KK68KcaQrOr8j2RiVYalRQjpWPmQ3DjfT01fj8K-cd-ZGo5rg '
Type = "text/javascript" > < / script >
< script type = "text/javascript" >

<! [CDATA]

function load() {}
If (GBrowserIsCompatible()) {}
var map = new GMap2 (document.getElementById ("map"));
map.setCenter (new GLatLng (37.125,-122.127), 13);
}
}

[]] >
< /script >

< / head >
< body bgcolor = "#ffffff" >
<! - url is used in the film - >
<! - text used in the film - >
<!-saved from url = (0013) subject: internet->
< object classid = "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase ="" http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8, 0,0,0 " width ="550"height ="400"id ="fi"align ="middle">"
< param name = "allowScriptAccess" value = "sameDomain" / >
"" "< param name ="movie"value =" fi.swf"/ > < param name = ' value ' = 'high' / > < param name ="bgcolor"="#ffffff"value / > < embed src =" fi.swf "quality ="high"bgcolor ="#ffffff"width ="550"height ="400"name = 'fi' align ="middle"allowScriptAccess ="sameDomain"type =" application/x-shockwave-flash"pluginspage =" http://www.macromedia.com/go/getflashplayer ' / >
< / object >
< / body >
< / html >
: Here are the ACEs:
flash.external import. *;
var depth: Number = this.getNextHighestDepth ();
var mapHolder:MovieClip = new MovieClip();
mapHolder = this.createEmptyMovieClip ("mapHolder_" + depth, depth);

var btn:MovieClip = createButton (100, 30, 0xCCCCCC);
btn.onPress = function() {}
mapHolder.loadMovie = function (): MovieClip {}
var clip: MovieClip = new MovieClip();
Clip = MovieClip (ExternalInterface.call("saveglobalscore",score) ("load"));
Back to clip;
}
}

function createButton(width:Number,_height:Number,_color:Number):MovieClip {}
var depth: Number = this.getNextHighestDepth ();
var mc:MovieClip = this.createEmptyMovieClip ("mc_" + depth, depth);
var mcFmt:TextFormat;

mc.beginFill (color);
mc.lineTo (0, height);
mc.lineTo (width, height);
mc.lineTo (width, 0);
mc.lineTo (0, 0);

mcFmt = new TextFormat();
mcFmt.align = 'center ';
mcFmt.bold = true;

mc.createTextField ("mcTxt", depth, 0, 0, width, height);
mc.mcTxt.text = 'Function call JS';
mc.mcTxt.setTextFormat (mcFmt);

return mc;
}

Nevermind I found a couple of good workarounds. We're here:
http://code.Google.com/p/Google-Maps-Flash-interface/ The other is to build the master.swf in as3.

Tags: Adobe Animate

Similar Questions

  • need example AS2 load Google Maps

    kglad informed me that I could use the class ExternalInterface load Google Maps through javascript. I played with IE some but the best I could do was pass text strings. I tried to use a third party API that is to download the libraries with hundreds of lines of code. What I really want, it's the simplest possible example. My coding skills are limited my eyes glaze over when I see more than 30 or 40 lines of code.
    If there is an example of type "hello world" using ExternalInterface to load a Google map in Flash using AS2 and javascript, of course, I would be so happy.

    You can't load the map in flash. You can give the impression that the card is loaded into flash using divs precisely the position of the google map.

  • problem loading Google maps

    I am usind the google map API for flash display a map in a swf file http://www.charliegooddog.org/flashsite/location.swf and it works, but when I try to load this swf into a master.swf at Level0
    as this one.
    mcLocations.onRelease = function (): Void {}
    _level0.myMCL.loadClip ("location.swf", 5);
    };
    nothing happens. If I put a different SWF instead IE. "loadClip ("anything.swf") 'it works fine.
    the file named location.swf is created by the componet googleMapsLibrary of loading on stage then writing this actionscript code:
    import com.google.maps.LatLng;
    import com.google.maps.Map;
    import com.google.maps.MapEvent;
    import com.google.maps.MapType;

    var map: map = new Map();
    Map.Key = "ABQIAAAAREqiX-rchDAf5rxchuz6dBRZSAW-1vfLGKts_Vg3S2RGCrYxshSlUbYX7JFekp9DzQS-ii3uT0-Fortune";
    map.setSize (new Point (stage.stageWidth, stage.stageHeight));
    map.setSize (new Point (350, 350));
    map.addEventListener (MapEvent.MAP_READY, onMapReady);
    this.addChild (map);

    function onMapReady(event:Event):void {}
    map.setCenter (new LatLng(37.123291,-122.119999), 14, MapType.NORMAL_MAP_TYPE);
    }
    the test site where I am trying to get this to work is http://www.charliegooddog.org/flashsite/
    I thank in advance for your suggestions.

    I used the class externalinterface to communicate between flash and js. You can use js to connect with googlemaps.

  • error message when the location of my pictures (Google maps)

    Excuse my bad English, I'm french! When I try to inform them of the location of my pictures in IPhoto, using Google Maps in the Info window, I get this message: "Oops!" something was wrong. This page has not properly loaded Google maps. See the JavaScript console for more technical details"

    What can I do with Java script?

    Thank you for your response.

    Contract of Apple with Google to use Google maps with locations of the pictures in the iPhoto library has been cancelled a few months previously.  That's why iPhoto 9.4.3 and earlier can no longer access the Google map servers and get this error message.

    If you use iPhoto 9.4.3 or earlier you can stop the fracas in the following manner, but will lose the mapping functionality in the library.

    iPhoto 9.4.3 and earlier began planting for many users suddenly a few weeks ago. This is because the contract between Apple and Google for the use of Google maps with iPhoto 9.4.3 and earlier sites expired an elderly couple of months and was not renewed. This is the case of him freezes or crashes.

    Now uses Apple its own program for locations maps and too the use you need to run iPhoto 9.5.1 and Mavericks or 9.6.1 and Yosemite El Capitan or Photos and El Capitan.

    Try Huxly647Solution:

    Huxly647 , November 20, 2015 12:05 AM
    Re: iPhoto crashes after opening several times in reply to carvermon

    I found a solution that works for me.

    1 goto /Applications/iPhoto.app/Contents/Resources (control (right) - click the iPhoto application and select the content in the context menu - OT.)

    2 delete the files 'googlemap.html' and googlesearch.html

    iPhoto no longer crashes, site does not work, but it doesn't bother me too much.

    Let me know if it works for you guys...

    Deletes two files "googlemap.html" and the googlesearch.html of iPhoto application bundle prevents the JavaScript running inside and causing the accident.  Log of course do the same thing. So it's pretty clear that something happened at the end of Google.

    There is a notch posted by user cotton-x that will let iPhoto 9 and earlier still use Google Maps for the purpose of the location.

    cotton-x

    16 December 2015 14:49

    Re: iPhoto 11 - problems with Photo locations

    in response to Paul Fisher

    YES!

    I did just the job.

    I'm on a macbook running white 10.7.5 with iPhoto 9.4.3

    Thanks to Paul, I got an idea. What happens if we had simply ignored Apple has expired API and used our own, private and free from Google. Turns out it works.

    Here's what you need to do:

    0 - quit iPhoto

    1. create a google account or use your own

    Console developers of Google 2 - access HERE

    3. create a project (any name)

    4 - turn on a Google Maps Javascript API

    5 - generate your own API key

    6 - go to the folder /Applications/iPhoto.app/Contents/Resources/googleMap.html

    7. change the googleMap.html (I used an application called TextWrangler)

    8 change the src ="http://maps.googleapis.com/maps/api/js?v=3 & client = gme-appleinc & sensor = false" > to this src = 'https://maps.googleapis.com/maps/api/js?key=YOUR_KEY_HERE& signed_in = true & sensor = false ">"

    9 - save your freshly edited googleMap.html

    10 - open iPhoto and enjoy.

    Take the Apple.

    Don't forget to make a backup copy of the iPhoto application before performing this procedure.

  • Google Maps: pan and zoom controls are not displayed. 'PIN' markers can appear only once, and then disappear.

    Loading Google Maps, either directly, or where they are incorporated into other sites, orders pan and zoom are not displayed. Location markers 'PIN' can appear only once, but disappear after doing anything with the card. I'm on the last Windows XP and latest Firefox. This problem is long-standing and has remained the same during several different versions of Firefox and Windows updates. I tried "CTRL-0' no effect."

    Problem solved by 'Reset Firefox'. Before that, tried "Safe Mode", no difference. Not aware of the limits on the cookies or the memory usage. Controls on the left (Pan, zoom) for Google Maps were good here and in usual and sizing correct positions and could be found with the cursor and activate it, but 'ghosts' that were not display. Same problem if the content was maps or satellite pix. Reset solved the problem.

  • Help with Google Maps blackBerry Smartphones please.

    Hello

    I have the 9530 and spin the device OS 4.7.0.75.

    I loaded Google maps successfully, the two 2.3.2 version and 2.2.2.

    I can't get rid of the portrait keyboard, so I end up with one half of the screen.

    Everyone else ran into this and can you let me know if this can be corrected?

    Thanks in advance for your suggestions,

    Bifocals

    Looks like you got Google Maps put in "compatibility" Mode As a result, half of the screen keyboard all the time.

    Find and click the 'Options '. Then click on 'Advanced Options', then click 'Applications', 'Google Maps' discovery and highlight do not click it. Then press the BB menu button and select "Disable the Compatibility Mode". Then back out and try again 'Google Maps'.

    I hope that this is the problem.

    If I helped, please remember to give me CONGRATULATIONS!

    If your problem has been resolved, please solve this thread by marking the position that solved for you!

  • BlackBerry Smartphones Google Maps no longer works for my Verizon Blackberry Curve 8330. What is the problem with Google?

    For the last 11 months, Google Maps and Gmail have worked perfectly with my Blackberry Curve 8330 from Verizon. Tonight, all that has stopped working. I tried to load Google maps and failed. Kept getting the error "network unavailable, blah blah blah." I tried to restart the phone, remove and reinsert the battery, until I finally uninstalled Google Maps. Now when I point my browser (OperaMini) on m.google.com download and reinstall Google Maps, it says "Sorry the Google Maps application does not work on your 8330." It makes NO sense at all. Why Google would suddenly take for my phone? Is there a work around? Before you uninstall, I tried all sorts of tricks with permissions to edition without success.

    In addition, Gmail refuses to check email, sometimes say that a data connection. Also, which makes NO sense as I have great reception phone.

    My internet (OperaMini) and normal calls and texting capabilities are not affected.

    In conclusion: ANY possible to get these Google Apps for reinstall and work on my phone? Or has Google me screwed over? Any help would be greatly appreciated!

    Thank you
    Hyun

    As of about 3-16:00 hour, there was a failure generalized data RIM across the Americas.

    That includes BIS for Google Maps and apps and email data. Dead in the water on the BlackBerry.

    It will come back, be patient.

  • When you print maps with directions from Google Maps, I can print only part of the directions.

    When I select print in Google maps and printing, the first page is the card belongs to the second page of directions and the third page is empty. I tried in Safari and it does not happen here - the map and directions of how printing which should. This began to happen in Firefox about two weeks ago. I tried to adjust the print settings in Firefox and I have also reset the print settings in topic: config. So far, nothing has worked. I use a HP OfficeJet Pro 8600 and I have not had similar problems in the past.

    Thank you!

    Unfortunately, Google has changed the layout of the page. He added a style rule to the list of instructions that 47 of Firefox are not pages, or in other words, Firefox keeps the direction together as a block list so that you can print as many this block gives on one page. The only way to work around this problem now is to 'hack' the page to override to this rule. If all goes well it will be fixed in a next version of Firefox.

    To hack the page, you will encounter a small script in the Web Console. If you find that you need to do it often, you could create a bookmarklet (a script attached to a bookmark) so it is a one-click operation.

    Non-reusable method

    (A) select this script all over and do a right click > copy:

    document.querySelector('div.widget-pane-section-listbox.widget-pane-section-listbox-root').style.display="block";

    Update:

    document.querySelector('div.section-listbox.section-listbox-root').style.display="block";

    (B) in the tab with the instructions to print page, open the Web Console of Firefox in the lower part of the tab by using one of the following methods:

    • CTRL + SHIFT + k
    • button '3-bar' menu > developer > Web Console
    • (menu bar) Tools > Web Developer > Web Console

    (C) click next to the circumflex accent (>) at the bottom of the Web Console and paste the script (Ctrl + v or right click > paste) and press ENTER to run it.

    (D) close the web console, using the little 'x' on the right end of the bar ad detective, Console, etc., or the hotkey Ctrl + Shift + i could do.

    If you go to preview before printing, you should now see the list over several pages normally. Success?

    Create a Bookmarklet

    A bookmarklet is a small script that you can save on your Favorites or bookmarks Menu, bar in a convenient place. Here's how to create that:

    (1) select the entire script, and then right-click > copy:

    javascript:void(document.querySelector('div.section-listbox.section-listbox-root').style.display="block");

    (2) a comfortable place on your bookmarks bar or Bookmarks Menu with the right mouse button and choose new bookmark

    (3) click the empty box next to location, and then paste the script

    (4) to assign a relevant name like GooMapPrint

    (5) click on the add a bookmark button

    To test, after loading the view 'print' instructions, click on the button. When you call in print preview mode, the steps should be paginated normally.

    (Some sites use a security policy content to prohibit external scripts to be applied. On these sites, bookmarklets don't work - but at least so far, Google does not only.)

  • Why make a 'met while loading HTML javascript error' when I insert a google map into indesign?

    In the past I have integrated a google map in my DPS projects very well. Now, I get this error "error while loading HTML javascript" how to solve this?

    Here's a thread on the InDesign forum where the issue has been resolved: Indesign HTML does not

  • Sync to iphoto with Iphone hangs on during synchronization. In addition the google map can be charged when I click on the places of Mediathek. Error message: "this page has not loaded correctly Google Maps. See the JavaScript console for more technical de

    Sync to iphoto with Iphone hangs on during synchronization. In addition the google map can be charged when I click on the places of Mediathek. Error message: "this page has not loaded correctly Google Maps. See the JavaScript console for more technical details. »

    Perhaps the reason for the problem of synchronization is the problem with the loading of google map?

    Error message: "this page has not loaded correctly Google Maps. See the JavaScript console for more technical details. »

    Apple has not renewed the contract with Google to access Google servers.

    If the old version of iPhoto, which are still using Google's servers for the cards and places are either crashing or hanging.  Places are only work in iPhoto 9.5.1 or newer, who use places of Apple servers.

    There is more support for iPhoto from Apple.  You must update iPhoto 9.5.1 with the Mavericks. It would work well, only it is no longer buying this update to Apple.

    Perhaps the reason for the problem of synchronization is the problem with the loading of google map?

    It is very likely.  If iPhoto work very well when you are offline, then your problems will be caused by the connection failed to Googles servers.

    See this: Bug: iPhoto 9.4 crashing when viewing the scene

  • Google maps into Web pages do not load; "Sorry, we have no imagery here.

    For all Web pages that have google integrated like yelp, foursquare, geocaching.orgmap, map google etc. does not load. Instead of the card, there is a repeated tile showing: "sorry we have no imagery here. Question is not present in Microsoft Edge.

    Maybe you're blocking the Google map with one of your modules?

    Try Firefox Safe mode to see if the problem goes away. Firefox Safe mode is a troubleshooting mode that temporarily disables hardware acceleration, restores some settings and disables add-ons (extensions and themes).

    If Firefox is open, you can restart Firefox Safe mode in the Help menu:

    • Click on the menu button , click Help , and then select restart with disabled modules.

    If Firefox does not work, you can start Firefox in Mode safe as follows:

    • On Windows: Hold down the SHIFT key when you open the desktop Firefox or shortcut in the start menu.

    When the Firefox Safe Mode window appears, select "start mode safe."

    If the problem is not present in Firefox Safe Mode, your problem is probably caused by an extension, theme or hardware acceleration. Please follow the steps described in the section Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems to find the cause.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

  • BlackBerry Smartphones Google Maps, questions and issues

    So, today is the first time I used my gps on my storm, and my first opportunity to use google maps.

    Everything worked fine except a few things that made my trip to find a little difficult doctors Office and the pop up text that tells you which way to turn, Center of the screen about the location and map scroll.

    I used google maps in the past on my Moto Q, and if I remember correctly, I would have to press the #3 key to move to the next round.  I checked the Gmaps menu by pressing the BB button and there is no options in there, so I went to the screen by a click.  Sometimes he could work and advance to the next round, other times it should show a picture of the box or do nothing at all.

    I'm happy that Gmaps finally works with the storm, but I would suggest to google when the tower was filed, which automatically advances the text box for the next round.

    Everyone knows these issues, or has found a workaround?

    When you have a path (= a list of points), the application has no way of understanding, you pass by a point. If I rephrase what you want:
    "whenever you pass a point, you want an update so that the remaining path does not include the above"
    and rephrase so the application can run:
    "whenever you pass a point, you want the calculated again way to take into account your position."
    Since there is no way of knowing when that happens "all weather", necessarily becomes what you ask for:
    "update the path to destination in a frequent manner"

    It is of course possible, but very tedious for the device I guess. It is easier for a GPS device that has infinite energy (= powered by car).

  • Could not load the page that contains the google map

    I have a google map on a page, when I click on a link to the page, the page cannot be loaded successfully (Nothing on the browser). After you click F5 to refresh, the page (with map) opens normally.

    Cannot load google map page.png

    This is the code in

    < af:group id = "g1" >

    < div id = "map" style = "width: 100%;" height: 380px; "" xmlns = " http://www.w3.org/1999/XHTML " > < / div > .

    < / af:group >

    " < af:resource type = 'javascript' source = ' http://www.Google.com/JSAPI?key=AIzaSyA9hoNzClhEcuz5M0zuEWg4Vc7OsrU-ISO "/ > "

    < af:resource type = "javascript" >

    Console.log ("ABBBB");

    Google.Load ("maps", "2.x");

    function initialize() {}

    map = new google.maps.Map2 (document.getElementById ("map"));

    map.addControl (new GLargeMapControl());

    map.addControl (new GMapTypeControl());

    map.setCenter (new GLatLng (15.8671701, 105.4848866), 5);

    Console.log ('Load card ok');

    }

    google.setOnLoadCallback (initialize);

    < / af:resource >

    Could someone help me solve this problem? Thks!

    I solved this problem:

    Google.Load ("maps", "2.x", {callback: initialize});

    Hope this help anyone else!

  • Help with loading a swf from the Google Map API done in AS3 AS2 Flash site

    OK, maybe this can be done, I need to do everything in AS3, or it is a problem of the Google Map API.

    If someone could put me on the right track, I would be grateful.

    I created a Google Map API for Flash Add to my Web site.

    My site has been built using AS2 and the Google Map API was built using AS3

    My site Flash .swf works fine and the Google Map.swf, I created works very well.

    The problem is when I try and do not add the Google Map.swf on my website flash As2 will Google.swf no work.

    I'm trying just to eliminate the error.

    Is it because that...

    1. after having my site flash with AS2, I can't add a .swf with AS3

    2. I need to change the code...

    3. it has nothing to do with AS3, it's because this is a Google Map API.


    I have a button written in AS2 on my main flash site that has a a PreLoader.


    on (release) {}

    Stop behavior MovieClip
    this.gotoAndStop ("Google_Map");
    End behavior


    load film behavior
    If (this.mcContentHolder is {Number (this.mcContentHolder))}
    loadMovieNum ("PreLoaderGoogle.swf", this.mcContentHolder);
    } else {}
    this.mcContentHolder.loadMovie ("PreLoaderGoogle.swf");
    }
    End behavior
    }

    The PreLoaderGoogle.swf was then has a

    Instance of: charger

    contentPath

    Google_Map.swf

    If I change the Google_Map.swf instance in the PreLoader for an another .swf using AS2 it all works.


    or do I just have the wrong end of the stick.

    All advice appreciated.

    If you load an as3 swf into an as2 swf, none of the code in the as3 swf file will work.

    the simplest way around this is: you could create a loader swf (GER) as3 that loads your as2 swf and load your google as3 swf.

  • the issue of google map integration

    Hello

    I managed to create a map google map api actionscript 3 and the swf file works fine.

    I need it integrate into a flash as2 project that works if I use

    loadMovieNum ("googleMap.swf", 0);

    but I want to load into a clip (called loader) and I tried the following which does not work.

    loadMovie ("googleMap.swf", "this.loader");

    any ideas?

    Thank you

    Tina

    Impossible to load an as3 swf into an as2 swf and expect any actionscript to work.

Maybe you are looking for

  • To THE file disappeared completely, but have not deleted, what to do now?

    So I was busy to install izotope ozone 7 in my logic but had trouble with the standalone version to run. (DAW all plugins work well) I removed Izotope make only once through its program of uninstall and that he would only remove the stand-alone progr

  • Issue of recovery plant

    Hi all I have an Aspire V5 and you cannot start Windows. I did not create a recovery DVD or USB flash.I used to own Dell and they had a recovery on startup option, before Windows loads. ACerS is an option like that? If this is not the case, can I buy

  • CVPNDRVA. SYS

    My computer suffers from an unknown malware infection, called CVPNDRVA. SYS. AVG is currently disconnected however, this file is located in WINDOWS/System32. I fear that it might cause huge problems in my computer. Can you help me?

  • Vendor Portal Beta - moving project to submit app

    Hey guys,. I'm looking around the App World beta and I can't find out how to make my application after making it a project. Can anyone help? Thank you

  • best way to download files by 2 with winzip and rar files

    I have winzip pro I'm having problems to download rar and 2 files