amMap support forum

You are not logged in.

Announcement

FORUM CLOSED! This forum is closed. We moved to a new place at Zendesk. Update your bookmarks.

Flash amMap: Help


  • Index
  •  » Help
  •  » Links in movies - howto add them and where exactly?

#1 2012-03-19 04:15:14

qemm
Administrator

Links in movies - howto add them and where exactly?

You just need to add "url" attribute to your <movie> items if you want to go to some url when user clicks on them:

Code:

<movies>
<movie file="http://www.aviasimdesigns.co.uk/ammap/Icon/plane.swf" color="#000000" title="Saarlouis-Düren (EDRJ)" lat="49.2" long="6.6" width="15" height="15" fixed_size="true" url="http://aviasimdesigns.co.uk/?page_id=60" >
  <description><![CDATA[<b>Saarlouis-Düren is an airfield located in the Saarland, Germany

<a href="http://www.aviasimdesigns.co.uk/?page_id=60">Rightclick me to access the product page</a></b>]]></description>
</movie>

<movie file="http://www.aviasimdesigns.co.uk/ammap/Icon/plane.swf" color="#000000" title="Leicester Aeroclub Revisited (EGBG)" lat="52.3" long="-1.2" width="15" height="15" fixed_size="true" url="http://aviasimdesigns.co.uk/?page_id=150">
  <description><![CDATA[<b>Leicester Aeroclub is an airfield in Leicestershire, United Kingdom

<a href="http://aviasimdesigns.co.uk/?page_id=150">Rightclick me to access the product page</a></b>]]></description>

</movie>
</movies>

Make sure the url is a valid url. It should be either relative or an absolute. Absolute urls (with domain name) should have http:// prefix.

Offline

 

#2 2012-03-23 04:29:11

qemm
Administrator

Re: Links in movies - howto add them and where exactly?

Are you trying this on a web server? Due to Flash security restrictions links don't work if you load it locally.

Offline

 

#3 2012-03-25 14:13:08

qemm
Administrator

Re: Links in movies - howto add them and where exactly?

OK, so there's another Flash security restriction. Your main site url is aviasimdesigns.co.uk (without www.), but you load plane.swf from a domain with www. Try loading it from the same domain.

Offline

 

#4 2012-03-27 01:37:11

qemm
Administrator

Re: Links in movies - howto add them and where exactly?

Do you absolutely need to use domains in your urls? Try using paths like these instead:

/ammap/Maps/world3.swf
/ammap/Icon/plane.swf

Also make sure you don't have "path" parameter set in your map instantiation code (so.addParam("path".....)

Offline

 

#5 2012-03-27 12:00:48

trichins
Moderator

Re: Links in movies - howto add them and where exactly?

OK, at least it's loading AMMAP in your WordPress page and it is reading the ammap_data.xml file because it's showing the markers and the balloon text. The only thing it's NOT loading is the world3.swf map file. Try making the following line in the ammap_data.xml file from:

Code:

<map map_file="/ammap/Maps/world3.swf" tl_long="-168.49" tl_lat="83.63" color="#FFFF00" br_long="190.3" br_lat="-55.58" zoom_x="0%" zoom_y="0%" zoom="100%">

to:

Code:

 <map map_file="http://www.aviasimdesigns.co.uk/ammap/Maps/world3.swf" tl_long="-168.49" tl_lat="83.63" color="#FFFF00" br_long="190.3" br_lat="-55.58" zoom_x="0%" zoom_y="0%" zoom="100%">

Offline

 

#6 2012-03-27 16:00:55

trichins
Moderator

Re: Links in movies - howto add them and where exactly?

Great! I'll look into the link issue you still have.

Offline

 
  • Index
  •  » Help
  •  » Links in movies - howto add them and where exactly?

© amMap & amCharts | Forum engine: PunBB