So you got it working? You will get a security error if you try to load out side of the trusted area, the sandbox, or if you try to access the local file system using absolute paths.
On Thu, Jan 7, 2010 at 4:05 AM, AS3novice <[email protected]> wrote: > Daniel thanks for the link. > > I probably came across not knowing as much as I do because I had so > much trouble testing your... > <content_tip><![CDATA[sculpt the air. <img src="YOUR IMAGE PATH" > alt="" height="" width="" align="right" />]]></content_tip> > I kept getting the SecurityError: Error #2148. Making my folder a > trusted location in the Global Security Settings made no difference. > Anyway I ended up testing it all via my server online and it all works > great so thanks. > > Anyone else who tries the above tutorial in my first post and wants to > add an image just add the .. > <content_tip><![CDATA[sculpt the air. <img src="YOUR IMAGE PATH" > alt="" height="" width="" align="right" />]]></content_tip> > > and you should be good to go. > > > > On Jan 7, 6:06 am, Daniel <[email protected]> wrote: > > Check outwww.w3schools.comand read about html images so you get an > > idea of how that markup works. > > As far as the security error, try loading the files from the same > > directory/folder. For example, if your image is in the same folder as > > your swf you would simply but "yourImage.png" for the path. You would > > not use the full path to the file on your local computer because that > > wouuld not be the same as your web site server. Try a test image that > > way. > > For reference you can Google flash as3 absolute vs relative paths. If > > you want to read about the security error read up on flash security > > sandbox. I would give you some links but I am on my mobile phone. Hope > > that helps. > > > > > > > > On Tue, Jan 5, 2010 at 3:53 AM, AS3novice <[email protected]> > wrote: > > > Daniel when I add this code I get a security error > > > > > <location> > > > <lat>40.71133720811548</lat> > > > <lon>-4.014151096343994</lon> > > > <name_tip>The Bubbel</name_tip> > > > <title_tip><![CDATA[Fork]]></title_tip> > > > <content_tip><![CDATA[sculpt the air. <img src="C:\Users\sculpture > > > \Desktop\AS3-TEST\Source\paris.jpg" alt="" > > > height="" width="" align="right" />]]></content_tip> > > > </location> > > > > > </map_xml> > > > > > Is the path I have written for my image correct? > > > > > This is the error... and allowing this folder to be trusted does not > > > make any difference in the Global Security Settings panel > > > > > *** Security Sandbox Violation *** > > > Connection to > file:///C:\Users\sculpture\Desktop\AS3-TEST\Source\paris.jpg > > > halted - not permitted from > > >http://maps.googleapis.com/mapfiles/lib/map_1_9.swf > > > -- Remote SWFs may not access local files. > > > SecurityError: Error #2148: SWF file > > >http://maps.googleapis.com/mapfiles/lib/map_1_9.swf > > > cannot access local resource > > > file:///C:\Users\sculpture\Desktop\AS3-TEST\Source\paris.jpg. > > > Only local-with-filesystem and trusted local SWF files may access > > > local resources. > > > at flash.text::TextField/set htmlText() > > > at com.google.maps.window::InfoWindow/createContent() > > > at com.google.maps.window::InfoWindow/createDefaultContent() > > > at com.google.maps.window::InfoWindow/redraw() > > > at com.google.maps.window::InfoWindow/onAddedToPane() > > > at com.google.maps.overlays::Overlay/set pane() > > > at com.google.maps.overlays::Pane/addOverlay() > > > at com.google.maps.core::MapImpl/addOverlay() > > > at com.google.maps.core::MapImpl/openInfoWindow() > > > at com.google.maps.wrappers::IMapWrapper/openInfoWindow() > > > at MethodInfo-1619() > > > at MethodInfo-654() > > > at flash.events::EventDispatcher/dispatchEventFunction() > > > at flash.events::EventDispatcher/dispatchEvent() > > > at com.google.maps.overlays::Marker/onOverlayClick() > > > > > On Jan 5, 12:50 am, Daniel <[email protected]> wrote: > > > > Well put! Kind of a good thing I caught this post. I had no idea that > the > > > > customInfoWindow option in the flash Google map api was so powerful. > > > > > > AS3novice if you want to throw an image in your infoWindow and use > html > > > for > > > > now and work on the customInfoWindow later once you get a grip on the > AS3 > > > > language you would add this on you existing XML > > > > > > <?xml version="1.0" encoding="utf-8"?> > > > > <map_xml> > > > > > > <location> > > > > <lat>40.71081672515426</lat> > > > > <lon>-4.01276707649231</lon> > > > > <name_tip>Majanicho</name_tip> > > > > <title_tip><![CDATA[Majanicho] > > > > ]></title_tip> > > > > <content_tip><![CDATA[sculpt the air. <img src="YOUR IMAGE PATH" > alt="" > > > > height="" width="" align="right" />]]></content_tip> > > > > </location> > > > > > > </map_xml> > > > > > > That would be the easiest way. If it doesn't work email me your code > and > > > I > > > > will get it running for you. If you need help with the HTML consult > W3 > > > > Schoolshttp://www.w3schools.com/html/html_images.asp > > > > > > When I get some time to add the customInfoWindow to one of my > projects I > > > > will help you with the customInfoWindow unless someone here can point > you > > > to > > > > a good tutorial. > > > > > > On Mon, Jan 4, 2010 at 9:43 AM, kmac <[email protected]> > > > wrote: > > > > > > I understand that there are only limited capabilities > > > > > > > "contentHTML" is valid option, and might be right for your > > > > > circumstances. > > > > > > > But its indiscriminate use in Flash can produce something that > > > > > resembles putting lipstick on a pig. > > > > > > > The API gives you three options to create content within an > > > > > InfoWindow: "InfoWindowOptions.content" for simple textual content > > > > > laid out in a paragraph, "InfoWindowOptions.contentHTML" for a > > > > > slightly more expressive HTML-based approach to layout (albeit with > a > > > > > very limited selection of HTML available to you), and > > > > > "InfoWindowOptions.customContent" for Flash developers. > > > > > > > It's a combination of the developer's skills and the requirements > that > > > > > dictate the option used. > > > > > > > For a developer proficient in ActionScript 3, "customContent" can > > > > > satisfy all requirements, but with greater development effort. > > > > > > > The jump from "contentHTML" to "customContent", both in > implementation > > > > > effort and concepts, needs to be considered. So, if you're less of > a > > > > > software developer and more of an animator / artist (and speak of > > > > > things like "timelines" and "movie clips") you might want to try > > > > > "contentHTML" first to see if this can meet your needs. > > > > > > > On Jan 4, 12:22 pm, Daniel <[email protected]> wrote: > > > > > > What are the problems with using the img tag to embed and image > > > inside > > > > > the > > > > > > htmlText string, that is inside the infoWindow's content area. If > > > there > > > > > is > > > > > > already a text field that is being used and you add an image to > that > > > text > > > > > > field are you saying that flash will handle the text field > > > differently. I > > > > > am > > > > > > confused if there is a performance issue or a formatting issue. I > > > > > understand > > > > > > that there are only limited capabilities when you add and image > to > > > > > htmlText > > > > > > inside the infoWindow. > > > > > > > > Thanks in advance. > > > > > > > > On Mon, Jan 4, 2010 at 1:19 AM, AS3novice < > [email protected]> > > > > > wrote: > > > > > > > So far I have just followed this tutorial > > > > >http://active.tutsplus.com/tutorials/xml/implement-a-map-using-the-go. > > > > > .. > > > > > > > > > In the timeline I have.... > > > > > > > One Layer has an Action script for the map with zoom controls > > > > > > > One layer has the Google Map > > > > > > > In the same folder as the Fla file is an XML file for Markers, > > > > > > > ToolTips, InfoWindow > > > > > > > > > I can start again if there is a better way, I just want to be > able > > > to > > > > > > > add pictures to various Lat/Lon point on a google map within my > own > > > > > > > website. > > > > > > > > > Thanks > > > > > > > > > On Jan 4, 9:55 am, Daniel <[email protected]> wrote: > > > > > > > > Are you programming you map using classes or are you adding > the > > > > > action > > > > > > > > script to your timeline? > > > > > > > > > > On Sun, Jan 3, 2010 at 10:43 PM, AS3novice < > > > [email protected]> > > > > > > > wrote: > > > > > > > > > Daniel, Jonathan Wagner,www.landed.at > > > > > > > > > Thanks for all the suggestions. Much appreciated. > > > > > > > > > > > Daniel > > > > > > > > > I am not sure if you sent me a PM, as I received an email > but > > > there > > > > > > > > > was nothing included. Anyway if you did thanks, but sadly > > > nothing > > > > > > > > > attached. > > > > > > > > > > > Www.landed.at > > > > > > > > > I am a bit confused. Are you saying the HTML suggestion by > > > Daniel > > > > > in > > > > > > > > > his post, or the way I have made the Markers, ToolTips and > Info > > > > > > > > > Windows using this tutorial, > > > > > > > > http://active.tutsplus.com/tutorials/xml/implement-a-map-using-the-go. > > > > > > > .. > > > > > > > > > is not the way to go. > > > > > > > > > I do not care how I do it, as long as it is currently the > best > > > way. > > > > > > > > > I followed your suggestion and have searched long and hard > > > > > > > > > customInfoWindow. The problem is … > > > > > > > > > > > Most posts are trying to find the same or similar answers > with > > > no > > > > > > > > > conclusion > > > > > > > > > > > They have a demo but inevitably they use TEXT as an example > not > > > an > > > > > > > > > IMAGE. An example being... > > > > > > > > http://gmaps-samples-flash.googlecode.com/svn/trunk/demos/CustomInfoW. > > > > > > > .. > > > > > > > > > > > Jonathan Wagner > > > > > > > > > Thanks for the link. > > > > > > > > > I have found one way to add an image but it uses an URL > link > > > and I > > > > > > > > > would prefer my image files to be local. > > > > > > > > http://gmaps-samples-flash.googlecode.com/svn/trunk/examples/GroundOv. > > > > > > > .. > > > > > > > > > > > As I have said I am happy to avoid HTML, but I need to find > out > > > > > how. > > > > > > > > > Posting code does not really help someone with my AS3 > > > knowledge > > > > > > > > > without a tutorial or a detailed explanation on how to use > the > > > code > > > > > > > > > with in Flash. > > > > > > > > > > > There seems to be a lot of Demo's, File downloads and > snippets > > > of > > > > > code > > > > > > > > > out there, but very few tutorials like .. > > > > > > > > http://active.tutsplus.com/tutorials/xml/implement-a-map-using-the-go. > > > > > > > .. > > > > > > > > > > > which was easy to follow if only it had included images. > > > > > > > > > > > -- > > > > > > > > > > > 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]<google-maps-api-for-flash%[email protected]> > <google-maps-api-for-flash%[email protected]<flash%[email protected]> > > > > > <google-maps-api-for-flash%[email protected]<flash%[email protected]> > <flash%252bunsubs[email protected]> > > > ><google-maps-api-for- > > > > > flash%[email protected]<flash%[email protected]> > <flash%[email protected]<flash%[email protected]> > > > > > <flash%[email protected]<flash%[email protected]> > <flash%25252bunsubscr...@googlegroups.com> > > > > > > > > ... > > > > read more »- Hide quoted text - > > > > - Show quoted text - > > -- > 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]<google-maps-api-for-flash%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-api-for-flash?hl=en. > > > >--
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.
