Hey Will-
It should work fine as long as your security settings are set. This is what
I did to get loadMovie to work:

- Saved SWF from the Hello World used in the Flash CS3 Tutorial
- Put SWF in a folder along with a FLA file
- Specified in security settings that files in that folder should be trusted
- Put following code in the FLA file:
var loadMovie = new Loader();
addChild(loadMovie);
loadMovie .load(new URLRequest("MapSimple.swf"));
- Tested movie. Result: Great success!

- pamela


On Mon, Nov 3, 2008 at 1:58 AM, Will <[EMAIL PROTECTED]> wrote:

>
> Yep that's what I'm trying to do, re-using it inside my flash
> application.
> The size is set, the API key is set correctly. It doesn't like at
> all.
>
> I've tried: loadMovie("map.swf", image_mc); which imports SWF's, but
> when I used the maps SWF it doesn't show at all.
>
> On Oct 30, 7:35 pm, "pamela (Google Employee)" <[EMAIL PROTECTED]>
> wrote:
> > Hi Will-
> > So you're exporting the SWF, and then re-using it inside a different
> Flash
> > application?
> > Have you made sure you're setting a size on the SWF, and setting the key
> > properly?
> >
> > - pamela
> >
> > On Tue, Oct 28, 2008 at 4:06 AM, Will <[EMAIL PROTECTED]>
> wrote:
> >
> > > I've come across one more problem, sorry to keep asking questions!
> > > I've got everything working, it displays the distance, but the problem
> > > is, once I compile the SWF, I can't import it back into flash, it's
> > > just a blank page when I import it. Is there a way to import it
> > > properly? or is it not possible?
> >
> > > Thanks
> > > Will
> >
> > > On Oct 25, 6:04 pm, "pamela (Google Employee)" <[EMAIL PROTECTED]>
> > > wrote:
> > > > Hi Will-
> > > > If you want the distance of the Driving Directions route, just use
> the
> > > > distance property:
> > >http://code.google.com/apis/maps/documentation/flash/reference.html#D.
> ..
> >
> > > > There are various directions demos here:
> > >http://code.google.com/apis/maps/documentation/flash/demogallery.html.
> ..
> >
> > > > If you want the straight distance between latitude/longitude pairs
> use
> > > > distanceFrom with geocoding.  There are various geocoding demos here:
> > >http://code.google.com/apis/maps/documentation/flash/demogallery.html.
> ..
> >
> > > > - pamela
> >
> > > > On Sat, Oct 25, 2008 at 8:01 PM, Will <[EMAIL PROTECTED]>
> > > wrote:
> >
> > > > > Sorry to bring this up again, but I can't figure this out.
> > > > > Has anybody got an idea how I can get google maps to return the
> > > > > geocodes? I'm really stuck :(
> >
> > > > > On Oct 23, 9:34 pm, Will <[EMAIL PROTECTED]> wrote:
> > > > > > I found this code:
> >
> > > > > > // Calculate distance in km between London and Sydney.
> > > > > > var london:LatLng = new LatLng(51.53, -0.08);
> > > > > > var sydney:LatLng = new LatLng(-34.0, 151.0);
> > > > > > trace("km: " + sydney.distanceFrom(london) / 1000);
> >
> > > > > > This looks like the the right track, however I need it so it's
> not
> > > > > > just london and sydney, but anything which the user types in, so
> > > would
> > > > > > this work?:
> >
> > > > > > var distance:Number;
> > > > > > var from:LatLng = new LatLng(geocodes from the user search);
> > > > > > var to:LatLng = new LatLng(geocodes from the user search);
> > > > > > distance = to.distanceFrom(from) / 1000);
> > > > > > distance_txt.htmlText = distance;
> >
> > > > > > How do I get the user search geocodes?
> > > > > > Cheers,
> > > > > > Will
> >
> > > > > > On Oct 23, 7:59 pm, Will <[EMAIL PROTECTED]> wrote:
> >
> > > > > > > Hi Pamela,
> > > > > > > I would like the total distance of the route.
> > > > > > > By alongside of it, I meant on the interface somewhere. for
> > > example, I
> > > > > > > could create a new text element next to the steps which could
> > > display
> > > > > > > it. or using the "step" text to display it.
> >
> > > > > > > Thanks for your time,
> > > > > > > Will
> >
> > > > > > > On Oct 22, 4:45 pm, "pamela (Google Employee)" <
> > > [EMAIL PROTECTED]>
> > > > > > > wrote:
> >
> > > > > > > > Hey Will-
> >
> > > > > > > > Do you want total distance of the route? Or distance along
> each
> > > > > segment?
> >
> > > > > > > > By alongside of it, do you mean in the Flex UI or on the map?
> >
> > > > > > > > - pamela
> >
> > > > > > > > On Wed, Oct 22, 2008 at 6:33 PM, Will <
> > > [EMAIL PROTECTED]>
> > > > > wrote:
> >
> > > > > > > > > Hi guys,
> > > > > > > > > I've been working with the material to get directions from
> A to
> > > B,
> > > > > but
> > > > > > > > > how would I get it to display the distance along side of
> it?
> >
> > > > > > > > > code:
> > > > >
> http://code.google.com/p/gmaps-samples-flash/source/browse/trunk/samp.
> > > ..
> > > > > > > > > example:
> > > > >
> http://gmaps-samples-flash.googlecode.com/svn/trunk/examples/Directio.
> > > ..
> >
> > > > > > > > > Any suggestions?
> > > > > > > > > Thanks,
> > > > > > > > > Will
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-maps-api-for-flash?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to