WOW.

Thanks so much Daniel.
That size code was the final bit I needed.

I am now set for the moment and the rest I can pick up as I go along.


Many thanks.



On Jan 7, 7:24 pm, Daniel <[email protected]> wrote:
> Modify your InfoWindowOptions. I added it to what I believe your code looks
> like.
>
> map.openInfoWindow(event.latLng, new InfoWindowOptions({titleHTML:
> ""+myTitle, contentHTML: ""+myContent, height:200, width:300}));
>
> Danielwww.swfsemantics.com
>
>
>
> On Thu, Jan 7, 2010 at 9:53 AM, AS3novice <[email protected]> wrote:
> > All working.
>
> > Am now trying to change the size of the InfoWindows, but thats
> > probably another thread if I cannot work it out.
>
> > The security error was driving me mad because all the files were in a
> > trusted area and the path to the image was relative.
>
> > Online all works OK
>
> > On Jan 7, 4:57 pm, Daniel <[email protected]> wrote:
> > > 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.comandreadabout 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
>
> ...
>
> 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].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api-for-flash?hl=en.


Reply via email to