K.Murakami 様
アドバイスありがとうございます。いろいろ勉強してみたいと思います。
ちなみに↓
http://www.walkerz.info/test/flash_01.html
こちらが問題の今製作中のコンテンツ(テスト中)です。
数字つきマーカーをクリックして開くウィンドウの太字の部分がリンクになっています。
で、スクリプトは、以下の感じです。
-----------------------------------------------------------------------------------------------
import com.google.maps.*;
import com.google.maps.controls.*;
import com.google.maps.overlays.*;
var map:Map = new Map();
map.key = "*****";
map.language = "ja";
map.setSize(new Point(700, 560));
map.addEventListener(MapEvent.MAP_READY, onMapReady);
function onMapReady(event:Event):void {
map.setCenter(new LatLng(39.748982,-105.009685), 15,
MapType.SATELLITE_MAP_TYPE);
//コントロールを追加
map.addControl(new ZoomControl());
map.addControl(new PositionControl());
map.addControl(new MapTypeControl());
map.addControl(new ScaleControl());
(略)
//マーカー03
var marker03 : Marker = new Marker(
new LatLng(39.753179,-105.000147),
new MarkerOptions({
label: "3",
tooltip: "ユニオン・ステーション"
})
);
map.addOverlay(marker03);//マーカー設置
//情報ウィンドウ03
var option03:InfoWindowOptions = new InfoWindowOptions({
contentHTML: "ユニオン・ステーション\n<a style=\"color:#0000FF\" href=\"http://
www.denverunionstation.org/\"><b>公式HP</b></a>",
customOffset: new Point(0, 10),
hasShadow: false
});
marker03.addEventListener(MapMouseEvent.CLICK, function(e:Event):void
{;
marker03.openInfoWindow(option03);
});
//マーカー04
var marker04 : Marker = new Marker(
new LatLng(39.753723,-105.001595),
new MarkerOptions({
label: "4",
tooltip: "Union Station LRT Nb"
})
);
map.addOverlay(marker04);//マーカー設置
//情報ウィンドウ04
var option04:InfoWindowOptions = new InfoWindowOptions({
contentHTML: "ライトレール乗り場\nUnion StationからCラインに乗って、Invesco Field at
Mile High駅で下車。\n<a style=\"text-decoration:underline\" href=\"http://
www.rtd-denver.com/\"><b>RTDのホームページ</b></a>",
customOffset: new Point(0, 10),
hasShadow: false
});
marker04.addEventListener(MapMouseEvent.CLICK, function(e:Event):void
{;
marker04.openInfoWindow(option04);
});
(略)
//オリジナルマーカー01を作成する
var markerIcon01:MovieClip = new myIcon01();
var marker01 : Marker = new Marker(
new LatLng(39.743925, -105.020050),
new MarkerOptions({
icon : markerIcon01,
iconAlignment: MarkerOptions.ALIGN_HORIZONTAL_CENTER |
MarkerOptions.ALIGN_BOTTOM
})
);
map.addOverlay(marker01);
}
this.addChild(map);
-----------------------------------------------------------------------------------------------
マーカー03の<a>要素に style=\"color:#0000FF\" href=\"http://
www.denverunionstation.org/\"
で青色を
マーカー04の<a>要素に style=\"text-decoration:underline\" href=\"http://
www.rtd-denver.com/\"
でアンダーラインを設定しているのですがやはり反映されていません。
やはり、この書き方ではダメなのでしょうか?
( \ は " のためのエスケープ)
引き続き、アドバイスやダメ出しなどありましたら、皆さんよろしくお願いします。