Is there anyone who can help me make an interactive map exactly like this one:
http://www.thegoheens.com/sample_map.zip
Thanks!
Printable View
Is there anyone who can help me make an interactive map exactly like this one:
http://www.thegoheens.com/sample_map.zip
Thanks!
What about something like this:
http://developer.yahoo.net/maps/flash/V2/asGS.03.html
All the info you need:
http://developer.yahoo.net/maps/flas...ngStarted.html
I tried it, but can't get the thing to work for me. estudioworks - have you used the yahoo maps at all? I downloaded and installed the yahoo maps MXP file but can't figure out what to do after that. What is the "yahoomap.swc" file and how do you open that? I've tried everything I can think of, but I'm still very new to flash.
I 'll send you a .fla, what is the address you want to use ?
I actually wanted a map of the entire Twin Cities metro, but you can just put St. Paul, MN to start out.
I'm reading the Yahoo site more and figured out how to get it to work by itself in flash, but not with my movie. Can you just drag the component into your movie and it'll work, or am I missing something?
Sort of, you drag the component on the stage and you have to edit 2 areas, the parameters panel and an actionscript layer:
Here is a .fla from yahoo ( change the info in the parameters panel and the as layer and you should be ok.
http://developer.yahoo.net/maps/flash/V2/asGS.01.fla
You also need to sign up for a yahoo application id to be able to run them:
http://api.search.yahoo.com/webservi...er_application
this is done completely in flash
ozmic66 - I have seen this before, and unfortunately it is not what I'm looking for.
estudioworks - I have a yahoo application ID and I can get the program to work alone, but I can't figure out how to get it to work in my movie. It just seems to be a blank page with no map on it. Any thoughts?
Here is the error I get when trying to insert the map in my movie:
**Error** Symbol=CITIES PAGE, layer=actions, frame=1:Line 1: Syntax error.
import com.yahoo.maps.tools.PanTool;
**Error** Symbol=CITIES PAGE, layer=actions, frame=1:Line 2: Syntax error.
import com.yahoo.maps.widgets.NavigatorWidget;
Total ActionScript Errors: 2 Reported Errors: 2
any ideas guys?
You probably need to copy all frames in the yahoo movie and paste them in a mc in your new movieQuote:
Originally Posted by bengoheen
Quote:
Originally Posted by ozmic66
That is awesome !!
I did this and still nothing. I gonna start pulling my hair out over here. :yikes: What is the YahooMap.swc file and do I need to do anything with that? I've download the source from yahoo of the different examples and they all work fine. When I try to emulate that in my movie, I create 2 layers (map & actions). I put the map file on the map layer and copy the actions on the action layer, but they I come up with that error. I knew there was a reason I didn't like Yahoo!
Can you post your .fla ?
Here it is:
Flash MX 2004 file:
http://www.thegoheens.com/main.fla
Flash MX file:
http://www.thegoheens.com/main2.fla
This is my movie without the maps. Please excuse the mess - it was a template that I purchased and haven't had time to get everything sorted out yet. The page I would like to put the map on is the "cities page".
Having trouble getting to the cities area
When you open up the library, it is listed as "CITIES PAGE". All that is there currently is text that says under construction. On the original template, it was called the solutions page. Like I said, it's pretty messy right now....
Still working on it, I can't get the map to show
Well now I don't feel so bad. :smoov:
Hey sorry I fell asleep, gonna start looking at it again :)
Ok, this is weird, it works within a mc, but not in your page :rolleyes:
Gonna keep looking
Ok I got it !!
It needs to be published in Actionscript 2, as soon as I changed that, it was ok
:mrpimp: :mrt: :mrpimp:
It seems those templates start in Flash 6 AS 1
How do I publish it in actionscript 2? So are you saying that it won't work within Flash MX?
File > Publish Settings > Flash Tab > Choose AS 2 !!
Ok, I figured that much out. On that page, I specify a location in the yahoo map properties settings and also type in my ID. When I click on that page, I see the Yahoo logos on the bottom but there is still no map. That seems odd....
It worked for me: PM me with your email address and I'll send you the .fla
PM sent
I just sent the email
Looks awesome! One thing I noticed though, when I added the map widget (zoom and pan thing), the zooms wooks fine but when I use that to pan it does nothing. Why?
I think they do that on purpose, their zoom example doesn't pan either
Can you give me an example of the actionscript with both the navigation wizard and a place marker on the map? I can get one or the other to work, but not both at the same time. Thanks!
Let me edit my previous post. On the Yahoo! Maps Web Services Getting Started Guide, here is the actionscript for the place marker:
And here is the actionscript for the NavigatorWidget:Code:import com.yahoo.maps.tools.PanTool;
import com.yahoo.maps.markers.CustomPOIMarker;
myMap.addEventListener(com.yahoo.maps.api.flash.YahooMap.EVENT_INITIALIZE, onInitMap);
function onInitMap(eventData) {
var panTool = new PanTool();
myMap.addTool(panTool, true);
var address = "511 E. Mary Street, Austin, TX";
myMap.setCenterByAddress(address, 0);
var myMarker = {index:'Y!', title:'South Austin Texas', description:'South Austin Rocks!', markerColor:0x990099, strokeColor:0xFFFF00};
myMap.addMarkerByAddress(CustomPOIMarker, address, myMarker);
}
I can't seem to combine the two to work together. Can anyone help?Code:import com.yahoo.maps.tools.PanTool;
import com.yahoo.maps.widgets.NavigatorWidget;
myMap.addEventListener(com.yahoo.maps.api.flash.YahooMap.EVENT_INITIALIZE, onInitMap);
function onInitMap(eventData) {
var panTool = new PanTool();
myMap.addTool(panTool, true);
var navWidget = new NavigatorWidget("closed");
myMap.addWidget(navWidget);
}
Hey I found what a SWC file is:
http://www.macromedia.com/devnet/fle...k_load_08.html
hahaha...I was searching myself to get more on the Yahoo! Maps API commands/class
(sorry to bring up an older thread) but anyone got a GOOD link to the commands available to us for the YahooMaps API?
and update to Bens problem in case others read:. (Ben dont publish to Flash Player 6 but to 7 or 8 & AS 2.0) and it will work fine. ;)
What about something like this - www.fla-shop.com
Hi John D, Flashkit is not to be used as a product sales forum.
If you want to give away your product that is fine but do not post your website link to generate sales.
3P