[flexcoders] Re: Yahoo Maps AS3 integration problem
I am revisiting this problem since I had the need/opportunity to actuall install a proxy server for a different project. I now am semi competent in creating my own personal proxy server, and would like to know if someone out there has been able to redirect the url's generated in the as2map.swf to a proxy server? All help would be appreciated. Paul --- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > Yes, you are right, the methodology I use would probably not work for > that. I came in late on this thread. I went back and reviews the > earlier posts, and that is a tough one. Yahoo does have crossdomain > files on the servers for the main map functionality, maybe they just > missed this. > > > > There is a mailing list devoted to the Yahoo services, perhaps the will > be able to help there. I have seen the Yahoo developers responding. > > > > OTHO, perhaps a "real" proxy would work. > > > > Tracy > > > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of aceoohay > Sent: Monday, January 28, 2008 10:48 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: Yahoo Maps AS3 integration problem > > > > Tracy: > > The flex code that generates the map is; > > UUID="{parentApplication.intMapIdentifier}" swfDomId="{SWFDOMID}" > apiId="{YAHOOAPIKEY}" mapURL="{MAPSWF}" width="600" height="400" > scaleContent="false" /> > > and associated methods that are called. The Yahoo urls are buried in > the Yahoo code. How do I force these client side calls to use the > proxyserver? > > Paul > > --- In flexcoders@yahoogroups.com <mailto:flexcoders% 40yahoogroups.com> > , "Tracy Spratt" wrote: > > > > Since I almost always have some business logic to perform on the > server > > for any data service call, if only to log it, I just make all calls > > through an asp.net back-end (I use vb.net also) It is not a true > > "proxy", I don't attempt to redirect urls, but rather use > HTTPService to > > post name=value pairs from Flex to the server. On of the pairs is > > "action=whatever" which tells the back end how to handle the > request, > > through a Select Case. > > > > > > > > I then make my WebService or XMLHTTP call or do my business logic, > then > > wrap the result in an xml root node (with status/error info) and > return > > it to the Flex client. > > > > > > > > Visual Studio's Web Service proxy generation and debugging make > > consuming webservices very easy, and I don't ever have any > crossdomain > > issues. > > > > > > > > Tracy > > > > > > > > > > > > > > > > > > > > From: flexcoders@yahoogroups.com <mailto:flexcoders% 40yahoogroups.com> > > [mailto:flexcoders@yahoogroups.com <mailto:flexcoders% 40yahoogroups.com> > ] On > > Behalf Of aceoohay > > Sent: Monday, January 28, 2008 6:37 PM > > To: flexcoders@yahoogroups.com <mailto:flexcoders% 40yahoogroups.com> > > Subject: [flexcoders] Re: Yahoo Maps AS3 integration problem > > > > > > > > Bill: > > > > Thank for the post. > > > > I shouldn't have been so flippant in the earlier post. Obviously > > what I need is more concrete exampleas of how to do this. My > > language of choice is ASP.NET, preferably VB. > > > > Are there any examples of how to setup a proxy server? > > > > If the proxy server approach is so easy to accomplish why doesn't > > yahoo allow full access via crossdomain.xml? > > > > This application is an intranet app for about 40 users. > > --- In flexcoders@yahoogroups.com > <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders% > 40yahoogroups.com> > > , "bill_reddy" > > wrote: > > > > > > --- In flexcoders@yahoogroups.com > <mailto:flexcoders%40yahoogroups.com> > > <mailto:flexcoders%40yahoogroups.com> , "aceoohay" wrote: > > > > > > > > The answer to life, the universe and everything is 42. > > > > > > > > Would you be so kind as to share a bit more information with > the > > > > unwashed masses? > > > > > > > > Paul > > > > --- In flexcoders@yahoogroups.com
RE: [flexcoders] Re: Yahoo Maps AS3 integration problem
Yes, you are right, the methodology I use would probably not work for that. I came in late on this thread. I went back and reviews the earlier posts, and that is a tough one. Yahoo does have crossdomain files on the servers for the main map functionality, maybe they just missed this. There is a mailing list devoted to the Yahoo services, perhaps the will be able to help there. I have seen the Yahoo developers responding. OTHO, perhaps a "real" proxy would work. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aceoohay Sent: Monday, January 28, 2008 10:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Yahoo Maps AS3 integration problem Tracy: The flex code that generates the map is; and associated methods that are called. The Yahoo urls are buried in the Yahoo code. How do I force these client side calls to use the proxyserver? Paul --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > Since I almost always have some business logic to perform on the server > for any data service call, if only to log it, I just make all calls > through an asp.net back-end (I use vb.net also) It is not a true > "proxy", I don't attempt to redirect urls, but rather use HTTPService to > post name=value pairs from Flex to the server. On of the pairs is > "action=whatever" which tells the back end how to handle the request, > through a Select Case. > > > > I then make my WebService or XMLHTTP call or do my business logic, then > wrap the result in an xml root node (with status/error info) and return > it to the Flex client. > > > > Visual Studio's Web Service proxy generation and debugging make > consuming webservices very easy, and I don't ever have any crossdomain > issues. > > > > Tracy > > > > > > > > > > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> ] On > Behalf Of aceoohay > Sent: Monday, January 28, 2008 6:37 PM > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > Subject: [flexcoders] Re: Yahoo Maps AS3 integration problem > > > > Bill: > > Thank for the post. > > I shouldn't have been so flippant in the earlier post. Obviously > what I need is more concrete exampleas of how to do this. My > language of choice is ASP.NET, preferably VB. > > Are there any examples of how to setup a proxy server? > > If the proxy server approach is so easy to accomplish why doesn't > yahoo allow full access via crossdomain.xml? > > This application is an intranet app for about 40 users. > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders% 40yahoogroups.com> > , "bill_reddy" > wrote: > > > > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > <mailto:flexcoders%40yahoogroups.com> , "aceoohay" wrote: > > > > > > The answer to life, the universe and everything is 42. > > > > > > Would you be so kind as to share a bit more information with the > > > unwashed masses? > > > > > > Paul > > > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > <mailto:flexcoders%40yahoogroups.com> , "Alex Harui" wrote: > > > > > > > > The workaround is a proxy server. > > > > > > > > > > > > > > > > > > > > Paul,here's a simple proxy script example in php: > > > > > > > if(isset($_GET['file'])) { > > // Use preg_match to do simple validation on the url, > > // session, etc... Optional of course. > > if(preg_match("INSERT PATTERN HERE", $_GET['file'])) { > > readfile($_GET['file']); > > } > > } > > ?> > > > > > > In flex, the url to the yahoo image would then be something like: > > http://localhost/some_proxy_script.php? <http://localhost/some_proxy_script.php?> > <http://localhost/some_proxy_script.php? <http://localhost/some_proxy_script.php?> > > > file=http://www.yahoo.com/somefile.jpg <http://www.yahoo.com/somefile.jpg> > <http://www.yahoo.com/somefile.jpg <http://www.yahoo.com/somefile.jpg> > > > > > > > Credit goes to Doug McCune. > > >
[flexcoders] Re: Yahoo Maps AS3 integration problem
Tracy: The flex code that generates the map is; and associated methods that are called. The Yahoo urls are buried in the Yahoo code. How do I force these client side calls to use the proxyserver? Paul --- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > Since I almost always have some business logic to perform on the server > for any data service call, if only to log it, I just make all calls > through an asp.net back-end (I use vb.net also) It is not a true > "proxy", I don't attempt to redirect urls, but rather use HTTPService to > post name=value pairs from Flex to the server. On of the pairs is > "action=whatever" which tells the back end how to handle the request, > through a Select Case. > > > > I then make my WebService or XMLHTTP call or do my business logic, then > wrap the result in an xml root node (with status/error info) and return > it to the Flex client. > > > > Visual Studio's Web Service proxy generation and debugging make > consuming webservices very easy, and I don't ever have any crossdomain > issues. > > > > Tracy > > > > > > > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of aceoohay > Sent: Monday, January 28, 2008 6:37 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: Yahoo Maps AS3 integration problem > > > > Bill: > > Thank for the post. > > I shouldn't have been so flippant in the earlier post. Obviously > what I need is more concrete exampleas of how to do this. My > language of choice is ASP.NET, preferably VB. > > Are there any examples of how to setup a proxy server? > > If the proxy server approach is so easy to accomplish why doesn't > yahoo allow full access via crossdomain.xml? > > This application is an intranet app for about 40 users. > --- In flexcoders@yahoogroups.com <mailto:flexcoders% 40yahoogroups.com> > , "bill_reddy" > wrote: > > > > --- In flexcoders@yahoogroups.com > <mailto:flexcoders%40yahoogroups.com> , "aceoohay" wrote: > > > > > > The answer to life, the universe and everything is 42. > > > > > > Would you be so kind as to share a bit more information with the > > > unwashed masses? > > > > > > Paul > > > --- In flexcoders@yahoogroups.com > <mailto:flexcoders%40yahoogroups.com> , "Alex Harui" wrote: > > > > > > > > The workaround is a proxy server. > > > > > > > > > > > > > > > > > > > > Paul,here's a simple proxy script example in php: > > > > > > > if(isset($_GET['file'])) { > > // Use preg_match to do simple validation on the url, > > // session, etc... Optional of course. > > if(preg_match("INSERT PATTERN HERE", $_GET['file'])) { > > readfile($_GET['file']); > > } > > } > > ?> > > > > > > In flex, the url to the yahoo image would then be something like: > > http://localhost/some_proxy_script.php? > <http://localhost/some_proxy_script.php?> > > file=http://www.yahoo.com/somefile.jpg > <http://www.yahoo.com/somefile.jpg> > > > > > > Credit goes to Doug McCune. > > >
RE: [flexcoders] Re: Yahoo Maps AS3 integration problem
Since I almost always have some business logic to perform on the server for any data service call, if only to log it, I just make all calls through an asp.net back-end (I use vb.net also) It is not a true "proxy", I don't attempt to redirect urls, but rather use HTTPService to post name=value pairs from Flex to the server. On of the pairs is "action=whatever" which tells the back end how to handle the request, through a Select Case. I then make my WebService or XMLHTTP call or do my business logic, then wrap the result in an xml root node (with status/error info) and return it to the Flex client. Visual Studio's Web Service proxy generation and debugging make consuming webservices very easy, and I don't ever have any crossdomain issues. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aceoohay Sent: Monday, January 28, 2008 6:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Yahoo Maps AS3 integration problem Bill: Thank for the post. I shouldn't have been so flippant in the earlier post. Obviously what I need is more concrete exampleas of how to do this. My language of choice is ASP.NET, preferably VB. Are there any examples of how to setup a proxy server? If the proxy server approach is so easy to accomplish why doesn't yahoo allow full access via crossdomain.xml? This application is an intranet app for about 40 users. --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "bill_reddy" <[EMAIL PROTECTED]> wrote: > > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "aceoohay" wrote: > > > > The answer to life, the universe and everything is 42. > > > > Would you be so kind as to share a bit more information with the > > unwashed masses? > > > > Paul > > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "Alex Harui" wrote: > > > > > > The workaround is a proxy server. > > > > > > > > > > > > > > Paul,here's a simple proxy script example in php: > > > if(isset($_GET['file'])) { > // Use preg_match to do simple validation on the url, > // session, etc... Optional of course. > if(preg_match("INSERT PATTERN HERE", $_GET['file'])) { > readfile($_GET['file']); > } > } > ?> > > > In flex, the url to the yahoo image would then be something like: > http://localhost/some_proxy_script.php? <http://localhost/some_proxy_script.php?> > file=http://www.yahoo.com/somefile.jpg <http://www.yahoo.com/somefile.jpg> > > > Credit goes to Doug McCune. >
[flexcoders] Re: Yahoo Maps AS3 integration problem
Bill: Thank for the post. I shouldn't have been so flippant in the earlier post. Obviously what I need is more concrete exampleas of how to do this. My language of choice is ASP.NET, preferably VB. Are there any examples of how to setup a proxy server? If the proxy server approach is so easy to accomplish why doesn't yahoo allow full access via crossdomain.xml? This application is an intranet app for about 40 users. --- In flexcoders@yahoogroups.com, "bill_reddy" <[EMAIL PROTECTED]> wrote: > > --- In flexcoders@yahoogroups.com, "aceoohay" wrote: > > > > The answer to life, the universe and everything is 42. > > > > Would you be so kind as to share a bit more information with the > > unwashed masses? > > > > Paul > > --- In flexcoders@yahoogroups.com, "Alex Harui" wrote: > > > > > > The workaround is a proxy server. > > > > > > > > > > > > > > Paul,here's a simple proxy script example in php: > > > if(isset($_GET['file'])) { > // Use preg_match to do simple validation on the url, > // session, etc... Optional of course. > if(preg_match("INSERT PATTERN HERE", $_GET['file'])) { > readfile($_GET['file']); > } > } > ?> > > > In flex, the url to the yahoo image would then be something like: > http://localhost/some_proxy_script.php? > file=http://www.yahoo.com/somefile.jpg > > > Credit goes to Doug McCune. >
[flexcoders] Re: Yahoo Maps AS3 integration problem
--- In flexcoders@yahoogroups.com, "aceoohay" <[EMAIL PROTECTED]> wrote: > > The answer to life, the universe and everything is 42. > > Would you be so kind as to share a bit more information with the > unwashed masses? > > Paul > --- In flexcoders@yahoogroups.com, "Alex Harui" wrote: > > > > The workaround is a proxy server. > > > > > > > > Paul,here's a simple proxy script example in php: In flex, the url to the yahoo image would then be something like: http://localhost/some_proxy_script.php? file=http://www.yahoo.com/somefile.jpg Credit goes to Doug McCune.
Re: [flexcoders] Re: Yahoo Maps AS3 integration problem
crossdomain.xml on Yahoo! img servers doesn't allow all domains except Yahoo! servers.. As someone pointed out above, proxy is other option but you might need to change Yahoo! AS3 map's code so that it loads images via proxy...Be careful, it's gonna eat a lot of bandwidth and if your site is really traffic intensive with not many servers/load-balancing, user-experience might be slow. -abdul On Jan 28, 2008 9:27 PM, aceoohay <[EMAIL PROTECTED]> wrote: > The answer to life, the universe and everything is 42. > > Would you be so kind as to share a bit more information with the > unwashed masses? > > Paul > > --- In flexcoders@yahoogroups.com , "Alex > Harui" <[EMAIL PROTECTED]> wrote: > > > > The workaround is a proxy server. > > > > > > > > > > > > From: flexcoders@yahoogroups.com > [mailto:flexcoders@yahoogroups.com ] On > > Behalf Of aceoohay > > Sent: Sunday, January 27, 2008 10:13 PM > > To: flexcoders@yahoogroups.com > > Subject: [flexcoders] Re: Yahoo Maps AS3 integration problem > > > > > > > > I put the following in both the AS file that does the > BitmapData/Draw > > () as well as the module that renders the map; > > > > Security.loadPolicyFile('http://us.maps1.yimg.com/crossdomain.xml > > <http://us.maps1.yimg.com/crossdomain.xml> '); > > > > I believe the problem is on the yahoo side since their > > crossdomain.xml file contains; > > > > > > > > > > > > > > I assume that they would need to change it to something like; > > > > > > > > > > > > > > > > This presupposes that I understand how a crossdomain.xml policy > file > > works, a shaky proposition. > > > > Paul > > > > --- In flexcoders@yahoogroups.com flexcoders% > 40yahoogroups.com> > > , Sherif Abdou wrote: > > > > > > try a crossDomain file > > > > > > > > > - Original Message > > > From: aceoohay > > > To: flexcoders@yahoogroups.com flexcoders% > 40yahoogroups.com> > > > Sent: Sunday, January 27, 2008 11:39:22 PM > > > Subject: [flexcoders] Yahoo Maps AS3 integration problem > > > > > > I am adding Yahoo maps to an existing application. Everything > seems > > > to be working swimmingly. This application has a generic feature > > for > > > all panels that allows the user to e-mail the panel to another > user. > > > > > > To do this the application grabs the image of the panel using > the > > > BitmapData/draw( ) funtionality. Flex get's its shorts in a > bunch > > over > > > this when trying to access the Yahoo Maps panel. > > > > > > The error I get is; > > > > > > SecurityError: Error #2121: Security sandbox violation: > > > BitmapData.draw: http://localhost/ XXX/src/bin/ XXXMain.swf > cannot > > > access http://us.maps1. yimg.com/ us.tile.maps. yimg.com/ tile? > > > md=200705152300& col=0&row= 4&z=14&t= p. This may be worked > around > > by > > > calling Security.allowDomai n. > > > > > > I have tried calling Security.allowDomai n() with various urls > to > > no > > > avail. > > > > > > Is there a workaround for this? > > > > > > Paul > > > > > > > > > > > > > > > > > > > > __ > > __ > > > Be a better friend, newshound, and > > > know-it-all with Yahoo! Mobile. Try it now. > > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > > <http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ> > > > > > > > > -- -abdul --- http://abdulqabiz.com/blog/ ---
[flexcoders] Re: Yahoo Maps AS3 integration problem
The answer to life, the universe and everything is 42. Would you be so kind as to share a bit more information with the unwashed masses? Paul --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote: > > The workaround is a proxy server. > > > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of aceoohay > Sent: Sunday, January 27, 2008 10:13 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: Yahoo Maps AS3 integration problem > > > > I put the following in both the AS file that does the BitmapData/Draw > () as well as the module that renders the map; > > Security.loadPolicyFile('http://us.maps1.yimg.com/crossdomain.xml > <http://us.maps1.yimg.com/crossdomain.xml> '); > > I believe the problem is on the yahoo side since their > crossdomain.xml file contains; > > > > > > > I assume that they would need to change it to something like; > > > > > > > > This presupposes that I understand how a crossdomain.xml policy file > works, a shaky proposition. > > Paul > > --- In flexcoders@yahoogroups.com <mailto:flexcoders% 40yahoogroups.com> > , Sherif Abdou wrote: > > > > try a crossDomain file > > > > > > - Original Message > > From: aceoohay > > To: flexcoders@yahoogroups.com <mailto:flexcoders% 40yahoogroups.com> > > Sent: Sunday, January 27, 2008 11:39:22 PM > > Subject: [flexcoders] Yahoo Maps AS3 integration problem > > > > I am adding Yahoo maps to an existing application. Everything seems > > to be working swimmingly. This application has a generic feature > for > > all panels that allows the user to e-mail the panel to another user. > > > > To do this the application grabs the image of the panel using the > > BitmapData/draw( ) funtionality. Flex get's its shorts in a bunch > over > > this when trying to access the Yahoo Maps panel. > > > > The error I get is; > > > > SecurityError: Error #2121: Security sandbox violation: > > BitmapData.draw: http://localhost/ XXX/src/bin/ XXXMain.swf cannot > > access http://us.maps1. yimg.com/ us.tile.maps. yimg.com/ tile? > > md=200705152300& col=0&row= 4&z=14&t= p. This may be worked around > by > > calling Security.allowDomai n. > > > > I have tried calling Security.allowDomai n() with various urls to > no > > avail. > > > > Is there a workaround for this? > > > > Paul > > > > > > > > > > > > > __ > __ > > Be a better friend, newshound, and > > know-it-all with Yahoo! Mobile. Try it now. > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > <http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ> > > >
RE: [flexcoders] Re: Yahoo Maps AS3 integration problem
The workaround is a proxy server. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aceoohay Sent: Sunday, January 27, 2008 10:13 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Yahoo Maps AS3 integration problem I put the following in both the AS file that does the BitmapData/Draw () as well as the module that renders the map; Security.loadPolicyFile('http://us.maps1.yimg.com/crossdomain.xml <http://us.maps1.yimg.com/crossdomain.xml> '); I believe the problem is on the yahoo side since their crossdomain.xml file contains; I assume that they would need to change it to something like; This presupposes that I understand how a crossdomain.xml policy file works, a shaky proposition. Paul --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , Sherif Abdou <[EMAIL PROTECTED]> wrote: > > try a crossDomain file > > > - Original Message > From: aceoohay <[EMAIL PROTECTED]> > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > Sent: Sunday, January 27, 2008 11:39:22 PM > Subject: [flexcoders] Yahoo Maps AS3 integration problem > > I am adding Yahoo maps to an existing application. Everything seems > to be working swimmingly. This application has a generic feature for > all panels that allows the user to e-mail the panel to another user. > > To do this the application grabs the image of the panel using the > BitmapData/draw( ) funtionality. Flex get's its shorts in a bunch over > this when trying to access the Yahoo Maps panel. > > The error I get is; > > SecurityError: Error #2121: Security sandbox violation: > BitmapData.draw: http://localhost/ XXX/src/bin/ XXXMain.swf cannot > access http://us.maps1. yimg.com/ us.tile.maps. yimg.com/ tile? > md=200705152300& col=0&row= 4&z=14&t= p. This may be worked around by > calling Security.allowDomai n. > > I have tried calling Security.allowDomai n() with various urls to no > avail. > > Is there a workaround for this? > > Paul > > > > > > __ __ > Be a better friend, newshound, and > know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ <http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ> >
[flexcoders] Re: Yahoo Maps AS3 integration problem
I put the following in both the AS file that does the BitmapData/Draw () as well as the module that renders the map; Security.loadPolicyFile('http://us.maps1.yimg.com/crossdomain.xml'); I believe the problem is on the yahoo side since their crossdomain.xml file contains; I assume that they would need to change it to something like; This presupposes that I understand how a crossdomain.xml policy file works, a shaky proposition. Paul --- In flexcoders@yahoogroups.com, Sherif Abdou <[EMAIL PROTECTED]> wrote: > > try a crossDomain file > > > - Original Message > From: aceoohay <[EMAIL PROTECTED]> > To: flexcoders@yahoogroups.com > Sent: Sunday, January 27, 2008 11:39:22 PM > Subject: [flexcoders] Yahoo Maps AS3 integration problem > > I am adding Yahoo maps to an existing application. Everything seems > to be working swimmingly. This application has a generic feature for > all panels that allows the user to e-mail the panel to another user. > > To do this the application grabs the image of the panel using the > BitmapData/draw( ) funtionality. Flex get's its shorts in a bunch over > this when trying to access the Yahoo Maps panel. > > The error I get is; > > SecurityError: Error #2121: Security sandbox violation: > BitmapData.draw: http://localhost/ XXX/src/bin/ XXXMain.swf cannot > access http://us.maps1. yimg.com/ us.tile.maps. yimg.com/ tile? > md=200705152300& col=0&row= 4&z=14&t= p. This may be worked around by > calling Security.allowDomai n. > > I have tried calling Security.allowDomai n() with various urls to no > avail. > > Is there a workaround for this? > > Paul > > > > > > __ __ > Be a better friend, newshound, and > know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ >
[flexcoders] Re: Yahoo Maps
Hi Chip, I was also having trouble finding the right SWF and API source. I did get my app up and running after downloading a bunch of packages and examples from random places. I zipped them in a big ball and posted it here: https://share.adobe.com/adc/document.do?docid=3b5ccc88-bfb7-11dc-8eae-a591b7039fd5 Hope this helps. -Nick Matelli Amentra, Inc --- In flexcoders@yahoogroups.com, "Chip Moeser" <[EMAIL PROTECTED]> wrote: > > Hello, > Does anyone have a copy of the 'com.yahoo.maps' package they can email > me off list? > > I am trying to update the current 'as2map.swf' and the only code I can > find is the new 'com.yahoo.webapis.maps' package which is severely > lacking. > Best, > -Chip > > chip.moeser at gmail >
Re: [flexcoders] Re: Yahoo maps api for flex 2
That looks like an outdated quote. john On Oct 30, 2007, at 4:10 PM, Mike Krotscheck wrote: “To create and test applications using Yahoo! Flash Maps using the Flex component, you'll need Macromedia Flex 1.5 with the internal JRun4 server or Tomcat server.” Note: An enterprising developer can sniff the traffic and reverse- engineer their API. Nobody’s done that yet though- I’ve been busy with SCORM :). Michael Krotscheck Senior Developer
RE: [flexcoders] Re: Yahoo maps api for flex 2
"To create and test applications using Yahoo! Flash Maps using the Flex component, you'll need Macromedia Flex 1.5 with the internal JRun4 server or Tomcat server." Note: An enterprising developer can sniff the traffic and reverse-engineer their API. Nobody's done that yet though- I've been busy with SCORM :). Michael Krotscheck Senior Developer RESOURCE INTERACTIVE <http://www.resource.com/> www.resource.com <http://www.resource.com> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> This email and any of its attachments may contain Resource Interactive proprietary information, which is privileged, confidential and may be subject to copyright or other intellectual property rights belonging to Resource Interactive. This email is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this email, you are hereby notified that any dissemination, distribution, copying or action taken in relation to the contents of and attachments to this email is strictly prohibited and may be unlawful. If you have received this email in error, please notify the sender immediately and permanently delete the original and any copy of this email and any printout. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dennis van Nooij Sent: Tuesday, October 30, 2007 12:10 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Yahoo maps api for flex 2 http://developer.yahoo.com/maps/flash/flexGettingStarted.html <http://developer.yahoo.com/maps/flash/flexGettingStarted.html> Dennis --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , John Robinson <[EMAIL PROTECTED]> wrote: > > As far as I know they haven't. They're AS2 map stuff has a version > that works in Flex, but it uses the old AVM1, and either a js or lc > bridge between that and your AS3 flex stuff. > > John > > > On Oct 30, 2007, at 10:20 AM, Nate Pearson wrote: > > > I thought that Yahoo made a new api for flex 2...maybe I dreamed it up > > because I can't find it on the net! > > > > Can anyone link me? > > > > Thanks, > > > > Nate > > > > > > > > -- > > Flexcoders Mailing List > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt <http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt> > > Search Archives: http://www.mail-archive.com/flexcoders% <http://www.mail-archive.com/flexcoders%25> > > 40yahoogroups.com > > Yahoo! Groups Links > > > > > > > > John Robinson - Flash/Flex Developer at large > Blog: http://jrobinsonmedia.wordpress.com <http://jrobinsonmedia.wordpress.com> >
[flexcoders] Re: Yahoo maps api for flex 2
nevermind. Looks like its the old AVM1 version indeed. Dennis --- In flexcoders@yahoogroups.com, "Dennis van Nooij" <[EMAIL PROTECTED]> wrote: > > http://developer.yahoo.com/maps/flash/flexGettingStarted.html > > Dennis > > > --- In flexcoders@yahoogroups.com, John Robinson wrote: > > > > As far as I know they haven't. They're AS2 map stuff has a version > > that works in Flex, but it uses the old AVM1, and either a js or lc > > bridge between that and your AS3 flex stuff. > > > > John > > > > > > On Oct 30, 2007, at 10:20 AM, Nate Pearson wrote: > > > > > I thought that Yahoo made a new api for flex 2...maybe I dreamed it up > > > because I can't find it on the net! > > > > > > Can anyone link me? > > > > > > Thanks, > > > > > > Nate > > > > > > > > > > > > -- > > > Flexcoders Mailing List > > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > > Search Archives: http://www.mail-archive.com/flexcoders% > > > 40yahoogroups.com > > > Yahoo! Groups Links > > > > > > > > > > > > > John Robinson - Flash/Flex Developer at large > > Blog: http://jrobinsonmedia.wordpress.com > > >
[flexcoders] Re: Yahoo maps api for flex 2
http://developer.yahoo.com/maps/flash/flexGettingStarted.html Dennis --- In flexcoders@yahoogroups.com, John Robinson <[EMAIL PROTECTED]> wrote: > > As far as I know they haven't. They're AS2 map stuff has a version > that works in Flex, but it uses the old AVM1, and either a js or lc > bridge between that and your AS3 flex stuff. > > John > > > On Oct 30, 2007, at 10:20 AM, Nate Pearson wrote: > > > I thought that Yahoo made a new api for flex 2...maybe I dreamed it up > > because I can't find it on the net! > > > > Can anyone link me? > > > > Thanks, > > > > Nate > > > > > > > > -- > > Flexcoders Mailing List > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > Search Archives: http://www.mail-archive.com/flexcoders% > > 40yahoogroups.com > > Yahoo! Groups Links > > > > > > > > John Robinson - Flash/Flex Developer at large > Blog: http://jrobinsonmedia.wordpress.com >
Re: [flexcoders] Re: yahoo maps "CustomSWFMarker"
Thanks, it did help, in order to load custom markers with click events this is now my attempt What I am now trying to do is load custom markers, once the user clicks on it, it's a method inside the loaded swf marker that loads the image...but I need to pass the image location to the loaded swf.. once it's loaded... This is what I have so far: I added an event listener : mapEventDispatcher.addEventListener('addSWFMarkerByAddress_Result', onSWFMarkerAdded); Then similar to what you have: latLonController.addMarkerByLatLon('CustomSWFMarker',44, -80,{url:'customMarker.swf', ref:'myMark'}); Then the event function: private function onSWFMarkerAdded(ev:Object):void { Alert.show(ev.lastResult, 'Title'); //shows nothing... } All works great, the event fires when the markers are added BUT from what I gather the event object "ev" has 2 params: event type and a reference id. I do not know however what the actual param names areAnd for some reason my Flexbuilder hangs while the map is loading ( I am uing the yahoo as3 connection kit) in debug mode.. I cannot go see the names.. So now, I am trying to figure out how I am going to pass the data to the loaded swf :( Perhaps this is the wrong approach, but I am learning! :) thanks in advance for any help! - Original Message From: Abyss Knight <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Wednesday, September 12, 2007 3:21:19 PM Subject: [flexcoders] Re: yahoo maps "CustomSWFMarker" I actually am having the same documentation issues, but this might help you: latLonController. addMarkerByLatLo n('CustomPOIMark er',dp[i] .lat, dp[i].lon,{index: index,title: dp[i].shortName, description: description, markerColor: Number('0x3366CC' ), strokeColor: Number('0xCEE9FF' )}); Basically, it uses the latLonController to add CustomPOIMarker. Problem is, the response will not give you a reference. I hacked around it using the title of the marker as an index to the data array. Hope that helps, - William --- In [EMAIL PROTECTED] ups.com, "thibs73" <[EMAIL PROTECTED] > wrote: > > > Hi there, > > Anyone know if there is a click event for a CustomSWFMarker in yahoo > Maps? Just like the "onPOIClicked" for POIMarker... why am I not using > POIMarker? Because it seems that I can only add POI Markers by address > only. I need to be able to add it by Lat & Lon. > > To sum up, I want to add custom makers by Lat & Lon, open a unique > image when the user clicks on any of them. \ > > I am having a hard time finding documentation on this. > > Any help would be great, > Thank-you > Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail at http://mrd.mail.yahoo.com/try_beta?.intl=ca
[flexcoders] Re: yahoo maps "CustomSWFMarker"
I actually am having the same documentation issues, but this might help you: latLonController.addMarkerByLatLon('CustomPOIMarker',dp[i].lat, dp[i].lon,{index:index,title:dp[i].shortName, description: description, markerColor: Number('0x3366CC'), strokeColor: Number('0xCEE9FF')}); Basically, it uses the latLonController to add CustomPOIMarker. Problem is, the response will not give you a reference. I hacked around it using the title of the marker as an index to the data array. Hope that helps, - William --- In flexcoders@yahoogroups.com, "thibs73" <[EMAIL PROTECTED]> wrote: > > > Hi there, > > Anyone know if there is a click event for a CustomSWFMarker in yahoo > Maps? Just like the "onPOIClicked" for POIMarker...why am I not using > POIMarker? Because it seems that I can only add POI Markers by address > only. I need to be able to add it by Lat & Lon. > > To sum up, I want to add custom makers by Lat & Lon, open a unique > image when the user clicks on any of them. \ > > I am having a hard time finding documentation on this. > > Any help would be great, > Thank-you >
[flexcoders] Re: Yahoo Maps questions
I am trying to make this work in Flex 2 and looked at Nahuel's code. However, I do not see in his example where he is using wrote: > > I need this to work in Flex 1.5, is there a similar way to get it to > work? Basically I just need to know when the link was clicked or > for that matter the marker was clicked. > > --- In flexcoders@yahoogroups.com, "JesterXL" wrote: > > > > Learn from the master. Nahuel's app won in his category in the > Flex Derby. > > As a judge, I gave him mad props for getting this to work. Here's > how he > > did it: > > > > http://www.asfusion.com/blog/entry/inserting-yahoo-maps-in-a-flex- > 2-application > > > > - Original Message - > > From: "jgraham_us" > > To: > > Sent: Tuesday, July 18, 2006 1:32 AM > > Subject: [flexcoders] Yahoo Maps questions > > > > > > 1) I have a marker CustomPOIMarker, I want to embed a link and > call > > an actionscript function in my flex code. I have tried this with > > and without _parent,parent and it never works. If I put a link to > > an HTML page it works fine. But I need to notify my application > > when the click has occured. Any ideas? or a better way to do > this? > > > > Example. > > > > var markerArgs = {index:"marker 1",description:" > href='asfunction:parent.cpiClicked'>print something", > > title:" > href='asfunction:_parent.cpiClicked'>print something", > > markerColor:0x990099, strokeColor:0x00}; > > . > > . > > . > > function cpiClicked() : Void > > { > > Echo.debug("Marker 1 clicked"); > > } > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > Flexcoders Mailing List > > FAQ: > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > Search Archives: http://www.mail-archive.com/flexcoders% > 40yahoogroups.com > > Yahoo! Groups Links > > > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Yahoo Maps questions
I need this to work in Flex 1.5, is there a similar way to get it to work? Basically I just need to know when the link was clicked or for that matter the marker was clicked. --- In flexcoders@yahoogroups.com, "JesterXL" <[EMAIL PROTECTED]> wrote: > > Learn from the master. Nahuel's app won in his category in the Flex Derby. > As a judge, I gave him mad props for getting this to work. Here's how he > did it: > > http://www.asfusion.com/blog/entry/inserting-yahoo-maps-in-a-flex- 2-application > > - Original Message - > From: "jgraham_us" <[EMAIL PROTECTED]> > To: > Sent: Tuesday, July 18, 2006 1:32 AM > Subject: [flexcoders] Yahoo Maps questions > > > 1) I have a marker CustomPOIMarker, I want to embed a link and call > an actionscript function in my flex code. I have tried this with > and without _parent,parent and it never works. If I put a link to > an HTML page it works fine. But I need to notify my application > when the click has occured. Any ideas? or a better way to do this? > > Example. > > var markerArgs = {index:"marker 1",description:" href='asfunction:parent.cpiClicked'>print something", > title:" href='asfunction:_parent.cpiClicked'>print something", > markerColor:0x990099, strokeColor:0x00}; > . > . > . > function cpiClicked() : Void > { > Echo.debug("Marker 1 clicked"); > } > > > > > > > > > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com > Yahoo! Groups Links > Yahoo! Groups Sponsor ~--> Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM ~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: yahoo maps
Has anyone been using yahoo maps with flex 2.0. And is so are there any examples. Jeremy Doodi, Hari - BLS CTR wrote: I totally agree with you and infact I am planning to do so. But my concern is If I have some code, like assigning value to dirtyFlag, in change event then that code will be executed several times – if I am enter a text of 150 char then that assignment code will be executed 150 time. Which is a over load on system. Don’t you agree with me??? Thanks! Hari -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of JesterXL Sent: Monday, November 28, 2005 4:09 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] TextInput control There is no such event. You'll need to create your own dirtyFlag that gets set to true when the change occurs, and have focusOut inspect if the dirtyFlag is true, and if so, fire your new "changed and focus out" event. - Original Message - From: Doodi, Hari - BLS CTR To: flexcoders@yahoogroups.com Sent: Monday, November 28, 2005 3:54 PM Subject: RE: [flexcoders] TextInput control If I use focus – this event fire irrespective of whether content is modified or not. I don’t want this to happen. I want an event which should fire up only if content changed and tab out. Thanks! Hari -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of JesterXL Sent: Monday, November 28, 2005 3:49 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] TextInput control focusOut - Original Message - From: Doodi, Hari - BLS CTR To: flexcoders@yahoogroups.com Sent: Monday, November 28, 2005 3:42 PM Subject: [flexcoders] TextInput control Hi, Can some one suggest me which event is the best event to handle a situation like - user changes the content of textinput and tabs out of it ? I tried “change” event and found that this event is firing for each change, meaning for every key board press while entering text in it. I don’t want this. What I am looking for is an event which fires only one time when user changes existing content and tabs out. Thanks! Hari No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.13.8/184 - Release Date: 11/27/2005 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Yahoo Maps, Flex 2 option
Type annotation is not a compile-time constant:YahooMap looks like Flex error 1046 --- In flexcoders@yahoogroups.com, "JesterXL" <[EMAIL PROTECTED]> wrote: > > Can you paste the error exactly? > > - Original Message - > From: "yaagcur" <[EMAIL PROTECTED]> > To: > Sent: Saturday, November 05, 2005 11:23 AM > Subject: [flexcoders] Yahoo Maps, Flex 2 option > > > I have the API working fine on 1.5 but although Yahoo > quote "you'll need Macromedia Flex 1.5 or higher" > I get a type annotation error when attempting in the 2 alpha > > I'm guessing the classes need to be AS3 compliant and we > need to wait for Yahoo to provide an update > Or is there anything that can be done in the interim > > > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com > Yahoo! Groups Links > Yahoo! Groups Sponsor ~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/