Frame 1
_global.start = true;
Stage.showMenu = false;
Frame 2
function Lbar() {
if (getBytesLoaded() >= getBytesTotal()) {
if (_global.start) {
_global.start = false;
play();
clearInterval(LoaderInt);
}
}
Fill_MC._xscale = (getBytesLoaded() / getBytesTotal()) * 100;
}
stop();
loaderInt = setInterval(Lbar, 10);
Frame 3
stop();
Frame 4
stop();
Frame 5
stop();
_root.google.onSetFocus = function (oldFocus) {
_root.Sengine.gotoAndPlay(1);
_root.go.onRelease = function () {
getURL ("http://www.google.com/search?hl=en&q=" + _root.searchbox1, _blank);
};
};
_root.dogpile.onSetFocus = function (oldFocus) {
_root.Sengine.gotoAndPlay(2);
_root.go.onRelease = function () {
getURL (("http://www.dogpile.com/dogpile_rss/ws/results/Web/" + _root.searchbox1) + "/1/417/TopNavigation/Relevance/iq=true/zoom=off/_iceUrlFlag=7?_IceUrl=true", _blank);
};
};
_root.yahoo.onSetFocus = function (oldFocus) {
_root.Sengine.gotoAndPlay(3);
_root.go.onRelease = function () {
getURL ("http://search.yahoo.com/search?p=" + _root.searchbox1, _blank);
};
};
_root.ask.onSetFocus = function (oldFocus) {
_root.Sengine.gotoAndPlay(4);
_root.go.onRelease = function () {
getURL ("http://www.ask.com/web?q=" + _root.searchbox1, _blank);
};
};
_root.windowslive.onSetFocus = function (oldFocus) {
_root.Sengine.gotoAndPlay(5);
_root.go.onRelease = function () {
getURL ("http://search.live.com/results.aspx?q=" + _root.searchbox1, _blank);
};
};
_root.altavista.onSetFocus = function (oldFocus) {
_root.Sengine.gotoAndPlay(6);
_root.go.onRelease = function () {
getURL ("http://www.altavista.com/web/results?itag=ody&q=" + _root.searchbox1, _blank);
};
};
_root.googleimages.onSetFocus = function (oldFocus) {
_root.Simage.gotoAndPlay(1);
_root.go2.onRelease = function () {
getURL ("http://images.google.com/images?hl=en&q=" + _root.searchbox2, _blank);
};
};
_root.yahooimages.onSetFocus = function (oldFocus) {
_root.Simage.gotoAndPlay(2);
_root.go2.onRelease = function () {
getURL ("http://images.search.yahoo.com/search/images?p=" + _root.searchbox2, _blank);
};
};
_root.askimages.onSetFocus = function (oldFocus) {
_root.Simage.gotoAndPlay(3);
_root.go2.onRelease = function () {
getURL (("http://ask.com/pictures?q=" + _root.searchbox2) + "&search=&dm=all&qsrc=0&o=312&l=dir&siteid=", _blank);
};
};
_root.ngap.onSetFocus = function (oldFocus) {
_root.Saudio.gotoAndPlay(1);
_root.go3.onRelease = function () {
getURL ("http://www.newgrounds.com/audio/search/title/" + _root.searchbox3, _blank);
};
};
_root.mp3.onSetFocus = function (oldFocus) {
_root.Saudio.gotoAndPlay(2);
_root.go3.onRelease = function () {
getURL (("http://www.mp3.com/search.php?query=" + _root.searchbox3) + "&action=Search&stype=artist&tag=search%3Bbutton&om_act=convert&om_clk=fdsearch", _blank);
};
};
_root.soundsnap.onSetFocus = function (oldFocus) {
_root.Saudio.gotoAndPlay(3);
_root.go3.onRelease = function () {
getURL (("http://www.soundsnap.com/search/audio/" + _root.searchbox3) + "/score", _blank);
};
};
Instance of Symbol 608 MovieClip [RadioButton] "google" in Frame 5
//component parameters
onClipEvent (construct) {
data = "";
groupName = "radioGroup";
label = "Google";
labelPlacement = "right";
selected = false;
}
Instance of Symbol 608 MovieClip [RadioButton] "dogpile" in Frame 5
//component parameters
onClipEvent (construct) {
data = "";
groupName = "radioGroup";
label = "DogPile";
labelPlacement = "right";
selected = false;
}
Instance of Symbol 608 MovieClip [RadioButton] "yahoo" in Frame 5
//component parameters
onClipEvent (construct) {
data = "";
groupName = "radioGroup";
label = "Yahoo";
labelPlacement = "right";
selected = false;
}
Instance of Symbol 608 MovieClip [RadioButton] "ask" in Frame 5
//component parameters
onClipEvent (construct) {
data = "";
groupName = "radioGroup";
label = "Ask";
labelPlacement = "right";
selected = false;
}
Instance of Symbol 608 MovieClip [RadioButton] "windowslive" in Frame 5
//component parameters
onClipEvent (construct) {
data = "";
groupName = "radioGroup";
label = "Windows Live";
labelPlacement = "right";
selected = false;
}
Instance of Symbol 608 MovieClip [RadioButton] "altavista" in Frame 5
//component parameters
onClipEvent (construct) {
data = "";
groupName = "radioGroup";
label = "AltaVista";
labelPlacement = "right";
selected = false;
}
Instance of Symbol 608 MovieClip [RadioButton] "googleimages" in Frame 5
//component parameters
onClipEvent (construct) {
data = "";
groupName = "radioGroup2";
label = "Google Images";
labelPlacement = "right";
selected = false;
}
Instance of Symbol 608 MovieClip [RadioButton] "yahooimages" in Frame 5
//component parameters
onClipEvent (construct) {
data = "";
groupName = "radioGroup2";
label = "Yahoo Images";
labelPlacement = "right";
selected = false;
}
Instance of Symbol 608 MovieClip [RadioButton] "askimages" in Frame 5
//component parameters
onClipEvent (construct) {
data = "";
groupName = "radioGroup2";
label = "Ask Images";
labelPlacement = "right";
selected = false;
}
Instance of Symbol 608 MovieClip [RadioButton] "ngap" in Frame 5
//component parameters
onClipEvent (construct) {
data = "";
groupName = "radioGroup3";
label = "NGAP";
labelPlacement = "right";
selected = false;
}
Instance of Symbol 608 MovieClip [RadioButton] "mp3" in Frame 5
//component parameters
onClipEvent (construct) {
data = "";
groupName = "radioGroup3";
label = "MP3.com";
labelPlacement = "right";
selected = false;
}
Instance of Symbol 608 MovieClip [RadioButton] "soundsnap" in Frame 5
//component parameters
onClipEvent (construct) {
data = "";
groupName = "radioGroup3";
label = "SoundSnap";
labelPlacement = "right";
selected = false;
}
Frame 6
stop();
_root.print.onRelease = function () {
var _local1 = new PrintJob();
_local1.start();
_local1.paperWidth = 550;
_local1.paperHeight = 430;
};
Instance of Symbol 591 MovieClip [UIScrollBar] in Frame 6
//component parameters
onClipEvent (construct) {
_targetInstanceName = "InstanceName_0";
horizontal = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Frame 7
function AddDigit(digit) {
if (clear) {
clear = false;
decimal = false;
display = "0";
}
if ((display == "0") and (digit != ".")) {
display = digit;
} else {
display = display + digit;
}
}
function DoOperator(newOper) {
if (operator == "+") {
display = Number(operand1) + Number(display);
}
if (operator == "-") {
display = operand1 - display;
}
if (operator == "*") {
display = operand1 * display;
}
if (operator == "/") {
display = operand1 / display;
}
operator = "=";
clear = true;
decimal = false;
if (newOper != null) {
operator = newOper;
operand1 = display;
}
}
stop();
memory = 0;
sp = "0";
display = "0";
Frame 8
stop();
Instance of Symbol 884 MovieClip in Frame 8
on (release) {
_root.line.unloadMovie();
_root.eraser.unloadMovie();
}
Instance of Symbol 892 MovieClip "pbrush" in Frame 8
onClipEvent (enterFrame) {
this.swapDepths(1E17);
}
Instance of Symbol 899 MovieClip "eraser" in Frame 8
onClipEvent (enterFrame) {
this.swapDepths(99999999999999);
}
Frame 9
function moveBall() {
ball_mc._x = ball_mc._x + speed;
if (ball_mc._x > ((videoX + 30) + videoW)) {
ball_mc._x = videoX - 30;
ball_mc._y = (videoY + random(videoH - 60)) + 30;
}
}
function hitDetect() {
var _local4 = (ball_mc._x - videoX) / sizeDif;
var _local3 = (ball_mc._y - videoY) / sizeDif;
now.draw(video_vobj);
var _local1 = (now.getPixel(_local4, _local3) >> 16) & 255;
var _local2 = (before.getPixel(_local4, _local3) >> 16) & 255;
if ((_local1 > (_local2 + 30)) || (_local1 < (_local2 - 30))) {
trace("hit");
if (ball_mc._currentframe == 1) {
ball_mc.gotoAndPlay(2);
}
}
before.draw(video_vobj);
}
stop();
var root = this;
var video_vobj;
var cam = Camera.get();
video_vobj.attachVideo(cam);
cam.onActivity = function (isActive) {
};
var screenS = (new flash.display.BitmapData(cam.width, cam.height));
var videoX = video_vobj._x;
var videoY = video_vobj._y;
var videoW = video_vobj._width;
var videoH = video_vobj._height;
snap.onRelease = function () {
screenS.draw(video_vobj);
var _local1 = root.createEmptyMovieClip("holder", 1);
_local1.attachBitmap(screenS, 1);
_local1._x = videoX;
_local1._y = videoY;
_local1._width = videoW;
_local1._height = videoH;
snap.play();
};
release_btn.onRelease = function () {
root.holder.removeMovieClip();
};
var speed = 2;
var sizeDif = (videoW / cam.width);
var now = (new flash.display.BitmapData(cam.width, cam.height));
var before = (new flash.display.BitmapData(cam.width, cam.height));
var intervalID = setInterval(hitDetect, 20);
_root.print3.onRelease = function () {
var _local1 = new PrintJob();
_local1.start();
_local1.paperWidth = 550;
_local1.paperHeight = 430;
};
Instance of Symbol 914 MovieClip "snap" in Frame 9
onClipEvent (enterFrame) {
this.swapDepths(99999);
}
Frame 10
stop();
Frame 11
stop();
Frame 12
stop();
Instance of Symbol 810 MovieClip in Frame 12
on (press) {
_root.gotoAndPlay(11);
}
Frame 13
stop();
Instance of Symbol 945 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
this._y = this._y - 5;
}
if (Key.isDown(40)) {
this._y = this._y + 5;
}
if (Key.isDown(37)) {
this._x = this._x - 5;
}
if (Key.isDown(39)) {
this._x = this._x + 5;
}
}
Frame 14
stop();
Frame 15
stop();
Frame 16
stop();
Instance of Symbol 409 MovieClip [Button] in Frame 16
//component parameters
onClipEvent (construct) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 589 MovieClip [CheckBox] in Frame 16
//component parameters
onClipEvent (construct) {
label = "CheckBox";
labelPlacement = "right";
selected = false;
}
Instance of Symbol 566 MovieClip [ComboBox] in Frame 16
//component parameters
onClipEvent (construct) {
data = [];
data[0] = "ComboBox";
editable = false;
labels = [];
labels[0] = "ComboBox";
rowCount = 5;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 545 MovieClip [NumericStepper] in Frame 16
//component parameters
onClipEvent (construct) {
maximum = 10;
minimum = 0;
stepSize = 1;
value = 0;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 527 MovieClip [ProgressBar] in Frame 16
//component parameters
onClipEvent (construct) {
conversion = 1;
direction = "right";
label = "LOADING %3%% ";
labelPlacement = "bottom";
mode = "event";
source = "";
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 608 MovieClip [RadioButton] in Frame 16
//component parameters
onClipEvent (construct) {
data = "";
groupName = "radioGroup";
label = "Radio Button";
labelPlacement = "right";
selected = false;
}
Instance of Symbol 499 MovieClip [TextInput] in Frame 16
//component parameters
onClipEvent (construct) {
editable = true;
password = false;
text = "textInput";
maxChars = null;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 488 MovieClip [Window] in Frame 16
//component parameters
onClipEvent (construct) {
closeButton = false;
contentPath = "";
title = "Window";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
skinCloseDisabled = "CloseButtonDisabled";
skinCloseDown = "CloseButtonDown";
skinCloseOver = "CloseButtonOver";
skinCloseUp = "CloseButtonUp";
skinTitleBackground = "TitleBackground";
titleStyleDeclaration = "";
}
Frame 17
stop();
Frame 18
stop();
_root.print2.onRelease = function () {
var _local1 = new PrintJob();
_local1.start();
_local1.paperWidth = 550;
_local1.paperHeight = 430;
};
Instance of Symbol 591 MovieClip [UIScrollBar] in Frame 18
//component parameters
onClipEvent (construct) {
_targetInstanceName = "InstanceName_0";
horizontal = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 591 MovieClip [UIScrollBar] in Frame 18
//component parameters
onClipEvent (construct) {
_targetInstanceName = "InstanceName_1";
horizontal = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 591 MovieClip [UIScrollBar] in Frame 18
//component parameters
onClipEvent (construct) {
_targetInstanceName = "InstanceName_2";
horizontal = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 591 MovieClip [UIScrollBar] in Frame 18
//component parameters
onClipEvent (construct) {
_targetInstanceName = "InstanceName_3";
horizontal = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 591 MovieClip [UIScrollBar] in Frame 18
//component parameters
onClipEvent (construct) {
_targetInstanceName = "InstanceName_4";
horizontal = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 591 MovieClip [UIScrollBar] in Frame 18
//component parameters
onClipEvent (construct) {
_targetInstanceName = "InstanceName_5";
horizontal = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Frame 19
stop();
Instance of Symbol 591 MovieClip [UIScrollBar] in Frame 19
//component parameters
onClipEvent (construct) {
_targetInstanceName = "InstanceName_6";
horizontal = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Frame 20
function onInitMap(event) {
myMap.addWidget(navWidget);
myMap.addWidget(satControl);
myMap.addTool(panTool, true);
}
stop();
myMap.addEventListener(com.yahoo.maps.api.flash.YahooMap.EVENT_INITIALIZE, onInitMap);
var navWidget = (new com.yahoo.maps.widgets.NavigatorWidget("open"));
var satControl = (new com.yahoo.maps.widgets.SatelliteControlWidget(com.yahoo.maps.widgets.SatelliteControlWidget.HORIZONTAL));
var panTool = (new com.yahoo.maps.tools.PanTool());
var listener = new Object();
_root.submit_btn.onRelease = function () {
myMap.setCenterByAddress(_root.address_txt.text, 0);
};
Instance of Symbol 994 MovieClip [BufferingBar] in Frame 20
//component parameters
onClipEvent (construct) {
_visible = true;
}
Instance of Symbol 120 MovieClip [com.yahoo.maps.api.flash.YahooMap] "myMap" in Frame 20
//component parameters
onClipEvent (construct) {
addressStr = "";
appidStr = "";
language = "en-GB";
latitudeStr = "";
longitudeStr = "";
mapViewType = "hybrid";
zoomLevelStr = "5";
}
Instance of Symbol 499 MovieClip [TextInput] "address_txt" in Frame 20
//component parameters
onClipEvent (construct) {
editable = true;
password = false;
text = "";
maxChars = null;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 409 MovieClip [Button] "submit_btn" in Frame 20
//component parameters
onClipEvent (construct) {
icon = "";
label = "Search";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 810 MovieClip in Frame 20
on (press) {
_root.gotoAndPlay(22);
}
Frame 21
stop();
Instance of Symbol 82 MovieClip [GMap] in Frame 21
//component parameters
onClipEvent (construct) {
centerCross = false;
centerCrossColor = 0;
animatePan = true;
animateZoom = true;
controlByKeyboard = true;
controlByMouse = true;
controlByMouseWheel = true;
doubleClickMode = "zoom";
panSpeed = 3;
zoomAtPointer = false;
enabled = true;
visible = true;
latitude = 0;
longitude = 0;
mapType = "hybrid";
zoom = 1;
minHeight = 0;
minWidth = 0;
}
Frame 22
stop();
Frame 23
stop();
Frame 24
stop();
Instance of Symbol 810 MovieClip in Frame 24
on (press) {
_root.gotoAndPlay(11);
}
Symbol 5 MovieClip [Tooltip] Frame 1
#initclip 219
Object.registerClass("Tooltip", Tooltip);
#endinitclip
Symbol 15 MovieClip [Defaults] Frame 1
#initclip 220
Object.registerClass("Defaults", mx.skins.halo.Defaults);
#endinitclip
Symbol 16 MovieClip [UIObjectExtensions] Frame 1
#initclip 221
Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions);
#endinitclip
Symbol 17 MovieClip [UIObject] Frame 1
#initclip 222
Object.registerClass("UIObject", mx.core.UIObject);
#endinitclip
stop();
Symbol 20 Button
on (keyPress "<Tab>") {
this.tabHandler();
}
Symbol 21 MovieClip Frame 1
#initclip 223
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
#endinitclip
Symbol 22 MovieClip [FocusRect] Frame 1
#initclip 224
Object.registerClass("FocusRect", mx.skins.halo.FocusRect);
#endinitclip
Symbol 23 MovieClip [FocusManager] Frame 1
#initclip 225
Object.registerClass("FocusManager", mx.managers.FocusManager);
#endinitclip
stop();
Symbol 24 MovieClip [UIComponentExtensions] Frame 1
#initclip 226
Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions);
#endinitclip
Symbol 25 MovieClip [UIComponent] Frame 1
#initclip 227
Object.registerClass("UIComponent", mx.core.UIComponent);
#endinitclip
stop();
Symbol 26 MovieClip [Border] Frame 1
#initclip 228
Object.registerClass("Border", mx.skins.Border);
#endinitclip
stop();
Symbol 27 MovieClip [RectBorder] Frame 1
#initclip 229
mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder));
Object.registerClass("RectBorder", mx.skins.halo.RectBorder);
#endinitclip
stop();
Symbol 28 MovieClip [View] Frame 1
#initclip 230
Object.registerClass("View", mx.core.View);
#endinitclip
stop();
Symbol 29 MovieClip [Loader] Frame 1
#initclip 231
Object.registerClass("Loader", mx.controls.Loader);
#endinitclip
stop();
Symbol 82 MovieClip [GMap] Frame 1
#initclip 232
Object.registerClass("GMap", com.google.GMap.core.GMap);
#endinitclip
stop();
Symbol 120 MovieClip [com.yahoo.maps.api.flash.YahooMap] Frame 0
#initclip
Object.registerClass("com.yahoo.maps.api.flash.YahooMap", com.yahoo.maps.api.flash.YahooMap);
#endinitclip
Symbol 128 MovieClip [com.yahoo.maps.BeaconCaller] Frame 0
#initclip
Object.registerClass("com.yahoo.maps.BeaconCaller", com.yahoo.maps.BeaconCaller);
#endinitclip
Symbol 207 MovieClip [com.yahoo.maps.ExtensibleMapBase] Frame 0
#initclip
Object.registerClass("com.yahoo.maps.ExtensibleMapBase", com.yahoo.maps.ExtensibleMapBase);
#endinitclip
Symbol 213 MovieClip [com.yahoo.maps.Marker] Frame 0
#initclip
Object.registerClass("com.yahoo.maps.Marker", com.yahoo.maps.Marker);
#endinitclip
Symbol 225 MovieClip [com.yahoo.maps.ExtensibleYMap] Frame 0
#initclip
Object.registerClass("com.yahoo.maps.ExtensibleYMap", com.yahoo.maps.ExtensibleYMap);
#endinitclip
Symbol 227 MovieClip [com.yahoo.maps.markers.CustomImageMarker] Frame 0
#initclip
Object.registerClass("com.yahoo.maps.markers.CustomImageMarker", com.yahoo.maps.markers.CustomImageMarker);
#endinitclip
Symbol 230 MovieClip [com.yahoo.maps.markers.CustomPOIMarker] Frame 0
#initclip
Object.registerClass("com.yahoo.maps.markers.CustomPOIMarker", com.yahoo.maps.markers.CustomPOIMarker);
#endinitclip
Symbol 232 MovieClip [com.yahoo.maps.markers.CustomSWFMarker] Frame 0
#initclip
Object.registerClass("com.yahoo.maps.markers.CustomSWFMarker", com.yahoo.maps.markers.CustomSWFMarker);
#endinitclip
Symbol 240 MovieClip [closeButton] Frame 1
stop();
Symbol 252 MovieClip [rating] Frame 1
stop();
Symbol 252 MovieClip [rating] Frame 5
stop();
Symbol 252 MovieClip [rating] Frame 10
stop();
Symbol 252 MovieClip [rating] Frame 15
stop();
Symbol 252 MovieClip [rating] Frame 20
stop();
Symbol 252 MovieClip [rating] Frame 25
stop();
Symbol 252 MovieClip [rating] Frame 30
stop();
Symbol 252 MovieClip [rating] Frame 35
stop();
Symbol 252 MovieClip [rating] Frame 40
stop();
Symbol 252 MovieClip [rating] Frame 45
stop();
Symbol 252 MovieClip [rating] Frame 50
stop();
Symbol 253 MovieClip [__Resources.0785805483.ddmarker_swf] Frame 1
Symbol 255 MovieClip [com.yahoo.maps.markers.POIMarker] Frame 0
#initclip
Object.registerClass("com.yahoo.maps.markers.POIMarker", com.yahoo.maps.markers.POIMarker);
#endinitclip
Symbol 262 MovieClip [com.yahoo.maps.markers.RSSMarker] Frame 0
#initclip
Object.registerClass("com.yahoo.maps.markers.RSSMarker", com.yahoo.maps.markers.RSSMarker);
#endinitclip
Symbol 264 MovieClip [com.yahoo.maps.markers.WaypointMarker] Frame 0
#initclip
Object.registerClass("com.yahoo.maps.markers.WaypointMarker", com.yahoo.maps.markers.WaypointMarker);
#endinitclip
Symbol 273 MovieClip [com.yahoo.maps.markers.ExtensiblePOIMarker] Frame 0
#initclip
Object.registerClass("com.yahoo.maps.markers.ExtensiblePOIMarker", com.yahoo.maps.markers.ExtensiblePOIMarker);
#endinitclip
Symbol 290 MovieClip [com.yahoo.maps.markers.SpeedMarker] Frame 0
#initclip
Object.registerClass("com.yahoo.maps.markers.SpeedMarker", com.yahoo.maps.markers.SpeedMarker);
#endinitclip
Symbol 294 MovieClip [closeButton3] Frame 1
stop();
Symbol 299 MovieClip [__Resources.0785805483.traffic_swf] Frame 1
Symbol 301 MovieClip [com.yahoo.maps.markers.TrafficMarker] Frame 0
#initclip
Object.registerClass("com.yahoo.maps.markers.TrafficMarker", com.yahoo.maps.markers.TrafficMarker);
#endinitclip
Symbol 317 MovieClip [__Resources.0785805483.minus_swf] Frame 1
stop();
Symbol 321 MovieClip [__Resources.0785805483.plus_swf] Frame 1
stop();
Symbol 325 MovieClip [__Resources.0785805483.slider_swf] Frame 1
stop();
Symbol 328 MovieClip [__Resources.0785805483.triButton_swf] Frame 1
stop();
Symbol 338 MovieClip [__Resources.0785805483.zoomLevelIndicators_swf] Frame 1
stop();
Symbol 344 MovieClip Frame 1
gotoAndStop ("hidden");
Symbol 344 MovieClip Frame 6
stop();
Symbol 344 MovieClip Frame 11
stop();
Symbol 350 MovieClip [__Resources.0785805483.navBackGround_swf] Frame 1
function fireOpenClose() {
parent.openClose(bar_mc._x - 5);
}
var open = false;
fireOpenClose();
bar_mc.onRelease = function () {
(open ? (gotoAndPlay ("close")) : (gotoAndPlay ("open")));
this._parent._parent._parent._parent._parent.widgetFocus = false;
};
bar_mc.onRollOver = function () {
bar_mc.gotoAndPlay("show");
this._parent._parent._parent._parent._parent.widgetFocus = true;
};
bar_mc.onRollOut = function () {
bar_mc.gotoAndPlay("hide");
};
inv_btn.onRollOver = function () {
this._parent._parent._parent._parent._parent.widgetFocus = true;
};
inv_btn.onRollOut = function () {
this._parent._parent._parent._parent._parent.widgetFocus = false;
};
var parent;
inv_btn.useHandCursor = false;
Symbol 350 MovieClip [__Resources.0785805483.navBackGround_swf] Frame 10
stop();
if ((initialState == undefined) || (initialState == "open")) {
gotoAndPlay ("open");
}
Symbol 350 MovieClip [__Resources.0785805483.navBackGround_swf] Frame 11
fireOpenClose();
Symbol 350 MovieClip [__Resources.0785805483.navBackGround_swf] Frame 12
fireOpenClose();
Symbol 350 MovieClip [__Resources.0785805483.navBackGround_swf] Frame 13
fireOpenClose();
Symbol 350 MovieClip [__Resources.0785805483.navBackGround_swf] Frame 14
fireOpenClose();
Symbol 350 MovieClip [__Resources.0785805483.navBackGround_swf] Frame 15
fireOpenClose();
Symbol 350 MovieClip [__Resources.0785805483.navBackGround_swf] Frame 16
stop();
open = true;
fireOpenClose();
Symbol 350 MovieClip [__Resources.0785805483.navBackGround_swf] Frame 17
fireOpenClose();
Symbol 350 MovieClip [__Resources.0785805483.navBackGround_swf] Frame 18
fireOpenClose();
Symbol 350 MovieClip [__Resources.0785805483.navBackGround_swf] Frame 19
fireOpenClose();
Symbol 350 MovieClip [__Resources.0785805483.navBackGround_swf] Frame 20
fireOpenClose();
Symbol 350 MovieClip [__Resources.0785805483.navBackGround_swf] Frame 21
stop();
open = false;
fireOpenClose();
Symbol 364 MovieClip [toolBarEndHighlight] Frame 1
gotoAndStop(hidden);
Symbol 364 MovieClip [toolBarEndHighlight] Frame 6
stop();
Symbol 364 MovieClip [toolBarEndHighlight] Frame 11
stop();
Symbol 388 MovieClip [zoomOut] Frame 1
stop();
Symbol 397 MovieClip [BrdrShdw] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "shadowColor");
Symbol 399 MovieClip [BrdrFace] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "buttonColor");
Symbol 402 MovieClip [BrdrBlk] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "borderColor");
Symbol 404 MovieClip [BrdrHilght] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "highlightColor");
Symbol 407 MovieClip [SimpleButton] Frame 1
#initclip 247
Object.registerClass("SimpleButton", mx.controls.SimpleButton);
#endinitclip
stop();
Symbol 408 MovieClip [ButtonSkin] Frame 1
#initclip 248
Object.registerClass("ButtonSkin", mx.skins.halo.ButtonSkin);
#endinitclip
Symbol 409 MovieClip [Button] Frame 1
#initclip 249
Object.registerClass("Button", mx.controls.Button);
#endinitclip
stop();
Instance of Symbol 407 MovieClip [SimpleButton] in Symbol 409 MovieClip [Button] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 410 MovieClip [CustomBorder] Frame 1
#initclip 250
Object.registerClass("CustomBorder", mx.skins.CustomBorder);
mx.skins.SkinElement.registerElement("CustomBorder", mx.skins.CustomBorder);
#endinitclip
Symbol 422 MovieClip [ScrollThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 424 MovieClip [ScrollThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 435 MovieClip [ThumbThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 437 MovieClip [ThumbThemeColor3] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 444 MovieClip [ThumbThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 465 MovieClip [BtnDownArrow] Frame 1
#initclip 251
Object.registerClass("BtnDownArrow", mx.controls.SimpleButton);
#endinitclip
Symbol 466 MovieClip [BtnUpArrow] Frame 1
#initclip 252
Object.registerClass("BtnUpArrow", mx.controls.SimpleButton);
#endinitclip
Symbol 468 MovieClip [HScrollBar] Frame 1
#initclip 253
Object.registerClass("HScrollBar", mx.controls.HScrollBar);
#endinitclip
stop();
Instance of Symbol 409 MovieClip [Button] in Symbol 468 MovieClip [HScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 407 MovieClip [SimpleButton] in Symbol 468 MovieClip [HScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 469 MovieClip [VScrollBar] Frame 1
#initclip 254
Object.registerClass("VScrollBar", mx.controls.VScrollBar);
#endinitclip
stop();
Instance of Symbol 409 MovieClip [Button] in Symbol 469 MovieClip [VScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 407 MovieClip [SimpleButton] in Symbol 469 MovieClip [VScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 470 MovieClip [ScrollView] Frame 1
#initclip 255
Object.registerClass("ScrollView", mx.core.ScrollView);
#endinitclip
stop();
Instance of Symbol 468 MovieClip [HScrollBar] in Symbol 470 MovieClip [ScrollView] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 469 MovieClip [VScrollBar] in Symbol 470 MovieClip [ScrollView] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 471 MovieClip [Modal] Frame 1
#initclip 256
mx.skins.SkinElement.registerElement("Modal");
#endinitclip
Symbol 478 MovieClip [TitleBackground] Frame 1
#initclip 257
_global.mx.skins.TitleBackground = function () {
this.constructObject();
};
_global.mx.skins.TitleBackground.prototype = new mx.skins.CustomBorder();
_global.mx.skins.TitleBackground.prototype.className = "TitleBackground";
_global.mx.skins.TitleBackground.symbolName = "TitleBackground";
_global.mx.skins.TitleBackground.symbolOwner = _global.mx.skins.TitleBackground;
_global.mx.skins.TitleBackground.prototype.leftSkin = "TitleLeft";
_global.mx.skins.TitleBackground.prototype.middleSkin = "TitleMiddle";
_global.mx.skins.TitleBackground.prototype.rightSkin = "TitleRight";
_global.mx.skins.SkinElement.registerElement("TitleBackground", _global.mx.skins.TitleBackground);
_global.mx.skins.SkinElement.registerElement("TitleLeft");
_global.mx.skins.SkinElement.registerElement("TitleMiddle");
_global.mx.skins.SkinElement.registerElement("TitleRight");
_global.mx.skins.TitleBackground.prototype.init = function () {
super.init();
};
#endinitclip
Symbol 487 MovieClip [WindowAssets] Frame 1
#initclip 258
mx.containers.Window.prototype.titleStyleDeclaration = "windowStyles";
#endinitclip
Symbol 488 MovieClip [Window] Frame 1
#initclip 259
Object.registerClass("Window", mx.containers.Window);
#endinitclip
stop();
Instance of Symbol 14 MovieClip [BoundingBox] "boundingBox_mc" in Symbol 488 MovieClip [Window] Frame 1
/* no clip actions */
Instance of Symbol 407 MovieClip [SimpleButton] in Symbol 488 MovieClip [Window] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 499 MovieClip [TextInput] Frame 1
#initclip 260
Object.registerClass("TextInput", mx.controls.TextInput);
#endinitclip
stop();
Symbol 503 MovieClip [ProgBarCapThemeColor] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 511 MovieClip [ProgBarMiddleThemeColor] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 516 MovieClip [ProgBarIndThemeColor] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 517 MovieClip [ProgBarIndMiddleThemeColor] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 527 MovieClip [ProgressBar] Frame 1
#initclip 261
Object.registerClass("ProgressBar", mx.controls.ProgressBar);
#endinitclip
stop();
Symbol 533 MovieClip [StepThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 545 MovieClip [NumericStepper] Frame 1
#initclip 262
Object.registerClass("NumericStepper", mx.controls.NumericStepper);
#endinitclip
stop();
Instance of Symbol 407 MovieClip [SimpleButton] in Symbol 545 MovieClip [NumericStepper] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 499 MovieClip [TextInput] in Symbol 545 MovieClip [NumericStepper] Frame 2
//component parameters
onClipEvent (initialize) {
editable = true;
password = false;
text = "";
maxChars = null;
restrict = "null";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 549 MovieClip [ComboBase] Frame 1
#initclip 263
mx.controls.listclasses.DataSelector.Initialize(Object(mx.controls.ComboBase).prototype);
Object.registerClass("ComboBase", mx.controls.ComboBase);
#endinitclip
stop();
Instance of Symbol 407 MovieClip [SimpleButton] in Symbol 549 MovieClip [ComboBase] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 499 MovieClip [TextInput] in Symbol 549 MovieClip [ComboBase] Frame 2
//component parameters
onClipEvent (initialize) {
editable = true;
password = false;
text = "";
maxChars = null;
restrict = "null";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 550 MovieClip [DataProvider] Frame 1
#initclip 264
Object.registerClass("DataProvider", mx.controls.listclasses.DataProvider);
#endinitclip
stop();
Symbol 551 MovieClip [DataSelector] Frame 1
#initclip 265
Object.registerClass("DataSelector", mx.controls.listclasses.DataSelector);
#endinitclip
stop();
Symbol 552 MovieClip [SelectableRow] Frame 1
#initclip 266
Object.registerClass("SelectableRow", mx.controls.listclasses.SelectableRow);
#endinitclip
stop();
Symbol 553 MovieClip [ScrollSelectList] Frame 1
#initclip 267
Object.registerClass("ScrollSelectList", mx.controls.listclasses.ScrollSelectList);
#endinitclip
stop();
Symbol 554 MovieClip [List] Frame 1
#initclip 268
Object.registerClass("List", mx.controls.List);
#endinitclip
stop();
Symbol 560 MovieClip [ComboDownArrowDisabled] Frame 1
#initclip 269
Object.registerClass("ComboDownArrowDisabled", mx.controls.SimpleButton);
#endinitclip
Symbol 562 MovieClip [ComboThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 565 MovieClip [ComboAssets] Frame 1
#initclip 270
mx.controls.ComboBox.prototype.downArrowUpName = "ComboDownArrowUp";
mx.controls.ComboBox.prototype.downArrowDownName = "ComboDownArrowDown";
mx.controls.ComboBox.prototype.downArrowOverName = "ComboDownArrowOver";
mx.controls.ComboBox.prototype.downArrowDisabledName = "ComboDownArrowDisabled";
mx.controls.ComboBox.prototype.wrapDownArrowButton = false;
mx.controls.ComboBox.prototype.dropDownBorderStyle = "solid";
mx.controls.ComboBox.prototype.adjustFocusRect = function () {
var _local2 = this.getStyle("themeColor");
if (_local2 == undefined) {
_local2 = 8453965 /* 0x80FF4D */;
}
var _local3 = this._parent.focus_mc;
_local3.setSize(this.width + 4, this.height + 4, {bl:0, tl:0, tr:5, br:5}, 100, _local2);
_local3.move(this.x - 2, this.y - 2);
};
#endinitclip
Symbol 566 MovieClip [ComboBox] Frame 1
#initclip 271
Object.registerClass("ComboBox", mx.controls.ComboBox);
#endinitclip
stop();
Instance of Symbol 554 MovieClip [List] in Symbol 566 MovieClip [ComboBox] Frame 2
//component parameters
onClipEvent (initialize) {
multipleSelection = false;
rowHeight = 20;
}
Symbol 577 MovieClip [CheckThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 588 MovieClip [CheckBoxAssets] Frame 1
#initclip 272
mx.controls.CheckBox.prototype.adjustFocusRect = function () {
var _local4 = this._parent.focus_mc;
var _local2 = this.iconName;
var _local3 = this.getStyle("themeColor");
if (_local3 == undefined) {
_local3 = 8453965 /* 0x80FF4D */;
}
var _local8 = _local2._width + 4;
var _local5 = _local2._height + 4;
_local4.setSize(_local8, _local5, 0, 100, _local3);
var _local7 = _local2._x;
var _local6 = _local2._y;
_local4.move((this.x - 2) + _local7, (this.y + _local6) - 2);
};
#endinitclip
Symbol 589 MovieClip [CheckBox] Frame 1
#initclip 273
Object.registerClass("CheckBox", mx.controls.CheckBox);
#endinitclip
stop();
Instance of Symbol 409 MovieClip [Button] in Symbol 589 MovieClip [CheckBox] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 591 MovieClip [UIScrollBar] Frame 1
#initclip 274
Object.registerClass("UIScrollBar", mx.controls.UIScrollBar);
#endinitclip
stop();
Instance of Symbol 469 MovieClip [VScrollBar] in Symbol 591 MovieClip [UIScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 468 MovieClip [HScrollBar] in Symbol 591 MovieClip [UIScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 597 MovieClip [RadioThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 601 MovieClip [RadioThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 607 MovieClip [RadioButtonAssets] Frame 1
#initclip 275
mx.controls.RadioButton.prototype.adjustFocusRect = function () {
var _local4 = this._parent.focus_mc;
var _local2 = this.iconName;
var _local3 = this.getStyle("themeColor");
if (_local3 == undefined) {
_local3 = 8453965 /* 0x80FF4D */;
}
var _local5 = _local2._width + 4;
var _local6 = _local2._height + 4;
_local4.setSize(_local5, _local6, 8, 100, _local3);
var _local8 = _local2._x;
var _local7 = _local2._y;
_local4.move((this.x - 2) + _local8, (this.y + _local7) - 2);
};
#endinitclip
Symbol 608 MovieClip [RadioButton] Frame 1
#initclip 276
Object.registerClass("RadioButton", mx.controls.RadioButton);
#endinitclip
stop();
Instance of Symbol 409 MovieClip [Button] "foo" in Symbol 608 MovieClip [RadioButton] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 184 MovieClip [__Packages.com.yahoo.maps.api.IWidget] Frame 0
interface com.yahoo.maps.api.IWidget
{
}
Symbol 181 MovieClip [__Packages.com.yahoo.maps.api.IMap] Frame 0
interface com.yahoo.maps.api.IMap
{
}
Symbol 179 MovieClip [__Packages.com.yahoo.maps.LatLonRect] Frame 0
class com.yahoo.maps.LatLonRect
{
var minLat, maxLat, minLon, maxLon;
function LatLonRect (minLat, minLon, maxLat, maxLon) {
this.minLat = minLat;
this.maxLat = maxLat;
this.minLon = minLon;
this.maxLon = maxLon;
}
function get northeast() {
return(new com.yahoo.maps.LatLon(maxLat, minLon));
}
function get southeast() {
return(new com.yahoo.maps.LatLon(minLat, minLon));
}
function get southwest() {
return(new com.yahoo.maps.LatLon(minLat, maxLon));
}
function get northwest() {
return(new com.yahoo.maps.LatLon(maxLat, maxLon));
}
var className = "LatLonRect";
}
Symbol 163 MovieClip [__Packages.mx.graphics.Point] Frame 0
class mx.graphics.Point
{
var x, y;
function Point () {
x = 0;
y = 0;
switch (arguments.length) {
case 1 :
if (arguments[0] instanceof mx.graphics.Point) {
x = arguments[0].x;
y = arguments[0].y;
}
break;
case 2 :
x = arguments[0];
y = arguments[1];
}
}
function toString() {
return(((("point(" + x) + ", ") + y) + ")");
}
function Add(pointOrScalar) {
if (pointOrScalar instanceof (_local3 || (_local3 = mx.graphics.Point))) {
return(new mx.graphics.Point(x + pointOrScalar.x, y + pointOrScalar.y));
}
return(new mx.graphics.Point(x + pointOrScalar, y + pointOrScalar));
}
function subtract(pointOrScalar) {
if (pointOrScalar instanceof (_local3 || (_local3 = mx.graphics.Point))) {
return(new mx.graphics.Point(x - pointOrScalar.x, y - pointOrScalar.y));
}
return(new mx.graphics.Point(x - pointOrScalar, y - pointOrScalar));
}
function multiply(scalar) {
return(new mx.graphics.Point(x * scalar, y * scalar));
}
function divide(scalar) {
return(new mx.graphics.Point(x / scalar, y / scalar));
}
function angleTo(otherPoint) {
var _local3 = otherPoint.x - x;
var _local2 = otherPoint.y - y;
return(Math.atan2(_local2, _local3));
}
function distanceTo(otherPoint) {
var _local3 = otherPoint.x - x;
var _local2 = otherPoint.y - y;
return(Math.sqrt((_local3 * _local3) + (_local2 * _local2)));
}
}
Symbol 176 MovieClip [__Packages.com.yahoo.maps.LatLon] Frame 0
class com.yahoo.maps.LatLon extends mx.graphics.Point
{
var _distance, y, x;
function LatLon (latitude, longitude) {
super(Number(longitude), Number(latitude));
_distance = new com.yahoo.maps.utils.Distance();
}
function get lat() {
return(y);
}
function set lat(v) {
y = v;
//return(lat);
}
function get lon() {
return(x);
}
function set lon(v) {
x = v;
//return(lon);
}
function get latRadians() {
return((lat / 360) * (Math.PI*2));
}
function get lonRadians() {
return((lon / 360) * (Math.PI*2));
}
function isIdentical(latlon) {
var _local2;
if ((latlon.__get__lat() == lat) && (latlon.__get__lon() == lon)) {
_local2 = true;
} else {
_local2 = false;
}
return(_local2);
}
function toString() {
return(String((lat + ",") + lon));
}
function getDistanceFrom(latlon) {
return(_distance.getDistance(new com.yahoo.maps.LatLon(lat, lon), latlon));
}
var className = "LatLon";
}
Symbol 177 MovieClip [__Packages.com.yahoo.maps.utils.Distance] Frame 0
class com.yahoo.maps.utils.Distance extends Object
{
var pointOne, pointTwo, _dist;
function Distance () {
super();
}
function getDistance(point_one, point_two) {
if ((!point_one) || (!point_two)) {
return(undefined);
}
pointOne = point_one;
pointTwo = point_two;
var _local4 = pointOne.__get__lat() * 0.017453293;
var _local7 = pointOne.__get__lon() * 0.017453293;
var _local3 = pointTwo.__get__lat() * 0.017453293;
var _local6 = pointTwo.__get__lon() * 0.017453293;
var _local8 = _local6 - _local7;
var _local9 = _local3 - _local4;
var _local5 = (_local15 || (_local15 = Math)).pow((_local15 || (_local15 = Math)).sin(_local9 / 2), 2) + (((_local15 || (_local15 = Math)).cos(_local4) * (_local15 || (_local15 = Math)).cos(_local3)) * (_local15 || (_local15 = Math)).pow((_local15 || (_local15 = Math)).sin(_local8 / 2), 2));
var _local2 = 2 * (_local15 || (_local15 = Math)).atan2((_local15 || (_local15 = Math)).sqrt(_local5), (_local15 || (_local15 = Math)).sqrt(1 - _local5));
_dist = {km:6378.135 * _local2, mi:3963.189 * _local2, nmi:3443.917 * _local2};
return(_dist);
}
function get point_one() {
return(pointOne);
}
function get point_two() {
return(pointTwo);
}
var className = "Distance";
}
Symbol 183 MovieClip [__Packages.com.yahoo.maps.api.ITool] Frame 0
interface com.yahoo.maps.api.ITool
{
}
Symbol 180 MovieClip [__Packages.com.yahoo.maps.api.IMarker] Frame 0
interface com.yahoo.maps.api.IMarker
{
}
Symbol 182 MovieClip [__Packages.com.yahoo.maps.api.IOverlay] Frame 0
interface com.yahoo.maps.api.IOverlay
{
}
Symbol 218 MovieClip [__Packages.com.yahoo.maps.Widget] Frame 0
class com.yahoo.maps.Widget implements com.yahoo.maps.api.IWidget
{
var __id, parentContainer, map, container, _visible, x, y;
function Widget () {
__id = "widget_" + ((_local2 || (_local2 = com.yahoo.maps.Widget)).instanceCounter++);
(_local2 || (_local2 = com.yahoo.maps.Widget)).widgetMap[__id] = this;
mx.events.EventDispatcher.initialize(this);
}
static function getWidgetByActionScriptId(actionScriptId) {
var _local2 = com.yahoo.maps.Widget;
return(_local2.widgetMap[actionScriptId]);
}
function init(map, parentContainer) {
this.parentContainer = parentContainer;
this.map = map;
container = this.parentContainer.createEmptyMovieClip("overlay" + __id, this.parentContainer.getNextHighestDepth());
container._visible = true;
initWidget();
}
function initWidget() {
}
function getId() {
return(__id);
}
function show() {
container._visible = true;
_visible = true;
}
function hide() {
container._visible = false;
_visible = false;
}
function isVisible() {
return(_visible == true);
}
function move(x, y) {
this.x = x;
this.y = y;
container._x = x;
container._y = y;
}
function getContainer() {
return(container);
}
function detach() {
container.removeMovieClip();
}
static var TYPE_NAVIGATOR = "navigator";
static var TYPE_SATELLITE_CONTROL = "satelliteControl";
static var TYPE_TOOL_BAR = "toolBar";
static var TYPE_CUSTOM = "custom";
static var TYPE_ZOOM_CONTROL = "zoomControl";
static var instanceCounter = 0;
static var widgetMap = new Array();
var className = "Widget";
}
Symbol 352 MovieClip [__Packages.com.yahoo.maps.widgets.NavigatorWidget] Frame 0
class com.yahoo.maps.widgets.NavigatorWidget extends com.yahoo.maps.Widget
{
var initialState, navigator, getContainer, map, x, y;
function NavigatorWidget (iState) {
super();
initialState = ((iState == undefined) ? ((_local4 || (_local4 = com.yahoo.maps.flash.ExtensibleNavigator)).OPEN) : (iState));
}
function initWidget() {
navigator = new com.yahoo.maps.flash.ExtensibleNavigator(getContainer(), map, initialState);
map.addEventListener((_local3 || (_local3 = com.yahoo.maps.ExtensibleYMap)).RESIZE, (_local2 || (_local2 = mx.utils.Delegate)).create(this, onMapResize));
onMapResize();
}
function onMapResize() {
move(map.getWidth() - 205, 5);
}
function move(x, y) {
this.x = x;
this.y = y;
navigator.move(x + 15, y + 5);
}
function open() {
navigator.openControl();
}
function close() {
navigator.closeControl();
}
function isOpen() {
return(navigator.open);
}
static var CLOSED = "closed";
static var OPEN = "open";
var className = "NavigatorWidget";
}
Symbol 351 MovieClip [__Packages.com.yahoo.maps.flash.ExtensibleNavigator] Frame 0
class com.yahoo.maps.flash.ExtensibleNavigator
{
var mainMap, mc, backGround, mapArea, targetCenter, centerSpecific, targetZoom, zoomSpecific, myMap, puck, zoomBar, parent, puckEffect, centerAndZoomEffect, mapMask, xDiff, yDiff, slideTop, slideBottom, slideLeft, slideRight, isNorthPoleViewable, isSouthPoleViewable, topLimitY, bottomLimitY, yOffset;
function ExtensibleNavigator (parent, mainMap, iState) {
(_local20 || (_local20 = com.yahoo.maps.flash.ExtensibleNavigator)).instance = (_local20 || (_local20 = com.yahoo.maps.flash.ExtensibleNavigator)).instance + 1;
this.mainMap = mainMap;
this.mainMap.addEventListener((_local19 || (_local19 = com.yahoo.maps.ExtensibleYMap)).MAP_BASE_INITIALIZE, (_local18 || (_local18 = mx.utils.Delegate)).create(this, onMainMapMove));
this.mainMap.addEventListener((_local19 || (_local19 = com.yahoo.maps.ExtensibleYMap)).MOVE, (_local18 || (_local18 = mx.utils.Delegate)).create(this, onMainMapMove));
this.mainMap.addEventListener((_local19 || (_local19 = com.yahoo.maps.ExtensibleYMap)).ZOOM, (_local18 || (_local18 = mx.utils.Delegate)).create(this, onMainMapZoom));
this.mainMap.addEventListener((_local19 || (_local19 = com.yahoo.maps.ExtensibleYMap)).ZOOM_START, (_local18 || (_local18 = mx.utils.Delegate)).create(this, onMainMapZoomStart));
this.mainMap.addEventListener((_local19 || (_local19 = com.yahoo.maps.ExtensibleYMap)).ZOOM_STOP, (_local18 || (_local18 = mx.utils.Delegate)).create(this, onMainMapZoomStop));
var _local11 = ((iState == undefined) ? ((_local20 || (_local20 = com.yahoo.maps.flash.ExtensibleNavigator)).OPEN) : (iState));
mc = parent.createEmptyMovieClip("mc" + String((_local20 || (_local20 = com.yahoo.maps.flash.ExtensibleNavigator)).instance), parent.getNextHighestDepth());
backGround = mc.attachMovie(bg, "backGround" + (_local20 || (_local20 = com.yahoo.maps.flash.ExtensibleNavigator)).instance, mc.getNextHighestDepth(), {parent:this, initialState:_local11, _x:-15, _y:-5});
var _local3 = mainMap.getCenter();
mapArea = mc.createEmptyMovieClip("mapArea" + String((_local20 || (_local20 = com.yahoo.maps.flash.ExtensibleNavigator)).instance), mc.getNextHighestDepth());
targetCenter = _local3;
centerSpecific = _local3;
targetZoom = mainMap.getZoomLevel();
zoomSpecific = targetZoom;
if ((Number(targetZoom) + Number(zoomDif)) >= 17) {
var _local4 = 17;
mapOutOfZoomRange = true;
} else {
var _local4 = Number(targetZoom) + Number(zoomDif);
mapOutOfZoomRange = false;
}
myMap = _local19 || (_local19 = com.yahoo.maps.ExtensibleYMap)(mapArea.attachMovie("com.yahoo.maps.ExtensibleYMap", "myMap", mapArea.getNextHighestDepth(), {width:mapWidth, height:mapHeight, latlon:new com.yahoo.maps.LatLon(_local3.lat, _local3.lon), zoom:_local4, showCopyright:false, mapViewType:com.yahoo.maps.MapViews.MAP}));
myMap.addEventListener((_local19 || (_local19 = com.yahoo.maps.ExtensibleYMap)).ZOOM, (_local18 || (_local18 = mx.utils.Delegate)).create(this, onMiniMapZoom));
mapArea.myMap.onRollOver = function () {
this._parent._parent._parent._parent._parent.widgetFocus = true;
};
mapArea.myMap.onRollOut = function () {
this._parent._parent._parent._parent._parent.widgetFocus = false;
};
createPuck(mainMap.getWidth(), mainMap.getHeight());
if (mapOutOfZoomRange == true) {
puck._visible = false;
}
createMask();
zoomBar = new com.yahoo.maps.flash.ExtensibleZoomBar(mc, mapHeight, mainMap.getZoomLevel());
zoomBar.move(mapWidth + 12, 0);
(_local17 || (_local17 = com.yahoo.maps.EventController)).getInstance().addEventListener((_local16 || (_local16 = com.yahoo.maps.AppEvents)).onPan, (_local18 || (_local18 = mx.utils.Delegate)).create(this, onPan));
(_local17 || (_local17 = com.yahoo.maps.EventController)).getInstance().addEventListener((_local16 || (_local16 = com.yahoo.maps.AppEvents)).onPanComplete, (_local18 || (_local18 = mx.utils.Delegate)).create(this, onPanComplete));
zoomBar.addEventListener("zoom", (_local18 || (_local18 = mx.utils.Delegate)).create(this, onZoom));
zoomBar.addEventListener("dragStop", (_local18 || (_local18 = mx.utils.Delegate)).create(this, onZoomDragStop));
zoomBar.addEventListener("zoomIn", (_local18 || (_local18 = mx.utils.Delegate)).create(this, onZoomIn));
zoomBar.addEventListener("zoomOut", (_local18 || (_local18 = mx.utils.Delegate)).create(this, onZoomOut));
}
function onMiniMapZoom(event) {
}
function onMainMapZoom(event) {
zoomBar.placeSlider(event.currentZoomLevel);
}
function onMainMapZoomStop(event) {
zoomBar.blockPlaceSlider = false;
zoomBar.placeSlider(event.endZoomLevel);
}
function onMainMapZoomStart(event) {
if ((Number(event.endZoomLevel) + zoomDif) <= 17) {
myMap.setZoomLevel(Number(event.endZoomLevel) + zoomDif);
puck._visible = true;
} else {
puck._visible = false;
}
}
function onMainMapMove(event) {
if (!puckMoving) {
var _local2 = mainMap.getCenter();
myMap.setCenterByLatLon(_local2, 0);
}
}
function onMapResize(e) {
createPuck(e.data.width, e.data.height);
}
function onZoom(e) {
}
function onZoomIn(event) {
mainMap.setZoomLevel(event.zoom);
}
function onZoomOut(event) {
mainMap.setZoomLevel(event.zoom);
}
function onZoomDragStop(event) {
mainMap.setZoomLevel(event.zoom);
}
function destroy() {
parent = null;
puck.removeMovieClip();
puck = null;
zoomBar.destroy();
zoomBar = null;
mc.removeMovieClip();
mc = null;
delete puckEffect;
puckEffect = null;
delete centerAndZoomEffect;
centerAndZoomEffect = null;
}
function move(x, y) {
mc._x = x;
mc._y = y;
}
function onSetCenterAndZoom(e, finalPosition) {
if (e.sendee != this) {
if (e.data.zoom != null) {
if (finalPosition == null) {
finalPosition = true;
}
var _local5 = targetZoom;
targetZoom = (_local12 || (_local12 = Math)).min((_local12 || (_local12 = Math)).max(e.data.zoom, zoomMin), zoomMax);
if (open) {
var _local2 = _local5;
while (_local2 != targetZoom) {
((_local2 < targetZoom) ? (_local2++) : (_local2--));
}
if ((targetZoom < zoomMax) && (targetZoom > zoomMin)) {
}
}
}
if (e.data.center != null) {
targetCenter = e.data.center;
}
centerAndZoomEffect.destroy();
var _local3 = (_local12 || (_local12 = Math)).abs(targetZoom - zoomSpecific) * 350;
if ((_local3 == null) || (_local3 < 500)) {
_local3 = 500;
}
if (open) {
centerAndZoomEffect = new com.yahoo.maps.flash.Effect(mc, _local3, this, {startZoom:zoomSpecific, startCenter:centerSpecific});
} else if (finalPosition) {
onEffect({type:"update", percentComplete:1, data:{startZoom:zoomSpecific, startCenter:centerSpecific}});
onEffect({type:"complete"});
}
}
}
function onEffect(e) {
if (e.type == "update") {
if (zoomSpecific != targetZoom) {
zoomSpecific = (e.percentComplete * (targetZoom - e.data.startZoom)) + e.data.startZoom;
var _local6 = zoomSpecific + zoomDif;
zoomBar.placeSlider(zoomSpecific);
}
if ((centerSpecific.__get__lat() != targetCenter.__get__lat()) || (centerSpecific.__get__lon() != targetCenter.__get__lon())) {
var _local3 = e.percentComplete;
if (e.startZoom < targetZoom) {
_local3 = (_local8 || (_local8 = Math)).sqrt(_local3);
} else if (e.startZoom > targetZoom) {
_local3 = (_local8 || (_local8 = Math)).pow(_local3, 2);
}
var _local5 = (_local3 * (targetCenter.__get__lat() - e.data.startCenter.lat)) + e.data.startCenter.lat;
var _local4 = (_local3 * (targetCenter.__get__lon() - e.data.startCenter.lon)) + e.data.startCenter.lon;
myMap.setCenterByLatLon(new com.yahoo.maps.LatLon(_local5, _local4), 0);
centerSpecific = new com.yahoo.maps.LatLon(_local5, _local4);
}
} else {
centerAndZoomEffect.destroy();
centerAndZoomEffect = null;
if ((e.data.startCenter.lat != targetCenter.__get__lat()) || (e.data.startCenter.lon != targetCenter.__get__lon())) {
myMap.setCenterByLatLon(targetCenter, 0);
}
zoomBar.blockPlaceSlider = false;
}
}
function onPan(e) {
if (((e.sendee != this) && (e.data.lat != null)) && (e.data.lon != null)) {
myMap.setCenterByLatLon(new com.yahoo.maps.LatLon(e.data.lat, e.data.lon), 0);
}
}
function onPanComplete(e) {
if (((e.sendee != this) && (e.data.lat != null)) && (e.data.lon != null)) {
myMap.setCenterByLatLon(new com.yahoo.maps.LatLon(e.data.lat, e.data.lon), 0);
if (open) {
}
}
}
function createMask() {
mapMask = mc.createEmptyMovieClip("mapMask" + String((_local6 || (_local6 = com.yahoo.maps.flash.ExtensibleNavigator)).instance), mc.getNextHighestDepth());
mapMask.beginFill(0, 100);
var _local3 = 0;
var _local2 = 0;
var _local5 = mapWidth;
var _local4 = mapHeight;
mapMask.moveTo(_local3, _local2);
mapMask.lineTo(_local5, _local2);
mapMask.lineTo(_local5, _local4);
mapMask.lineTo(_local3, _local4);
mapMask.lineTo(_local3, _local2);
mapMask.endFill();
mapArea.setMask(mapMask);
}
function openClose(position) {
mapArea._x = position;
if ((position == 0) & (!open)) {
open = true;
var _local2 = targetZoom + zoomDif;
zoomBar.showLevelIndicators = false;
} else {
open = false;
zoomBar.showLevelIndicators = false;
openCloseCount++;
}
if (openCloseCount == 5) {
openCloseCount = 0;
mainMap.dispatchEvent({type:(_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).NAVIGATOR_STATE_CHANGED});
}
}
function createPuck(mainMapWidth, mainMapHeight) {
puck.removeMovieClip();
var _local6 = (_local12 || (_local12 = Math)).round(mainMapWidth / (_local12 || (_local12 = Math)).pow(2, zoomDif));
var _local7 = (_local12 || (_local12 = Math)).round(mainMapHeight / (_local12 || (_local12 = Math)).pow(2, zoomDif));
puck = mapArea.createEmptyMovieClip("puck" + String((_local11 || (_local11 = com.yahoo.maps.flash.ExtensibleNavigator)).instance), mapArea.getNextHighestDepth());
var _local3 = 0;
var _local5 = _local3 + _local6;
var _local2 = 0;
var _local4 = _local2 + _local7;
puck.beginFill(0, 25);
puck.lineTo(_local5, _local2);
puck.lineTo(_local5, _local4);
puck.lineTo(_local3, _local4);
puck.lineTo(_local3, _local2);
puck.endFill();
puck._x = (mapWidth - _local6) / 2;
puck._y = (mapHeight - _local7) / 2;
puck.onPress = (_local10 || (_local10 = mx.utils.Delegate)).create(this, startDragPuck);
puck.onRelease = (puck.onReleaseOutside = (_local10 || (_local10 = mx.utils.Delegate)).create(this, stopDragPuck));
puck.onRollOver = function () {
this._parent._parent._parent._parent._parent.widgetFocus = true;
};
}
function startDragPuck() {
xDiff = puck._xmouse;
yDiff = puck._ymouse;
slideTop = slideZone;
slideBottom = (mapHeight - slideZone) - puck._height;
slideLeft = slideZone;
slideRight = (mapWidth - slideZone) - puck._width;
puck.onMouseMove = (_local11 || (_local11 = mx.utils.Delegate)).create(this, dragPuck);
puckEffect.destroy();
var _local2 = myMap.local_to_latlon(new mx.graphics.Point(myMap.width / 2, 0));
var _local3 = myMap.local_to_latlon(new mx.graphics.Point(myMap.width / 2, myMap.height));
isNorthPoleViewable = (isSouthPoleViewable = false);
topLimitY = (bottomLimitY = (yOffset = 0));
if ((_local2.lat > 85) || (_local3.lat < -85)) {
if (_local2.lat > 85) {
var _local4 = myMap.ll_to_pxy(_local2.lat, _local2.lon);
var _local6 = myMap.ll_to_pxy(85, _local2.lon);
topLimitY = (_local12 || (_local12 = Math)).round(_local4.m_y - _local6.m_y);
isNorthPoleViewable = true;
} else {
var _local8 = myMap.ll_to_pxy(_local3.lat, _local3.lon);
var _local5 = myMap.ll_to_pxy(-85, _local3.lon);
var _local7 = _local5.m_y - _local8.m_y;
bottomLimitY = (_local12 || (_local12 = Math)).round((mapHeight - _local7) - puck._height);
isSouthPoleViewable = true;
}
}
(_local9 || (_local9 = com.yahoo.maps.EventController)).getInstance().sendEvent(this, com.yahoo.maps.AppEvents.onPanStart, null);
}
function dragPuck() {
var _local3 = mc._ymouse - yDiff;
var _local2 = (_local6 || (_local6 = Math)).round(((_local3 < 0) ? 0 : (((_local3 > (mapHeight - puck._height)) ? (mapHeight - puck._height) : (_local3)))));
if (isNorthPoleViewable) {
puck._y = (_local6 || (_local6 = Math)).max(_local2, topLimitY + yOffset);
} else if (isSouthPoleViewable) {
puck._y = (_local6 || (_local6 = Math)).min(_local2, bottomLimitY + yOffset);
} else {
puck._y = _local2;
}
if (puck._y < slideTop) {
verSlide = (_local6 || (_local6 = Math)).round((maxSlideSpeed * (slideTop - puck._y)) / slideZone);
} else if (puck._y > slideBottom) {
verSlide = (_local6 || (_local6 = Math)).round((maxSlideSpeed * (slideBottom - puck._y)) / slideZone);
} else {
verSlide = 0;
}
var _local4 = mc._xmouse - xDiff;
puck._x = (_local6 || (_local6 = Math)).round(((_local4 < 0) ? 0 : (((_local4 > (mapWidth - puck._width)) ? (mapWidth - puck._width) : (_local4)))));
if (puck._x < slideLeft) {
horSlide = (_local6 || (_local6 = Math)).round((maxSlideSpeed * (slideLeft - puck._x)) / slideZone);
} else if (puck._x > slideRight) {
horSlide = (_local6 || (_local6 = Math)).round((maxSlideSpeed * (slideRight - puck._x)) / slideZone);
} else {
horSlide = 0;
}
if ((horSlide != 0) || (verSlide != 0)) {
if (puck.onEnterFrame == null) {
puck.onEnterFrame = (_local5 || (_local5 = mx.utils.Delegate)).create(this, slide);
}
} else {
delete puck.onEnterFrame;
}
}
function stopDragPuck() {
delete puck.onMouseMove;
delete puck.onEnterFrame;
puckEffect.destroy();
puckEffect = new com.yahoo.maps.flash.Effect(puck, floatSpeed, puck, new mx.graphics.Point(puck._x, puck._y));
var _local6 = ((mapWidth - puck._width) / 2) - puck._x;
var _local5 = ((mapHeight - puck._height) / 2) - puck._y;
var _local8 = myMap.getZoomLevel();
var _local2 = new mx.graphics.Point(_local6, _local5);
myMap.setCenterByPointDelta(_local2, 500);
var _local7 = myMap.local_to_latlon(new mx.graphics.Point(puck._x + (puck._width / 2), puck._y + (puck._height / 2)));
mainMap.setCenterByLatLon(_local7, 500);
var _local3 = Math.pow(2, zoomDif);
var _local4 = new mx.graphics.Point(_local2.x * _local3, _local2.y * _local3);
com.yahoo.maps.ExtensibleYMap(mainMap).trackUserPanning(_local4);
puckMoving = true;
puck.onEffect = (_local10 || (_local10 = mx.utils.Delegate)).create(this, onPuckEffect);
myMap._parent._parent._parent._parent._parent.widgetFocus = false;
}
function onPuckEffect(e) {
if (e.type == "update") {
var _local4 = 1 - e.percentComplete;
var _local3 = (mapWidth - puck._width) / 2;
var _local2 = (mapHeight - puck._height) / 2;
var _local7 = puck._x;
var _local6 = puck._y;
puck._x = (_local8 || (_local8 = Math)).round(_local3 - ((_local3 - e.data.x) * _local4));
puck._y = (_local8 || (_local8 = Math)).round(_local2 - ((_local2 - e.data.y) * _local4));
} else {
puckMoving = false;
puckEffect.destroy();
puckEffect = null;
}
}
function slide() {
yOffset = yOffset + verSlide;
if ((-yOffset) > topLimitY) {
isNorthPoleViewable = false;
}
if ((-yOffset) > bottomLimitY) {
isSouthPoleViewable = false;
}
var _local2 = myMap.local_to_latlon(new mx.graphics.Point(myMap.width / 2, 0));
var _local3 = myMap.local_to_latlon(new mx.graphics.Point(myMap.width / 2, myMap.height));
myMap.setCenterByPointDelta(new mx.graphics.Point(horSlide, verSlide));
_local2 = myMap.local_to_latlon(new mx.graphics.Point(myMap.width / 2, puck._y));
_local3 = myMap.local_to_latlon(new mx.graphics.Point(myMap.width / 2, puck._y + puck._height));
if ((_local2.lat > 85) || (_local3.lat < -85)) {
myMap.setCenterByPointDelta(new mx.graphics.Point(horSlide, -verSlide));
}
}
function openControl() {
if (!open) {
backGround.bar_mc.onRelease();
}
}
function closeControl() {
if (open) {
backGround.bar_mc.onRelease();
}
}
static var OPEN = "open";
static var CLOSED = "closed";
var bg = "__Resources.0785805483.navBackGround_swf";
var zoomMax = 16;
var zoomMin = 1;
var zoomDif = 4;
var floatSpeed = 1000;
var maxSlideSpeed = 3;
var slideZone = 10;
var mapWidth = 160;
var mapHeight = 125;
var verSlide = 0;
var horSlide = 0;
var open = false;
var openCloseCount = 0;
static var instance = 0;
var puckMoving = false;
var mapOutOfZoomRange = false;
var className = "ExtensibleNavigator";
}
Symbol 190 MovieClip [__Packages.com.yahoo.maps.flash.Effect] Frame 0
class com.yahoo.maps.flash.Effect
{
var startTime, duration, dispatchObj, data, percentComplete, timer_id;
function Effect (target, duration, dispatchObj, data) {
if (duration == undefined) {
duration = 300;
}
startTime = getTimer();
this.duration = duration;
this.dispatchObj = dispatchObj;
this.data = data;
percentComplete = 0;
timer_id = setInterval((_local5 || (_local5 = mx.utils.Delegate)).create(this, onTimer), 50, data);
}
function destroy() {
clearInterval(timer_id);
timer_id = 0;
dispatchObj = null;
data = null;
}
function onTimer() {
var _local2 = getTimer() - startTime;
if (_local2 >= duration) {
_local2 = duration;
percentComplete = 1;
} else {
percentComplete = com.robertpenner.easing.Quad.easeOut(_local2, 0, 1, duration);
}
dispatchObj.onEffect({type:"update", percentComplete:percentComplete, data:data});
if (_local2 >= duration) {
dispatchObj.onEffect({type:"complete", percentComplete:percentComplete, data:data});
destroy();
}
}
var className = "Effect";
}
Symbol 211 MovieClip [__Packages.com.yahoo.maps.ExtensibleYMap] Frame 0
class com.yahoo.maps.ExtensibleYMap extends MovieClip implements com.yahoo.maps.api.IMap
{
var session, config, _geocoder, dataService, panTotals, keyboardShortcutsEnabled, tmpAppType, height, _copyrightInstance, map, zoom, latlon, keyListener, width, _width, _height, __xscale, _xscale, __yscale, _yscale, language, locale, sendPanOB_interval, tmpAppid, address, toolMouseListenerContainer, toolContainer, createEmptyMovieClip, toolMask, toolManager, markerContainer, markerMask, markerManager, overlayContainer, overlayMask, overlayManager, widgetContainer, widgetMask, widgetManager, showCopyright, isZooming, oldMap, startZoom, endZoom, latitude, longitude, attachMovie, initialized, scaleEffect, x, y, bounds, resizeInterval, _x, _y, isNavKeyPressed, keyTimer;
function ExtensibleYMap () {
super();
mx.events.EventDispatcher.initialize(this);
session = (_local4 || (_local4 = com.macromedia.mc.platform.Session)).getInstance();
config = com.yahoo.maps.ExtensibleConfig.getInstance();
_geocoder = new com.yahoo.maps.api.Geocoder();
_geocoder.addEventListener((_local5 || (_local5 = com.yahoo.maps.api.Geocoder)).EVENT_GEOCODE_SUCCESS, onGeocodeSuccess);
_geocoder.addEventListener((_local5 || (_local5 = com.yahoo.maps.api.Geocoder)).EVENT_GEOCODE_ERROR, onGeocodeError);
dataService = new com.yahoo.maps.ExtensibleDataService();
dataService.addEventListener("onGetMap", (_local3 || (_local3 = mx.utils.Delegate)).create(this, onGetMapAddress));
dataService.addEventListener("onGetMapError", (_local3 || (_local3 = mx.utils.Delegate)).create(this, onGetMapError));
dataService.addEventListener("onGetSatImageData", this);
panTotals = new mx.graphics.Point(0, 0);
Mouse.addListener(this);
}
function onMouseUp() {
}
function onMouseWheel(delta) {
if (((Selection.getFocus() == null) && (keyboardShortcutsEnabled == true)) && (tmpAppType == "asf")) {
delta = ((delta < 0) ? 1 : -1);
var _local2 = getZoomLevel() + delta;
setZoomLevel(_local2);
}
}
function getAPIVersion() {
return("Yahoo! Maps Flash API v3.5.2");
}
function isNavigatorMap() {
return(height < 150);
}
function updateCopyright() {
if ((mapViewType == com.yahoo.maps.MapViews.MAP) || (mapViewType == undefined)) {
_copyrightInstance.updateCopyrightLabel((((((config._dataLabel + " ") + config._copyrightSymbolLabel) + " ") + config._yearLabel) + " ") + config._copyrightDataLabel);
session.setAttribute("tileImgSRC", "");
} else {
var _local2 = map.getTileAt(0, 0);
if (map && (_local2)) {
dataService.getSatImageData(map.rows, map.columns, _local2.tileRow, _local2.tileCol, zoom);
}
}
}
function onLoad() {
var _local3 = false;
var _local2 = false;
if (((zoom == 0) || (zoom == null)) || (isNaN(zoom))) {
zoom = (_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).DEFAULT_ZOOM;
}
if ((latlon.__get__lat() == null) || (isNaN(latlon.__get__lat()))) {
_local3 = true;
}
if ((latlon.__get__lon() == null) || (isNaN(latlon.__get__lon()))) {
_local2 = true;
}
if (_local3 || (_local2)) {
latlon = new com.yahoo.maps.LatLon((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).DEFAULT_LAT, (_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).DEFAULT_LON);
}
keyListener = new Object();
keyListener.onKeyUp = (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapKeyUp);
keyListener.onKeyDown = (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapKeyDown);
enableKeyboardShortcuts(true);
if (!width) {
width = _width;
}
if (!height) {
height = _height;
}
__xscale = _xscale;
__yscale = _yscale;
width = (__xscale / 100) * width;
height = (__yscale / 100) * height;
_xscale = 100;
_yscale = 100;
session.setAttribute("language", language);
config._language = (locale = (language = language));
config._customLabels = false;
if (!config.isLoaded) {
config.addEventListener("onLoad", (_local4 || (_local4 = mx.utils.Delegate)).create(this, onConfigLoaded));
} else {
onConfigLoaded();
}
}
function trackUserPanning(delta) {
panTotals.x = panTotals.x + delta.x;
panTotals.y = panTotals.y + delta.y;
clearInterval(sendPanOB_interval);
if (((_local3 || (_local3 = Math)).abs(panTotals.x) > map.width) || ((_local3 || (_local3 = Math)).abs(panTotals.y) > map.height)) {
sendPanOB_interval = setInterval(this, "sendPanOB", 500);
}
}
function sendPanOB() {
if (!isNavigatorMap()) {
dataService.trackState("pan_ob");
}
clearPanTotals();
clearInterval(sendPanOB_interval);
}
function clearPanTotals() {
panTotals = new mx.graphics.Point(0, 0);
}
function onConfigLoaded(event) {
createInitialMap();
}
function createInitialMap() {
createWidgetContainer();
createOverlayContainer();
createToolContainer();
createMarkerContainer();
if (tmpAppid != null) {
appid = (tmpAppid);
}
if (tmpAppType != null) {
apptype = (tmpAppType);
}
if ((address != null) && (address != "")) {
setCenterByAddress(address, 0);
} else {
create(latlon, zoom, width, height, 0, 0, mapViewType);
}
if (!isNavigatorMap()) {
dataService.trackState("start");
}
updateCopyright();
dispatchEvent({type:(_local3 || (_local3 = com.yahoo.maps.ExtensibleYMap)).CREATION_COMPLETE});
}
function createToolContainer() {
toolMouseListenerContainer = new com.macromedia.mc.shapes.RoundRect(this, (_local3 || (_local3 = com.yahoo.maps.ExtensibleYMap)).DEPTH_TOOL_MOUSE_CONTAINER);
toolMouseListenerContainer.draw(0, 0, width, height, 0, 0, 0);
toolContainer = createEmptyMovieClip("toolContainer", (_local3 || (_local3 = com.yahoo.maps.ExtensibleYMap)).DEPTH_TOOL_CONTAINER);
toolContainer._x = width / 2;
toolContainer._y = height / 2;
toolMask = new com.macromedia.mc.shapes.RoundRect(this);
toolMask.draw(0, 0, width, height, 0, 0, 100);
toolContainer.setMask(toolMask.__get__mc());
toolManager = new com.yahoo.maps.managers.ToolManager(this, toolMouseListenerContainer.__get__mc(), toolContainer);
}
function resizeToolContainer() {
toolMask.mc._width = width;
toolMask.mc._height = height;
toolMouseListenerContainer.mc._width = width;
toolMouseListenerContainer.mc._height = height;
}
function getToolContainer() {
return(toolContainer);
}
function set appid(arg) {
dataService.__set__appid(arg);
//return(appid);
}
function get appid() {
return(dataService.__get__appid());
}
function getAppID() {
return(appid);
}
function set apptype(arg) {
dataService.__set__apptype(arg);
//return(apptype);
}
function get apptype() {
return(dataService.__get__apptype());
}
function createMarkerContainer() {
markerContainer = createEmptyMovieClip("markerContainer", (_local2 || (_local2 = com.yahoo.maps.ExtensibleYMap)).DEPTH_MARKER_CONTAINER);
markerContainer._x = width / 2;
markerContainer._y = height / 2;
markerMask = new com.macromedia.mc.shapes.RoundRect(this);
markerMask.draw(0, 0, width, height, 0, 0, 100);
markerContainer.setMask(markerMask.__get__mc());
markerManager = new com.yahoo.maps.managers.MarkerManager(this, markerContainer);
}
function resizeMarkerContainer() {
markerMask.mc._width = width;
markerMask.mc._height = height;
markerManager.updateMarkerPositions();
}
function getMarkerContainer() {
return(markerContainer);
}
function createOverlayContainer() {
overlayContainer = createEmptyMovieClip("overlayContainer", (_local2 || (_local2 = com.yahoo.maps.ExtensibleYMap)).DEPTH_OVERLAY_CONTAINER);
overlayContainer._x = width / 2;
overlayContainer._y = height / 2;
overlayMask = new com.macromedia.mc.shapes.RoundRect(this);
overlayMask.draw(0, 0, width, height, 0, 0, 100);
overlayContainer.setMask(overlayMask.__get__mc());
overlayManager = new com.yahoo.maps.managers.OverlayManager(this, overlayContainer);
}
function resizeOverlayContainer() {
overlayMask.mc._width = width;
overlayMask.mc._height = height;
}
function getOverlayContainer() {
return(overlayContainer);
}
function createWidgetContainer() {
widgetContainer = createEmptyMovieClip("widgetContainer", (_local2 || (_local2 = com.yahoo.maps.ExtensibleYMap)).DEPTH_WIDGET_CONTAINER);
widgetContainer._x = 0;
widgetContainer._y = 0;
widgetMask = new com.macromedia.mc.shapes.RoundRect(this);
widgetMask.draw(0, 0, width, height, 0, 0, 100);
widgetContainer.setMask(widgetMask.__get__mc());
widgetManager = new com.yahoo.maps.managers.WidgetManager(this, widgetContainer);
if (showCopyright != false) {
_copyrightInstance = new com.yahoo.maps.widgets.ExtensibleCopyrightWidget();
widgetManager.addAnonymousWidget(_copyrightInstance);
}
}
function resizeWidgetContainer() {
widgetMask.mc._width = width;
widgetMask.mc._height = height;
}
function getWidgetContainer() {
return(widgetContainer);
}
function create(latlon, zoomLevel, width, height, x, y, mapViewType) {
session.setAttribute("latitude", latlon.__get__lat());
session.setAttribute("longitude", latlon.__get__lon());
if ((mapViewType == undefined) || (!mapViewType)) {
mapViewType = com.yahoo.maps.MapViews.MAP;
}
if (!isNavigatorMap()) {
session.setAttribute("mapViewType", mapViewType);
}
if (isZooming) {
oldMap._visible = true;
oldMap = map;
if (oldMap) {
var _local5 = createEmptyMovieClip("swapMovie", (_local19 || (_local19 = com.yahoo.maps.ExtensibleYMap)).DEPTH_OLD_MAP);
_local5.swapDepths(oldMap);
}
} else if (zoomLevel != zoom) {
isZooming = true;
startZoom = zoom;
endZoom = zoomLevel;
dispatchEvent({type:(_local19 || (_local19 = com.yahoo.maps.ExtensibleYMap)).ZOOM_START, startZoomLevel:zoom, endZoomLevel:Number(endZoom)});
dispatchEvent({type:(_local19 || (_local19 = com.yahoo.maps.ExtensibleYMap)).ZOOM, startZoomLevel:zoom, currentZoomLevel:Number(zoomLevel), endZoomLevel:Number(zoomLevel)});
}
zoom = zoomLevel;
latitude = Number(latlon.__get__lat());
longitude = Number(latlon.__get__lon());
session.setAttribute("latitude", latitude);
session.setAttribute("longitude", longitude);
var _local12 = ((_local18 || (_local18 = com.yahoo.maps.ExtensibleMapBase)).bDblClk | (_local18 || (_local18 = com.yahoo.maps.ExtensibleMapBase)).bPanning) | (_local18 || (_local18 = com.yahoo.maps.ExtensibleMapBase)).bAlphaTiles;
if (oldMap != undefined) {
_local12 = _local12 | (_local18 || (_local18 = com.yahoo.maps.ExtensibleMapBase)).bTransparentTiles;
}
map.cancelTileRequests();
oldMap.cancelTileRequests();
var _local3;
if (isNavigatorMap()) {
_local3 = 2;
} else {
_local3 = 2.5;
}
map = _local18 || (_local18 = com.yahoo.maps.ExtensibleMapBase)(attachMovie("com.yahoo.maps.ExtensibleMapBase", "map_" + zoom, (_local19 || (_local19 = com.yahoo.maps.ExtensibleYMap)).DEPTH_NEW_MAP, {width:this.width, height:this.height, centerLatLon:new com.yahoo.maps.LatLon(latitude, longitude), zoom:zoom, flags:_local12, mapViewType:mapViewType, buffer:_local3}));
map.addEventListener((_local18 || (_local18 = com.yahoo.maps.ExtensibleMapBase)).TILE_MATRIX_CREATE, (_local17 || (_local17 = mx.utils.Delegate)).create(this, onMapBaseTileMatrixCreate));
map.addEventListener((_local18 || (_local18 = com.yahoo.maps.ExtensibleMapBase)).MOVE, (_local17 || (_local17 = mx.utils.Delegate)).create(this, onMapBaseMove));
map.addEventListener((_local18 || (_local18 = com.yahoo.maps.ExtensibleMapBase)).INITIALIZE, (_local17 || (_local17 = mx.utils.Delegate)).create(this, onMapBaseInitialize));
map.addEventListener((_local18 || (_local18 = com.yahoo.maps.ExtensibleMapBase)).MAPTILES_LOADED, (_local17 || (_local17 = mx.utils.Delegate)).create(this, onMapBaseTilesLoaded));
map.addEventListener((_local18 || (_local18 = com.yahoo.maps.ExtensibleMapBase)).PAN_START, (_local17 || (_local17 = mx.utils.Delegate)).create(this, onMapBasePanStart));
map.addEventListener((_local18 || (_local18 = com.yahoo.maps.ExtensibleMapBase)).PAN_STOP, (_local17 || (_local17 = mx.utils.Delegate)).create(this, onMapBasePanStop));
map.addEventListener((_local18 || (_local18 = com.yahoo.maps.ExtensibleMapBase)).TILE_LOADED, (_local17 || (_local17 = mx.utils.Delegate)).create(this, onTileLoaded));
overlayContainer._visible = true;
updateCopyright();
}
function onGetSatImageData(o) {
var _local2 = o.copyText;
if (mapViewType == com.yahoo.maps.MapViews.HYBRID) {
_local2 = _local2 + (((((((", " + config._dataLabel) + " ") + config._copyrightSymbolLabel) + " ") + config._yearLabel) + " ") + config._copyrightDataLabel);
}
_copyrightInstance.updateCopyrightLabel(_local2);
}
function onMapBaseTileMatrixCreate() {
}
function onMapBaseTilesLoaded(event) {
dispatchEvent({type:(_local6 || (_local6 = com.yahoo.maps.ExtensibleYMap)).MAPTILES_LOADED, mapType:event.mapType, tilesLoaded:event.tilesLoaded});
updateCopyright();
}
function onMapBaseInitialize(o) {
updateBounds();
if (!initialized) {
initialized = true;
dispatchEvent({type:(_local12 || (_local12 = com.yahoo.maps.ExtensibleYMap)).INITIALIZE, center:getCenter(), bounds:getBounds(), zoomLevel:getZoomLevel()});
}
toolManager.resetToolContainers();
markerManager.updateMarkerPositions();
if (_isResizing == true) {
overlayManager.resetOverlayContainers();
dispatchEvent({type:"polyResize"});
_isResizing = false;
}
if (isZooming) {
overlayManager.resetOverlayContainers();
isZooming = false;
dispatchEvent({type:(_local12 || (_local12 = com.yahoo.maps.ExtensibleYMap)).ZOOM_STOP, startZoomLevel:startZoom, endZoomLevel:endZoom, bounds:getBounds()});
if (((endZoom >= 1) && (endZoom <= 16)) && (!isNavigatorMap())) {
dataService.trackState("zoom");
}
}
updateCopyright();
updateBounds();
dispatchEvent({type:"mapCreate", data:{map:this}});
dispatchEvent({type:(_local12 || (_local12 = com.yahoo.maps.ExtensibleYMap)).MAP_BASE_INITIALIZE, center:getCenter(), bounds:getBounds(), zoom:getZoomLevel(), when:"onMapBaseInitialize"});
}
function isInitialized() {
return(initialized == true);
}
function onMapBaseMove(event) {
if (oldMap) {
destroyOldMap();
}
updateBounds();
var _local2 = event.delta;
getOverlayContainer()._x = getOverlayContainer()._x + _local2.x;
getOverlayContainer()._y = getOverlayContainer()._y + _local2.y;
getMarkerContainer()._x = getMarkerContainer()._x + _local2.x;
getMarkerContainer()._y = getMarkerContainer()._y + _local2.y;
getToolContainer()._x = getToolContainer()._x + _local2.x;
getToolContainer()._y = getToolContainer()._y + _local2.y;
dispatchEvent({type:(_local8 || (_local8 = com.yahoo.maps.ExtensibleYMap)).MOVE, center:getCenter(), bounds:getBounds(), when:"onMapBaseMove"});
}
function onMapBasePanStart(event) {
dispatchEvent({type:(_local3 || (_local3 = com.yahoo.maps.ExtensibleYMap)).PAN_START});
}
function onMapBasePanStop(event) {
dispatchEvent({type:(_local6 || (_local6 = com.yahoo.maps.ExtensibleYMap)).PAN_STOP, zoomLevel:getZoomLevel(), bounds:getBounds()});
if (!isNavigatorMap()) {
if (event.zoomLevel != undefined) {
setZoomLevel(event.zoomLevel, getCenter());
}
dataService.trackState("pan");
updateCopyright();
dataService.submitTrackStates();
}
}
function onTileLoaded(event) {
dispatchEvent(event);
}
function destroyOldMap() {
destroyMap(oldMap);
}
function destroyMap(m) {
m.removeMovieClip();
}
function setCenterByLatLon(latlon, panDuration, sendPanEvts, zoomLevel) {
if (!isZooming) {
sendPanEvents = sendPanEvts;
if (sendPanEvents == undefined) {
sendPanEvents = true;
}
latitude = Number(latlon.__get__lat());
longitude = Number(latlon.__get__lon());
if (isNaN(latitude) || (isNaN(longitude))) {
return(undefined);
}
var _local8 = map.getCenter();
var _local4 = (_local12 || (_local12 = Math)).abs(latitude - _local8.m_lat);
var _local3 = (_local12 || (_local12 = Math)).abs(longitude - _local8.m_lon);
var _local9 = 1 << (26 - zoom);
var _local7 = 360 / _local9;
session.setAttribute("latitude", latitude);
session.setAttribute("longitude", longitude);
if (((panDuration == 0) || (panDuration == null)) && (((_local4 > _local3) && (((2 * height) * _local7) > _local4)) || ((_local4 <= _local3) && (((2 * width) * _local7) > _local3)))) {
map.setCenterByLatLon(new com.yahoo.maps.LatLon(latitude, longitude), 0, zoomLevel);
} else if (panDuration > 0) {
map.setCenterByLatLon(new com.yahoo.maps.LatLon(latitude, longitude), panDuration, zoomLevel);
} else if ((zoomLevel != undefined) && (zoomLevel != getZoomLevel())) {
create(latlon, zoomLevel, null, null, null, null, mapViewType);
} else {
create(latlon, getZoomLevel(), null, null, null, null, mapViewType);
}
}
}
function setCenterByLatLonAndZoom(latlon, zoomLevel, panDuration) {
if (!isZooming) {
if (((latlon.__get__lat() == null) || (latlon.__get__lon() == null)) || (zoomLevel == null)) {
return(undefined);
}
if ((panDuration != undefined) && (panDuration != 0)) {
map.setCenterByLatLon(latlon, panDuration, zoomLevel);
} else {
create(latlon, zoomLevel, null, null, null, null, mapViewType);
}
}
}
function setCenterByPointDelta(delta, panDuration) {
if (!isZooming) {
map.setCenterByDelta(delta, panDuration);
}
}
function setCenterByAddress(address, panDuration) {
var _local2 = new Object();
_local2.originalAddress = address;
_local2.panDuration = panDuration;
_geocoder.getLatLon(address, {classRef:this, o:_local2});
}
function setCenterByAddressAndZoom(address, zoomLevel, panDuration) {
var _local2 = new Object();
_local2.originalAddress = address;
_local2.zoomLevel = zoomLevel;
_local2.panDuration = panDuration;
_geocoder.getLatLon(address, {classRef:this, o:_local2});
}
function onGeocodeSuccess(event) {
var _local2 = event.passThru;
if ((_local2.o.zoomLevel != undefined) && (_local2.o.zoomLevel != zoom)) {
_local2.classRef.setCenterByLatLonAndZoom(event.latlon, _local2.o.zoomLevel, _local2.o.panDuration);
} else {
_local2.classRef.setCenterByLatLon(event.latlon, _local2.o.panDuration);
}
_local2.classRef.dispatchEvent({type:(_local10 || (_local10 = com.yahoo.maps.ExtensibleYMap)).MAP_GEOCODE_SUCCESS, latlon:event.latlon, response:event.response, address:event.address, set:event.set, cached:event.cached});
}
function onGeocodeError(event) {
var _local5 = event.passThru.classRef;
if (!initialized) {
create(new com.yahoo.maps.LatLon((_local8 || (_local8 = com.yahoo.maps.ExtensibleYMap)).DEFAULT_LAT, (_local8 || (_local8 = com.yahoo.maps.ExtensibleYMap)).DEFAULT_LON), 14, null, null, null, null, mapViewType);
}
dispatchEvent({type:(_local8 || (_local8 = com.yahoo.maps.ExtensibleYMap)).MAP_GEOCODE_ERROR, originalAddress:event.originalAddress, suggestedAddresses:event.suggestedAddresses, message:"Unable to parse address, using default lat/lon"});
}
function onGetMapAddress(event) {
var _local3 = event.data;
var _local11 = new Array();
var _local5 = event.passThrough;
if (_local3.length == 1) {
var _local20 = new com.yahoo.maps.LatLon(Number(_local3[0]._lat), Number(_local3[0]._lon));
if ((_local5.zoomLevel != undefined) && (_local5.zoomLevel != zoom)) {
setCenterByLatLonAndZoom(_local20, _local5.zoomLevel, _local5.panDuration);
} else {
setCenterByLatLon(_local20, _local5.panDuration);
}
var _local6 = {latlon:_local20, mag:_local3[0]._mag, status:_local3[0]._status, country:_local3[0]._country, dma:_local3[0]._dma, zip:_local3[0]._zip, state:_local3[0]._state, county:_local3[0]._county, city:_local3[0]._city, street:_local3[0]._street, qty:_local3[0]._qty, warning:_local3[0]._warning};
dispatchEvent({type:(_local26 || (_local26 = com.yahoo.maps.ExtensibleYMap)).MAP_GEOCODE_SUCCESS, latlon:_local20, response:_local6});
return(undefined);
}
if (_local3.length > 0) {
var _local2 = 0;
while (_local2 < _local3.length) {
var _local4 = new com.yahoo.maps.data.SuggestedAddress();
_local4.parseLocation(_local3[_local2]);
_local11.push(_local4);
_local2++;
}
}
setCenterByLatLon(new com.yahoo.maps.LatLon((_local26 || (_local26 = com.yahoo.maps.ExtensibleYMap)).DEFAULT_LAT, (_local26 || (_local26 = com.yahoo.maps.ExtensibleYMap)).DEFAULT_LON), 0);
dispatchEvent({type:(_local26 || (_local26 = com.yahoo.maps.ExtensibleYMap)).MAP_GEOCODE_ERROR, originalAddress:event.originalAddress, suggestedAddresses:_local11, message:"Unable to parse address, using default lat/lon"});
}
function onGetMapError(event) {
if (!initialized) {
create(new com.yahoo.maps.LatLon((_local6 || (_local6 = com.yahoo.maps.ExtensibleYMap)).DEFAULT_LAT, (_local6 || (_local6 = com.yahoo.maps.ExtensibleYMap)).DEFAULT_LON), 14, null, null, null, null, mapViewType);
}
dispatchEvent({type:(_local6 || (_local6 = com.yahoo.maps.ExtensibleYMap)).MAP_GEOCODE_ERROR, originalAddress:event.originalAddress, message:"Unable to parse address, using default lat/lon"});
}
function getCenter() {
var _local2 = map.getCenter();
return(new com.yahoo.maps.LatLon(_local2.m_lat, _local2.m_lon));
}
function getLatLon(point, localP, action) {
if (action == undefined) {
action = "";
}
var _local2 = map.getLatLon(point);
dispatchEvent({type:(_local8 || (_local8 = com.yahoo.maps.ExtensibleYMap)).ONCLICK, latlon:_local2, local:localP, action:action});
return(_local2);
}
function setZoomLevel(zoom, latlon) {
if (isZooming == true) {
map.cancelTileRequests();
}
if ((((zoom == undefined) || (zoom == this.zoom)) || (zoom < 1)) || (zoom > 25)) {
return(undefined);
}
if (scaleEffect != undefined) {
return(undefined);
}
isZooming = true;
startZoom = this.zoom;
endZoom = zoom;
var _local4 = 100 * (_local13 || (_local13 = Math)).pow(2, this.zoom - zoom);
if (latlon != undefined) {
var ll = latlon;
} else {
var _local6 = Number(session.getAttribute("latitude"));
var _local5 = Number(session.getAttribute("longitude"));
var ll = (new com.yahoo.maps.LatLon(_local6, _local5));
}
var width = width;
var height = height;
var x = x;
var y = y;
var mapViewType = mapViewType;
var scope = this;
var _local2 = new Object();
_local2.latlon = ll;
_local2.zoom = zoom;
_local2.width = width;
_local2.height = height;
_local2.startZoom = startZoom;
_local2.endZoom = endZoom;
_local2.mapViewType = mapViewType;
_local2.onScaleEffect = function (e) {
if (e.type == "complete") {
scope.markerContainer._visible = true;
scope.overlayContainer._visible = true;
scope.create(ll, zoom, width, height, x, y, mapViewType);
scope.scaleEffect = undefined;
} else if (e.type == "move") {
var _local6 = Number(this.startZoom) + ((this.endZoom - this.startZoom) * e.data.percentComplete);
scope.dispatchEvent({type:(_local7 || (_local7 = com.yahoo.maps.ExtensibleYMap)).ZOOM, startZoomLevel:this.startZoom, currentZoomLevel:_local6, endZoomLevel:this.endZoom});
}
};
dispatchEvent({type:(_local12 || (_local12 = com.yahoo.maps.ExtensibleYMap)).ZOOM_START, startZoomLevel:startZoom, endZoomLevel:endZoom});
var _local3 = (_local13 || (_local13 = Math)).abs(endZoom - startZoom) * 300;
if ((_local3 == null) || (_local3 < 500)) {
_local3 = 500;
}
oldMap._visible = false;
if ((initialized == true) && ((_local13 || (_local13 = Math)).abs(this.zoom - zoom) < 6)) {
markerContainer._visible = false;
overlayContainer._visible = false;
map.hideHybridTiles();
scaleEffect = new com.yahoo.maps.flash.ScaleEffect(map.mc, _local4, _local3, _local2, width, height);
} else {
create(ll, zoom, width, height, x, y, mapViewType);
}
this.zoom = zoom;
}
function getZoomLevel() {
return(zoom);
}
function setBounds(bounds) {
var _local6 = (bounds.maxLat + bounds.minLat) / 2;
var _local5 = (bounds.maxLon + bounds.minLon) / 2;
var _local9 = (_local13 || (_local13 = Math)).abs(bounds.maxLat - bounds.minLat);
var _local8 = (_local13 || (_local13 = Math)).abs(bounds.maxLon - bounds.minLon);
var _local4 = ((_local9 > _local8) ? (height / _local9) : (width / _local8));
var _local2 = 1;
while (_local2 <= 16) {
var _local3 = 1 << (26 - _local2);
if ((_local3 / 360) < _local4) {
create(new com.yahoo.maps.LatLon(_local6, _local5), _local2, null, null, null, null, mapViewType);
dataService.trackState("ll", true);
break;
}
_local2++;
}
updateBounds();
dispatchEvent({type:(_local11 || (_local11 = com.yahoo.maps.ExtensibleYMap)).SET_BOUNDS_COMPLETE});
}
function updateBounds() {
var _local2 = local_to_latlon(new mx.graphics.Point(0, 0));
var _local3 = local_to_latlon(new mx.graphics.Point(width, height));
bounds = new com.yahoo.maps.LatLonRect(_local2.__get__lat(), _local2.__get__lon(), _local3.__get__lat(), _local3.__get__lon());
}
function getBounds() {
return(bounds);
}
function move(x, y) {
this.x = x;
this.y = y;
map.move(this.x, this.y);
}
function setSize(w, h) {
_isResizing = true;
oldMap._visible = false;
var _local3 = (width - w) / 2;
var _local2 = (height - h) / 2;
map.container._x = map.container._x - _local3;
map.container._y = map.container._y - _local2;
width = w;
height = h;
resizeToolContainer();
resizeMarkerContainer();
resizeOverlayContainer();
resizeWidgetContainer();
updateBounds();
startResizeCounter();
}
function startResizeCounter() {
clearResizeInterval();
resizeInterval = setInterval(this, "doResize", 250);
}
function doResize() {
dispatchEvent({type:(_local3 || (_local3 = com.yahoo.maps.ExtensibleYMap)).RESIZE});
_x = 0;
_y = 0;
clearResizeInterval();
create(getCenter(), getZoomLevel(), null, null, null, null, mapViewType);
}
function clearResizeInterval() {
clearInterval(resizeInterval);
resizeInterval = null;
}
function getWidth() {
return(width);
}
function getHeight() {
return(height);
}
function getMinimumRadius() {
return((_local2 || (_local2 = Math)).round((((10 * map.mapProjection.getMetersPerPixel(latlon.__get__lat())) * (_local2 || (_local2 = Math)).min(height, width)) / 2) / 1609.344) * 0.1);
}
function latlon_to_local(latlon) {
var _local7 = map.getCenter();
var _local3 = map.mapProjection.ll_to_pxy(Number(_local7.m_lat), Number(_local7.m_lon));
var _local2 = map.mapProjection.ll_to_pxy(Number(latlon.__get__lat()), Number(latlon.__get__lon()));
var _local6 = _local2.m_x - _local3.m_x;
var _local5 = _local3.m_y - _local2.m_y;
var _local4 = map.getOffset();
_local6 = _local6 - _local4.x;
_local5 = _local5 - _local4.y;
return(new mx.graphics.Point((_local9 || (_local9 = Math)).round(_local6), (_local9 || (_local9 = Math)).round(_local5)));
}
function ll_to_pxy(lat, lon) {
return(map.mapProjection.ll_to_pxy(lat, lon));
}
function getMapBaseOffset() {
return(map.getOffset());
}
function local_to_latlon(point) {
return(map.getLatLon(point));
}
function addMarker(markerClass, latlon, data) {
return(null);
}
function addMarkerByLatLon(markerClass, latlon, data) {
return(markerManager.addMarkerByLatLon(markerClass, latlon, data, this));
}
function addMarkerByAddress(markerClass, address, data) {
return(markerManager.addMarkerByAddress(markerClass, address, data, this));
}
function removeMarker(marker) {
markerManager.removeMarker(marker);
}
function removeAllMarkers() {
markerManager.removeAllMarkersByOwner(this);
}
function addOverlay(overlay) {
overlayManager.addOverlay(overlay);
}
function removeOverlay(overlay) {
overlayManager.removeOverlay(overlay);
}
function addTool(tool, activate) {
toolManager.addTool(tool, activate);
}
function removeTool(tool) {
toolManager.removeTool(tool);
}
function setActiveTool(tool) {
toolManager.setActiveTool(tool);
}
function getTools() {
return(toolManager.getTools());
}
function getActiveTool() {
return(toolManager.getActiveTool());
}
function addWidget(widget) {
widgetManager.addWidget(widget);
}
function removeWidget(widget) {
widgetManager.removeWidget(widget);
}
function enableKeyboardShortcuts(enabled) {
if (keyboardShortcutsEnabled != enabled) {
keyboardShortcutsEnabled = enabled;
if (enabled) {
(_local3 || (_local3 = Key)).addListener(keyListener);
} else {
(_local3 || (_local3 = Key)).removeListener(keyListener);
}
}
}
function onMapKeyDown() {
if (Selection.getFocus() == null) {
isNavKeyPressed = true;
if ((_local4 || (_local4 = Key)).getCode() == 38) {
var _local2 = new mx.graphics.Point(0, 20);
setCenterByPointDelta(_local2);
trackUserPanning(_local2);
} else if ((_local4 || (_local4 = Key)).getCode() == 39) {
var _local2 = new mx.graphics.Point(-20, 0);
setCenterByPointDelta(_local2);
trackUserPanning(_local2);
} else if ((_local4 || (_local4 = Key)).getCode() == 40) {
var _local2 = new mx.graphics.Point(0, -20);
setCenterByPointDelta(_local2);
trackUserPanning(_local2);
} else if ((_local4 || (_local4 = Key)).getCode() == 37) {
var _local2 = new mx.graphics.Point(20, 0);
setCenterByPointDelta(_local2);
trackUserPanning(_local2);
} else if ((_local4 || (_local4 = Key)).getCode() == 187) {
if ((isNavigatorMap() && (!isZooming)) && (zoom > ((_local3 || (_local3 = com.yahoo.maps.ExtensibleLabels)).zoomMin + 4))) {
setZoomLevel(zoom - 1, getCenter());
} else if (((!isNavigatorMap()) && (!isZooming)) && (zoom > (_local3 || (_local3 = com.yahoo.maps.ExtensibleLabels)).zoomMin)) {
setZoomLevel(zoom - 1, getCenter());
}
} else if ((_local4 || (_local4 = Key)).getCode() == 189) {
if ((!isZooming) && (zoom < (_local3 || (_local3 = com.yahoo.maps.ExtensibleLabels)).zoomMax)) {
setZoomLevel(zoom + 1, getCenter());
}
} else if ((_local4 || (_local4 = Key)).getCode() == 35) {
var _local2 = new mx.graphics.Point(-450, 0);
setCenterByPointDelta(_local2, 350);
trackUserPanning(_local2);
} else if ((_local4 || (_local4 = Key)).getCode() == 36) {
var _local2 = new mx.graphics.Point(450, 0);
setCenterByPointDelta(_local2, 350);
trackUserPanning(_local2);
} else if ((_local4 || (_local4 = Key)).getCode() == 34) {
var _local2 = new mx.graphics.Point(0, -450);
setCenterByPointDelta(_local2, 350);
trackUserPanning(_local2);
} else if ((_local4 || (_local4 = Key)).getCode() == 33) {
var _local2 = new mx.graphics.Point(0, 450);
setCenterByPointDelta(_local2, 350);
trackUserPanning(_local2);
} else {
isNavKeyPressed = false;
}
if ((_local4 || (_local4 = Key)).getAscii() == (_local6 || (_local6 = com.yahoo.maps.NavKeys)).SAT_KEY_MAP) {
if (!isNavigatorMap()) {
setMapViewType((_local7 || (_local7 = com.yahoo.maps.MapViews)).MAP);
}
} else if ((_local4 || (_local4 = Key)).getAscii() == (_local6 || (_local6 = com.yahoo.maps.NavKeys)).SAT_KEY_HYB) {
if (!isNavigatorMap()) {
setMapViewType((_local7 || (_local7 = com.yahoo.maps.MapViews)).HYBRID);
}
} else if ((_local4 || (_local4 = Key)).getAscii() == (_local6 || (_local6 = com.yahoo.maps.NavKeys)).SAT_KEY_SAT) {
if (!isNavigatorMap()) {
setMapViewType((_local7 || (_local7 = com.yahoo.maps.MapViews)).SATELLITE);
}
} else if ((_local4 || (_local4 = Key)).getAscii() == (_local6 || (_local6 = com.yahoo.maps.NavKeys)).SN_KEY) {
setCenterByAddressAndZoom((_local6 || (_local6 = com.yahoo.maps.NavKeys)).SN_ADD, 4, 600);
} else if ((_local4 || (_local4 = Key)).getAscii() == (_local6 || (_local6 = com.yahoo.maps.NavKeys)).MC_KEY) {
setCenterByAddressAndZoom((_local6 || (_local6 = com.yahoo.maps.NavKeys)).MC_ADD, 4, 600);
}
clearInterval(keyTimer);
}
}
function onMapKeyUp() {
if (isNavKeyPressed) {
clearInterval(keyTimer);
keyTimer = setInterval(this, "onKeyUpDelay", 500);
}
}
function onKeyUpDelay() {
clearInterval(keyTimer);
}
function getTileUrl() {
return(map.tileUrl);
}
function getValidLatLon(args) {
var _local2 = Number(args.__get__lat());
var _local1 = Number(args.__get__lon());
if ((_local2 == null) || (isNaN(_local2))) {
_local2 = (_local4 || (_local4 = com.yahoo.maps.ExtensibleYMap)).DEFAULT_LAT;
}
if ((_local1 == null) || (isNaN(_local1))) {
_local1 = (_local4 || (_local4 = com.yahoo.maps.ExtensibleYMap)).DEFAULT_LON;
}
if (_local2 > 90) {
_local2 = 90;
}
if (_local2 < -90) {
_local2 = -90;
}
if (_local1 > 180) {
_local1 = 180;
}
if (_local1 < -180) {
_local1 = -180;
}
return(new com.yahoo.maps.LatLon(_local2, _local1));
}
function getReverseLatLon(args) {
var _local1;
return(_local1);
}
function initLatLon() {
latlon = getValidLatLon(latlon);
latitude = latlon.lat;
longitude = latlon.lon;
session.setAttribute("latitude", latlon.__get__lat());
session.setAttribute("longitude", latlon.__get__lon());
}
function setMapViewType(viewType) {
session.setAttribute("mapViewType", viewType);
if (mapViewType != viewType) {
map._visible = false;
oldMap._visible = false;
(_local5 || (_local5 = com.yahoo.maps.EventController)).getInstance().sendEvent(this, com.yahoo.maps.AppEvents.onSetMapViewType, {type:viewType});
if (((viewType == (_local7 || (_local7 = com.yahoo.maps.MapViews)).SATELLITE) && (mapViewType == (_local7 || (_local7 = com.yahoo.maps.MapViews)).HYBRID)) || ((viewType == (_local7 || (_local7 = com.yahoo.maps.MapViews)).HYBRID) && (mapViewType == (_local7 || (_local7 = com.yahoo.maps.MapViews)).SATELLITE))) {
map.setViewType(viewType);
map._visible = true;
updateCopyright();
} else {
mapViewType = viewType;
updateCopyright();
create(getCenter(), zoom, width, height, 0, 0, viewType);
}
mapViewType = viewType;
dispatchEvent({type:(_local6 || (_local6 = com.yahoo.maps.ExtensibleYMap)).MAP_TYPE_CHANGED, view:mapViewType});
}
}
function getCurrentMapViewType() {
return(mapViewType);
}
function getMapViewTypes() {
return(com.yahoo.maps.MapViews.all);
}
function registerSessionLatLon() {
var _local2 = getCenter();
session.setAttribute("latitude", _local2.__get__lat());
session.setAttribute("longitude", _local2.__get__lon());
}
function getWidgetFocus() {
return(widgetFocus);
}
function getLocale() {
return(locale);
}
function getLanguage() {
return(language);
}
function getSupportedLocales() {
return(com.yahoo.maps.api.Languages.all);
}
function setLocale(language) {
session.setAttribute("language", language);
config._language = (locale = (this.language = language));
config._customLabels = false;
}
function get mapConfig() {
return(config._userLabels);
}
function set mapConfig(args) {
if (!args) {
return;
}
resetYMapConfig(args);
//return(mapConfig);
}
function setMapConfig(args) {
if (!args) {
return(undefined);
}
resetYMapConfig(args);
}
function resetYMapConfig(args) {
config._customLabels = true;
config._userLabels = args;
}
function dumpYMapConfig() {
config._customLabels = false;
config._userLabels = null;
}
function get useCustomLabel() {
return(config._customLabels);
}
function get maxZoom() {
return((_local1 || (_local1 = com.yahoo.maps.ExtensibleYMap)).MAX_ZOOM);
}
function get minZoom() {
return((_local1 || (_local1 = com.yahoo.maps.ExtensibleYMap)).MIN_ZOOM);
}
function checkPointWithinBounds(bounds, point) {
var _local1 = false;
if ((((point.__get__lat() < bounds.maxLat) || (point.__get__lat() > bounds.minLat)) || (point.__get__lon() > bounds.maxLon)) || (point.__get__lon() < bounds.minLon)) {
_local1 = false;
} else {
_local1 = true;
}
return(_local1);
}
function convertRadiusToZoom(radius) {
var _local1;
switch (radius) {
case radius <= 117.5 :
_local1 = 0;
break;
case radius <= 235 :
_local1 = 1;
break;
case radius <= 470 :
_local1 = 2;
break;
case radius <= 940 :
_local1 = 3;
break;
case radius <= 1880 :
_local1 = 4;
break;
case radius <= 3760 :
_local1 = 5;
break;
case radius <= 7520 :
_local1 = 6;
break;
case radius <= 15040 :
_local1 = 7;
break;
case radius <= 30080 :
_local1 = 8;
break;
case radius <= 60160 :
_local1 = 9;
break;
case radius <= 120320 :
_local1 = 10;
break;
case radius <= 240640 :
_local1 = 11;
break;
case radius <= 481280 :
_local1 = 12;
break;
case radius <= 962560 :
_local1 = 13;
break;
case radius <= 1925120 :
_local1 = 14;
break;
case radius <= 3850240 :
_local1 = 15;
break;
case radius <= 7700480 :
_local1 = 16;
break;
case radius <= 15400960 :
_local1 = 17;
break;
case radius <= 30801920 :
_local1 = 18;
}
return(_local1);
}
function convertZoomToRadius(zoom) {
var _local1;
zoom = 0;
switch (zoom) {
case zoom :
_local1 = 117.5;
break;
case zoom = 1zoom :
_local1 = 235;
break;
case zoom = 2zoom :
_local1 = 470;
break;
case zoom = 3zoom :
_local1 = 940;
break;
case zoom = 4zoom :
_local1 = 1880;
break;
case zoom = 5zoom :
_local1 = 3760;
break;
case zoom = 6zoom :
_local1 = 7520;
break;
case zoom = 7zoom :
_local1 = 15040;
break;
case zoom = 8zoom :
_local1 = 30080;
break;
case zoom = 9zoom :
_local1 = 60160;
break;
case zoom = 10zoom :
_local1 = 120320 /* 0x01D600 */;
break;
case zoom = 11zoom :
_local1 = 240640 /* 0x03AC00 */;
break;
case zoom = 12zoom :
_local1 = 481280 /* 0x075800 */;
break;
case zoom = 13zoom :
_local1 = 962560 /* 0x0EB000 */;
break;
case zoom = 14zoom :
_local1 = 1925120 /* 0x1D6000 */;
break;
case zoom = 15zoom :
_local1 = 3850240 /* 0x3AC000 */;
break;
case zoom = 16zoom :
_local1 = 7700480 /* 0x758000 */;
break;
case zoom = 17zoom :
_local1 = 15400960 /* 0xEB0000 */;
break;
case zoom = 18zoom :
_local1 = 30801920 /* 0x1D60000 */;
}
return(_local1);
}
function addEventListener(event, listener) {
}
function removeEventListener(event, listener) {
}
function dispatchEvent(o) {
}
static var __registered = Object.registerClass("com.yahoo.maps.ExtensibleYMap", com.yahoo.maps.ExtensibleYMap);
static var CREATION_COMPLETE = "creationComplete";
static var RESIZE = "resize";
static var MOVE = "move";
static var PAN_START = "panStart";
static var PAN_STOP = "panStop";
static var ZOOM = "zoom";
static var ZOOM_START = "zoomStart";
static var ZOOM_STOP = "zoomStop";
static var ONCLICK = "onClick";
static var MAP_GEOCODE_ERROR = "mapGeocodeError";
static var MAP_GEOCODE_SUCCESS = "mapGeocodeSuccess";
static var MAP_TYPE_CHANGED = "mapTypeChanged";
static var MARKER_GEOCODE_ERROR = "markerGeocodeError";
static var MARKER_GEOCODE_SUCCESS = "markerGeocodeSuccess";
static var MARKER_DRAG_START = "markerDragStart";
static var MARKER_DRAG_STOP = "markerDragStop";
static var MARKER_DRAG = "markerDrag";
static var POI_CLICKED = "poiMarkerClicked";
static var CUSTOM_MARKER_LOADED = "customMarkerLoaded";
static var CUSTOM_OVERLAY_LOADED = "customOverlayLoaded";
static var INITIALIZE = "initialize";
static var TILE_LOADED = "tileLoaded";
static var NAVIGATOR_STATE_CHANGED = "navigatorStateChanged";
static var SET_BOUNDS_COMPLETE = "setBoundsComplete";
static var TOOL_ADDED = "toolAdded";
static var TOOL_REMOVED = "toolRemoved";
static var TOOL_CHANGE = "toolChange";
static var MAPTILES_LOADED = "mapTilesLoaded";
static var CUSTOM_WIDGET_LOADED = "customWidgetLoaded";
static var WAYPOINTMARKER_ADDED = "waypointMarkerAdded";
static var MAP_BASE_INITIALIZE = "mapBaseInitialize";
static var DEPTH_OLD_MAP = 1;
static var DEPTH_NEW_MAP = 2;
static var DEPTH_OVERLAY_CONTAINER = 3;
static var DEPTH_TOOL_CONTAINER = 5;
static var DEPTH_TOOL_MOUSE_CONTAINER = 7;
static var DEPTH_MARKER_CONTAINER = 9;
static var DEPTH_WIDGET_CONTAINER = 11;
static var DEFAULT_LAT = 39.23225;
static var DEFAULT_LON = -99.84375;
static var DEFAULT_ZOOM = 14;
static var DEFAULT_MAP_VIEW_TYPE = com.yahoo.maps.MapViews.MAP;
static var MAX_ZOOM = 17;
static var MIN_ZOOM = 1;
var clickCount = 0;
var mapViewType = com.yahoo.maps.MapViews.MAP;
var sendPanEvents = true;
var _isResizing = false;
var widgetFocus = false;
static var symbolOwner = com.yahoo.maps.ExtensibleYMap;
static var symbolName = "com.yahoo.maps.ExtensibleYMap";
var className = "ExtensibleYMap";
}
Symbol 178 MovieClip [__Packages.com.yahoo.maps.ExtensibleDataService] Frame 0
class com.yahoo.maps.ExtensibleDataService
{
var _config, _session, _serviceURL, _fromAddress, dispatchEvent, _localSearchBeginIndex, _appid, _apptype;
function ExtensibleDataService () {
mx.events.EventDispatcher.initialize(this);
_config = com.yahoo.maps.ExtensibleConfig.getInstance();
if (!_config.isLoaded) {
_config.addEventListener("onLoad", (_local3 || (_local3 = mx.utils.Delegate)).create(this, onLoadConfig));
} else {
onLoadConfig();
}
_session = (_local2 || (_local2 = com.macromedia.mc.platform.Session)).getInstance();
(_local4 || (_local4 = com.yahoo.maps.ExtensibleDataService))._trackStates = new Array();
}
function onLoadConfig() {
_serviceURL = _config.dataServiceURL;
}
function getMap(address, passThrough) {
(_local7 || (_local7 = com.yahoo.maps.ExtensibleDataService))._getMapRequestCounter++;
var _local2 = (_config.__get__dataServiceURL() + "/") + _config.__get__getMap();
var _local3 = "q=" + escape(address);
_fromAddress = address;
var _local4 = getPendingCall(this, _local2, _local3, "onGetMap", "onGetMapError", passThrough);
}
function onGetMap(x) {
var _local2 = new com.yahoo.maps.data.Locations(x);
if (isNaN(_local2[0].lat)) {
onGetMapError(x.passThrough);
} else {
generateOnGetMapEvent(_local2, x.passThrough);
}
(_local4 || (_local4 = com.yahoo.maps.ExtensibleDataService))._getMapRequestCounter--;
submitTrackStates();
}
function generateOnGetMapEvent(a, passThrough) {
var _local2 = a[0]._mag;
dispatchEvent({type:"onGetMap", data:a, passThrough:passThrough, suggestedZoom:_local2});
}
function onGetMapError(passThrough) {
dispatchEvent({type:"onGetMapError", passThrough:passThrough});
(_local4 || (_local4 = com.yahoo.maps.ExtensibleDataService))._getMapRequestCounter--;
submitTrackStates();
}
function encode(s) {
var _local1 = s.split(", ").join(",");
_local1 = _local1.split(" ").join(" ");
_local1 = _local1.split(" ").join("+");
return(_local1);
}
function getTraffic(lat, lon, zoom, radius) {
var _local3 = (_serviceURL + "/") + _config.__get__getTraffic();
var _local2 = "lat=" + String(lat);
_local2 = _local2 + ("&lon=" + String(lon));
_local2 = _local2 + ("&mag=" + String(zoom));
_local2 = _local2 + ("&d=" + String(radius));
_local2 = _local2 + "&sp=60";
var _local4 = getPendingCall(this, _local3, _local2, "onGetTraffic", "onGetTrafficError");
}
function onGetTraffic(x) {
dispatchEvent({type:"onGetTraffic", data:new com.yahoo.maps.data.Traffic(x)});
}
function onGetTrafficError(o) {
dispatchEvent({type:"onGetTrafficError"});
}
function getLocalSearch(search, lat, lon, begin, n, radius, ycatfilt, ratingfilt) {
if (lat == null) {
lat = 37.769309568421;
}
if (lon == null) {
lon = -122.402432874639;
}
_localSearchBeginIndex = begin;
radius = (isNaN(radius) ? 1 : (radius));
ycatfilt = ((ycatfilt == null) ? "" : (ycatfilt));
ratingfilt = ((ratingfilt == null) ? "" : (ratingfilt));
var _local7 = (_config.__get__localSearchURL() + "/") + _config.__get__getLocalSearch();
var _local2 = "stx=" + search;
_local2 = _local2 + ("&lat=" + lat);
_local2 = _local2 + ("&lon=" + lon);
_local2 = _local2 + ("&begin=" + begin);
_local2 = _local2 + ("&n=" + n);
_local2 = _local2 + ("&ycatfilt=" + ycatfilt);
_local2 = _local2 + ("&ratingfilt=" + ratingfilt);
_local2 = _local2 + ("&radius=" + radius);
var _local6 = _session.getAttribute("lastAddress").toString();
if (_local6 != null) {
_local2 = _local2 + ("&csz=" + _local6);
}
var _local10 = getPendingCall(this, _local7, _local2, "onGetLocalSearch", "onGetLocalSearchError");
}
function onGetLocalSearch(x) {
if (x.firstChild.firstChild.nodeName == "error") {
onGetLocalSearchError();
} else {
dispatchEvent({type:"onGetLocalSearch", data:new com.yahoo.maps.data.LocalSearch(x, _localSearchBeginIndex)});
}
}
function onGetLocalSearchError() {
dispatchEvent({type:"onGetLocalSearchError"});
}
function proxyEvent(event) {
if (event.hasExecuted != true) {
event.hasExecuted = true;
dispatchEvent(event);
}
}
function set appid(arg) {
_appid = arg;
//return(appid);
}
function get apptype() {
if (_apptype == undefined) {
if (_root.apptype == undefined) {
_apptype = "flex";
} else {
_apptype = _root.apptype;
}
}
return(_apptype);
}
function set apptype(arg) {
_apptype = arg;
//return(apptype);
}
function get appid() {
if (_appid == undefined) {
if (_root.appid == undefined) {
_appid = "none";
} else {
_appid = _root.appid;
}
}
return(_appid);
}
function getPendingCall(scope, serviceURL, args, handler, errorHandler, passThrough) {
if (args.length > 0) {
args = args + "&";
}
args = args + (((("appid=" + appid) + "&apptype=") + apptype) + "&source=api");
return(new com.yahoo.maps.PendingCall(scope, serviceURL, args, handler, errorHandler, passThrough));
}
function trackState(code, delaySubmit) {
(_local4 || (_local4 = com.yahoo.maps.ExtensibleDataService))._trackStates.push(code);
if (!delaySubmit) {
submitTrackStates();
}
}
function submitTrackStates() {
if (((_local16 || (_local16 = com.yahoo.maps.ExtensibleDataService))._satImageDataRequestCounter > 0) || ((_local16 || (_local16 = com.yahoo.maps.ExtensibleDataService))._getMapRequestCounter > 0)) {
return(undefined);
}
if ((_local16 || (_local16 = com.yahoo.maps.ExtensibleDataService))._trackStates.length >= 1) {
var _local4 = (_config.__get__trackStateURL() + "/") + _config.__get__trackState();
var _local3;
var _local2 = unescape((_local13 || (_local13 = com.yahoo.maps.flex.HistoryManager)).getInstance().hash);
var _local5;
_local2 = _local2 + ((("&swpx=" + (_local17 || (_local17 = Math)).round((_local14 || (_local14 = Stage)).width)) + "&shpx=") + (_local17 || (_local17 = Math)).round((_local14 || (_local14 = Stage)).height));
var _local6 = (_local15 || (_local15 = com.macromedia.mc.platform.Session)).getInstance().getAttribute("map");
if (_local6) {
_local2 = _local2 + ((("&wpx=" + (_local17 || (_local17 = Math)).round(_local6.width)) + "&hpx=") + (_local17 || (_local17 = Math)).round(_local6.height));
var _local12 = _local6.getCenter();
var _local11 = _local12.__get__lat() || ((_local15 || (_local15 = com.macromedia.mc.platform.Session)).getInstance().getAttribute("latitude"));
var _local10 = _local12.__get__lon() || ((_local15 || (_local15 = com.macromedia.mc.platform.Session)).getInstance().getAttribute("longitude"));
if (_local11 && (_local10)) {
_local2 = _local2 + ((((("&lat=" + _local11) + "&lon=") + _local10) + "&mag=") + _local6.getZoomLevel());
}
}
var _local9 = (_local15 || (_local15 = com.macromedia.mc.platform.Session)).getInstance().getAttribute("mapViewType");
if (_local9) {
_local2 = _local2 + ("&mvt=" + _local9.substr(0, 1));
}
var _local8 = String(_session.getAttribute("tileImgSRC"));
if (_local8 && (_local8 != "undefined")) {
_local2 = _local2 + ("&ds_coi=" + _local8);
}
for (var _local7 in (_local16 || (_local16 = com.yahoo.maps.ExtensibleDataService))._trackStates) {
_local3 = ((("op=" + (_local16 || (_local16 = com.yahoo.maps.ExtensibleDataService))._trackStates[_local7]) + _local2) + "&r=") + (_local17 || (_local17 = Math)).round((_local17 || (_local17 = Math)).random() * 1000000);
_local5 = getPendingCall(this, _local4, _local3, "onSubmitTrackState");
}
(_local16 || (_local16 = com.yahoo.maps.ExtensibleDataService))._trackStates = new Array();
}
}
function onSubmitTrackState(x) {
var _local2 = (_local4 || (_local4 = com.yahoo.maps.BeaconCaller)).getInstance();
var _local1 = x.firstChild.firstChild;
while (_local1 != null) {
if (_local1.nodeName.toLowerCase() == "csc_beacon") {
_local2.callBeacon(_local1.firstChild.nodeValue);
}
_local1 = _local1.nextSibling;
}
}
function getSatImageData(rows, cols, row1, col1, zoom1) {
(_local10 || (_local10 = com.yahoo.maps.ExtensibleDataService))._satImageDataRequestCounter++;
var _local2 = _config.__get__imgMetaURL() + "/copyright";
var _local3 = (((((((((("t=xml&rows=" + rows) + "&cols=") + cols) + "&row1=") + row1) + "&col1=") + col1) + "&zoom1=") + zoom1) + "&version1=") + _config.__get__satelliteBatch();
var _local4 = new com.yahoo.maps.PendingCall(this, _local2, _local3, "onGetSatImageData", "onGetSatImageDataError");
}
function onGetSatImageData(x) {
var _local13 = "";
var _local5 = new Array();
var _local11 = "";
var _local10 = x.firstChild.childNodes;
var _local4 = 0;
while (_local4 < _local10.length) {
var _local6 = false;
var _local3 = _local10[_local4].childNodes;
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2].nodeName == "COPY") {
_local5.push(_local3[_local2].firstChild.nodeValue);
}
if (_local3[_local2].nodeName == "CSHORT") {
var _local7 = _local3[_local2].firstChild.nodeValue;
}
if ((_local3[_local2].nodeName == "CENTER") && (_local3[_local2].firstChild.nodeValue == "YES")) {
_local6 = true;
}
_local2++;
}
if (_local6) {
_local11 = _local7;
}
_local4++;
}
_local5.sort();
var _local8 = "";
var _local9 = "";
_local4 = 0;
while (_local4 < _local5.length) {
if (_local5[_local4] != _local8) {
_local8 = _local5[_local4];
if (_local9 == "") {
_local9 = _local9 + _local8;
} else {
_local9 = _local9 + (", " + _local8);
}
}
_local4++;
}
_local13 = (((((_config._imageryLabel + " ") + _config._copyrightSymbolLabel) + " ") + _config._yearLabel) + " ") + _local9;
_session.setAttribute("tileImgSRC", _local11);
dispatchEvent({type:"onGetSatImageData", copyText:_local13});
(_local15 || (_local15 = com.yahoo.maps.ExtensibleDataService))._satImageDataRequestCounter--;
submitTrackStates();
}
function onGetSatImageDataError(x) {
(_local2 || (_local2 = com.yahoo.maps.ExtensibleDataService))._satImageDataRequestCounter--;
submitTrackStates();
}
static var _satImageDataRequestCounter = 0;
static var _getMapRequestCounter = 0;
var _isInited = false;
var className = "ExtensibleDataService";
}
Symbol 175 MovieClip [__Packages.com.yahoo.maps.ExtensibleConfig] Frame 0
class com.yahoo.maps.ExtensibleConfig
{
static var _instance;
var dispatchEvent, httpStat, _dataLabel, _imageryLabel, _copyrightDataLabel, _copyrightSymbolLabel, _copyrightYahooLabel, _yearLabel, _language, _italianLabels, _spanishLabels, _germanLabels, _englishLabels, _frenchLabels, _userLabels, _dataServiceURL, _localSearchURL, _trackStateURL, _getMap, _getTraffic, _getLocalSearch, _getAPI, _trackState, _mapDefaultLocation, _defaultZoom, _imgMetaURL, _mapTileUrl, _hybridTileUrl, _satelliteTileUrl, _hybridBatch, _satelliteBatch;
function ExtensibleConfig () {
}
static function getInstance() {
var _local1 = com.yahoo.maps.ExtensibleConfig;
if (_local1._instance == undefined) {
_local1._instance = new com.yahoo.maps.ExtensibleConfig();
}
if ((mx.events.EventDispatcher != null) && (!_local1._instance.isInited)) {
_local1._instance.isInited = true;
_local1._instance.init();
}
return(_local1._instance);
}
function init() {
mx.events.EventDispatcher.initialize(_instance);
var _local3 = apiConfigUrl;
_local3 = _local3 + ("?r=" + (_local4 || (_local4 = Math)).round((_local4 || (_local4 = Math)).random() * 1000));
var _local2 = new XML();
_local2.ignoreWhite = true;
var scope = this;
_local2.onHTTPStatus = function (httpStatus) {
scope.httpStat = httpStatus;
};
_local2.onLoad = function (success) {
if (success) {
scope.onLoadXML(this);
this=undefined;//parameter overwritten
} else if (!success) {
this.dispatchLoadErrorEvent();
}
};
_local2.load(_local3);
return(true);
}
function onLoadXML(x) {
var _local2 = x.firstChild.childNodes[20];
parseLabelsXML(_local2);
com.yahoo.maps.XMLParser.xmlNodesToObject(this, x.firstChild);
dispatchLoadedEvent();
}
function dispatchLoadedEvent() {
isLoaded = true;
dispatchEvent({type:"onLoad", target:this});
dispatchEvent({type:"onSuccess", httpStatus:httpStat});
}
function dispatchLoadErrorEvent() {
dispatchEvent({type:"onError", target:this, httpStatus:httpStat});
}
function parseLabelsXML(xml) {
var _local14 = new Array("_englishLabels", "_spanishLabels", "_frenchLabels", "_italianLabels", "_germanLabels");
_dataLabel = xml.childNodes[0].childNodes;
_imageryLabel = xml.childNodes[1].childNodes;
_copyrightDataLabel = xml.childNodes[2].childNodes;
_copyrightSymbolLabel = xml.childNodes[3].childNodes;
_copyrightYahooLabel = xml.childNodes[4].childNodes;
_yearLabel = xml.childNodes[5].childNodes;
var _local2 = 6;
while (_local2 <= 10) {
var _local4 = _local14[_local2 - 6];
this[_local4] = {mapLabel:xml.childNodes[_local2].childNodes[0].childNodes, hybridLabel:xml.childNodes[_local2].childNodes[1].childNodes, satelliteLabel:xml.childNodes[_local2].childNodes[2].childNodes, countryLabel:xml.childNodes[_local2].childNodes[3].childNodes, stateLabel:xml.childNodes[_local2].childNodes[4].childNodes, cityLabel:xml.childNodes[_local2].childNodes[5].childNodes, streetLabel:xml.childNodes[_local2].childNodes[6].childNodes, rateItLabel:xml.childNodes[_local2].childNodes[7].childNodes, moreInfoLabel:xml.childNodes[_local2].childNodes[8].childNodes};
_local2++;
}
}
function getMapLocale() {
var _local2 = _language;
var _local3;
if (_customLabels == false) {
if ((_local2 == (_local4 || (_local4 = com.yahoo.maps.api.Languages)).IT) || (_local2 == (_local4 || (_local4 = com.yahoo.maps.api.Languages)).it_IT)) {
_local3 = _italianLabels;
} else if ((_local2 == (_local4 || (_local4 = com.yahoo.maps.api.Languages)).ES) || (_local2 == (_local4 || (_local4 = com.yahoo.maps.api.Languages)).es_ES)) {
_local3 = _spanishLabels;
} else if ((_local2 == (_local4 || (_local4 = com.yahoo.maps.api.Languages)).DE) || (_local2 == (_local4 || (_local4 = com.yahoo.maps.api.Languages)).de_DE)) {
_local3 = _germanLabels;
} else if (((_local2 == (_local4 || (_local4 = com.yahoo.maps.api.Languages)).en_GB) || (_local2 == (_local4 || (_local4 = com.yahoo.maps.api.Languages)).en_US)) || (_local2 == (_local4 || (_local4 = com.yahoo.maps.api.Languages)).en_IN)) {
_local3 = _englishLabels;
} else if ((((_local2 == (_local4 || (_local4 = com.yahoo.maps.api.Languages)).CF) || (_local2 == (_local4 || (_local4 = com.yahoo.maps.api.Languages)).fr_CA)) || (_local2 == (_local4 || (_local4 = com.yahoo.maps.api.Languages)).FR)) || (_local2 == (_local4 || (_local4 = com.yahoo.maps.api.Languages)).fr_FR)) {
_local3 = _frenchLabels;
} else {
_local3 = _englishLabels;
}
} else {
_local3 = _userLabels;
}
return(_local3);
}
function get dataServiceURL() {
return(_dataServiceURL);
}
function get localSearchURL() {
return(_localSearchURL);
}
function get trackStateURL() {
return(_trackStateURL);
}
function get getMap() {
return(_getMap);
}
function get getTraffic() {
return(_getTraffic);
}
function get getLocalSearch() {
return(_getLocalSearch);
}
function get getAPI() {
return(_getAPI);
}
function get trackState() {
return(_trackState);
}
function get mapDefaultLocation() {
return(_mapDefaultLocation);
}
function get defaultZoom() {
return(Number(_defaultZoom));
}
function get imgMetaURL() {
if (_imgMetaURL == undefined) {
return("http://a1.maps.re4.yahoo.com");
}
return(_imgMetaURL);
}
function get pngMapTileUrl() {
return(_mapTilePngURL);
}
function get mapTileUrl() {
return(_mapTileUrl);
}
function get hybridTileUrl() {
return(_hybridTileUrl);
}
function get satelliteTileUrl() {
return(_satelliteTileUrl);
}
function get hybridBatch() {
return(_hybridBatch);
}
function get satelliteBatch() {
return(_satelliteBatch);
}
var apiConfigUrl = "http://maps.yahooapis.com/xml/apiconfig.xml";
var isLoaded = false;
var isInited = false;
var _mapTilePngURL = "http://us.maps2.yimg.com/us.png.maps.yimg.com/png?";
var _customLabels = false;
var _flickrApiURL = "http://api.flickr.com/services/rest/";
var _upcomingApiURL = "http://upcoming.yahooapis.com/services/rest/";
var _travelApiURL = "http://travel.yahooapis.com/TripService/V1/";
var _trafficApiURL = "http://local.yahooapis.com/MapsService/V1/";
var _weatherApiURL = "http://weather.yahooapis.com/";
var className = "ExtensibleConfig";
}
Symbol 121 MovieClip [__Packages.com.macromedia.mc.platform.Session] Frame 0
class com.macromedia.mc.platform.Session
{
var mSessionContainer;
function Session () {
mSessionContainer = new Object();
}
static function getInstance() {
var _local1 = com.macromedia.mc.platform.Session;
if (_local1.gInstance == undefined) {
_local1.gInstance = new com.macromedia.mc.platform.Session();
}
return(_local1.gInstance);
}
function setAttribute(key, obj) {
mSessionContainer[key] = obj;
}
function getAttribute(key) {
return(mSessionContainer[key]);
}
function invalidate() {
mSessionContainer = null;
}
var className = "Session";
}
Symbol 134 MovieClip [__Packages.com.yahoo.maps.PendingCall] Frame 0
class com.yahoo.maps.PendingCall
{
var _config, htmlArgs;
function PendingCall (scope, serviceURL, args, handler, errorHandler, passThrough) {
_config = (_local11 || (_local11 = com.yahoo.maps.Config)).getInstance();
var _local6 = "&ei=UTF-8";
var _local8 = ("&.intl=" + _config.__get__countryCode()) + _local6;
var _local4 = "&sessionID=" + _config.__get__sessionID();
var _local5 = "&glt=" + _config.__get__glt();
var _local7 = "&.crumb=" + _config.__get__crumb();
var _local2 = new XML();
_local2.passThrough = passThrough;
_local2.ignoreWhite = true;
_local2.owner = this;
htmlArgs = null;
if (args != null) {
parseHTMLArgs(args);
}
_local2.onLoad = function (success) {
com.yahoo.maps.DataService.getInstance().debugLog(success, this._timeStart, getTimer(), this._url);
if (this.owner.htmlArgs != null) {
this.appendChild(this.owner.htmlArgs.firstChild);
}
scope[(success ? (handler) : (errorHandler))](this);
(_local3 || (_local3 = com.yahoo.maps.PrintableMapProxy)).getInstance().proxyEvent(handler, this);
this=undefined;//parameter overwritten
};
_local2._url = ((((serviceURL + ((args != null) ? ("?" + args) : "")) + ((_config.__get__countryCode() != null) ? (_local8) : "")) + ((_config.__get__sessionID() != null) ? (_local4) : "")) + ((_config.__get__crumb() != null) ? (_local7) : "")) + ((_config.__get__glt() != null) ? (_local5) : "");
_local2._timeStart = getTimer();
_local2.load(_local2._url);
}
function parseHTMLArgs(args) {
var _local4;
var _local5;
htmlArgs = new XML();
var _local3;
var _local6 = htmlArgs.createElement("htmlArgs");
htmlArgs.appendChild(_local6);
if (args.indexOf("?") > -1) {
_local5 = args.split("?");
args = _local5[1];
}
_local5 = args.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
_local4 = _local5[_local2].split("=");
_local3 = htmlArgs.createElement(_local4[0]);
_local3.appendChild(htmlArgs.createTextNode(_local4[1]));
_local6.appendChild(_local3);
_local2++;
}
}
var className = "PendingCall";
}
Symbol 123 MovieClip [__Packages.com.yahoo.maps.Config] Frame 0
class com.yahoo.maps.Config
{
var _dataServiceURL, _localSearchURL, _categoriesURL, _businessLocatorURL, _smartViewURL, _phoneNumbersURL, _sendToPhoneURL, _trackStateURL, _mapConfigURL, _adURL, _getULM, _getMap, _getDrivingDirections, _getTraffic, _getLocalSearch, _getCategories, _getBusinessLocatorTrack, _getBusinessLocatorHeight, _refreshRate, _getMapConfig, _getAds, _getAddressBook, _getSmartView, _getPhoneNumbers, _sendToPhone, _getAPI, _trackState, _leftColumnWidth, _leftColumnOuterWidth, _mapDefaultLocation, _mapDefaultLat, _mapDefaultLon, _defaultZoom, _countryZoom, _stateZoom, _cityZoom, _streetZoom, _saveEditLocationsURL, _addEditLocationsURL, _editAddressesURL, _clearRecentLocationsURL, _whatsThisURL, _tileURL, _hybridURL, _satelliteURL, _imgMetaURL, _hybridBatch, _satelliteBatch, _categoryVersion, _countryCode, _classicMapsUrl, _msgContentURL, _msgLapse, _splashURL, _sessionID, _crumb, broadbandTour, help, feedBack, mapsTOS, privacy, yTOS, devNet, allowAttribution, _lsaImagePath, _lsaURL, _lsa, _glt, _DD_DIST_UNIT, _DD_TOTAL_DIST_UNIT;
function Config () {
init();
}
static function getInstance() {
var _local1 = com.yahoo.maps.Config;
if (_local1._instance == undefined) {
_local1._instance = new com.yahoo.maps.Config();
}
return(_local1._instance);
}
function init() {
_dataServiceURL = _root.dataServiceURL;
_localSearchURL = _root.localSearchURL;
_categoriesURL = _root.categoriesURL;
_businessLocatorURL = _root.businessLocatorURL;
_smartViewURL = _root.smartViewURL;
_phoneNumbersURL = _root.phoneNumbersURL;
_sendToPhoneURL = _root.sendToPhoneURL;
_trackStateURL = _root.trackStateURL;
_mapConfigURL = _root.mapConfigURL;
_adURL = _root.adURL;
_getULM = _root.getULM;
_getMap = _root.getMap;
_getDrivingDirections = _root.getDrivingDirections;
_getTraffic = _root.getTraffic;
_getLocalSearch = _root.getLocalSearch;
_getCategories = _root.getCategories;
_getBusinessLocatorTrack = _root.getBusinessLocatorTrack;
_getBusinessLocatorHeight = _root.getBusinessLocatorHeight;
_refreshRate = _root.refreshRate;
_getMapConfig = _root.getMapConfig;
_getAds = _root.getAds;
_getAddressBook = _root.getAddressBook;
_getSmartView = _root.getSmartView;
_getPhoneNumbers = _root.getPhoneNumbers;
_sendToPhone = _root.sendToPhone;
_getAPI = _root.getAPI;
_trackState = _root.trackState;
_leftColumnWidth = Number(_root.leftColumnWidth);
_leftColumnOuterWidth = Number(_root.leftColumnOuterWidth);
_mapDefaultLocation = _root.mapDefaultLocation;
_mapDefaultLat = _root.mapDefaultLat;
_mapDefaultLon = _root.mapDefaultLon;
_defaultZoom = Number(_root.defaultZoom);
_countryZoom = Number(_root.countryZoom);
_stateZoom = Number(_root.stateZoom);
_cityZoom = Number(_root.cityZoom);
_streetZoom = Number(_root.streetZoom);
_saveEditLocationsURL = _root.saveEditLocationsURL;
_addEditLocationsURL = _root.addEditLocationsURL;
_editAddressesURL = _root.editAddressesURL;
_clearRecentLocationsURL = _root.clearRecentLocationsURL;
_whatsThisURL = _root.whatsThisURL;
_tileURL = _root.tileURL;
_hybridURL = _root.hybridURL;
_satelliteURL = _root.satelliteURL;
_imgMetaURL = _root.imgMetaURL;
_hybridBatch = _root.hybridBatch;
_satelliteBatch = _root.satelliteBatch;
_categoryVersion = _root.categoryVersion;
_countryCode = _root.countryCode;
_classicMapsUrl = _root.classicMapsUrl;
_msgContentURL = _root.msgContentURL;
_msgLapse = _root.msgLapse;
_splashURL = _root.splashURL;
_sessionID = _root.sessionID;
_crumb = _root.crumb;
broadbandTour = _root.BroadbandTour_URL;
help = _root.Help_URL;
feedBack = _root.FeedBack_URL;
mapsTOS = _root.MapsTOS_URL;
privacy = _root.Privacy_URL;
yTOS = _root.YTOS_URL;
devNet = _root.DevNet_URL;
allowAttribution = _root.allowAttribution;
_lsaImagePath = "assets/80x15.jpg";
_lsaURL = _root.lsaURL;
_lsa = _root.lsa;
_glt = _root.glt;
_DD_DIST_UNIT = _root.DD_DIST_UNIT;
_DD_TOTAL_DIST_UNIT = _root.DD_TOTAL_DIST_UNIT;
}
function get dataServiceURL() {
return(_dataServiceURL);
}
function get localSearchURL() {
return(_localSearchURL);
}
function get categoriesURL() {
return(_categoriesURL);
}
function get businessLocatorURL() {
return(_businessLocatorURL);
}
function get smartViewURL() {
return(_smartViewURL);
}
function get phoneNumbersURL() {
return(_phoneNumbersURL);
}
function get sendToPhoneURL() {
return(_sendToPhoneURL);
}
function get trackStateURL() {
return(_trackStateURL);
}
function get mapConfigURL() {
return(_mapConfigURL);
}
function get adURL() {
return(_adURL);
}
function get getULM() {
return(_getULM);
}
function get getMap() {
return(_getMap);
}
function get getDrivingDirections() {
return(_getDrivingDirections);
}
function get getTraffic() {
return(_getTraffic);
}
function get getLocalSearch() {
return(_getLocalSearch);
}
function get getCategories() {
return(_getCategories);
}
function get getMapConfig() {
return(_getMapConfig);
}
function get getAds() {
return(_getAds);
}
function get getBusinessLocatorTrack() {
return(_getBusinessLocatorTrack);
}
function get getBusinessLocatorHeight() {
return(String(_getBusinessLocatorHeight));
}
function get refreshRate() {
return(_refreshRate);
}
function get getAddressBook() {
return(_getAddressBook);
}
function get getSmartView() {
return(_getSmartView);
}
function get getPhoneNumbers() {
return(_getPhoneNumbers);
}
function get getAPI() {
return(_getAPI);
}
function get trackState() {
return(_trackState);
}
function get sendToPhone() {
return(_sendToPhone);
}
function get leftColumnWidth() {
return(_leftColumnWidth);
}
function get leftColumnOuterWidth() {
return(_leftColumnOuterWidth);
}
function get saveEditLocationsURL() {
return(_saveEditLocationsURL);
}
function get addEditLocationsURL() {
return(_addEditLocationsURL);
}
function get editAddressesURL() {
return(_editAddressesURL);
}
function get clearRecentLocationsURL() {
return(_clearRecentLocationsURL);
}
function get whatsThisURL() {
return(_whatsThisURL);
}
function get mapDefaultLocation() {
return(_mapDefaultLocation);
}
function get mapDefaultLat() {
return(_mapDefaultLat);
}
function get mapDefaultLon() {
return(_mapDefaultLon);
}
function get defaultZoom() {
return(Number(_defaultZoom));
}
function get countryZoom() {
return(Number(_countryZoom));
}
function get stateZoom() {
return(Number(_stateZoom));
}
function get cityZoom() {
return(Number(_cityZoom));
}
function get streetZoom() {
return(Number(_streetZoom));
}
function get tileURL() {
return(_tileURL);
}
function get hybridURL() {
return(_hybridURL);
}
function get satelliteURL() {
return(_satelliteURL);
}
function get imgMetaURL() {
return(_imgMetaURL);
}
function get hybridBatch() {
return(_hybridBatch);
}
function get satelliteBatch() {
return(_satelliteBatch);
}
function get categoryVersion() {
return(_categoryVersion);
}
function get countryCode() {
return(_countryCode);
}
function get classicMapsUrl() {
return(_classicMapsUrl);
}
function get msgContentURL() {
return(_msgContentURL);
}
function get msgLapse() {
return(_msgLapse);
}
function get splashURL() {
return(_splashURL);
}
function get sessionID() {
return(_sessionID);
}
function get crumb() {
return(_crumb);
}
function get lsaImagePath() {
return(_lsaImagePath);
}
function get lsaURL() {
return(_lsaURL);
}
function get lsa() {
return(_lsa);
}
function get glt() {
return(_glt);
}
function get DD_TOTAL_DIST_UNIT() {
return(_DD_TOTAL_DIST_UNIT);
}
function get DD_DIST_UNIT() {
return(_DD_DIST_UNIT);
}
function get noBiz() {
return("NoBusiness");
}
var zoomMax = 16;
var zoomMin = 1;
var className = "Config";
}
Symbol 224 MovieClip [__Packages.com.yahoo.maps.widgets.ExtensibleCopyrightWidget] Frame 0
class com.yahoo.maps.widgets.ExtensibleCopyrightWidget extends com.yahoo.maps.Widget
{
var config, map, getContainer, copyrightLabelRightWhite, copyrightLabelRight, copyrightLabelLeftWhite, copyrightLabelLeft, logo, move;
function ExtensibleCopyrightWidget () {
super();
}
function CopyrightWidget() {
super();
}
function initWidget() {
config = com.yahoo.maps.ExtensibleConfig.getInstance();
map.addEventListener((_local6 || (_local6 = com.yahoo.maps.ExtensibleYMap)).RESIZE, (_local5 || (_local5 = mx.utils.Delegate)).create(this, onMapResize));
var _local2 = getContainer();
_local2.createTextField("copyrightLabelRightWhite", 1, 300, 1, 50, 10);
_local2.createTextField("copyrightLabelRight", 2, 300, 0, 50, 10);
copyrightLabelRightWhite = _local2.copyrightLabelRightWhite;
copyrightLabelRight = _local2.copyrightLabelRight;
copyrightLabelRight.autoSize = (copyrightLabelRightWhite.autoSize = "left");
copyrightLabelRight.selectable = (copyrightLabelRightWhite.selectable = false);
copyrightLabelRight.html = (copyrightLabelRightWhite.html = true);
updateCopyrightLabel((((((config._dataLabel + " ") + config._copyrightSymbolLabel) + " ") + config._yearLabel) + " ") + config._copyrightDataLabel);
_local2.createTextField("copyrightLabelLeftWhite", 3, 1, 1, 50, 10);
_local2.createTextField("copyrightLabelLeft", 4, 0, 0, 50, 10);
copyrightLabelLeftWhite = _local2.copyrightLabelLeftWhite;
copyrightLabelLeft = _local2.copyrightLabelLeft;
copyrightLabelLeft.autoSize = (copyrightLabelLeftWhite.autoSize = "left");
copyrightLabelLeft.selectable = (copyrightLabelLeftWhite.selectable = false);
copyrightLabelLeft.html = (copyrightLabelLeftWhite.html = true);
copyrightLabelLeft.htmlText = (copyrightLabelLeftWhite.htmlText = ((((("<font face='tahoma,verdana,arial' size='10'>" + config._copyrightSymbolLabel) + " ") + config._yearLabel) + " ") + config._copyrightYahooLabel) + "</font>");
copyrightLabelLeftWhite.textColor = 16777215 /* 0xFFFFFF */;
logo = _local2.attachMovie(logoSymbol, "logo", 5, {_x:0, _y:0});
onMapResize();
}
function onGetSatImageData(o) {
updateCopyrightLabel(o.data);
}
function updateCopyrightLabel(copyText) {
var _local2 = copyText;
copyrightLabelRight.htmlText = (copyrightLabelRightWhite.htmlText = ("<font face='tahoma,verdana,arial' size='10'>" + _local2) + "</font>");
copyrightLabelRightWhite.textColor = 16777215 /* 0xFFFFFF */;
onMapResize();
}
function onMapResize() {
move(4, (map.getHeight() - copyrightLabelRight._height) - 4);
var _local2 = copyrightLabelRight._width;
copyrightLabelRight._x = (map.getWidth() - _local2) - 8;
copyrightLabelRightWhite._x = (map.getWidth() - _local2) - 7;
logo._x = (map.getWidth() - logo._width) - 10;
logo._y = -copyrightLabelRight._height;
}
static var logoSymbol = "__Resources.0785805483.yahoo_png";
var className = "ExtensibleCopyrightWidget";
}
Symbol 210 MovieClip [__Packages.com.yahoo.maps.api.Geocoder] Frame 0
class com.yahoo.maps.api.Geocoder
{
var _cache, _address, _passThrough, _latlon;
function Geocoder () {
_cache = com.yahoo.maps.api.GeocoderCache.getInstance();
mx.events.EventDispatcher.initialize(this);
}
function getLatLon(address, passthru) {
_address = address;
_passThrough = passthru;
geocode();
}
function get address() {
return(_address);
}
function get latlon() {
return(_latlon);
}
function geocode() {
var _local3 = new com.yahoo.maps.ExtensibleDataService();
_local3.addEventListener("onGetMap", (_local11 || (_local11 = mx.utils.Delegate)).create(this, onGetGeocode));
var _local2 = checkIfCached(_address);
if (_local2.bool == false) {
_local3.getMap(_address);
} else {
dispatchEvent({type:(_local12 || (_local12 = com.yahoo.maps.api.Geocoder)).EVENT_GEOCODE_SUCCESS, latlon:_local2.result.latlon, address:_local2.result.address, response:_local2.result.response, set:_local2.result.set, passThru:_passThrough, cached:true});
}
}
function checkIfCached(loc) {
if (_cache.cache.length >= 1) {
var _local2 = 0;
while (_local2 < _cache.cache.length) {
if (loc.toLowerCase() == String(_cache.cache[_local2].address).toLowerCase()) {
return({bool:true, result:_cache.cache[_local2]});
}
if (_local2 == (_cache.cache.length - 1)) {
return({bool:false});
}
_local2++;
}
} else {
return({bool:false});
}
}
function onGetGeocode(event) {
var _local5 = event.data;
if (_local5.length == 1) {
var _local4 = _local5[0];
_latlon = new com.yahoo.maps.LatLon(Number(_local4._lat), Number(_local4._lon));
var _local8 = {latlon:latlon, mag:_local4._mag, status:_local4._status, country:_local4._country, dma:_local4._dma, zip:_local4._zip, state:_local4._state, county:_local4._county, city:_local4._city, street:_local4._street, qty:_local4._qty, warning:_local4._warning};
var _local7 = _cache.cache.length;
_cache.addCacheItem({set:_local7, latlon:latlon, response:_local8, address:_address});
dispatchEvent({type:(_local31 || (_local31 = com.yahoo.maps.api.Geocoder)).EVENT_GEOCODE_SUCCESS, latlon:latlon, address:_address, response:_local8, set:_local7, passThru:_passThrough, cached:false});
_set++;
return(undefined);
}
if (_local5.length > 0) {
var _local12 = new Array();
var _local6 = _local5.length;
var _local2 = 0;
while (_local2 < _local6) {
var _local3 = new com.yahoo.maps.data.SuggestedAddress();
_local3.parseLocation(_local5[_local2]);
_local12.push(_local3);
_local2++;
}
}
dispatchEvent({type:(_local31 || (_local31 = com.yahoo.maps.api.Geocoder)).EVENT_GEOCODE_ERROR, originalAddress:event.originalAddress, suggestedAddresses:_local12});
}
function getCache() {
return(_cache.__get__cache());
}
function addEventListener(event, listener) {
}
function removeEventListener(event, listener) {
}
function dispatchEvent(o) {
}
var _set = 0;
static var EVENT_GEOCODE_SUCCESS = "geocodeSuccess";
static var EVENT_GEOCODE_ERROR = "geocodeError";
var className = "Geocoder";
}
Symbol 208 MovieClip [__Packages.com.yahoo.maps.api.GeocoderCache] Frame 0
class com.yahoo.maps.api.GeocoderCache
{
var _cache, _resultSetCount;
function GeocoderCache () {
}
static function getInstance() {
var _local1 = com.yahoo.maps.api.GeocoderCache;
if (_local1._instance == undefined) {
_local1._instance = new com.yahoo.maps.api.GeocoderCache();
_local1._instance.init();
_local1._instance._isActive = true;
}
return(_local1._instance);
}
function init() {
_cache = new Array();
_resultSetCount = 0;
}
function get cache() {
return(_cache);
}
function set cache(ch) {
_cache = ch;
//return(cache);
}
function getCacheAt(set) {
return(_cache[set]);
}
function addCacheItem(cacheObj) {
_cache.push(cacheObj);
_resultSetCount++;
return(_cache.length);
}
function removeCacheItemAt(item) {
_cache.splice(item, 1);
_resultSetCount--;
}
function resetCache() {
_cache = new Array();
_resultSetCount = 0;
}
function get resultSetCount() {
return(_cache.length - 1);
}
function checkIfCached(loc) {
if (_cache.length >= 1) {
var _local2 = 0;
while (_local2 < _cache.length) {
if (loc.toLowerCase() == String(_cache[_local2].address).toLowerCase()) {
return({bool:true, result:_cache[_local2]});
}
if (_local2 == (_cache.length - 1)) {
return({bool:false});
}
_local2++;
}
} else {
return({bool:false});
}
}
var className = "GeocoderCache";
}
Symbol 185 MovieClip [__Packages.com.macromedia.mc.shapes.RoundRect] Frame 0
class com.macromedia.mc.shapes.RoundRect
{
var _mc;
function RoundRect (owner, depth) {
if (depth != null) {
var _local2 = depth;
} else {
var _local2 = owner.getNextHighestDepth();
}
_mc = owner.createEmptyMovieClip("RoundRect" + String(_local2), _local2);
}
function destroy() {
_mc.removeMovieClip();
delete _mc;
_mc = null;
}
function draw(x, y, w, h, r, c, alpha, rot, gradient, ratios, hole) {
if (typeof(c) == "object") {
if (typeof(alpha) != "object") {
var _local8 = [alpha, alpha];
} else {
var _local8 = alpha;
}
if (ratios == undefined) {
ratios = [0, 255];
}
var _local5 = h * 0.7;
if (typeof(rot) != "object") {
var _local7 = {matrixType:"box", x:-_local5, y:_local5, w:w * 2, h:h * 4, r:rot * 0.0174532925199433 /* Math.PI/180 */};
} else {
var _local7 = rot;
}
if (gradient == "radial") {
_mc.beginGradientFill("radial", c, _local8, ratios, _local7);
} else {
_mc.beginGradientFill("linear", c, _local8, ratios, _local7);
}
} else if (c != undefined) {
_mc.beginFill(c, alpha);
}
strokeRoundRect(x, y, w, h, r);
if (hole != undefined) {
strokeRoundRect(hole.x, hole.y, hole.w, hole.h, hole.r);
}
if (c != undefined) {
_mc.endFill();
}
}
function get mc() {
return(_mc);
}
function strokeRoundRect(x, y, w, h, r) {
var _local3 = x + w;
var _local2 = y + h;
if (typeof(r) == "object") {
var _local9 = r.br;
var _local12 = r.bl;
var _local11 = r.tl;
var _local10 = r.tr;
} else {
if (r == undefined) {
r = 0;
}
var _local9 = r;
var _local12 = r;
var _local11 = r;
var _local10 = r;
if (r == 0) {
_mc.moveTo(x, y);
_mc.lineTo(_local3, y);
_mc.lineTo(_local3, _local2);
_mc.lineTo(x, _local2);
_mc.lineTo(x, y);
return(undefined);
}
}
var _local7 = _local9 * 0.292893218813453;
var _local6 = _local9 * 0.585786437626905;
_mc.moveTo(_local3, _local2 - _local9);
_mc.curveTo(_local3, _local2 - _local6, _local3 - _local7, _local2 - _local7);
_mc.curveTo(_local3 - _local6, _local2, _local3 - _local9, _local2);
_local7 = _local12 * 0.292893218813453;
_local6 = _local12 * 0.585786437626905;
_mc.lineTo(x + _local12, _local2);
_mc.curveTo(x + _local6, _local2, x + _local7, _local2 - _local7);
_mc.curveTo(x, _local2 - _local6, x, _local2 - _local12);
_local7 = _local11 * 0.292893218813453;
_local6 = _local11 * 0.585786437626905;
_mc.lineTo(x, y + _local11);
_mc.curveTo(x, y + _local6, x + _local7, y + _local7);
_mc.curveTo(x + _local6, y, x + _local11, y);
_local7 = _local10 * 0.292893218813453;
_local6 = _local10 * 0.585786437626905;
_mc.lineTo(_local3 - _local10, y);
_mc.curveTo(_local3 - _local6, y, _local3 - _local7, y + _local7);
_mc.curveTo(_local3, y + _local6, _local3, y + _local10);
_mc.lineTo(_local3, _local2 - _local9);
}
var className = "RoundRect";
}
Symbol 206 MovieClip [__Packages.com.yahoo.maps.ExtensibleMapBase] Frame 0
class com.yahoo.maps.ExtensibleMapBase extends MovieClip
{
var isMainMap, _target, origWidth, width, origHeight, height, container, createEmptyMovieClip, getNextHighestDepth, mask, mapProjection, zoom, centerLatLon, tileUrl, middleRow, middleColumn, mouseBlocked, mc, _mapViewType, mapViewType, tiles, dispatchEvent, mcOffsetY, originalOffset, pixelOffset, lastY, _passThruZoomLevel, moveEffect, oldDelta, _x, _y, parent;
function ExtensibleMapBase () {
super();
mx.events.EventDispatcher.initialize(this);
}
function onLoad() {
isMainMap = _target.indexOf("widgetContainer") == -1;
if ((flags & (_local16 || (_local16 = com.yahoo.maps.ExtensibleMapBase)).bDeferredLoading) != 0) {
_deferredLoading = true;
}
origWidth = width;
origHeight = height;
(_local16 || (_local16 = com.yahoo.maps.ExtensibleMapBase)).instance = (_local16 || (_local16 = com.yahoo.maps.ExtensibleMapBase)).instance + 1;
container = createEmptyMovieClip("MapBase" + String((_local16 || (_local16 = com.yahoo.maps.ExtensibleMapBase)).instance), getNextHighestDepth());
mask = new com.macromedia.mc.shapes.RoundRect(container);
mask.draw(0, 0, width, height, 0, 16777215, 1);
mapProjection = new com.yahoo.maps.projections.MercatorProjection(zoom, (_local16 || (_local16 = com.yahoo.maps.ExtensibleMapBase)).tileSize, (_local16 || (_local16 = com.yahoo.maps.ExtensibleMapBase)).tileSize);
var _local7 = mapProjection.ll_to_xy(centerLatLon.__get__lat(), centerLatLon.__get__lon());
tileUrl = new com.yahoo.maps.flash.ExtensibleTileUrl(_local7.m_row, _local7.m_col, zoom, ((_local17 || (_local17 = Math)).pow(2, 18 - zoom) / 2) - 1, (_local17 || (_local17 = Math)).pow(2, 18 - zoom) - 1);
rows = (_local17 || (_local17 = Math)).round(height / (_local16 || (_local16 = com.yahoo.maps.ExtensibleMapBase)).tileSize) + (2 * buffer);
if ((rows % 2) == 0) {
rows = rows + 1;
}
columns = (_local17 || (_local17 = Math)).round(width / (_local16 || (_local16 = com.yahoo.maps.ExtensibleMapBase)).tileSize) + (2 * buffer);
if ((columns % 2) == 0) {
columns = columns + 1;
}
middleRow = (rows + 1) / 2;
middleColumn = (columns + 1) / 2;
middleRow = middleRow - 1;
middleColumn = middleColumn - 1;
var _local6 = ((_local17 || (_local17 = Math)).max(rows, columns) - 1) / 2;
mouseBlocked = false;
mc = container.createEmptyMovieClip("MapBase_mc" + String((_local16 || (_local16 = com.yahoo.maps.ExtensibleMapBase)).instance), container.getNextHighestDepth(), {_width:(_local16 || (_local16 = com.yahoo.maps.ExtensibleMapBase)).tileSize * columns, _height:(_local16 || (_local16 = com.yahoo.maps.ExtensibleMapBase)).tileSize * rows});
mc.setMask(mask.__get__mc());
_mapViewType = mapViewType;
tiles = new Array(rows);
dispatchEvent({type:(_local16 || (_local16 = com.yahoo.maps.ExtensibleMapBase)).TILE_MATRIX_CREATE});
var _local5 = 0;
while (_local5 < rows) {
tiles[_local5] = new Array(columns);
var _local4 = 0;
while (_local4 < columns) {
var _local10 = new com.yahoo.maps.YTile(mc, (flags & (_local16 || (_local16 = com.yahoo.maps.ExtensibleMapBase)).bAlphaTiles) != 0, (flags & (_local16 || (_local16 = com.yahoo.maps.ExtensibleMapBase)).bTransparentTiles) != 0, _mapViewType);
_local10.addEventListener("tileLoaded", (_local14 || (_local14 = mx.utils.Delegate)).create(this, tileLoaded));
tiles[_local5][_local4] = _local10;
_local4++;
}
_local5++;
}
initTile(middleRow, middleColumn);
var _local10 = tiles[middleRow][middleColumn];
var _local8 = new mx.graphics.Point(width - ((columns - (2 * buffer)) * (_local16 || (_local16 = com.yahoo.maps.ExtensibleMapBase)).tileSize), height - ((rows - (2 * buffer)) * (_local16 || (_local16 = com.yahoo.maps.ExtensibleMapBase)).tileSize));
mc._x = (_local17 || (_local17 = Math)).round((((_local16 || (_local16 = com.yahoo.maps.ExtensibleMapBase)).tileSize / 2) - _local7.m_x) + (_local8.x / 2));
mc._y = (_local17 || (_local17 = Math)).round((((-(_local16 || (_local16 = com.yahoo.maps.ExtensibleMapBase)).tileSize) / 2) + _local7.m_y) + (_local8.y / 2));
mcOffsetY = (_local17 || (_local17 = Math)).round((((-(_local16 || (_local16 = com.yahoo.maps.ExtensibleMapBase)).tileSize) / 2) + _local7.m_y) + (_local8.y / 2));
originalOffset = (pixelOffset = new mx.graphics.Point(mc._x, mc._y));
lastY = pixelOffset.y;
var _local3 = 1;
while (_local3 <= _local6) {
var _local2 = -_local3;
while (_local2 <= _local3) {
initTile(_local2 + middleRow, _local3 + middleColumn);
initTile(_local3 + middleRow, _local2 + middleColumn);
initTile(_local2 + middleRow, middleColumn - _local3);
initTile(middleRow - _local3, _local2 + middleColumn);
_local2++;
}
_local3++;
}
}
function set deferredLoading(v) {
if (v == true) {
_deferredLoading = true;
} else {
_deferredLoading = false;
var _local4 = 0;
while (_local4 < rows) {
var _local3 = 0;
while (_local3 < columns) {
var _local2 = tiles[_local4][_local3];
tileUrl.update(_local2, _local2.tileRow, _local2.tileCol, _mapViewType);
_local3++;
}
_local4++;
}
}
//return(deferredLoading);
}
function cancelTileRequests() {
for (var _local4 in tiles) {
var _local2 = tiles[_local4];
for (var _local3 in _local2) {
_local2[_local3].cancelPendingRequest();
}
}
}
function get deferredLoading() {
return(_deferredLoading);
}
function dispatchInitializeEvent() {
}
function getOffset() {
return(pixelOffset.subtract(originalOffset));
}
function getRealOffset() {
return(pixelOffset);
}
function get minimumTileRadius() {
var _local2 = (_local5 || (_local5 = Math)).round(height / (_local4 || (_local4 = com.yahoo.maps.ExtensibleMapBase)).tileSize);
var _local3 = (_local5 || (_local5 = Math)).round(width / (_local4 || (_local4 = com.yahoo.maps.ExtensibleMapBase)).tileSize);
return((_local5 || (_local5 = Math)).min(_local2, _local3) / 2);
}
function tileLoaded(o) {
tilesComplete = tilesComplete + 1;
if (tilesComplete == 4) {
dispatchEvent({type:(_local11 || (_local11 = com.yahoo.maps.ExtensibleMapBase)).INITIALIZE});
}
if (tilesComplete == (rows * columns)) {
dispatchEvent({type:"mapCreated", mapType:_mapViewType, rows:rows, cols:columns, row1:tiles[0][0].tileRow, col1:tiles[0][0].tileCol});
}
o.target.removeEventListener("tileLoaded", this);
if (tilesComplete <= (rows * columns)) {
dispatchEvent({type:(_local11 || (_local11 = com.yahoo.maps.ExtensibleMapBase)).TILE_LOADED, tilesExpected:rows * columns, tilesLoaded:tilesComplete});
}
if (tilesComplete == (rows * columns)) {
dispatchEvent({type:(_local11 || (_local11 = com.yahoo.maps.ExtensibleMapBase)).MAPTILES_LOADED, mapType:_mapViewType, tilesLoaded:tilesComplete});
}
}
function ll_to_local(lat, lon, clip) {
var _local4 = getCenter();
var _local2 = mapProjection.ll_to_xy(Number(lat), Number(lon));
var _local6 = ((_local2.m_col * (_local10 || (_local10 = com.yahoo.maps.ExtensibleMapBase)).tileSize) + _local2.m_x) - ((_local4.m_col * (_local10 || (_local10 = com.yahoo.maps.ExtensibleMapBase)).tileSize) + _local4.m_x);
var _local5 = (((_local4.m_row - _local2.m_row) * (_local10 || (_local10 = com.yahoo.maps.ExtensibleMapBase)).tileSize) - _local2.m_y) + _local4.m_y;
var _local3 = new mx.graphics.Point(origWidth / 2, origHeight / 2);
mask.mc.localToGlobal(_local3);
clip.globalToLocal(_local3);
_local6 = _local6 + _local3.x;
_local5 = _local5 + _local3.y;
return({dx:(_local11 || (_local11 = Math)).round(_local6), dy:(_local11 || (_local11 = Math)).round(_local5)});
}
function getLatLon(point) {
mask.mc.localToGlobal(point);
var _local6;
var _local4 = 0;
while (_local4 < tiles.length) {
var _local2 = 0;
while (_local2 < tiles[_local4].length) {
var _local3 = tiles[_local4][_local2];
if (!_local3.hitTest(point)) {
} else {
_local6 = _local3;
break;
}
_local2++;
}
_local4++;
}
_local6.globalToLocal(point);
point.y = (_local9 || (_local9 = com.yahoo.maps.ExtensibleMapBase)).tileSize - point.y;
var _local7 = mapProjection.xy_to_ll(_local6.tileCol, _local6.tileRow, point.x, point.y);
var _local8 = new com.yahoo.maps.LatLon(_local7.m_lat, _local7.m_lon);
return(_local8);
}
function getCenter() {
var _local5 = new mx.graphics.Point(origWidth / 2, origHeight / 2);
mask.mc.localToGlobal(_local5);
var _local6;
var _local4 = middleRow - 3;
while (_local4 < (middleRow + 3)) {
var _local2 = middleColumn - 3;
while (_local2 < (middleColumn + 3)) {
var _local3 = tiles[_local4][_local2];
if (!_local3.hitTest(_local5)) {
} else {
_local6 = _local3;
break;
}
_local2++;
}
_local4++;
}
if (_local6 == undefined) {
var _local9 = Number((_local10 || (_local10 = com.macromedia.mc.platform.Session)).getInstance().getAttribute("latitude"));
var _local8 = Number((_local10 || (_local10 = com.macromedia.mc.platform.Session)).getInstance().getAttribute("longitude"));
var _local7 = mapProjection.ll_to_xy(_local9, _local8);
_local7.m_lat = _local9;
_local7.m_lon = _local8;
return(_local7);
}
_local6.globalToLocal(_local5);
_local5.y = (_local11 || (_local11 = com.yahoo.maps.ExtensibleMapBase)).tileSize - _local5.y;
var _local7 = mapProjection.xy_to_ll(_local6.tileCol, _local6.tileRow, _local5.x, _local5.y);
_local7.m_x = Number(_local5.x);
_local7.m_y = Number(_local5.y);
_local7.m_row = _local6.tileRow;
_local7.m_col = _local6.tileCol;
return(_local7);
}
function setCenterByLatLon(latlon, duration, zoomLevel) {
if (isMainMap) {
_passThruZoomLevel = zoomLevel;
}
var _local3 = getCenter();
var _local2 = mapProjection.ll_to_xy(Number(latlon.__get__lat()), Number(latlon.__get__lon()));
var _local5 = -((((_local2.m_col - _local3.m_col) * (_local10 || (_local10 = com.yahoo.maps.ExtensibleMapBase)).tileSize) + _local2.m_x) - _local3.m_x);
var _local4 = -((((_local3.m_row - _local2.m_row) * (_local10 || (_local10 = com.yahoo.maps.ExtensibleMapBase)).tileSize) + _local3.m_y) - _local2.m_y);
_local5 = _local5 * (mc._xscale / 100);
_local4 = _local4 * (mc._yscale / 100);
var _local6 = new mx.graphics.Point(_local5, _local4);
pan(_local6, duration);
}
function setCenterByXY(xy, duration) {
var _local2 = new mx.graphics.Point(origWidth / 2, origHeight / 2);
mask.mc.localToGlobal(_local2);
var _local3 = new mx.graphics.Point(_local2.x - xy.x, _local2.y - xy.y);
pan(_local3, duration);
}
function setCenterByDelta(delta, duration) {
pan(delta, duration);
}
function pan(delta, duration) {
if ((!((delta.x == 0) && (delta.y == 0))) && (delta != null)) {
if ((duration == 0) || (duration == undefined)) {
moveTilesByDelta(delta);
} else {
dispatchEvent({type:(_local5 || (_local5 = com.yahoo.maps.ExtensibleMapBase)).PAN_START});
moveEffect.destroy();
moveEffect = new com.yahoo.maps.flash.Effect(mc, duration, this, {delta:delta});
}
}
}
function onEffect(e) {
if (e.type == "update") {
var _local3 = new mx.graphics.Point((_local8 || (_local8 = Math)).round(e.data.delta.x * e.percentComplete), (_local8 || (_local8 = Math)).round(e.data.delta.y * e.percentComplete));
if (oldDelta == undefined) {
oldDelta = new mx.graphics.Point(0, 0);
}
moveTilesByDelta(_local3.subtract(oldDelta));
oldDelta = _local3;
} else {
oldDelta = new mx.graphics.Point(0, 0);
moveEffect = null;
dispatchEvent({type:(_local7 || (_local7 = com.yahoo.maps.ExtensibleMapBase)).PAN_STOP, zoomLevel:_passThruZoomLevel});
}
}
function move(x, y) {
if (x != undefined) {
_x = x;
}
if (y != undefined) {
_y = y;
}
}
function hideHybridTiles() {
for (var _local3 in tiles) {
for (var _local2 in tiles[_local3]) {
tiles[_local3][_local2].hideHybrid();
}
}
}
function getTileAt(r, c) {
return(tiles[r][c]);
}
function setViewType(type) {
if ((type == (_local9 || (_local9 = com.yahoo.maps.MapViews)).SATELLITE) && (_mapViewType == (_local9 || (_local9 = com.yahoo.maps.MapViews)).HYBRID)) {
hideHybridTiles();
} else if ((type == (_local9 || (_local9 = com.yahoo.maps.MapViews)).HYBRID) && (_mapViewType == (_local9 || (_local9 = com.yahoo.maps.MapViews)).SATELLITE)) {
var _local2;
var _local3 = tileUrl;
for (var _local5 in tiles) {
for (var _local4 in tiles[_local5]) {
_local2 = tiles[_local5][_local4];
_local2.__set__urlHB(_local3.makeUrl(_local2.tileRow, _local2.tileCol, (_local9 || (_local9 = com.yahoo.maps.MapViews)).HYBRID));
}
}
dispatchEvent({type:(_local8 || (_local8 = com.yahoo.maps.ExtensibleMapBase)).MAPTILES_LOADED, mapType:_mapViewType});
}
_mapViewType = type;
}
function makeText(col, row) {
return(((("[" + String(col)) + " , ") + String(row)) + "]");
}
function moveTilesByDelta(delta) {
if (((_local14 || (_local14 = Math)).abs(delta.x) < 1) && ((_local14 || (_local14 = Math)).abs(delta.y) < 1)) {
return(undefined);
}
if (delta) {
pixelOffset = new mx.graphics.Point((_local14 || (_local14 = Math)).round(pixelOffset.x + Number(delta.x)), (_local14 || (_local14 = Math)).round(pixelOffset.y + Number(delta.y)));
}
if (pixelOffset.x > (xOffset + (_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize)) {
var _local9 = (_local14 || (_local14 = Math)).floor((pixelOffset.x - xOffset) / (_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize);
var _local7 = 1;
while (_local7 <= _local9) {
var _local5 = 0;
while (_local5 < rows) {
var _local2 = tiles[_local5].pop();
_local2.__set__x(_local2.__get__x() - ((_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize * columns));
var _local8 = (_local5 - (_local14 || (_local14 = Math)).floor(yOffset / (_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize)) - middleRow;
var _local6 = ((_local14 || (_local14 = Math)).floor((-xOffset) / (_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize) - _local7) - middleColumn;
tileUrl.defer(_local2, _local8, _local6, _mapViewType);
tiles[_local5].unshift(_local2);
_local5++;
}
var _local3 = 0;
while (_local3 < columns) {
_local5 = 0;
while (_local5 < rows) {
var _local2 = tiles[_local5][_local3];
_local2.__set__x((_local3 - buffer) * (_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize);
_local5++;
}
_local3++;
}
_local7++;
}
xOffset = (_local14 || (_local14 = Math)).floor(pixelOffset.x / (_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize) * (_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize;
} else if (pixelOffset.x < (xOffset - (_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize)) {
var _local9 = (_local14 || (_local14 = Math)).floor(((pixelOffset.x + (_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize) - xOffset) / (_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize);
var _local7 = -1;
while (_local7 >= _local9) {
var _local6 = (middleColumn - (_local14 || (_local14 = Math)).floor(xOffset / (_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize)) - _local7;
var _local5 = 0;
while (_local5 < rows) {
var _local2 = tiles[_local5].shift();
_local2.__set__x(_local2.__get__x() + ((_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize * columns));
var _local8 = (_local5 - (_local14 || (_local14 = Math)).floor(yOffset / (_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize)) - middleRow;
tileUrl.defer(_local2, _local8, _local6, _mapViewType);
tiles[_local5].push(_local2);
_local5++;
}
var _local3 = 0;
while (_local3 < columns) {
_local5 = 0;
while (_local5 < rows) {
var _local2 = tiles[_local5][_local3];
_local2.__set__x((_local3 - buffer) * (_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize);
_local5++;
}
_local3++;
}
_local7--;
}
xOffset = (_local14 || (_local14 = Math)).floor((pixelOffset.x + (_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize) / (_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize) * (_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize;
}
mc._x = pixelOffset.x - xOffset;
if (pixelOffset.y > (yOffset + (_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize)) {
var _local9 = (_local14 || (_local14 = Math)).floor((pixelOffset.y - yOffset) / (_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize);
var _local7 = 1;
while (_local7 <= _local9) {
var _local5 = tiles.pop();
var _local3 = 0;
while (_local3 < columns) {
var _local2 = _local5[_local3];
_local2.__set__y(_local2.__get__y() - ((_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize * rows));
var _local6 = (_local3 - (_local14 || (_local14 = Math)).floor(xOffset / (_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize)) - middleColumn;
var _local8 = ((_local14 || (_local14 = Math)).floor((-yOffset) / (_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize) - _local7) - middleRow;
tileUrl.defer(_local2, _local8, _local6, _mapViewType);
_local3++;
}
tiles.unshift(_local5);
_local3 = 0;
while (_local3 < columns) {
_local5 = 0;
while (_local5 < rows) {
var _local2 = tiles[_local5][_local3];
_local2.__set__y((_local5 - buffer) * (_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize);
_local5++;
}
_local3++;
}
_local7++;
}
yOffset = (_local14 || (_local14 = Math)).floor(pixelOffset.y / (_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize) * (_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize;
} else if (pixelOffset.y < (yOffset - (_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize)) {
var _local9 = (_local14 || (_local14 = Math)).floor(((pixelOffset.y + (_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize) - yOffset) / (_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize);
var _local7 = -1;
while (_local7 >= _local9) {
var _local8 = (middleRow - (_local14 || (_local14 = Math)).floor(yOffset / (_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize)) - _local7;
var _local5 = tiles.shift();
var _local3 = 0;
while (_local3 < columns) {
var _local2 = _local5[_local3];
var _local6 = (_local3 - (_local14 || (_local14 = Math)).floor(xOffset / (_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize)) - middleColumn;
tileUrl.defer(_local2, _local8, _local6, _mapViewType);
_local2.__set__y(_local2.__get__y() + ((_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize * rows));
_local3++;
}
tiles.push(_local5);
_local3 = 0;
while (_local3 < columns) {
_local5 = 0;
while (_local5 < rows) {
var _local2 = tiles[_local5][_local3];
_local2.__set__y((_local5 - buffer) * (_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize);
_local5++;
}
_local3++;
}
_local7--;
}
yOffset = (_local14 || (_local14 = Math)).floor((pixelOffset.y + (_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize) / (_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize) * (_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).tileSize;
}
var _local4 = tileUrl;
var _local5 = 0;
while (_local5 < rows) {
var _local3 = 0;
while (_local3 < columns) {
var _local2 = tiles[_local5][_local3];
if (_mapViewType == (_local13 || (_local13 = com.yahoo.maps.MapViews)).HYBRID) {
_local2.__set__url(_local4.makeUrl(_local2.tileRow, _local2.tileCol, (_local13 || (_local13 = com.yahoo.maps.MapViews)).SATELLITE));
_local2.__set__urlHB(_local4.makeUrl(_local2.tileRow, _local2.tileCol, (_local13 || (_local13 = com.yahoo.maps.MapViews)).HYBRID));
} else {
_local2.__set__url(_local4.makeUrl(_local2.tileRow, _local2.tileCol, _mapViewType));
}
_local3++;
}
_local5++;
}
mc._y = pixelOffset.y - yOffset;
dispatchEvent({type:(_local12 || (_local12 = com.yahoo.maps.ExtensibleMapBase)).MOVE, delta:delta});
}
function tileIsInView(t) {
var _local3 = new mx.graphics.Point(0, 0);
var _local2 = new mx.graphics.Point(width, height);
mask.mc.localToGlobal(_local3);
mask.mc.localToGlobal(_local2);
var _local5 = new mx.graphics.Rect(_local3.x, _local3.y, _local2.x, _local2.y);
_local3 = new mx.graphics.Point(t.__get__x(), t.__get__y());
_local2 = new mx.graphics.Point(t.__get__x() + (_local8 || (_local8 = com.yahoo.maps.ExtensibleMapBase)).tileSize, t.__get__y() + (_local8 || (_local8 = com.yahoo.maps.ExtensibleMapBase)).tileSize);
mc.localToGlobal(_local3);
mc.localToGlobal(_local2);
if (_local5.intersection(new mx.graphics.Rect(_local3.x, _local3.y, _local2.x, _local2.y)).isEmpty() == false) {
return(true);
}
return(false);
}
function initTile(row, col, url) {
if ((row >= rows) || (col >= columns)) {
return(undefined);
}
var _local2 = tiles[row][col];
if (_local2.initialized()) {
return(undefined);
}
addEventListener((_local11 || (_local11 = com.yahoo.maps.ExtensibleMapBase)).PAN_START, _local2);
addEventListener((_local11 || (_local11 = com.yahoo.maps.ExtensibleMapBase)).MOVE, (_local9 || (_local9 = mx.utils.Delegate)).create(_local2, _local2.onMoveExtensibleMapBase));
_local2.move((col - buffer) * (_local11 || (_local11 = com.yahoo.maps.ExtensibleMapBase)).tileSize, (row - buffer) * (_local11 || (_local11 = com.yahoo.maps.ExtensibleMapBase)).tileSize);
if (_deferredLoading) {
var _local4 = new mx.graphics.Point(0, 0);
var _local3 = new mx.graphics.Point(width, height);
parent.localToGlobal(_local4);
parent.localToGlobal(_local3);
var _local7 = new mx.graphics.Rect(_local4.x, _local4.y, _local3.x, _local3.y);
_local4 = new mx.graphics.Point(_local2.x, _local2.y);
_local3 = new mx.graphics.Point(_local2.x + (_local11 || (_local11 = com.yahoo.maps.ExtensibleMapBase)).tileSize, _local2.y + (_local11 || (_local11 = com.yahoo.maps.ExtensibleMapBase)).tileSize);
if (_local7.intersection(new mx.graphics.Rect(_local4.x, _local4.y, _local3.x, _local3.y)).isEmpty() == false) {
tileUrl.update(_local2, row - middleRow, col - middleColumn, _mapViewType);
} else {
tileUrl.defer(_local2, row - middleRow, col - middleColumn);
}
} else {
tileUrl.update(_local2, row - middleRow, col - middleColumn, _mapViewType);
}
}
function addEventListener(event, listener) {
}
function removeEventListener(event, listener) {
}
static var __registered = Object.registerClass("com.yahoo.maps.ExtensibleMapBase", com.yahoo.maps.ExtensibleMapBase);
static var MIN_ZOOM = 1;
static var MAX_ZOOM = 25;
static var MOVE = "move";
static var PAN_START = "panStart";
static var PAN_STOP = "panStop";
static var INITIALIZE = "initialize";
static var TILE_LOADED = "tileLoaded";
static var MAP_CREATED = "mapCreated";
static var MAPTILES_LOADED = "mapTilesLoaded";
static var TILE_MATRIX_CREATE = "tileMatrixCreate";
static var tileSize = 256;
var rows = 5;
var columns = 5;
var _deferredLoading = false;
static var bPanning = 1;
static var bDblClk = 2;
static var bAlphaTiles = 4;
static var bTransparentTiles = 8;
static var bDeferredLoading = 16;
static var instance = 0;
var tilesComplete = 0;
var dragging = false;
var xOffset = 0;
var yOffset = 0;
var buffer = 3;
var flags = bPanning | bDblClk;
var singleClickTimer = 0;
static var symbolOwner = com.yahoo.maps.ExtensibleMapBase;
static var symbolName = "com.yahoo.maps.ExtensibleMapBase";
var className = "ExtensibleMapBase";
}
Symbol 194 MovieClip [__Packages.com.yahoo.maps.projections.Projection] Frame 0
class com.yahoo.maps.projections.Projection
{
var level_, tile_w_, tile_h_, status_, m_x, m_y, m_lat, m_lon, ntiles_w_, ntiles_h_, meters_per_pixel_, scaleMeters;
function Projection (p_level, clat, tilew, tileh) {
if (p_level < 1) {
level_ = 1;
} else if (p_level > MAXLEVEL) {
level_ = MAXLEVEL;
} else {
level_ = p_level;
}
tile_w_ = tilew;
tile_h_ = tileh;
status_ = 1;
}
function PixelXY() {
m_x = 0;
m_y = 0;
}
function LatLon() {
m_lat = 0;
m_lon = 0;
}
function pix_to_tile(xp, yp) {
var _local2 = new com.yahoo.maps.projections.TileXY();
var _local3 = (_local6 || (_local6 = Math)).abs(yp);
_local2.m_col = (_local6 || (_local6 = Math)).floor(xp / tile_w_);
_local2.m_x = xp % tile_w_;
_local2.m_row = (_local6 || (_local6 = Math)).floor(_local3 / tile_h_);
_local2.m_y = _local3 % tile_h_;
if (yp < 0) {
_local2.m_row = -_local2.m_row;
if (y > 0) {
_local2.m_row--;
_local2.m_y = tile_h_ - _local2.m_y;
} else {
_local2.m_y = -_local2.m_y;
}
}
return(_local2);
}
function tile_width() {
return(ntiles_w_);
}
function pixel_width() {
return(ntiles_w_ * tile_w_);
}
function tile_height() {
return(ntiles_h_);
}
function pixel_height() {
return(ntiles_h_ * tile_h_);
}
function mpp() {
return(meters_per_pixel_);
}
function level() {
return(level_);
}
function tile_size() {
return(tile_w_);
}
function isok() {
return(status_ == 1);
}
function scaleKm(km, clat) {
return(scaleMeters(km * 1000, clat));
}
function scaleMiles(miles, clat) {
return(scaleMeters(miles * 1609.344, clat));
}
function scaleFeet(feet, clat) {
return(scaleMeters(feet / 3.282, clat));
}
static var PI = 3.1415926;
static var M_PER_DEGREE = 111111;
static var EARTH_CIRCUM_M = M_PER_DEGREE * 360;
var RAD_PER_DEG = PI / 180;
var MAXLEVEL = 18;
var className = "Projection";
}
Symbol 195 MovieClip [__Packages.com.yahoo.maps.projections.MercatorProjection] Frame 0
class com.yahoo.maps.projections.MercatorProjection extends com.yahoo.maps.projections.Projection
{
var level_, ntiles_w_, tile_w_, ntiles_h_, tile_h_, meters_per_pixel_, x_per_lon_, RAD_PER_DEG, pixel_height, status_, isok, pix_to_tile;
function MercatorProjection (p_level, tilew, tileh) {
super(p_level, 0, tilew, tileh);
circum_px = 1 << (26 - level_);
ntiles_w_ = circum_px / tile_w_;
ntiles_h_ = circum_px / tile_h_;
meters_per_pixel_ = (_local6 || (_local6 = com.yahoo.maps.projections.Projection)).EARTH_CIRCUM_M / circum_px;
x_per_lon_ = circum_px / 360;
}
function sinh(x) {
var _local1 = Math.exp(x);
_local1 = (_local1 - (1 / _local1)) / 2;
return(_local1);
}
function ll_to_pxy(lat, lon) {
alat = (_local5 || (_local5 = Math)).abs(lat);
alon = lon + 180;
v_pxy = new this.PixelXY();
if (((alat >= 90) || (alon > 360)) || (alon < 0)) {
return(v_pxy);
}
alat = alat * RAD_PER_DEG;
v_pxy.m_x = alon * x_per_lon_;
ytemp = (_local5 || (_local5 = Math)).log((_local5 || (_local5 = Math)).tan(alat) + (1 / (_local5 || (_local5 = Math)).cos(alat))) / (_local4 || (_local4 = com.yahoo.maps.projections.Projection)).PI;
v_pxy.m_y = (ytemp * pixel_height()) / 2;
if (lat < 0) {
v_pxy.m_y = -v_pxy.m_y;
}
status_ = 1;
return(v_pxy);
}
function ll_to_xy(lat, lon) {
v_xy = new TileXY();
v_pxy = ll_to_pxy(lat, lon);
if (isok()) {
v_xy = pix_to_tile(v_pxy.m_x, v_pxy.m_y);
}
return(v_xy);
}
function pxy_to_ll(x_pixel, y_pixel) {
status_ = 0;
v_ll = new this.LatLon();
alon = x_pixel / x_per_lon_;
alat = (y_pixel / (pixel_height() / 2)) * (_local4 || (_local4 = com.yahoo.maps.projections.Projection)).PI;
alat = Math.atan(sinh(alat)) / RAD_PER_DEG;
if (alon < 0) {
alon = 0;
}
if (alon > 360) {
alon = 360;
}
v_ll.m_lon = alon - 180;
if (alat < -85) {
alat = -85;
}
if (alat > 85) {
alat = 85;
}
v_ll.m_lat = alat;
status_ = 1;
return(v_ll);
}
function xy_to_ll(col, row, x, y) {
x_pixel = (col * tile_w_) + x;
y_pixel = (row * tile_h_) + y;
return(pxy_to_ll(x_pixel, y_pixel));
}
function type() {
return("M");
}
function getMetersPerPixel(clat) {
return(meters_per_pixel_ * Math.cos(clat * RAD_PER_DEG));
}
function scaleMeters(meters, clat) {
return((meters / getMetersPerPixel(clat)) + 0.5);
}
var className = "MercatorProjection";
}
Symbol 205 MovieClip [__Packages.com.yahoo.maps.flash.ExtensibleTileUrl] Frame 0
class com.yahoo.maps.flash.ExtensibleTileUrl
{
var imageType, center, zoom, tileHash, maxRowIndex, maxColIndex, tileUrl, pngTileUrl, hybridUrl, satelliteUrl, hybridBatch, satelliteBatch;
function ExtensibleTileUrl (row, col, zoom, maxRowIndex, maxColIndex) {
if (Number(System.capabilities.version.split(",")[0].split(" ")[1]) >= 8) {
imageType = "p";
} else {
imageType = "s";
}
center = new mx.graphics.Point(col, row);
this.zoom = zoom;
tileHash = new Object();
this.maxRowIndex = maxRowIndex;
this.maxColIndex = maxColIndex;
var _local2 = com.yahoo.maps.ExtensibleConfig.getInstance();
tileUrl = _local2.mapTileUrl;
pngTileUrl = _local2.pngMapTileUrl;
hybridUrl = _local2.hybridTileUrl;
satelliteUrl = _local2.satelliteTileUrl;
hybridBatch = _local2.hybridBatch;
satelliteBatch = _local2.satelliteBatch;
}
function destroy() {
for (var _local2 in tileHash) {
tileHash[_local2] = undefined;
}
tileHash = undefined;
}
function defer(t, row, col) {
var _local5 = makeKey(t.tileRow, t.tileCol);
tileHash[_local5] = undefined;
var _local3 = center.y - row;
var _local4 = center.x + col;
t.tileRow = _local3;
t.tileCol = _local4;
_local5 = makeKey(t.tileRow, t.tileCol);
tileHash[_local5] = t;
}
function update(t, row, col, mapViewType) {
var _local4 = makeKey(t.tileRow, t.tileCol);
tileHash[_local4] = undefined;
if (mapViewType == (_local7 || (_local7 = com.yahoo.maps.MapViews)).HYBRID) {
t.__set__url(calculate(t, row, col, (_local7 || (_local7 = com.yahoo.maps.MapViews)).SATELLITE));
t.__set__urlHB(calculate(t, row, col, (_local7 || (_local7 = com.yahoo.maps.MapViews)).HYBRID));
} else {
t.__set__url(calculate(t, row, col, mapViewType));
}
_local4 = makeKey(t.tileRow, t.tileCol);
tileHash[_local4] = t;
}
function find(r, c) {
return(com.yahoo.maps.YTile(tileHash[makeKey(r, c)]));
}
function makeKey(r, c) {
return((String(r) + "_") + String(c));
}
function calculate(t, row, col, mapViewType) {
var _local5;
var _local2 = center.y - row;
var _local3 = center.x + col;
t.tileRow = _local2;
t.tileCol = _local3;
return(makeUrl(_local2, _local3, mapViewType));
}
function makeUrl(row, col, mapViewType) {
switch (mapViewType) {
case (_local6 || (_local6 = com.yahoo.maps.MapViews)).MAP :
var _local4 = (((((((tileUrl + "&col=") + col) + "&row=") + row) + "&z=") + String(zoom)) + "&t=") + imageType;
break;
case (_local6 || (_local6 = com.yahoo.maps.MapViews)).HYBRID :
_local4 = ((((((((hybridUrl + "&x=") + col) + "&y=") + row) + "&z=") + String(zoom)) + "&v=") + hybridBatch) + "&t=h";
break;
case (_local6 || (_local6 = com.yahoo.maps.MapViews)).SATELLITE :
_local4 = ((((((((satelliteUrl + "&x=") + col) + "&y=") + row) + "&z=") + String(zoom)) + "&v=") + satelliteBatch) + "&t=a";
break;
default :
_local4 = (((((((tileUrl + "&col=") + col) + "&row=") + row) + "&z=") + String(zoom)) + "&t=") + imageType;
}
return(_local4);
}
function get row() {
return(center.y);
}
function get column() {
return(center.x);
}
var className = "ExtensibleTileUrl";
}
Symbol 188 MovieClip [__Packages.com.yahoo.maps.YTile] Frame 0
class com.yahoo.maps.YTile
{
var _mapViewType, iname, mc, bgColor, tileQueue, bg, _urlHB, _loadedURLHB, delegateHB, bHybridVisible, _url, _loadedURL, delegate, delayInterval, dispatchEvent, __get__urlHB, mc_x, mc_y;
function YTile (owner, bAlphaEffect, bTransparentBackground, mapViewType) {
if (bTransparentBackground != undefined) {
this.bTransparentBackground = bTransparentBackground;
}
mx.events.EventDispatcher.initialize(this);
_mapViewType = mapViewType;
(_local8 || (_local8 = com.yahoo.maps.YTile)).instance = (_local8 || (_local8 = com.yahoo.maps.YTile)).instance + 1;
iname = "YTile" + String((_local8 || (_local8 = com.yahoo.maps.YTile)).instance);
mc = owner.createEmptyMovieClip(iname, owner.getNextHighestDepth(), {_width:(_local9 || (_local9 = com.yahoo.maps.MapBase)).tileSize + 2, _height:(_local9 || (_local9 = com.yahoo.maps.MapBase)).tileSize + 2});
if (_mapViewType == com.yahoo.maps.MapViews.MAP) {
bgColor = 15721949 /* 0xEFE5DD */;
} else {
bgColor = 14869992 /* 0xE2E5E8 */;
}
tileQueue = (_local7 || (_local7 = com.yahoo.maps.flash.TileQueue)).getInstance();
_initialized = false;
bg = new com.macromedia.mc.shapes.RoundRect(mc, 0);
bg.draw(1, 1, (_local9 || (_local9 = com.yahoo.maps.MapBase)).tileSize, (_local9 || (_local9 = com.yahoo.maps.MapBase)).tileSize, 0, bgColor, 100);
bg.mc._alpha = 0;
}
function onLoadError(mc, errorCode) {
if (errorCode != "LoadNeverCompleted") {
return(undefined);
}
tileQueue.addItem(this, mc, mc._url);
}
function onLoadInit(mc) {
if (mc._name.indexOf(com.yahoo.maps.MapViews.HYBRID) > -1) {
if (_loadedURLHB != _urlHB) {
tileQueue.cancel(delegateHB);
delegateHB._visible = false;
_loadBegunHB = false;
_urlHB = null;
urlHB = (_urlHB);
} else {
delegateHB._visible = true;
_loadBegunHB = false;
}
if (!bHybridVisible) {
delegateHB._visible = false;
}
} else if (_loadedURL != _url) {
tileQueue.cancel(delegate);
delegate._visible = false;
_loadBegun = false;
_url = null;
url = (_url);
} else {
_loadBegun = false;
delegate._visible = false;
delayInterval = setInterval(this, "showTile", 10);
}
}
function showTile() {
clearInterval(delayInterval);
bg.mc._alpha = 100;
delegate._visible = true;
dispatchEvent({type:"tileLoaded"});
}
function destroy(mapViewType) {
cancelPendingRequest();
delegate.removeMovieClip();
delegate = null;
delete delegate;
delegateHB.removeMovieClip();
delegateHB = null;
delete delegateHB;
clearInterval(delayInterval);
mc.removeMovieClip();
mc = null;
delete mc;
}
function cancelPendingRequest() {
tileQueue.cancel(delegate);
tileQueue.cancel(delegateHB);
}
function set url(value) {
if (_url != value) {
_url = value;
if ((_loadBegun == false) || (tileQueue.getPendingStatus(delegate))) {
delegate = mc.createEmptyMovieClip(iname, 1);
_loadedURL = _url;
_loadBegun = true;
}
delegate._visible = false;
tileQueue.addItem(this, delegate, _url);
_initialized = true;
}
//return(url);
}
function set urlHB(value) {
if (_urlHB != value) {
_urlHB = value;
if ((_loadBegunHB == false) || (tileQueue.getPendingStatus(delegateHB))) {
delegateHB = mc.createEmptyMovieClip(iname + com.yahoo.maps.MapViews.HYBRID, 2);
_loadedURLHB = _urlHB;
_loadBegunHB = true;
}
delegateHB._visible = false;
tileQueue.addItem(this, delegateHB, _urlHB);
} else if (!bHybridVisible) {
delegateHB._visible = true;
}
bHybridVisible = true;
//return(__get__urlHB());
}
function hideHybrid() {
delegateHB._visible = false;
bHybridVisible = false;
}
function initialized() {
return(_initialized);
}
function get url() {
return(_url);
}
function move(x, y) {
if (x != undefined) {
this.x = (x);
}
if (y != undefined) {
this.y = (y);
}
}
function get x() {
return(mc._x);
}
function set x(value) {
mc_x = value;
mc._x = value;
//return(x);
}
function get y() {
return(mc._y);
}
function set y(value) {
mc_y = value;
mc._y = value;
//return(y);
}
function size(width, height) {
mc._width = width;
mc._height = height;
}
function globalToLocal(point) {
mc.globalToLocal(point);
}
function localToGlobal(point) {
mc.localToGlobal(point);
}
function hitTest(point) {
return(mc.hitTest(point.x, point.y, false));
}
function addEventListener(event, listener) {
}
function removeEventListener(event, listener) {
}
var bTransparentBackground = false;
static var instance = 1;
static var bIE = System.capabilities.playerType == "ActiveX";
var _initialized = false;
var _loadBegun = false;
var _loadBegunHB = false;
var className = "YTile";
}
Symbol 204 MovieClip [__Packages.com.yahoo.maps.flash.TileQueue] Frame 0
class com.yahoo.maps.flash.TileQueue
{
var tileClips, tileHash, bIE, bLoading, loadDelayInterval, loadInterval;
function TileQueue () {
tileClips = new Array();
tileHash = new Object();
bIE = System.capabilities.playerType == "ActiveX";
}
static function getInstance() {
var _local1 = com.yahoo.maps.flash.TileQueue;
if (_local1.instance == undefined) {
_local1.instance = new com.yahoo.maps.flash.TileQueue();
}
return(_local1.instance);
}
function onLoadError(mc, error) {
tileHash[mc._name].yTile.onLoadError(mc, error);
}
function onLoadComplete(mc) {
var _local2 = mc._name;
tileHash[_local2].yTile.onLoadInit(mc);
tileHash[_local2].yTile.onLoadComplete(mc);
load();
}
function onLoadStart(mc) {
mc._visible = false;
}
function addItem(yTile, mc, url) {
var _local5 = mc._name;
if (tileHash[_local5] == null) {
tileClips.push(mc);
} else {
var _local3 = false;
for (var _local4 in tileClips) {
if (tileClips[_local4] == mc) {
_local3 = true;
break;
}
}
if (!_local3) {
tileClips.push(mc);
}
}
tileHash[_local5] = {yTile:yTile, url:url, bPending:true};
if (!bLoading) {
load();
loadDelayInterval = setInterval(this, "loadDelay", 100, (bIE ? 0 : 2));
}
}
function getPendingStatus(mc) {
return(tileHash[mc._name].bPending);
}
function loadDelay(counter) {
clearInterval(loadDelayInterval);
if (counter > 0) {
loadDelayInterval = setInterval(this, "loadDelay", 10, counter - 1);
}
load();
}
function load() {
clearInterval(loadInterval);
var _local2 = tileClips.shift();
if (_local2 != null) {
bLoading = true;
var _local3 = _local2._name;
loadInterval = setInterval(this, "load", 500);
tileHash[_local3].bPending = false;
var _local4 = new MovieClipLoader();
_local4.addListener(this);
_local4.loadClip(tileHash[_local3].url, _local2);
} else if (tileClips.length > 0) {
load();
} else {
bLoading = false;
clearInterval(loadDelayInterval);
}
}
function cancel(mc) {
var _local3 = mc._name;
if (tileHash[_local3] != null) {
var _local4 = tileClips.length;
var _local2 = 0;
while (_local2 < _local4) {
if (tileClips[_local2]._name == _local3) {
tileClips.splice(_local2, 1);
break;
}
_local2++;
}
delete tileHash[_local3];
}
}
var className = "TileQueue";
}
Symbol 223 MovieClip [__Packages.com.yahoo.maps.managers.WidgetManager] Frame 0
class com.yahoo.maps.managers.WidgetManager
{
var map, container, widgetArray;
function WidgetManager (map, container) {
this.map = map;
this.container = container;
widgetArray = new Array();
}
function addWidget(widget) {
widget.init(map, container);
widgetArray.push(widget);
}
function addAnonymousWidget(widget) {
widget.init(map, container);
}
function removeWidget(widget) {
widget.detach();
var _local2 = 0;
while (_local2 < widgetArray.length) {
if (widgetArray[_local2] == widget) {
widgetArray[_local2] = null;
widgetArray.splice(_local2, 1);
}
_local2++;
}
}
function removeAllWidgets() {
var _local3;
var _local2 = 0;
while (_local2 < widgetArray.length) {
_local3 = widgetArray[_local2];
_local3.detach();
_local2++;
}
widgetArray = new Array();
}
var className = "WidgetManager";
}
Symbol 222 MovieClip [__Packages.com.yahoo.maps.widgets.CopyrightWidget] Frame 0
class com.yahoo.maps.widgets.CopyrightWidget extends com.yahoo.maps.Widget
{
var map, getContainer, copyrightLabelRightWhite, copyrightLabelRight, copyrightLabelLeftWhite, copyrightLabelLeft, logo, move;
function CopyrightWidget () {
super();
}
function initWidget() {
map.addEventListener((_local7 || (_local7 = com.yahoo.maps.ExtensibleYMap)).RESIZE, (_local6 || (_local6 = mx.utils.Delegate)).create(this, onMapResize));
var _local2 = getContainer();
_local2.createTextField("copyrightLabelRightWhite", 1, 300, 1, 50, 10);
_local2.createTextField("copyrightLabelRight", 2, 300, 0, 50, 10);
copyrightLabelRightWhite = _local2.copyrightLabelRightWhite;
copyrightLabelRight = _local2.copyrightLabelRight;
copyrightLabelRight.autoSize = (copyrightLabelRightWhite.autoSize = "left");
copyrightLabelRight.selectable = (copyrightLabelRightWhite.selectable = false);
copyrightLabelRight.html = (copyrightLabelRightWhite.html = true);
updateCopyrightLabel((_local8 || (_local8 = com.yahoo.maps.Labels)).COPYRIGHT_DATA);
_local2.createTextField("copyrightLabelLeftWhite", 3, 1, 1, 50, 10);
_local2.createTextField("copyrightLabelLeft", 4, 0, 0, 50, 10);
copyrightLabelLeftWhite = _local2.copyrightLabelLeftWhite;
copyrightLabelLeft = _local2.copyrightLabelLeft;
copyrightLabelLeft.autoSize = (copyrightLabelLeftWhite.autoSize = "left");
copyrightLabelLeft.selectable = (copyrightLabelLeftWhite.selectable = false);
copyrightLabelLeft.html = (copyrightLabelLeftWhite.html = true);
copyrightLabelLeft.htmlText = (copyrightLabelLeftWhite.htmlText = ("<font face='tahoma,verdana,arial' size='10'>" + (_local8 || (_local8 = com.yahoo.maps.Labels)).COPYRIGHT_YAHOO) + "</font>");
copyrightLabelLeftWhite.textColor = 16777215 /* 0xFFFFFF */;
logo = _local2.attachMovie((_local5 || (_local5 = com.yahoo.maps.widgets.CopyrightWidget)).logoSymbol, "logo", 5, {_x:0, _y:0});
onMapResize();
}
function onGetSatImageData(o) {
updateCopyrightLabel(o.data);
}
function updateCopyrightLabel(copyText) {
var _local2 = copyText;
copyrightLabelRight.htmlText = (copyrightLabelRightWhite.htmlText = ("<font face='tahoma,verdana,arial' size='10'>" + _local2) + "</font>");
copyrightLabelRightWhite.textColor = 16777215 /* 0xFFFFFF */;
onMapResize();
}
function onMapResize() {
move(4, (map.getHeight() - copyrightLabelRight._height) - 4);
var _local2 = copyrightLabelRight._width;
copyrightLabelRight._x = (map.getWidth() - _local2) - 8;
copyrightLabelRightWhite._x = (map.getWidth() - _local2) - 7;
logo._x = (map.getWidth() - logo._width) - 10;
logo._y = -copyrightLabelRight._height;
}
static var logoSymbol = "__Resources.0785805483.yahoo_png";
var className = "CopyrightWidget";
}
Symbol 216 MovieClip [__Packages.com.yahoo.maps.managers.OverlayManager] Frame 0
class com.yahoo.maps.managers.OverlayManager
{
var map, container, overlayArray;
function OverlayManager (map, container) {
this.map = map;
this.container = container;
overlayArray = new Array();
}
function addOverlay(overlay) {
overlay.init(map);
overlayArray.push(overlay);
}
function removeOverlay(overlay) {
overlay.detach();
var _local2 = 0;
while (_local2 < overlayArray.length) {
if (overlayArray[_local2] == overlay) {
overlayArray[_local2] = null;
overlayArray.splice(_local2, 1);
}
_local2++;
}
}
function removeAllOverlays() {
var _local3;
var _local2 = 0;
while (_local2 < overlayArray.length) {
_local3 = overlayArray[_local2];
_local3.detach();
_local2++;
}
map.dispatchEvent({type:"overlayContainerRemoveAll"});
overlayArray = new Array();
}
function resetOverlayContainers() {
container._x = map.getWidth() / 2;
container._y = map.getHeight() / 2;
var _local3;
var _local2 = 0;
while (_local2 < overlayArray.length) {
_local3 = overlayArray[_local2];
_local3.redraw();
_local2++;
}
map.dispatchEvent({type:"overlayContainerReset"});
}
var className = "OverlayManager";
}
Symbol 217 MovieClip [__Packages.com.yahoo.maps.managers.ToolManager] Frame 0
class com.yahoo.maps.managers.ToolManager
{
var map, container, mouseContainer, toolMap, activeTool;
function ToolManager (map, mouseContainer, container) {
this.map = map;
this.container = container;
this.mouseContainer = mouseContainer;
toolMap = new Object();
initializeListeners();
}
function initializeListeners() {
mouseContainer.onPress = (_local2 || (_local2 = mx.utils.Delegate)).create(this, onPress);
mouseContainer.onRelease = (_local2 || (_local2 = mx.utils.Delegate)).create(this, onRelease);
mouseContainer.onReleaseOutside = (_local2 || (_local2 = mx.utils.Delegate)).create(this, onRelease);
mouseContainer.onMouseMove = (_local2 || (_local2 = mx.utils.Delegate)).create(this, onMouseMove);
mouseContainer.onEnterFrame = (_local2 || (_local2 = mx.utils.Delegate)).create(this, onEnterFrame);
mouseContainer.useHandCursor = false;
}
function onPress() {
if (activeTool) {
activeTool.onToolMouseDown(getMouseMetrics());
}
}
function onRelease() {
if (activeTool) {
activeTool.onToolMouseUp(getMouseMetrics());
}
}
function onMouseMove() {
if (activeTool) {
activeTool.onToolMouseMove(getMouseMetrics());
}
}
function onEnterFrame() {
if (activeTool) {
activeTool.onToolEnterFrame(getMouseMetrics());
}
}
function getMouseMetrics() {
var _local3 = mouseContainer._xmouse * (mouseContainer._xscale / 100);
var _local2 = mouseContainer._ymouse * (mouseContainer._yscale / 100);
var _local4 = new mx.graphics.Point(_local3 - (map.getWidth() / 2), _local2 - (map.getHeight() / 2));
return({local:_local4});
}
function addTool(tool, activate) {
if (!toolMap[tool.getId()]) {
toolMap[tool.getId()] = tool;
tool.init(map, container.createEmptyMovieClip(tool.getId() + "_container", container.getNextHighestDepth()));
map.dispatchEvent({type:(_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).TOOL_ADDED, tool:tool});
if (activate) {
setActiveTool(tool);
}
}
}
function removeTool(tool) {
tool.detach();
toolMap[tool.getId()] = null;
map.dispatchEvent({type:(_local4 || (_local4 = com.yahoo.maps.ExtensibleYMap)).TOOL_REMOVED, tool:tool});
if (activeTool == tool) {
setActiveTool(null);
}
}
function setActiveTool(tool) {
mouseContainer.useHandCursor = tool != null;
activeTool = tool;
map.dispatchEvent({type:(_local4 || (_local4 = com.yahoo.maps.ExtensibleYMap)).TOOL_CHANGE, tool:activeTool});
}
function getActiveTool() {
return(activeTool);
}
function resetToolContainers() {
container._x = map.width / 2;
container._y = map.height / 2;
}
function getTools() {
var _local2 = new Array();
for (var _local3 in toolMap) {
if (toolMap[_local3] != null) {
_local2.push(toolMap[_local3]);
}
}
return(_local2);
}
var className = "ToolManager";
}
Symbol 214 MovieClip [__Packages.com.yahoo.maps.managers.MarkerManager] Frame 0
class com.yahoo.maps.managers.MarkerManager
{
var geocache, map, container, markerIdInstanceNameMap, registeredMarkers, markerCount, curMarkerClass, curData, curMarkerOwner;
function MarkerManager (map, container) {
geocache = com.yahoo.maps.api.GeocoderCache.getInstance();
this.map = map;
this.container = container;
this.container.useHandCursor = false;
markerIdInstanceNameMap = new Object();
registeredMarkers = new Object();
markerCount = 0;
this.container.onMouseDown = (_local4 || (_local4 = mx.utils.Delegate)).create(this, onContainerMouseDown);
}
function onContainerMouseDown() {
for (var _local2 in markerIdInstanceNameMap) {
markerIdInstanceNameMap[_local2].marker.onContainerMouseDown();
}
}
function addMarkerByLatLon(markerClass, latlon, data, owner) {
var _local3 = map.latlon_to_local(latlon);
if (!data) {
data = new Object();
}
data.__latlon = latlon;
data.__owner = owner;
markerCount++;
var _local5 = "marker_" + String(markerCount);
var _local4 = attachMarker(markerClass, _local5, _local3, data);
markerIdInstanceNameMap[String(_local4.getId())] = {marker:_local4, owner:owner};
return(_local4);
}
function addMarkerByAddress(markerClass, address, data, owner) {
markerCount++;
curMarkerClass = markerClass;
curData = data;
curMarkerOwner = owner;
var hash = String(markerCount);
var scope = this;
var _local5 = new com.yahoo.maps.ExtensibleDataService();
_local5.addEventListener("onGetMap", function (event) {
var _local2 = event.data;
var _local12 = new Array();
var _local3 = hash;
var _local7 = owner;
var _local8 = address;
if (_local2.length == 1) {
var _local22 = new com.yahoo.maps.LatLon(Number(_local2[0]._lat), Number(_local2[0]._lon));
var _local4 = {latlon:_local22, mag:_local2[0]._mag, status:_local2[0]._status, country:_local2[0]._country, dma:_local2[0]._dma, zip:_local2[0]._zip, state:_local2[0]._state, county:_local2[0]._county, city:_local2[0]._city, street:_local2[0]._street, qty:_local2[0]._qty, warning:_local2[0]._warning};
var _local20 = scope.addMarkerByLatLon(markerClass, _local22, data, _local7);
var _local6 = {set:scope.geocache.cache.length, hash:_local3, latlon:_local22, response:_local4, address:_local8};
scope.geocache.addCacheItem(_local6);
var _local5 = scope.geocache.resultSetCount;
scope.map.dispatchEvent({type:(_local30 || (_local30 = com.yahoo.maps.ExtensibleYMap)).MARKER_GEOCODE_SUCCESS, hash:_local3, set:_local5, latlon:_local22, marker:_local20, cached:false, response:_local4});
return(undefined);
}
if (_local2.length > 0) {
var _local1 = 0;
while (_local1 < _local2.length) {
var address = (new com.yahoo.maps.data.SuggestedAddress());
address.parseLocation(_local2[_local1]);
_local12.push(address);
_local1++;
}
}
scope.map.dispatchEvent({type:(_local30 || (_local30 = com.yahoo.maps.ExtensibleYMap)).MARKER_GEOCODE_ERROR, originalAddress:event.originalAddress, suggestedAddresses:_local12, hash:hash});
});
_local5.addEventListener("onGetMapError", function (event) {
scope.map.dispatchEvent({type:(_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).MARKER_GEOCODE_ERROR, originalAddress:event.originalAddress, hash:hash});
});
var _local4 = geocache.checkIfCached(address);
if (_local4.bool == false) {
_local5.getMap(address);
} else {
var _local30 = scope.addMarkerByLatLon(markerClass, _local4.result.latlon, data, owner);
map.dispatchEvent({type:(_local32 || (_local32 = com.yahoo.maps.ExtensibleYMap)).MARKER_GEOCODE_SUCCESS, hash:_local4.result.hash, set:_local4.result.set, latlon:_local4.result.latlon, marker:_local4.result.latlon, cached:true, response:_local4.result.response});
}
return(hash);
}
function onGeoSuccess(event) {
var _local1 = event.passThru.classRef;
if (_local1.managerEnabled == true) {
var _local6 = _local1.addMarkerByLatLon(_local1.curMarkerClass, event.latlon, _local1.curData, _local1.curMarkerOwner);
_local1.eventDispatchProxy({type:"markerGeocodeSuccess", hash:String(_local1.markerCount), address:event.address, latlon:event.latlon, marker:_local6, cached:event.cached, response:event.geocodeResult, set:event.set});
_local1.dump();
_local1.managerEnabled = false;
}
}
function onGeoError(event) {
var _local1 = event.passThru.classRef;
if (_local1.managerEnabled == true) {
_local1.eventDispatchProxy({type:"markerGeocodeError", originalAddress:event.originalAddress, suggestedAddresses:event.suggestedAddresses, hash:String(_local1.markerCount)});
_local1.dump();
_local1.managerEnabled = false;
}
}
function eventDispatchProxy(obj) {
map.dispatchEvent(obj);
}
function dump() {
curMarkerClass = (curData = (curMarkerOwner = null));
}
function attachMarker(markerClass, instanceName, xy, data) {
registerMarker(markerClass);
if (!data) {
data = new Object();
}
data._x = xy.x;
data._y = xy.y;
data._visible = true;
return(com.yahoo.maps.Marker(container.attachMovie(markerClass.className, instanceName, container.getNextHighestDepth(), data)));
}
function registerMarker(markerClass) {
if (!registeredMarkers[markerClass.className]) {
Object.registerClass(markerClass.className, markerClass);
registeredMarkers[markerClass.className] = true;
}
}
function removeMarker(marker) {
markerIdInstanceNameMap[String(marker.getId())] = null;
com.yahoo.maps.Marker(marker).removeMovieClip();
}
function removeAllMarkersByOwner(owner) {
for (var _local5 in markerIdInstanceNameMap) {
var _local2 = markerIdInstanceNameMap[_local5].marker;
var _local3 = markerIdInstanceNameMap[_local5].owner;
if ((_local2 != null) && (_local3 == owner)) {
removeMarker(_local2);
}
}
}
function hideAllMarkersByOwner(owner) {
for (var _local5 in markerIdInstanceNameMap) {
var _local2 = markerIdInstanceNameMap[_local5].marker;
var _local3 = markerIdInstanceNameMap[_local5].owner;
if ((_local2 != null) && (_local3 == owner)) {
_local2.hide();
}
}
}
function showAllMarkersByOwner(owner) {
for (var _local5 in markerIdInstanceNameMap) {
var _local2 = markerIdInstanceNameMap[_local5].marker;
var _local3 = markerIdInstanceNameMap[_local5].owner;
if ((_local2 != null) && (_local3 == owner)) {
_local2.show();
}
}
}
function updateMarkerPositions() {
container._x = map.width / 2;
container._y = map.height / 2;
for (var _local4 in markerIdInstanceNameMap) {
var _local2 = markerIdInstanceNameMap[_local4].marker;
if (_local2 != null) {
var _local3 = map.latlon_to_local(_local2.__latlon);
_local2._x = _local3.x;
_local2._y = _local3.y;
}
}
}
var managerEnabled = false;
var minstance = 0;
var className = "MarkerManager";
}
Symbol 212 MovieClip [__Packages.com.yahoo.maps.Marker] Frame 0
class com.yahoo.maps.Marker extends MovieClip implements com.yahoo.maps.api.IMarker
{
var __id, _session, _dataService, _visible, __owner, _parent, localToGlobal, nudgeInterval, locked, __latlon, _x, _y, onPress, onRelease, onMouseMove;
function Marker () {
super();
__id = "marker_" + ((_local4 || (_local4 = com.yahoo.maps.Marker)).instanceCounter++);
(_local4 || (_local4 = com.yahoo.maps.Marker)).markerMap[__id] = this;
mx.events.EventDispatcher.initialize(this);
_session = (_local3 || (_local3 = com.macromedia.mc.platform.Session)).getInstance();
_dataService = com.yahoo.maps.DataService.getInstance();
}
static function getMarkerByActionScriptId(actionScriptId) {
var _local2 = com.yahoo.maps.Marker;
return(_local2.markerMap[actionScriptId]);
}
function onUnload() {
(_local2 || (_local2 = com.yahoo.maps.Marker)).markerMap[__id] = null;
__id = null;
}
function getId() {
return(__id);
}
function show() {
_visible = true;
}
function hide() {
_visible = false;
}
function isVisible() {
return(_visible == true);
}
function getOwner() {
return(__owner);
}
function nudge(nudge_x, nudge_y) {
var _local2 = _parent.map;
var _local4 = new mx.graphics.Point(nudge_x, nudge_y + 25);
localToGlobal(_local4);
var _local3 = new mx.graphics.Point(_local2.width, _local2.y);
_local2.map.container.localToGlobal(_local3);
var _local6 = (_local12 || (_local12 = Math)).round(_local3.x - _local4.x);
var _local5 = (_local12 || (_local12 = Math)).round(_local3.y - _local4.y);
if ((_local6 < 0) || (_local5 > 0)) {
_dataService.trackState("xmap");
_dataService.submitTrackStates();
(_local10 || (_local10 = com.yahoo.maps.EventController)).getInstance().sendEvent(null, com.yahoo.maps.AppEvents.EnableLocalSearch, {enable:false});
_local2.map.pan((_local12 || (_local12 = Math)).min(_local6, 0), (_local12 || (_local12 = Math)).max(_local5, 0), 600);
nudgeInterval = setInterval(this, "onNudge", 600);
locked = true;
}
locked = false;
return(locked);
}
function onNudge() {
locked = false;
clearInterval(nudgeInterval);
nudgeInterval = 0;
}
function setSessionOpenPOI(b) {
_session.setAttribute("openPOI", (b ? this : null));
}
function closeSessionOpenPOI() {
_session.getAttribute("openPOI").close();
}
function close() {
setSessionOpenPOI(false);
}
function moveToLatLon(latlon) {
var _local3 = getOwner();
__latlon = latlon;
var _local2 = _local3.latlon_to_local(latlon);
_x = _local2.x;
_y = _local2.y;
}
function get latlon() {
return(__latlon);
}
function set latlon(ll) {
moveToLatLon(ll);
//return(latlon);
}
function setDraggable(drg) {
draggable = (drg);
}
function getDraggable() {
return(drag);
}
function set draggable(drg) {
if (drg == null) {
return;
}
drag = drg;
var _local7 = this;
var isDown = false;
var map = com.yahoo.maps.ExtensibleYMap(getOwner());
if (drag == true) {
onPress = function () {
isDown = true;
var _local3 = map["map_" + map.getZoomLevel()].getLatLon(new mx.graphics.Point(map._xmouse, map._ymouse));
var _local2 = map.latlon_to_local(_local3);
this._x = _local2.x - 1;
this._y = _local2.y + 2;
this.startDrag();
map.dispatchEvent({type:(_local7 || (_local7 = com.yahoo.maps.ExtensibleYMap)).MARKER_DRAG_START, marker:this, latlon:this.latlon});
};
onRelease = function () {
this.stopDrag();
isDown = false;
var _local6 = this.latlon;
var _local2 = new mx.graphics.Point(map._xmouse, map._ymouse);
var _local3 = map["map_" + map.getZoomLevel()].getLatLon(_local2);
this.moveToLatLon(_local3);
map.dispatchEvent({type:(_local9 || (_local9 = com.yahoo.maps.ExtensibleYMap)).MARKER_DRAG_STOP, marker:this, oldLatLon:_local6, latlon:this.latlon, point:_local2});
};
onMouseMove = function () {
if (isDown == true) {
var _local2 = new mx.graphics.Point(map._xmouse, map._ymouse);
var _local3 = map["map_" + map.getZoomLevel()].getLatLon(_local2);
map.dispatchEvent({type:(_local9 || (_local9 = com.yahoo.maps.ExtensibleYMap)).MARKER_DRAG, marker:this, latlon:_local3, oldLatLon:this.latlon, point:_local2});
}
};
} else {
delete onPress;
delete onRelease;
delete onMouseMove;
}
//return(draggable);
}
function get draggable() {
return(drag);
}
static var TYPE_POI = "poi";
static var TYPE_WAYPOINT = "waypoint";
static var TYPE_CUSTOM_SWF = "customSWF";
static var TYPE_CUSTOM_IMAGE = "customImage";
static var instanceCounter = 0;
static var markerMap = new Array();
var drag = false;
static var symbolOwner = com.yahoo.maps.Marker;
static var symbolName = "com.yahoo.maps.Marker";
var className = "Marker";
}
Symbol 132 MovieClip [__Packages.com.yahoo.maps.DataService] Frame 0
class com.yahoo.maps.DataService
{
static var _instance;
var _config, _serviceURL, _session, _isULMDirty, _debug, _trackStates, dispatchEvent, _ulm, _addressBook, _fromAddress, _toAddress, _isDispatchOnGetDrivingDirectionVisuals, _selBusiness, debugLogArray, __get__debug, savedAddress2Business;
function DataService () {
}
static function getInstance() {
var _local1 = com.yahoo.maps.DataService;
if (_local1._instance == null) {
_local1._instance = new com.yahoo.maps.DataService();
_local1._instance.init();
}
return(_local1._instance);
}
function init() {
mx.events.EventDispatcher.initialize(_instance);
_config = (_local2 || (_local2 = com.yahoo.maps.Config)).getInstance();
_serviceURL = _config.dataServiceURL;
_session = (_local3 || (_local3 = com.macromedia.mc.platform.Session)).getInstance();
_isULMDirty = true;
_debug = false;
_trackStates = new Array();
getSavedAddress2Business();
}
function getULM() {
if (com.yahoo.maps.DisplayManager.HIDE_ULM) {
onGetULM();
return(undefined);
}
if (_isULMDirty) {
if ((!_isULMPendingCall) && (_serviceURL != null)) {
var _local3 = new com.yahoo.maps.PendingCall(_instance, (_serviceURL + "/") + _config.__get__getULM(), randomParam(), "onGetULM", "onGetULMError");
_isULMPendingCall = true;
}
} else {
dispatchEvent({type:"onGetULM", data:_ulm});
}
}
function onGetULM(x) {
_ulm = new com.yahoo.maps.data.ULM(x);
_isULMDirty = false;
_isULMPendingCall = false;
dispatchEvent({type:"onGetULM", data:_ulm});
}
function onGetULMError() {
dispatchEvent({type:"onGetULMError"});
}
function updateULM() {
if (com.yahoo.maps.DisplayManager.HIDE_ULM) {
return(undefined);
}
if (_ulmUpdates.length > 0) {
var _local2 = _ulmUpdates.shift().toString().toLowerCase().split(", ").join(",");
var _local3 = true;
if (_local2 != null) {
for (var _local4 in _ulm) {
if (_local2 == _ulm[_local4].toString().toLowerCase()) {
_local3 = false;
break;
}
}
if (!_local3) {
for (var _local4 in _addressBook) {
if (_local2 == _addressBook[_local4].toString().toLowerCase()) {
_local3 = false;
break;
}
}
}
}
if (_local3 && (_local2 != null)) {
_isULMDirty = true;
var _local5 = (_serviceURL + "/") + _config.__get__getULM();
var _local6 = new com.yahoo.maps.PendingCall(_instance, _local5, ("m=set&q=" + escape(_local2)) + randomParam(), "updateULM", "onUpdateULMError");
}
} else if (_isULMDirty) {
getULM();
}
}
function onUpdateULMError() {
}
function clearULM() {
if (com.yahoo.maps.DisplayManager.HIDE_ULM) {
return(undefined);
}
var _local2 = (_serviceURL + "/") + _config.__get__getULM();
var _local3 = new com.yahoo.maps.PendingCall(_instance, _local2, "m=clrrecent", "onClearULM", "onClearULMError");
}
function onClearULM() {
dispatchEvent({type:"onClearULM"});
_isULMDirty = true;
getAddressBook();
getULM();
}
function onClearULMError() {
}
function getAddressBook() {
if (com.yahoo.maps.DisplayManager.HIDE_ULM) {
return(undefined);
}
if (_addressBook == null) {
if ((!_isAddressBookPendingCall) && (_serviceURL != null)) {
var _local3 = new com.yahoo.maps.PendingCall(_instance, (_serviceURL + "/") + _config.__get__getAddressBook(), randomParam(), "onGetAddressBook", "onGetAddressBookError");
_isAddressBookPendingCall = true;
}
} else {
dispatchEvent({type:"onGetAddressBook", data:_addressBook});
}
}
function onGetAddressBook(x) {
_addressBook = new com.yahoo.maps.data.AddressBook(x);
dispatchEvent({type:"onGetAddressBook", data:_addressBook});
}
function onGetAddressBookError() {
}
function getMap(address, a2b, bizid) {
if ((address != null) && (address != "")) {
var _local3 = (_serviceURL + "/") + _config.__get__getMap();
var _local4 = (((("q=" + escape(address)) + "&a2b=") + (a2b ? 1 : 0)) + "&bizid=") + bizid;
_fromAddress = address;
var _local5 = new com.yahoo.maps.PendingCall(_instance, _local3, _local4, "onGetMap", "onGetMapError");
trackState("new_addr");
}
}
function onGetMap(x) {
var _local2 = new com.yahoo.maps.data.Locations(x);
if (isNaN(_local2[0].lat)) {
onGetMapError();
} else {
generateOnGetMapEvent(_local2);
_ulmUpdates.push(_fromAddress);
updateULM();
}
}
function generateOnGetMapEvent(a) {
dispatchEvent({type:"onGetMap", data:a});
}
function onGetMapError() {
dispatchEvent({type:"onGetMapError"});
}
function verifyAmbiguousLocation(address) {
var _local2 = (_serviceURL + "/") + _config.__get__getMap();
var _local3 = "q=" + escape(address);
var _local4 = new com.yahoo.maps.PendingCall(_instance, _local2, _local3, "onVerifyAmbiguousLocation", "onVerifyAmbiguousLocationError");
}
function onVerifyAmbiguousLocation(x) {
var _local3 = new com.yahoo.maps.data.Locations(x);
if (isNaN(_local3[0].lat)) {
onVerifyAmbiguousLocationError(x);
} else {
dispatchEvent({type:"onVerifyAmbiguousLocation", data:new com.yahoo.maps.data.Locations(x)});
}
}
function onVerifyAmbiguousLocationError(x) {
dispatchEvent({type:"onVerifyAmbiguousLocationError", data:new com.yahoo.maps.data.Location(x.firstChild)});
}
function getDrivingDirections(from, to, a2b, bizid, tbizid, ovx, ovy, fit, pts) {
var _local3 = (_serviceURL + "/") + _config.__get__getDrivingDirections();
(_local16 || (_local16 = Echo)).debug("From: " + _fromAddress);
(_local16 || (_local16 = Echo)).debug("to:" + _toAddress);
_fromAddress = from;
_toAddress = to;
if (((!_toAddress) || (!_fromAddress)) || ((_toAddress == null) || (_fromAddress == null))) {
(_local16 || (_local16 = Echo)).error("!!! INVALID ADDRESS PARAMETERS !!! ");
}
(_local16 || (_local16 = Echo)).info((("::>" + _toAddress) + "\n-------------------\n< ::") + _fromAddress);
var _local4 = "&tvx=214&tvy=59";
var _local2 = "q=" + escape(_fromAddress);
_local2 = _local2 + ("&tq=" + escape(_toAddress));
_local2 = _local2 + (("&a2b=" + (a2b ? 1 : 0)) + _local4);
_local2 = _local2 + ("&bizid=" + bizid);
_local2 = _local2 + ("&tbizid=" + tbizid);
_local2 = _local2 + ("&ovx=" + ovx);
_local2 = _local2 + ("&ovy=" + ovy);
_local2 = _local2 + ("&fit=" + (fit ? 1 : 0));
_local2 = _local2 + ("&pts=" + pts);
(_local16 || (_local16 = Echo)).info((((((_local15 || (_local15 = com.yahoo.maps.DataService))._instance + " |\n| ") + _local3) + " |\n| ") + _local2) + "\n| onGetDrivingDirections \n | onGetDrivingDirectionsError");
var _local5 = new com.yahoo.maps.PendingCall((_local15 || (_local15 = com.yahoo.maps.DataService))._instance, _local3, _local2, "onGetDrivingDirections", "onGetDrivingDirectionsError");
trackState("new_addr");
_isDispatchOnGetDrivingDirectionVisuals = fit;
}
function onGetDrivingDirections(x) {
var _local4 = x.firstChild.firstChild;
if ((x.childNodes.length == 0) || (_local4.nodeName == "error")) {
onGetDrivingDirectionsError(_local4);
} else {
var _local3 = new com.yahoo.maps.data.DrivingDirections(x.firstChild);
dispatchEvent({type:"onGetDrivingDirections", data:_local3, fromAddress:_fromAddress, toAddress:_toAddress});
var _local2 = (_local11 || (_local11 = com.yahoo.maps.flex.HistoryManager)).getInstance().loadStateObj;
if (_isDispatchOnGetDrivingDirectionVisuals && (((((!_local2.lat) || (!_local2.lon)) || (!_local2.q1)) || (!_local2.q2)) || (!_local2.mag))) {
dispatchEvent({type:"onGetDrivingDirectionVisualsFit", data:_local3, forward:false});
} else if (_isDispatchOnGetDrivingDirectionVisuals) {
dispatchEvent({type:"onGetDrivingDirectionVisualsFit", data:_local3, forward:true});
} else {
dispatchEvent({type:"onGetDrivingDirectionsWithoutFit", data:_local3});
}
_ulmUpdates.push(_fromAddress);
_ulmUpdates.push(_toAddress);
updateULM();
}
}
function onGetDrivingDirectionsError(o) {
dispatchEvent({type:"onGetDrivingDirectionsError", data:o});
}
function encode(s) {
var _local1 = s.split(", ").join(",");
_local1 = _local1.split(" ").join(" ");
return(_local1);
}
function getDrivingDirectionVisuals(start, destination, row, col, nrows, ncols, zoom) {
var _local8 = (_serviceURL + "/") + _config.__get__getDrivingDirections();
var _local6 = (((start.__get__fullStreet() == "") || (start.__get__fullStreet() == null)) ? ((start.__get__lat() + ",") + start.__get__lon()) : (escape(start.__get__fullStreet())));
var _local7 = (((destination.__get__fullStreet() == "") || (destination.__get__fullStreet() == null)) ? ((destination.__get__lat() + ",") + destination.__get__lon()) : (escape(destination.__get__fullStreet())));
var _local3 = (("q=" + _local6) + "&tq=") + _local7;
trace(((("\n ----------------------------- \n startAddress:" + _local6) + " \n endAddress: ") + _local7) + "\n ------------------------");
if (_local3.indexOf("undefined") > -1) {
dispatchEvent({type:"getDrivingDirectionVisualsErrror", data:arguments});
return(undefined);
}
_local3 = _local3 + ("&mag=" + String(zoom));
_local3 = _local3 + ("&col=" + String(col));
_local3 = _local3 + ("&row=" + String(row));
_local3 = _local3 + ("&ncols=" + String(ncols));
_local3 = _local3 + ("&nrows=" + String(nrows));
Echo.info("GetDrivingDirectionsVisuals: " + _local3);
new com.yahoo.maps.PendingCall(_instance, _local8, _local3, "onGetDrivingDirectionVisuals", "onGetDrivingDirectionVisualsErrror");
}
function onGetDrivingDirectionVisuals(x) {
trace(x);
if ((x.childNodes.length == 0) || (x.firstChild.firstChild.nodeName == "error")) {
onGetDrivingDirectionVisualsErrror();
} else {
dispatchEvent({type:"onGetDrivingDirectionVisuals", data:new com.yahoo.maps.data.DrivingDirections(x.firstChild)});
}
}
function onGetDrivingDirectionVisualsErrror(x) {
dispatchEvent({type:"onGetDrivingDirectionVisualsErrror"});
}
function getTraffic(lat, lon, zoom, width, height) {
var _local3 = (_serviceURL + "/") + _config.__get__getTraffic();
var _local2 = "lat=" + String(lat);
_local2 = _local2 + ("&lon=" + String(lon));
_local2 = _local2 + ("&mag=" + String(zoom));
_local2 = _local2 + ("&wpx=" + String(width));
_local2 = _local2 + ("&hpx=" + String(height));
_local2 = _local2 + "&sp=85";
_local2 = _local2 + "&sfmt=3";
var _local4 = new com.yahoo.maps.PendingCall(_instance, _local3, _local2, "onGetTraffic", "onGetTrafficError");
}
function onGetTraffic(x) {
var _local2 = new com.yahoo.maps.data.Traffic(x);
dispatchEvent({type:"onGetTraffic", data:_local2});
}
function onGetTrafficError(o) {
dispatchEvent({type:"onGetTrafficError"});
}
function getLocalSearch(search, lat, lon, begin, n, radius, ycatfilt, ratingfilt, width, height, autoZoom, zoom) {
if (lat == null) {
lat = 37.769309568421;
}
if (lon == null) {
lon = -122.402432874639;
}
ycatfilt = ((ycatfilt == null) ? "" : (ycatfilt));
ratingfilt = ((ratingfilt == null) ? "" : (ratingfilt));
var _local6 = (_config.__get__localSearchURL() + "/") + _config.__get__getLocalSearch();
var _local2 = "stx=" + escape(search);
_local2 = _local2 + ("&lat=" + lat);
_local2 = _local2 + ("&lon=" + lon);
_local2 = _local2 + ("&begin=" + begin);
_local2 = _local2 + ("&n=" + n);
_local2 = _local2 + ("&ycatfilt=" + ycatfilt);
_local2 = _local2 + ("&ratingfilt=" + ratingfilt);
_local2 = _local2 + ("&radius=" + radius);
_local2 = _local2 + ("&mag=" + zoom);
_local2 = _local2 + ("&wpx=" + width);
_local2 = _local2 + ("&hpx=" + height);
_local2 = _local2 + ("&autoexp=" + (((((begin == 1) && (ratingfilt == "")) && (ycatfilt == "")) && (autoZoom)) ? 1 : 0));
var _local5 = _session.getAttribute("lastAddress").toString();
if (_local5 != null) {
_local2 = _local2 + ("&csz=" + escape(_local5));
}
var _local9 = new com.yahoo.maps.PendingCall(_instance, _local6, _local2, "onGetLocalSearch", "onGetLocalSearchError");
}
function onGetLocalSearch(x) {
var _local3 = (_local9 || (_local9 = com.macromedia.mc.platform.Session)).getInstance().getAttribute("localSearchPod");
if (_local3 && (!_local3.isQueryMade)) {
(_local8 || (_local8 = com.yahoo.maps.EventController)).getInstance().sendEvent(this, com.yahoo.maps.AppEvents.removeBusyCursor);
return(undefined);
}
var _local2 = getNodeByName(x.firstChild, "htmlArgs");
_local2 = getNodeByName(_local2.firstChild, "begin");
var _local5 = Number(_local2.firstChild.nodeValue);
if (x.firstChild.firstChild.nodeName == "error") {
onGetLocalSearchError();
} else {
dispatchEvent({type:"onGetLocalSearch", data:new com.yahoo.maps.data.LocalSearch(x, _local5)});
}
}
function onGetLocalSearchError() {
dispatchEvent({type:"onGetLocalSearchError"});
}
function getSmartView(bfkey, lat, lon, width, height, zoom, begin, n, phase) {
var _local7 = (_config.__get__smartViewURL() + "/") + _config.__get__getSmartView();
width = ((width != undefined) ? (width) : 300);
height = ((height != undefined) ? (height) : 300);
zoom = ((zoom != undefined) ? (zoom) : 1);
var _local2 = "bfkey=" + bfkey;
_local2 = _local2 + ("&lat=" + lat);
_local2 = _local2 + ("&lon=" + lon);
_local2 = _local2 + ("&wpx=" + width);
_local2 = _local2 + ("&hpx=" + height);
_local2 = _local2 + ("&mag=" + zoom);
_local2 = _local2 + ("&begin=" + begin);
_local2 = _local2 + ("&n=" + n);
_local2 = _local2 + "&autoexp=1";
_local2 = _local2 + ("&stx=" + phase);
if (_selBusiness != (_local15 || (_local15 = com.macromedia.mc.platform.Session)).getInstance().getAttribute("currentBizLocAd")) {
_local2 = _local2 + "&onlyin=0";
_selBusiness = (_local15 || (_local15 = com.macromedia.mc.platform.Session)).getInstance().getAttribute("currentBizLocAd");
} else {
_local2 = _local2 + "&onlyin=1";
}
var _local6 = _session.getAttribute("lastAddress").toString();
if (_local6 != null) {
_local2 = _local2 + ("&csz=" + escape(_local6));
}
var _local8 = new com.yahoo.maps.PendingCall(_instance, _local7, _local2, "onGetSmartView", "onGetSmartViewError");
}
function onGetSmartView(x) {
var _local3 = (_local10 || (_local10 = com.macromedia.mc.platform.Session)).getInstance().getAttribute("localSearchPod");
if (_local3 && (!_local3.isQueryMade)) {
(_local9 || (_local9 = com.yahoo.maps.EventController)).getInstance().sendEvent(this, com.yahoo.maps.AppEvents.removeBusyCursor);
return(undefined);
}
var _local2 = getNodeByName(x.firstChild, "htmlArgs");
_local2 = getNodeByName(_local2.firstChild, "begin");
var _local6 = Number(_local2.firstChild.nodeValue);
if (x.firstChild.firstChild.nodeName == "error") {
onGetSmartViewError();
} else {
var _local5 = new com.yahoo.maps.data.SmartView(x, _local6);
dispatchEvent({type:"onGetSmartView", data:_local5});
}
}
function onGetSmartViewError() {
dispatchEvent({type:"onGetSmartViewError"});
}
function getCategories() {
var _local2 = (_config.__get__categoriesURL() + "/") + _config.__get__getCategories();
var _local3 = "v=" + _config.__get__categoryVersion();
var _local4 = new com.yahoo.maps.PendingCall(_instance, _local2, _local3, "onGetCategories");
}
function onGetCategories(x) {
dispatchEvent({type:"onGetCategories", data:new com.yahoo.maps.data.Categories(x)});
}
function onGetBusinessLocatorRefresh(x) {
var _local8;
var _local2 = Number(x.firstChild.firstChild.nextSibling.nextSibling.firstChild.nodeValue);
var _local3 = {rate:_local2};
dispatchEvent({type:"onGetBusinessLocatorRefresh", data:_local3});
}
function getBusinessLocatorAds(BizLocWidth) {
var _local3 = _session.getAttribute("currentBizLocAd").bfkey || "";
var _local6 = (_local9 || (_local9 = com.macromedia.mc.platform.Session)).getInstance().getAttribute("lastAddress").toString();
var _local4 = _session.getAttribute("map");
var _local2 = (_config.__get__adURL() + "/") + _config.__get__getAds();
var _local5 = (((((((("adpos=BIZ&q=" + _local6) + "&wpx=") + BizLocWidth) + "&hpx=35") + "&mag=") + _local4.getZoomLevel()) + "&bfkey=") + _local3) + randomParam();
var _local7 = new com.yahoo.maps.PendingCall(_instance, _local2, _local5, "onGetBusinessLocatorAds");
}
function onGetBusinessLocatorAds(x) {
var _local8;
var _local2 = (_local9 || (_local9 = com.macromedia.mc.platform.Session)).getInstance().getAttribute("lastAddress").toString();
if (((_local2 == undefined) || (_local2 == "undefined")) || (!_local2)) {
_local2 = _config.mapDefaultLocation;
}
var _local5 = _session.getAttribute("map");
var _local3 = new com.yahoo.maps.data.BIZs(x);
dispatchEvent({type:"onGetBusinessLocatorAds", data:_local3});
}
function getDDNavAds(o) {
var _local2 = (_local8 || (_local8 = com.macromedia.mc.platform.Session)).getInstance().getAttribute("lastAddress").toString() || (_config.__get__mapDefaultLocation());
if (((_local2 == undefined) || (_local2 == "undefined")) || (_local2 == null)) {
_local2 = _config.mapDefaultLocation;
}
var _local5 = "xway+xmfer";
var _local3 = _session.getAttribute("map");
var _local4 = (_config.__get__adURL() + "/") + _config.__get__getAds();
var _local6 = "adpos=xway+xmfer";
((((((((("&q=" + _local2) + "&wpx=") + _local3.width) + "&hpx=") + _local3.height) + "&mag=") + _local3.getZoomLevel()) + "&bfkey=") + _local5) + randomParam();
var _local7 = new com.yahoo.maps.PendingCall(_instance, _local4, _local6, "onGetDDNavAds");
}
function onGetDDNavAds(x) {
var _local7;
var _local2 = new com.yahoo.maps.data.BIZ(x.firstChild.childNodes[0]);
dispatchEvent({type:"onGetDDNavAds", data:{oywayAd:_local2}});
}
function getPhoneNumbers() {
var _local2 = (_config.__get__phoneNumbersURL() + "/") + _config.__get__getPhoneNumbers();
var _local3 = new com.yahoo.maps.PendingCall(_instance, _local2, "", "onGetPhoneNumbers");
}
function onGetPhoneNumbers(x) {
dispatchEvent({type:"onGetPhoneNumbers", data:new com.yahoo.maps.data.PhoneNumbers(x)});
}
function sendToPhone(senderEmail, cellNumber) {
var _local2 = (_config.__get__sendToPhoneURL() + "/") + _config.__get__sendToPhone();
var _local3 = (((("xml=1&senderEmail=" + senderEmail) + "&ph=") + cellNumber) + "&") + encode(String(_session.getAttribute("addressListSendToPhone")));
var _local4 = new com.yahoo.maps.PendingCall(_instance, _local2, _local3, "onSendToPhone");
}
function onSendToPhone(x) {
dispatchEvent({type:"onSendToPhone", data:new com.yahoo.maps.data.SendToPhoneResult(x)});
}
function proxyEvent(event) {
if (event.hasExecuted != true) {
event.hasExecuted = true;
dispatchEvent(event);
}
}
function getNodeByName(xml, target) {
var _local1 = xml;
while (_local1 != null) {
if (target == _local1.nodeName) {
return(_local1);
}
_local1 = _local1.nextSibling;
}
return(null);
}
function set debug(v) {
if ((_debug != true) && (v == true)) {
debugLogArray = new Array();
} else if ((_debug == true) && (v == false)) {
var _local2 = new LoadVars();
_local2.type = "httpinfo";
_local2.msg = debugLogArray;
_local2.onLoad = function (b) {
};
System.security.allowDomain(_config.__get__dataServiceURL());
var _local4 = new Object();
var _local5 = _local2.sendAndLoad(_config.__get__dataServiceURL() + "/log.php", _local4, "POST");
}
_debug = v;
//return(__get__debug());
}
function debugLog(success, startTime, endTime, url) {
if (_debug != true) {
return(undefined);
}
if (debugLogArray == undefined) {
debugLogArray = new Array();
}
var _local2 = (success ? "HTTPINFO - S " : "HTTPINFO - F ");
_local2 = _local2 + String(startTime);
_local2 = _local2 + ",";
_local2 = _local2 + String(endTime - startTime);
_local2 = _local2 + ("," + url);
_local2 = _local2 + newline;
debugLogArray.push(_local2);
}
function trackState(code) {
var _local3 = false;
var _local2 = 0;
while (_local2 < _trackStates.length) {
if (_trackStates[_local2] == code) {
_local3 = true;
break;
}
_local2++;
}
if (!_local3) {
_trackStates.push(code);
}
}
function submitTrackStates() {
if (_satImageDataRequested || ((_local9 || (_local9 = com.yahoo.maps.flex.HistoryManager)).loadingState)) {
return(undefined);
}
if (_trackStates.length >= 1) {
var _local4 = (_config.__get__trackStateURL() + "/") + _config.__get__trackState();
var _local3;
var _local2 = unescape((_local9 || (_local9 = com.yahoo.maps.flex.HistoryManager)).getInstance().hash);
var _local5;
_local2 = _local2 + (((((_local2 == "") ? "swpx=" : "&swpx=") + (_local10 || (_local10 = Stage)).width) + "&shpx=") + (_local10 || (_local10 = Stage)).height);
var _local6 = (_local11 || (_local11 = com.macromedia.mc.platform.Session)).getInstance().getAttribute("map");
if (_local6 != undefined) {
_local2 = _local2 + ((("&wpx=" + _local6.width) + "&hpx=") + _local6.height);
}
var _local8 = String(_session.getAttribute("tileImgSRC"));
if (_local8 && (_local8 != "undefined")) {
_local2 = _local2 + ("&ds_coi=" + _local8);
}
if (_local6 && (_local2.indexOf("mvt=") == -1)) {
_local2 = _local2 + ("&mvt=" + _local6.getCurrentMapViewType().substr(0, 1));
}
for (var _local7 in _trackStates) {
_local3 = ((("op=" + _trackStates[_local7]) + "&") + _local2) + randomParam();
_local5 = new com.yahoo.maps.PendingCall((_local12 || (_local12 = com.yahoo.maps.DataService))._instance, _local4, _local3, "onSubmitTrackState");
}
_trackStates = new Array();
}
}
function onSubmitTrackState(x) {
var _local1 = x.firstChild.firstChild;
var _local2 = (_local4 || (_local4 = com.yahoo.maps.BeaconCaller)).getInstance();
while (_local1 != null) {
if (_local1.nodeName.toLowerCase() == "csc_beacon") {
_local2.callBeacon(_local1.firstChild.nodeValue);
}
_local1 = _local1.nextSibling;
}
}
function setDefaultAddress(address) {
var _local2 = new com.yahoo.maps.PendingCall(_instance, (_serviceURL + "/") + _config.__get__getULM(), ("m=setdefault&q=" + escape(address)) + randomParam());
}
function getSatImageData(rows, cols, row1, col1, zoom1) {
_satImageDataRequested = true;
var _local2 = _config.__get__imgMetaURL() + "copyright";
var _local3 = (((((((((("t=xml&rows=" + rows) + "&cols=") + cols) + "&row1=") + row1) + "&col1=") + col1) + "&zoom1=") + zoom1) + "&version1=") + _config.__get__satelliteBatch();
var _local4 = new com.yahoo.maps.PendingCall(_instance, _local2, _local3, "onGetSatImageData", "onGetSatImageDataError");
}
function onGetSatImageData(x) {
var _local13 = "";
var _local5 = new Array();
var _local11 = "";
var _local10 = x.firstChild.childNodes;
var _local4 = 0;
while (_local4 < _local10.length) {
var _local6 = false;
var _local3 = _local10[_local4].childNodes;
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2].nodeName == "COPY") {
_local5.push(_local3[_local2].firstChild.nodeValue);
}
if (_local3[_local2].nodeName == "CSHORT") {
var _local7 = _local3[_local2].firstChild.nodeValue;
}
if ((_local3[_local2].nodeName == "CENTER") && (_local3[_local2].firstChild.nodeValue == "YES")) {
_local6 = true;
}
_local2++;
}
if (_local6) {
_local11 = _local7;
}
_local4++;
}
_local5.sort();
var _local8 = "";
var _local9 = "";
_local4 = 0;
while (_local4 < _local5.length) {
if (_local5[_local4] != _local8) {
_local8 = _local5[_local4];
if (_local9 == "") {
_local9 = _local9 + _local8;
} else {
_local9 = _local9 + (", " + _local8);
}
}
_local4++;
}
_local13 = ((_local15 || (_local15 = com.yahoo.maps.Labels)).IMAGERY_COPYRIGHT + " ") + _local9;
_session.setAttribute("tileImgSRC", _local11);
dispatchEvent({type:"onGetSatImageData", copyText:_local13});
_satImageDataRequested = false;
submitTrackStates();
}
function onGetSatImageDataError(x) {
_satImageDataRequested = false;
}
function randomParam() {
return("&r=" + (_local1 || (_local1 = Math)).round((_local1 || (_local1 = Math)).random() * 10000));
}
function getSavedAddress2Business() {
if (!_config.__get__mapConfigURL()) {
return(undefined);
}
var _local2 = (_config.__get__mapConfigURL() + "/") + _config.__get__getMapConfig();
var _local3 = "m=get&name=B4A" + randomParam();
var _local4 = new com.yahoo.maps.PendingCall(_instance, _local2, _local3, "onGetSavedAddress2Business");
}
function onGetSavedAddress2Business(x) {
savedAddress2Business = new com.yahoo.maps.data.SavedAddress2Business(x);
}
function saveAddress2Business(hash, id) {
if (!_config.__get__mapConfigURL()) {
return(undefined);
}
var _local2 = (_config.__get__mapConfigURL() + "/") + _config.__get__getMapConfig();
var _local3 = (("m=set&name=B4A&value=" + hash) + ":") + id;
new com.yahoo.maps.PendingCall(_instance, _local2, _local3);
}
function getTips(tipID, sig, type) {
if (!com.yahoo.maps.DisplayManager.HIDE_TIPS_ENGINE) {
var _local2 = _config.__get__msgContentURL();
var _local3 = (((("id=" + tipID) + "&sig=") + sig) + "&type=") + type;
var _local4 = new com.yahoo.maps.PendingCall(_instance, _local2, _local3, "onGetTips", "onGetTipsError");
}
}
function onGetTips(x) {
var _local4 = new Object();
var _local6 = x.childNodes;
var _local5 = 0;
while (_local5 < _local6.length) {
var _local3 = _local6[_local5].firstChild.childNodes;
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2].nodeName == "ID") {
_local4.ID = _local3[_local2].firstChild.nodeValue;
}
if (_local3[_local2].nodeName == "NEXT_ID") {
_local4.nextID = _local3[_local2].firstChild.nodeValue;
}
if (_local3[_local2].nodeName == "PREV_ID") {
_local4.prevID = _local3[_local2].firstChild.nodeValue;
}
if (_local3[_local2].nodeName == "CONTENT") {
_local4.content = _local3[_local2].firstChild.nodeValue;
}
if (_local3[_local2].nodeName == "PATH") {
_local4.url = "";
_local4.path = _local3[_local2].firstChild.nodeValue;
}
if (_local3[_local2].nodeName == "DURATION") {
_local4.duration = _local3[_local2].firstChild.nodeValue;
}
if (_local3[_local2].nodeName == "SIG") {
_local4.sig = _local3[_local2].firstChild.nodeValue;
}
if (_local3[_local2].nodeName == "TYPE") {
_local4.type = _local3[_local2].firstChild.nodeValue;
}
_local2++;
}
_local5++;
}
dispatchEvent({type:"onGetTips", data:_local4});
}
function onGetTipsError() {
dispatchEvent({type:"onGetTipsError"});
}
function getXLREC() {
var _local4 = (_config.__get__adURL() + "/") + _config.__get__getAds();
var _local2 = String(_session.getAttribute("lastAddress"));
if (((_local2 == undefined) || (_local2 == "undefined")) || (_local2 == null)) {
_local2 = _config.mapDefaultLocation;
}
var _local3 = _session.getAttribute("map");
var _local5 = ((((((("adpos=XLREC&q=" + _local2) + "&wpx=") + _local3.width) + "&hpx=") + _local3.height) + "&mag=") + _local3.getZoomLevel()) + randomParam();
var _local6 = new com.yahoo.maps.PendingCall(_instance, _local4, _local5, "onGetXLREC", "onGetXLRECError");
}
function onGetXLREC(x) {
dispatchEvent({type:"onGetXLREC", data:new com.yahoo.maps.data.XLREC(x)});
}
function onGetXLRECError() {
}
function getXTL() {
var _local4 = (_config.__get__adURL() + "/") + _config.__get__getAds();
var _local2 = String(_session.getAttribute("lastAddress"));
if (((_local2 == undefined) || (_local2 == "undefined")) || (_local2 == null)) {
_local2 = _config.mapDefaultLocation;
}
var _local3 = _session.getAttribute("map");
var _local5 = ((((((("adpos=XTL&q=" + _local2) + "&wpx=") + _local3.width) + "&hpx=") + _local3.height) + "&mag=") + _local3.getZoomLevel()) + randomParam();
var _local6 = new com.yahoo.maps.PendingCall(_instance, _local4, _local5, "onGetXTL", "onGetXTLError");
}
function onGetXTL(x) {
dispatchEvent({type:"onGetXTL", data:new com.yahoo.maps.data.XTLs(x)});
}
function onGetXTLError() {
}
var _isInited = false;
var _isULMPendingCall = false;
var _isAddressBookPendingCall = false;
var _ulmUpdates = new Array();
var _satImageDataRequested = false;
var _firstGet = true;
var className = "DataService";
}
Symbol 168 MovieClip [__Packages.com.yahoo.maps.data.ULM] Frame 0
class com.yahoo.maps.data.ULM extends Array
{
var push, _mag, _clat, _clon, _caddress, _ccity, _cstate, _czip, _culmtype;
function ULM (x) {
super();
var _local3 = x.firstChild.firstChild;
while (_local3 != null) {
if ((_local3.nodeName == "location") || (_local3.nodeName == "saved_loc")) {
push(new com.yahoo.maps.data.ULMLocation(_local3));
} else {
this["_" + _local3.nodeName] = _local3.firstChild.nodeValue;
}
_local3 = _local3.nextSibling;
}
}
function get zoom() {
return(Number(_mag));
}
function get lat() {
return(Number(_clat));
}
function get lon() {
return(Number(_clon));
}
function get address() {
return(_caddress);
}
function get city() {
return(_ccity || "");
}
function get state() {
return(_cstate || "");
}
function get zip() {
return(_czip || "");
}
function getWholeAddress() {
var _local2 = address;
_local2 = _local2 + ((_local2 && (city)) ? (" " + city) : (city));
_local2 = _local2 + ((_local2 && (state)) ? (" " + state) : (state));
_local2 = _local2 + ((_local2 && (zip)) ? (" " + zip) : (zip));
return(_local2);
}
function centerIsUserDefault() {
return(_culmtype == 0);
}
var className = "ULM";
}
Symbol 139 MovieClip [__Packages.com.yahoo.maps.data.AddressBook] Frame 0
class com.yahoo.maps.data.AddressBook extends Array
{
var push;
function AddressBook (x) {
super();
var _local4 = x.firstChild.firstChild;
var _local3;
while (_local4 != null) {
_local3 = _local4.firstChild;
while (_local3 != null) {
if ((_local3.nodeName == "h_loc") || (_local3.nodeName == "w_loc")) {
push(new com.yahoo.maps.data.AddressBookLocation(_local3));
}
_local3 = _local3.nextSibling;
}
_local4 = _local4.nextSibling;
}
}
var className = "AddressBook";
}
Symbol 140 MovieClip [__Packages.com.yahoo.maps.data.Ad] Frame 0
class com.yahoo.maps.data.Ad
{
var _beacon, _img, _url, _beacon1, _moreLink;
function Ad (x) {
com.yahoo.maps.XMLParser.xmlNodesToObject(this, x);
}
function get beacon() {
return(_beacon);
}
function get img() {
return(_img);
}
function get url() {
return(_url);
}
function get beacon1() {
return(_beacon1);
}
function get moreLink() {
return(_moreLink);
}
var className = "Ad";
}
Symbol 141 MovieClip [__Packages.com.yahoo.maps.data.BIZ] Frame 0
class com.yahoo.maps.data.BIZ extends com.yahoo.maps.data.Ad
{
var _bfkey, _cat, _style, _phase, _url, _lrecFlag, _displayIndex, _morelink;
function BIZ (x) {
var _local3 = super(x);
var _local4 = icon;
disableZoomToCenter = (true);
}
function get bfkey() {
return(_bfkey);
}
function get cat() {
return(_cat);
}
function get style() {
return(_style);
}
function get disableZoomToCenter() {
return(_disableZoomToCenter);
}
function set disableZoomToCenter(b) {
_disableZoomToCenter = b;
//return(disableZoomToCenter);
}
function get phase() {
return(_phase);
}
function get icon() {
return((_local1 || (_local1 = com.macromedia.mc.platform.Session)).getInstance().getAttribute("currentBizLocAd")._icon);
}
function get url() {
return(_url);
}
function get lrecFlag() {
return(_lrecFlag);
}
function set displayIndex(displayIndex) {
_displayIndex = displayIndex;
//return(this.displayIndex);
}
function get morelink() {
return(_morelink);
}
function set morelink(v) {
_morelink = v;
//return(morelink);
}
function get displayIndex() {
return(_displayIndex);
}
var _disableZoomToCenter = false;
var className = "BIZ";
}
Symbol 159 MovieClip [__Packages.com.yahoo.maps.data.SavedAddress2Business] Frame 0
class com.yahoo.maps.data.SavedAddress2Business
{
function SavedAddress2Business (x) {
var _local4 = x.firstChild.firstChild;
while (_local4 != null) {
if (_local4.nodeName == "value") {
var _local3 = _local4.firstChild.nodeValue.split("+");
var _local2;
for (var _local5 in _local3) {
_local2 = _local3[_local5].split(":");
addItem(_local2[0], _local2[1]);
}
break;
}
_local4 = _local4.nextSibling;
}
}
function addItem(addressHash, id) {
_hash[addressHash] = id;
}
function getBusinessID(addressHash) {
return(_hash[addressHash]);
}
var _hash = new Object();
var className = "SavedAddress2Business";
}
Symbol 137 MovieClip [__Packages.com.yahoo.maps.data.Address] Frame 0
class com.yahoo.maps.data.Address extends Object
{
var _description, _street, _csz, _country, _lat, _lon, _warning, _mag, _business, _type, _qty, _fullStreet;
function Address (x) {
super();
com.yahoo.maps.XMLParser.xmlNodesToObject(this, x);
}
function get description() {
return(_description);
}
function get street() {
return(_street);
}
function get csz() {
return(_csz);
}
function get country() {
return(_country);
}
function get lat() {
return(Number(_lat));
}
function get lon() {
return(Number(_lon));
}
function get warning() {
return(_warning);
}
function get mag() {
return(Number(_mag));
}
function get business() {
return(_business);
}
function get type() {
return(_type);
}
function get qty() {
return(_qty);
}
function get fullStreet() {
return(_fullStreet);
}
function set street(value) {
_street = value;
//return(street);
}
function set csz(value) {
_csz = value;
//return(csz);
}
function set country(value) {
_country = value;
//return(country);
}
function set lat(value) {
_lat = String(value);
//return(lat);
}
function set lon(value) {
_lon = String(value);
//return(lon);
}
function set mag(value) {
_mag = String(value);
//return(mag);
}
function set business(value) {
_business = value;
//return(business);
}
function set type(value) {
_type = String(value);
//return(type);
}
function set qty(value) {
_qty = String(value);
//return(qty);
}
function set fullStreet(value) {
_fullStreet = String(value);
//return(fullStreet);
}
function isEqual(item) {
if (((_street == null) || (_street == "")) && ((_csz == null) || (_csz == ""))) {
return((lat == item.__get__lat()) && (lon == item._lon));
}
return(((_street == item._street) && (_csz == item._csz)) && (_country == item._country));
}
function toString() {
return((_street + " ") + _csz);
}
var className = "Address";
}
Symbol 136 MovieClip [__Packages.com.yahoo.maps.data.Address2BusinessLocation] Frame 0
class com.yahoo.maps.data.Address2BusinessLocation
{
var _id, _localurl, _rateItURL, _dtitle, _phone, _rating, _nrating;
function Address2BusinessLocation (x) {
com.yahoo.maps.XMLParser.xmlNodesToObject(this, x);
}
function set id(i) {
_id = i;
//return(id);
}
function get id() {
return(_id);
}
function set localurl(url) {
_localurl = url;
//return(localurl);
}
function get localurl() {
return(_localurl);
}
function set rateItURL(url) {
_rateItURL = url;
//return(rateItURL);
}
function get rateItURL() {
return(_rateItURL);
}
function set title(t) {
_dtitle = t;
//return(title);
}
function get title() {
return(_dtitle);
}
function set phone(p) {
_phone = p;
//return(phone);
}
function get phone() {
return(_phone);
}
function set rating(r) {
_rating = String(r);
//return(rating);
}
function get rating() {
return(Number(_rating));
}
function set nrating(nr) {
_nrating = String(nr);
//return(nrating);
}
function get nrating() {
return(Number(_nrating));
}
var className = "Address2BusinessLocation";
}
Symbol 339 MovieClip [__Packages.com.yahoo.maps.flash.ExtensibleZoomBar] Frame 0
class com.yahoo.maps.flash.ExtensibleZoomBar
{
var zoomLevel, dragging, mc, triangle, slider, zoomOut, zoomIn, slideAreaY, slideAreaHeight, indicator, dispatchEvent, yDif;
function ExtensibleZoomBar (owner, height, zoomLevel) {
if (this.height != null) {
this.height = height;
}
(_local12 || (_local12 = com.yahoo.maps.flash.ExtensibleZoomBar)).instance = (_local12 || (_local12 = com.yahoo.maps.flash.ExtensibleZoomBar)).instance + 1;
this.zoomLevel = zoomLevel;
dragging = false;
mc = owner.createEmptyMovieClip("zoomBar_mc" + String((_local12 || (_local12 = com.yahoo.maps.flash.ExtensibleZoomBar)).instance), owner.getNextHighestDepth());
triangle = mc.attachMovie(triSymbol, "slider", mc.getNextHighestDepth());
slider = mc.attachMovie(sliderSymbol, "slider", mc.getNextHighestDepth(), {_width:15, _height:16});
zoomOut = mc.attachMovie(minusSymbol, "minusSymbol", mc.getNextHighestDepth());
zoomIn = mc.attachMovie(plusSymbol, "plusSymbol", mc.getNextHighestDepth());
mx.events.EventDispatcher.initialize(this);
slider.onPress = (_local11 || (_local11 = mx.utils.Delegate)).create(this, startDragging);
slider.onRelease = (slider.onReleaseOutside = (_local11 || (_local11 = mx.utils.Delegate)).create(this, stopDragging));
triangle.onRelease = (_local11 || (_local11 = mx.utils.Delegate)).create(this, onClickTriangle);
zoomIn.onRelease = (_local11 || (_local11 = mx.utils.Delegate)).create(this, onZoomIn);
zoomOut.onRelease = (_local11 || (_local11 = mx.utils.Delegate)).create(this, onZoomOut);
triangle.onRollOver = (slider.onRollOver = (zoomIn.onRollOver = (zoomOut.onRollOver = function () {
this.gotoAndStop("over");
this._parent._parent._parent._parent._parent.widgetFocus = true;
})));
triangle.onRollOut = (slider.onRollOut = (zoomIn.onRollOut = (zoomOut.onRollOut = (zoomIn.onDragOut = (zoomOut.onDragOut = function () {
this.gotoAndStop("up");
})))));
zoomIn.onPress = (zoomOut.onPress = function () {
this.gotoAndStop("down");
});
layoutChildren();
slideAreaY = ((zoomOut._y + zoomOut._height) - (arrowHeight * 2)) + 0.5;
slideAreaHeight = ((((zoomIn._y - zoomOut._y) - zoomOut._height) - slider._height) + (arrowHeight * 3)) - 1.5;
placeSlider(zoomLevel);
(_local10 || (_local10 = com.yahoo.maps.EventController)).getInstance().addEventListener((_local9 || (_local9 = com.yahoo.maps.AppEvents)).mapRollOver, (_local11 || (_local11 = mx.utils.Delegate)).create(this, onMapRollOver));
(_local10 || (_local10 = com.yahoo.maps.EventController)).getInstance().addEventListener((_local9 || (_local9 = com.yahoo.maps.AppEvents)).mapRollOut, (_local11 || (_local11 = mx.utils.Delegate)).create(this, onMapRollOut));
indicator = slider.attachMovie(ind, "indicator", mc.getNextHighestDepth(), {_visible:false, _y:slider._height / 2});
}
function addEventListener(event, listener) {
}
function removeEventListener(event, listener) {
}
function destroy() {
delete slider.onRollOver;
delete slider.onRollOut;
delete slider.onMouseUp;
delete slider.onMouseMove;
delete slider.onMouseDown;
delete slider.onPress;
delete slider.onRelease;
delete slider.onMouseMove;
delete zoomIn.onRelease;
delete zoomIn.onRollOver;
delete zoomOut.onRelease;
delete zoomOut.onRollOver;
zoomIn.removeMovieClip();
zoomOut.removeMovieClip();
mc.removeMovieClip();
slider = null;
zoomIn = null;
zoomOut = null;
mc = null;
dispatchEvent = null;
dragging = false;
}
function onMapRollOver() {
Mouse.addListener(this);
}
function onMapRollOut() {
Mouse.removeListener(this);
}
function onMouseWheel(delta) {
delta = ((delta < 0) ? 1 : -1);
var _local2 = zoomLevel + delta;
changeZoomLevel(_local2);
}
function changeZoomLevel(z) {
if (z < zoomMin) {
z = zoomMin;
}
if (z > zoomMax) {
z = zoomMax;
}
zoomLevel = z;
dispatchEvent({type:"zoom", zoom:z});
}
function move(x, y) {
mc._x = x;
mc._y = y;
}
function layoutChildren() {
zoomOut._y = 0;
zoomOut._x = (-zoomOut._width) / 2;
slider._x = (-slider._width) / 2;
zoomIn._y = height - zoomIn._height;
zoomIn._x = (-zoomOut._width) / 2;
triangle._x = (-triangle._width) / 2;
triangle._y = zoomOut._y + zoomOut._height;
}
function onClickTriangle() {
var _local2 = Math.round(((1 - (triangle._ymouse / triangle._height)) * (zoomMax - zoomMin)) + 1);
changeZoomLevel(_local2);
}
function onZoomOut() {
zoomOut.gotoAndStop("over");
changeZoomLevel(zoomLevel + 1);
dispatchEvent({type:"zoomOut", zoom:zoomLevel});
}
function onZoomIn() {
zoomIn.gotoAndStop("over");
changeZoomLevel(zoomLevel - 1);
dispatchEvent({type:"zoomIn", zoom:zoomLevel});
}
function startDragging() {
slider.gotoAndStop("down");
dragging = true;
blockPlaceSlider = true;
yDif = slider._ymouse;
slider.onMouseMove = (_local2 || (_local2 = mx.utils.Delegate)).create(this, drag);
if (showLevelIndicators) {
indicator._visible = true;
}
}
function drag() {
if (dragging == true) {
var _local2 = mc._ymouse - yDif;
if (_local2 < slideAreaY) {
_local2 = slideAreaY;
}
if (_local2 > (slideAreaY + slideAreaHeight)) {
_local2 = slideAreaY + slideAreaHeight;
}
slider._y = _local2;
var _local3 = Math.round((getRatio() * (zoomMax - zoomMin)) + 1);
if (_local3 != zoomLevel) {
changeZoomLevel(_local3);
indicator.gotoAndStop(_local3);
}
}
}
function stopDragging() {
slider.gotoAndStop("up");
if (dragging == true) {
dragging = false;
delete slider.onMouseMove;
indicator._visible = false;
var _local2 = Math.round((getRatio() * (zoomMax - zoomMin)) + 1);
changeZoomLevel(_local2);
dispatchEvent({type:"dragStop", zoom:_local2});
}
}
function placeSlider(zoomSpec) {
if (!blockPlaceSlider) {
if (!dragging) {
slider._y = slideAreaY + ((1 - ((zoomSpec - 1) / (zoomMax - zoomMin))) * slideAreaHeight);
}
zoomLevel = Math.round(zoomSpec);
}
}
function getRatio() {
return(1 - ((slider._y - slideAreaY) / slideAreaHeight));
}
var plusSymbol = "__Resources.0785805483.plus_swf";
var minusSymbol = "__Resources.0785805483.minus_swf";
var sliderSymbol = "__Resources.0785805483.slider_swf";
var triSymbol = "__Resources.0785805483.triButton_swf";
var ind = "__Resources.0785805483.zoomLevelIndicators_swf";
var zoomMax = 16;
var zoomMin = 1;
var showLevelIndicators = false;
var blockPlaceSlider = false;
var arrowHeight = 3.5;
var height = 125;
static var instance = 0;
var className = "ExtensibleZoomBar";
}
Symbol 359 MovieClip [__Packages.com.yahoo.maps.widgets.SatelliteControlWidget] Frame 0
class com.yahoo.maps.widgets.SatelliteControlWidget extends com.yahoo.maps.Widget
{
var satelliteControl, getContainer, map, x, y;
function SatelliteControlWidget (position) {
super();
if ((position == (_local4 || (_local4 = com.yahoo.maps.widgets.SatelliteControlWidget)).HORIZONTAL) || (position == (_local4 || (_local4 = com.yahoo.maps.widgets.SatelliteControlWidget)).VERTICAL)) {
this.position = position;
}
}
function initWidget() {
satelliteControl = new com.yahoo.maps.flash.ExtensibleSatelliteControl(getContainer(), map, position);
satelliteControl.move(10, 10);
}
function onMapResize() {
move(map.getWidth() - 205, 5);
}
function move(x, y) {
this.x = x;
this.y = y;
satelliteControl.move(x, y);
}
function redraw(orientation) {
satelliteControl.redraw(orientation);
}
static var HORIZONTAL = "horizontal";
static var VERTICAL = "vertical";
var position = "vertical";
var className = "SatelliteControlWidget";
}
Symbol 361 MovieClip [__Packages.com.yahoo.maps.flash.ExtensibleSatelliteControl] Frame 0
class com.yahoo.maps.flash.ExtensibleSatelliteControl
{
var config, mainMap, mc, mapLabel, hybridLabel, satelliteLabel, mapButton, hybridButton, satelliteButton, mapViewType, selectedButton, __get__visible;
function ExtensibleSatelliteControl (parent, mainMap, position) {
var _local6 = this;
config = com.yahoo.maps.ExtensibleConfig.getInstance();
this.mainMap = mainMap;
mc = parent.createEmptyMovieClip("satelliteControl", parent.getNextHighestDepth());
var _local3 = checkLanguage();
mapLabel = _local3.mapLabel;
hybridLabel = _local3.hybridLabel;
satelliteLabel = _local3.satelliteLabel;
mapButton = new com.yahoo.maps.flash.SatelliteControlButton(mc, mapLabel, (_local12 || (_local12 = com.yahoo.maps.MapViews)).MAP);
hybridButton = new com.yahoo.maps.flash.SatelliteControlButton(mc, hybridLabel, (_local12 || (_local12 = com.yahoo.maps.MapViews)).HYBRID);
satelliteButton = new com.yahoo.maps.flash.SatelliteControlButton(mc, satelliteLabel, (_local12 || (_local12 = com.yahoo.maps.MapViews)).SATELLITE);
mapButton.addEventListener("click", (_local10 || (_local10 = mx.utils.Delegate)).create(this, mapButtonRelease));
hybridButton.addEventListener("click", (_local10 || (_local10 = mx.utils.Delegate)).create(this, mapButtonRelease));
satelliteButton.addEventListener("click", (_local10 || (_local10 = mx.utils.Delegate)).create(this, mapButtonRelease));
if (position == (_local11 || (_local11 = com.yahoo.maps.widgets.SatelliteControlWidget)).HORIZONTAL) {
hybridButton.__set__x(mapButton.__get__width() + 1);
satelliteButton.__set__x((hybridButton.__get__x() + hybridButton.__get__width()) + 1);
} else if (position == (_local11 || (_local11 = com.yahoo.maps.widgets.SatelliteControlWidget)).VERTICAL) {
hybridButton.__set__y(22);
satelliteButton.__set__y(44);
} else {
hybridButton.__set__y(22);
satelliteButton.__set__y(44);
}
var _local2 = (_local9 || (_local9 = com.macromedia.mc.platform.Session)).getInstance().getAttribute("mapViewType");
if (_local2 == null) {
mapViewType = (_local12 || (_local12 = com.yahoo.maps.MapViews)).MAP;
selectedButton = mapButton;
} else {
mapViewType = _local2;
if (_local2 == (_local12 || (_local12 = com.yahoo.maps.MapViews)).MAP) {
selectedButton = mapButton;
} else if (_local2 == (_local12 || (_local12 = com.yahoo.maps.MapViews)).HYBRID) {
selectedButton = hybridButton;
} else if (_local2 == (_local12 || (_local12 = com.yahoo.maps.MapViews)).SATELLITE) {
selectedButton = satelliteButton;
} else {
selectedButton = mapButton;
}
}
selectedButton.__set__selected(true);
(_local8 || (_local8 = com.yahoo.maps.EventController)).getInstance().addEventListener("onSetMapViewType", this);
}
function checkLanguage() {
if (config._customLabels == false) {
var _local2 = com.yahoo.maps.ExtensibleYMap(mainMap).getLanguage();
if ((_local2 == (_local3 || (_local3 = com.yahoo.maps.api.Languages)).IT) || (_local2 == (_local3 || (_local3 = com.yahoo.maps.api.Languages)).it_IT)) {
_local2 = config._italianLabels;
} else if ((_local2 == (_local3 || (_local3 = com.yahoo.maps.api.Languages)).ES) || (_local2 == (_local3 || (_local3 = com.yahoo.maps.api.Languages)).es_ES)) {
_local2 = config._spanishLabels;
} else if ((_local2 == (_local3 || (_local3 = com.yahoo.maps.api.Languages)).DE) || (_local2 == (_local3 || (_local3 = com.yahoo.maps.api.Languages)).de_DE)) {
_local2 = config._germanLabels;
} else if (((_local2 == (_local3 || (_local3 = com.yahoo.maps.api.Languages)).en_GB) || (_local2 == (_local3 || (_local3 = com.yahoo.maps.api.Languages)).en_US)) || (_local2 == (_local3 || (_local3 = com.yahoo.maps.api.Languages)).en_IN)) {
_local2 = config._englishLabels;
} else if ((((_local2 == (_local3 || (_local3 = com.yahoo.maps.api.Languages)).CF) || (_local2 == (_local3 || (_local3 = com.yahoo.maps.api.Languages)).fr_CA)) || (_local2 == (_local3 || (_local3 = com.yahoo.maps.api.Languages)).FR)) || (_local2 == (_local3 || (_local3 = com.yahoo.maps.api.Languages)).fr_FR)) {
_local2 = config._frenchLabels;
} else {
_local2 = config._englishLabels;
}
} else {
var _local2 = config._userLabels;
}
return(_local2);
}
function mapButtonRelease(o) {
mapViewType = o.target.mapViewType;
mainMap.setMapViewType(mapViewType);
}
function move(x, y) {
mc._x = x;
mc._y = y;
}
function set visible(b) {
mc._visible = b;
//return(__get__visible());
}
function onSetMapViewType(o) {
var _local2 = o.data.type;
mapViewType = _local2;
selectedButton.__set__selected(false);
if (_local2 == (_local4 || (_local4 = com.yahoo.maps.MapViews)).MAP) {
selectedButton = mapButton;
} else if (_local2 == (_local4 || (_local4 = com.yahoo.maps.MapViews)).HYBRID) {
selectedButton = hybridButton;
} else if (_local2 == (_local4 || (_local4 = com.yahoo.maps.MapViews)).SATELLITE) {
selectedButton = satelliteButton;
}
selectedButton.__set__selected(true);
}
function redraw(orientation) {
var _local2 = checkLanguage();
mapButton.resetLabel(_local2.mapLabel);
hybridButton.resetLabel(_local2.hybridLabel);
satelliteButton.resetLabel(_local2.satelliteLabel);
if (orientation) {
if (orientation == (_local4 || (_local4 = com.yahoo.maps.widgets.SatelliteControlWidget)).HORIZONTAL) {
hybridButton.__set__y(satelliteButton.__set__y(0));
hybridButton.__set__x(mapButton.__get__width() + 1);
satelliteButton.__set__x((hybridButton.__get__x() + hybridButton.__get__width()) + 1);
} else if (orientation == (_local4 || (_local4 = com.yahoo.maps.widgets.SatelliteControlWidget)).VERTICAL) {
hybridButton.__set__x(satelliteButton.__set__x(0));
hybridButton.__set__y(22);
satelliteButton.__set__y(44);
}
}
}
var button = "__Resources.0785805483.satelliteButton_swf";
var className = "ExtensibleSatelliteControl";
}
Symbol 358 MovieClip [__Packages.com.yahoo.maps.flash.SatelliteControlButton] Frame 0
class com.yahoo.maps.flash.SatelliteControlButton
{
var mapViewType, mc, upState, overState, downState, selectedState, textLabel, textOn, textOff, currentState, isSelected, dispatchEvent, __get__selected;
function SatelliteControlButton (parent, lbl, mvt) {
mx.events.EventDispatcher.initialize(this);
mapViewType = mvt;
mc = parent.createEmptyMovieClip(lbl + "Button", parent.getNextHighestDepth());
upState = mc.attachMovie(upSkin, "upState", 1);
overState = mc.attachMovie(overSkin, "overState", 2);
downState = mc.attachMovie(downSkin, "downState", 3);
selectedState = mc.attachMovie(selectedSkin, "selectedState", 4);
overState._visible = (downState._visible = (selectedState._visible = false));
mc.createTextField("label", 5, 0, 0, upState._width, upState._height);
textLabel = mc.label;
textLabel.selectable = false;
textLabel.html = true;
textOn = ("<p align='center'><font face='verdana' color='#ffffff' size='11'><b>" + lbl) + "</b></font></p>";
textOff = ("<p align='center'><font face='verdana' color='#ffffff' size='11'>" + lbl) + "</font></p>";
textLabel.htmlText = textOff;
var _local2 = Math.max(upState._width, (textLabel.textWidth = textLabel.textWidth * 1.3));
upState._width = _local2;
overState._width = _local2;
downState._width = _local2;
selectedState._width = _local2;
textLabel._width = _local2;
currentState = upState;
mc.useHandCursor = false;
mc.onRelease = (_local6 || (_local6 = mx.utils.Delegate)).create(this, onRelease);
mc.onPress = (_local6 || (_local6 = mx.utils.Delegate)).create(this, onPress);
mc.onRollOver = (mc.onDragOver = (_local6 || (_local6 = mx.utils.Delegate)).create(this, onRollOver));
mc.onRollOut = (mc.onDragOut = (_local6 || (_local6 = mx.utils.Delegate)).create(this, onRollOut));
}
function onRelease() {
if (!isSelected) {
onRollOver();
dispatchEvent({type:"click"});
}
}
function onPress() {
if (!isSelected) {
currentState._visible = false;
downState._visible = true;
currentState = downState;
}
}
function onRollOver() {
if (!isSelected) {
currentState._visible = false;
overState._visible = true;
currentState = overState;
}
mc._parent._parent._parent._parent.widgetFocus = true;
}
function onRollOut() {
if (!isSelected) {
currentState._visible = false;
upState._visible = true;
currentState = upState;
}
mc._parent._parent._parent._parent.widgetFocus = false;
}
function set selected(b) {
currentState._visible = false;
if (b) {
textLabel.htmlText = textOn;
selectedState._visible = true;
currentState = selectedState;
} else {
textLabel.htmlText = textOff;
upState._visible = true;
currentState = upState;
}
isSelected = b;
//return(__get__selected());
}
function set x(n) {
mc._x = n;
//return(x);
}
function set y(n) {
mc._y = n;
//return(y);
}
function get x() {
return(mc._x);
}
function get y() {
return(mc._y);
}
function get width() {
return(upState._width);
}
function resetLabel(lbl) {
textOn = ("<p align='center'><font face='verdana' color='#ffffff' size='11'><b>" + lbl) + "</b></font></p>";
textOff = ("<p align='center'><font face='verdana' color='#ffffff' size='11'>" + lbl) + "</font></p>";
textLabel.htmlText = textOff;
var _local2 = Math.max(65, (textLabel.textWidth = textLabel.textWidth * 1.3));
textLabel._width = (selectedState._width = (downState._width = (overState._width = (upState._width = _local2))));
}
var upSkin = "up";
var overSkin = "over";
var downSkin = "down";
var selectedSkin = "selected";
var className = "SatelliteControlButton";
}
Symbol 303 MovieClip [__Packages.com.yahoo.maps.Tool] Frame 0
class com.yahoo.maps.Tool implements com.yahoo.maps.api.ITool
{
var id, map, container;
function Tool () {
(_local2 || (_local2 = com.yahoo.maps.Tool)).instanceCount++;
id = "marker_" + (_local2 || (_local2 = com.yahoo.maps.Tool)).instanceCount;
(_local2 || (_local2 = com.yahoo.maps.Tool)).toolMap[id] = this;
mx.events.EventDispatcher.initialize(this);
}
static function getToolByActionScriptId(actionScriptId) {
var _local2 = com.yahoo.maps.Tool;
return(_local2.toolMap[actionScriptId]);
}
function init(map, container) {
this.map = map;
this.container = container;
initTool();
}
function localPointToOffsetPoint(point) {
return(point.subtract(map.getMapBaseOffset()));
}
function localPointToLatLon(point) {
return(map.local_to_latlon(point.Add(new mx.graphics.Point(map.getWidth() / 2, map.getHeight() / 2))));
}
function offsetPointToLocalPoint(offset) {
return(offset.Add(map.getMapBaseOffset()));
}
function offsetPointToLatLon(offset) {
return(localPointToLatLon(offsetPointToLocalPoint(offset)));
}
function initTool() {
}
function getId() {
return(id);
}
function getIconId() {
return(null);
}
function onToolMouseDown(event) {
}
function onToolMouseMove(event) {
}
function onToolMouseUp(event) {
}
function onToolEnterFrame(event) {
}
function getContainer() {
return(container);
}
function detach() {
}
static var TYPE_PAN = "pan";
static var TYPE_CUSTOM_SWF = "customSWF";
static var TYPE_EDGE = "edge";
static var instanceCount = 0;
static var toolMap = new Array();
var className = "Tool";
}
Symbol 312 MovieClip [__Packages.com.yahoo.maps.tools.PanTool] Frame 0
class com.yahoo.maps.tools.PanTool extends com.yahoo.maps.Tool
{
var deltaTotal, dragging, scrollRightBuffer, mouseXY, scrollLeftBuffer, scrollUpBuffer, scrollDownBuffer, _clickPoints, clickTimer, dblClick, myMapArea, map, container, startDragPoint, dispatchEvent, getContainer;
function PanTool () {
super();
deltaTotal = new mx.graphics.Point(0, 0);
dragging = false;
}
function set edgeEnabled(enb) {
if ((enb == true) && (_edgeEnabled == false)) {
_edgeEnabled = true;
createEdge();
} else if (_edgeEnabled == true) {
_edgeEnabled = false;
destroyEdge();
}
//return(edgeEnabled);
}
function get edgeEnabled() {
return(_edgeEnabled);
}
function createEdge() {
}
function destroyEdge() {
}
function getIconId() {
return((_local1 || (_local1 = com.yahoo.maps.tools.PanTool)).panToolIcon);
}
function setPanToolSpeed(args) {
_panningSpeed = args;
}
function getPanToolSpeed() {
return(_panningSpeed);
}
function onToolMouseDown(event) {
if (_edgeEnabled == true) {
if ((((mouseXY.x >= scrollRightBuffer.min) || (mouseXY.x <= scrollLeftBuffer.min)) || (mouseXY.y <= scrollUpBuffer.min)) || (mouseXY.y >= scrollDownBuffer.min)) {
}
}
if ((((mouseXY.x < scrollRightBuffer.min) || (mouseXY.x > scrollLeftBuffer.min)) || (mouseXY.y > scrollUpBuffer.min)) || (mouseXY.y < scrollDownBuffer.min)) {
_clickPoints = event;
if (clickTimer != null) {
clearInterval(clickTimer);
clickTimer = null;
dblClick = true;
doubleClick(event);
return(undefined);
}
clickTimer = setInterval(this, "onClickTimer", (_local3 || (_local3 = com.yahoo.maps.tools.PanTool)).DOUBLE_CLICK_SPEED);
startDragging(event);
}
}
function onToolMouseMove(event) {
if (dragging == true) {
drag(event);
}
mouseXY = {x:_xmouse, y:_ymouse};
}
function onToolEnterFrame(event) {
myMapArea = {x:container._parent._parent._parent._x, y:container._parent._parent._parent._y, h:_local10 || (_local10 = com.yahoo.maps.ExtensibleYMap)(map).getHeight(), w:_local10 || (_local10 = com.yahoo.maps.ExtensibleYMap)(map).getWidth()};
scrollRightBuffer = {max:myMapArea.x + myMapArea.w, min:(myMapArea.x + myMapArea.w) - (_local11 || (_local11 = com.yahoo.maps.tools.PanTool)).buffer};
scrollDownBuffer = {max:myMapArea.y + myMapArea.h, min:(myMapArea.y + myMapArea.h) - (_local11 || (_local11 = com.yahoo.maps.tools.PanTool)).buffer};
scrollLeftBuffer = {max:myMapArea.x, min:myMapArea.x + (_local11 || (_local11 = com.yahoo.maps.tools.PanTool)).buffer};
scrollUpBuffer = {max:myMapArea.y, min:myMapArea.y + (_local11 || (_local11 = com.yahoo.maps.tools.PanTool)).buffer};
if ((_edgeEnabled == true) && (_local10 || (_local10 = com.yahoo.maps.ExtensibleYMap)(map).getWidgetFocus() == false)) {
if ((mouseXY.x >= scrollRightBuffer.min) && (mouseXY.x <= scrollRightBuffer.max)) {
if ((mouseXY.x >= ((myMapArea.x + myMapArea.w) - (_local11 || (_local11 = com.yahoo.maps.tools.PanTool)).buffer)) && (mouseXY.x < ((myMapArea.x + myMapArea.w) - (_local11 || (_local11 = com.yahoo.maps.tools.PanTool)).bufferTwo))) {
var _local2 = new mx.graphics.Point(-20, 0);
map.setCenterByPointDelta(_local2);
}
if ((mouseXY.x >= ((myMapArea.x + myMapArea.w) - (_local11 || (_local11 = com.yahoo.maps.tools.PanTool)).bufferTwo)) && (mouseXY.x < ((myMapArea.x + myMapArea.w) - (_local11 || (_local11 = com.yahoo.maps.tools.PanTool)).bufferThree))) {
var _local2 = new mx.graphics.Point(-35, 0);
map.setCenterByPointDelta(_local2);
}
if ((mouseXY.x >= ((myMapArea.x + myMapArea.w) - (_local11 || (_local11 = com.yahoo.maps.tools.PanTool)).bufferThree)) && (mouseXY.x <= ((myMapArea.x + myMapArea.w) - (_local11 || (_local11 = com.yahoo.maps.tools.PanTool)).edgePanStop))) {
var _local2 = new mx.graphics.Point(-70, 0);
map.setCenterByPointDelta(_local2);
}
}
if ((mouseXY.x <= scrollLeftBuffer.min) && (mouseXY.x > scrollLeftBuffer.max)) {
if ((mouseXY.x >= (myMapArea.x + (_local11 || (_local11 = com.yahoo.maps.tools.PanTool)).edgePanStop)) && (mouseXY.x < (myMapArea.x + (_local11 || (_local11 = com.yahoo.maps.tools.PanTool)).bufferThree))) {
var _local2 = new mx.graphics.Point(70, 0);
map.setCenterByPointDelta(_local2);
}
if ((mouseXY.x >= (myMapArea.x + (_local11 || (_local11 = com.yahoo.maps.tools.PanTool)).bufferThree)) && (mouseXY.x < (myMapArea.x + (_local11 || (_local11 = com.yahoo.maps.tools.PanTool)).bufferTwo))) {
var _local2 = new mx.graphics.Point(35, 0);
map.setCenterByPointDelta(_local2);
}
if ((mouseXY.x >= (myMapArea.x + (_local11 || (_local11 = com.yahoo.maps.tools.PanTool)).bufferTwo)) && (mouseXY.x <= (myMapArea.x + (_local11 || (_local11 = com.yahoo.maps.tools.PanTool)).buffer))) {
var _local2 = new mx.graphics.Point(20, 0);
map.setCenterByPointDelta(_local2);
}
}
if ((mouseXY.y < scrollUpBuffer.min) && (mouseXY.y >= scrollUpBuffer.max)) {
if ((mouseXY.y >= (myMapArea.y + (_local11 || (_local11 = com.yahoo.maps.tools.PanTool)).edgePanStop)) && (mouseXY.y < (myMapArea.y + (_local11 || (_local11 = com.yahoo.maps.tools.PanTool)).bufferThree))) {
var _local2 = new mx.graphics.Point(0, 70);
map.setCenterByPointDelta(_local2);
}
if ((mouseXY.y >= (myMapArea.y + (_local11 || (_local11 = com.yahoo.maps.tools.PanTool)).bufferThree)) && (mouseXY.y < (myMapArea.y + (_local11 || (_local11 = com.yahoo.maps.tools.PanTool)).bufferTwo))) {
var _local2 = new mx.graphics.Point(0, 35);
map.setCenterByPointDelta(_local2);
}
if ((mouseXY.y > (myMapArea.y + (_local11 || (_local11 = com.yahoo.maps.tools.PanTool)).bufferTwo)) && (mouseXY.y <= (myMapArea.y + (_local11 || (_local11 = com.yahoo.maps.tools.PanTool)).buffer))) {
var _local2 = new mx.graphics.Point(0, 20);
map.setCenterByPointDelta(_local2);
}
}
if ((mouseXY.y > scrollDownBuffer.min) && (mouseXY.y <= scrollDownBuffer.max)) {
if ((mouseXY.y <= ((myMapArea.y + myMapArea.h) - (_local11 || (_local11 = com.yahoo.maps.tools.PanTool)).bufferTwo)) && (mouseXY.y >= ((myMapArea.y + myMapArea.h) - (_local11 || (_local11 = com.yahoo.maps.tools.PanTool)).buffer))) {
var _local2 = new mx.graphics.Point(0, -20);
map.setCenterByPointDelta(_local2);
}
if ((mouseXY.y <= ((myMapArea.y + myMapArea.h) - (_local11 || (_local11 = com.yahoo.maps.tools.PanTool)).bufferThree)) && (mouseXY.y > (myMapArea.h - (_local11 || (_local11 = com.yahoo.maps.tools.PanTool)).bufferTwo))) {
var _local2 = new mx.graphics.Point(0, -35);
map.setCenterByPointDelta(_local2);
}
if ((mouseXY.y < ((myMapArea.y + myMapArea.h) - (_local11 || (_local11 = com.yahoo.maps.tools.PanTool)).edgePanStop)) && (mouseXY.y >= ((myMapArea.y + myMapArea.h) - (_local11 || (_local11 = com.yahoo.maps.tools.PanTool)).bufferThree))) {
var _local2 = new mx.graphics.Point(0, -70);
map.setCenterByPointDelta(_local2);
}
}
}
}
function onToolMouseUp(event) {
stopDragging();
}
function onClickTimer() {
clearInterval(clickTimer);
clickTimer = null;
if (!dblClick) {
singleClick(_clickPoints, "singleClick");
}
dblClick = false;
}
function doubleClick(event) {
var _local2 = new mx.graphics.Point(0, 0);
var _local3 = new mx.graphics.Point((_local6 || (_local6 = Math)).round(event.local.x), (_local6 || (_local6 = Math)).round(event.local.y));
map.setCenterByPointDelta(_local2.subtract(_local3), _panningSpeed);
singleClick(event, "doubleClick");
dblClick = false;
}
function singleClick(event, action) {
var _local2 = _local9 || (_local9 = com.yahoo.maps.ExtensibleYMap)(map).getWidth();
var _local3 = _local9 || (_local9 = com.yahoo.maps.ExtensibleYMap)(map).getHeight();
var _local5 = new mx.graphics.Point((_local10 || (_local10 = Math)).round(event.local.x) + (_local2 / 2), (_local10 || (_local10 = Math)).round(event.local.y) + (_local3 / 2));
var _local6 = new mx.graphics.Point((_local10 || (_local10 = Math)).round(event.local.x) + (_local2 / 2), (_local10 || (_local10 = Math)).round(event.local.y) + (_local3 / 2));
map.getLatLon(_local5, _local6, action);
}
function startDragging(event) {
startDragPoint = new mx.graphics.Point((_local4 || (_local4 = Math)).round(event.local.x), (_local4 || (_local4 = Math)).round(event.local.y));
dispatchEvent({type:(_local5 || (_local5 = com.yahoo.maps.tools.PanTool)).EVENT_DRAG_START});
dragging = true;
}
function drag(event) {
var _local2 = new mx.graphics.Point((_local5 || (_local5 = Math)).round(event.local.x), (_local5 || (_local5 = Math)).round(event.local.y));
if ((_local2.x == startDragPoint.x) && (_local2.y == startDragPoint.y)) {
return(undefined);
}
if (clickTimer != null) {
clearInterval(clickTimer);
}
clickTimer = null;
var _local3 = _local2.subtract(startDragPoint);
deltaTotal.x = deltaTotal.x + _local3.x;
deltaTotal.y = deltaTotal.y + _local3.y;
startDragPoint = _local2;
map.setCenterByPointDelta(_local3);
}
function stopDragging(o) {
if (dragging) {
dragging = false;
dispatchEvent({type:(_local4 || (_local4 = com.yahoo.maps.tools.PanTool)).EVENT_DRAG_STOP});
_local3 || (_local3 = com.yahoo.maps.ExtensibleYMap)(map).trackUserPanning(deltaTotal);
_local3 || (_local3 = com.yahoo.maps.ExtensibleYMap)(map).updateCopyright();
deltaTotal = new mx.graphics.Point(0, 0);
_local3 || (_local3 = com.yahoo.maps.ExtensibleYMap)(map).registerSessionLatLon();
}
}
function detach() {
getContainer()._parent._parent._parent.boundsRect.removeMovieClip();
}
static var panToolIcon = "__Resources.0785805483.panToolIcon_png";
static var EVENT_DRAG_START = "dragStart";
static var EVENT_DRAG_STOP = "dragStop";
static var DOUBLE_CLICK_SPEED = 300;
var _panningSpeed = 300;
var isEdgeActive = false;
static var buffer = 40;
static var bufferTwo = 25;
static var bufferThree = 15;
static var edgePanStop = 3.5;
var _edgeEnabled = false;
var className = "PanTool";
}
Symbol 215 MovieClip [__Packages.com.yahoo.maps.Overlay] Frame 0
class com.yahoo.maps.Overlay implements com.yahoo.maps.api.IOverlay
{
var _id, _visible, map, mc;
function Overlay () {
_id = "overlay_" + ((_local2 || (_local2 = com.yahoo.maps.Overlay)).instanceCounter++);
(_local2 || (_local2 = com.yahoo.maps.Overlay)).overlayMap[_id] = this;
_visible = true;
mx.events.EventDispatcher.initialize(this);
}
static function getOverlayByActionScriptId(actionScriptId) {
var _local2 = com.yahoo.maps.Overlay;
return(_local2.overlayMap[actionScriptId]);
}
function getId() {
return(_id);
}
function init(map) {
if (map != undefined) {
detach();
}
this.map = map;
var _local2 = map.getOverlayContainer();
mc = _local2.createEmptyMovieClip("overlay" + _id, _local2.getNextHighestDepth());
mc._visible = true;
initOverlay();
}
function initOverlay() {
}
function localPointToOffsetPoint(point) {
return(point.subtract(map.getMapBaseOffset()));
}
function localPointToLatLon(point) {
return(map.local_to_latlon(point.Add(new mx.graphics.Point(map.getWidth() / 2, map.getHeight() / 2))));
}
function offsetPointToLocalPoint(offset) {
return(offset.Add(map.getMapBaseOffset()));
}
function offsetPointToLatLon(offset) {
return(localPointToLatLon(offsetPointToLocalPoint(offset)));
}
function show() {
_visible = true;
mc._visible = true;
map.markerManager.showAllMarkersByOwner(this);
}
function hide() {
_visible = false;
mc._visible = false;
map.markerManager.hideAllMarkersByOwner(this);
}
function isVisible() {
return(_visible);
}
function addMarkerByLatLon(markerClass, latlon, data) {
var _local2 = map.markerManager.addMarkerByLatLon(markerClass, latlon, data, this);
if (!isVisible()) {
_local2.hide();
}
return(_local2);
}
function addMarkerByAddress(markerClass, address, data) {
var _local2 = map.markerManager.addMarkerByAddress(markerClass, address, data, this);
if (!isVisible()) {
_local2.hide();
}
return(_local2);
}
function removeMarker(marker) {
map.markerManager.removeMarker(marker);
}
function removeAllMarkers() {
map.markerManager.removeAllMarkersByOwner(this);
}
function getContainer() {
return(mc);
}
function redraw() {
}
function detach() {
removeAllMarkers();
map = null;
mc.removeMovieClip();
mc = null;
}
static var TYPE_TRAFFIC = "traffic";
static var TYPE_CUSTOM_SWF = "customSWF";
static var TYPE_LOCAL_SEARCH = "localSearch";
static var TYPE_GEO_RSS = "geoRSS";
static var TYPE_POLYLINE = "polyline";
static var instanceCounter = 0;
static var overlayMap = new Object();
var className = "Overlay";
}
Symbol 1 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip
{
var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled;
function UIObject () {
super();
constructObject();
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get left() {
return(_x);
}
function get x() {
return(_x);
}
function get top() {
return(_y);
}
function get y() {
return(_y);
}
function get right() {
return(_parent.width - (_x + width));
}
function get bottom() {
return(_parent.height - (_y + height));
}
function getMinHeight(Void) {
return(_minHeight);
}
function setMinHeight(h) {
_minHeight = h;
}
function get minHeight() {
return(getMinHeight());
}
function set minHeight(h) {
setMinHeight(h);
//return(minHeight);
}
function getMinWidth(Void) {
return(_minWidth);
}
function setMinWidth(w) {
_minWidth = w;
}
function get minWidth() {
return(getMinWidth());
}
function set minWidth(w) {
setMinWidth(w);
//return(minWidth);
}
function setVisible(x, noEvent) {
if (x != _visible) {
_visible = x;
if (noEvent != true) {
dispatchEvent({type:(x ? "reveal" : "hide")});
}
}
}
function get visible() {
return(_visible);
}
function set visible(x) {
setVisible(x, false);
//return(visible);
}
function get scaleX() {
return(_xscale);
}
function set scaleX(x) {
_xscale = x;
//return(scaleX);
}
function get scaleY() {
return(_yscale);
}
function set scaleY(y) {
_yscale = y;
//return(scaleY);
}
function doLater(obj, fn) {
if (methodTable == undefined) {
methodTable = new Array();
}
methodTable.push({obj:obj, fn:fn});
onEnterFrame = doLaterDispatcher;
}
function doLaterDispatcher(Void) {
delete onEnterFrame;
if (invalidateFlag) {
redraw();
}
var _local3 = methodTable;
methodTable = new Array();
if (_local3.length > 0) {
var _local2;
while (_local2 = _local3.shift() , _local2 != undefined) {
_local2.obj[_local2.fn]();
}
}
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(Void) {
invalidateFlag = true;
onEnterFrame = doLaterDispatcher;
}
function invalidateStyle(Void) {
invalidate();
}
function redraw(bAlways) {
if (invalidateFlag || (bAlways)) {
invalidateFlag = false;
var _local2;
for (_local2 in tfList) {
tfList[_local2].draw();
}
draw();
dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var _local3 = _x;
var _local2 = _y;
_x = x;
_y = y;
if (noEvent != true) {
dispatchEvent({type:"move", oldX:_local3, oldY:_local2});
}
}
function setSize(w, h, noEvent) {
var _local2 = __width;
var _local3 = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:_local2, oldHeight:_local3});
}
}
function size(Void) {
_width = __width;
_height = __height;
}
function drawRect(x1, y1, x2, y2) {
moveTo(x1, y1);
lineTo(x2, y1);
lineTo(x2, y2);
lineTo(x1, y2);
lineTo(x1, y1);
}
function createLabel(name, depth, text) {
createTextField(name, depth, 0, 0, 0, 0);
var _local2 = this[name];
_local2._color = textColorList;
_local2._visible = false;
_local2.__text = text;
if (tfList == undefined) {
tfList = new Object();
}
tfList[name] = _local2;
_local2.invalidateStyle();
invalidate();
_local2.styleName = this;
return(_local2);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var _local3 = className.symbolName == undefined;
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var _local4 = createObject(className.symbolOwner.symbolName, id, depth, initobj);
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return(_local4);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var _local2 = this[id];
if (_local2.getDepth() < 0) {
var _local4 = buildDepthTable();
var _local5 = findNextAvailableDepth(0, _local4, "up");
var _local3 = _local5;
_local2.swapDepths(_local3);
}
_local2.removeMovieClip();
delete this[id];
}
function getSkinIDName(tag) {
return(idNames[tag]);
}
function setSkin(tag, linkageName, initObj) {
if (_global.skinRegistry[linkageName] == undefined) {
mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
}
return(createObject(linkageName, getSkinIDName(tag), tag, initObj));
}
function createSkin(tag) {
var _local2 = getSkinIDName(tag);
createEmptyObject(_local2, tag);
return(this[_local2]);
}
function createChildren(Void) {
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function constructObject(Void) {
if (_name == undefined) {
return(undefined);
}
init();
_createChildren();
createAccessibilityImplementation();
_endInit();
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function initFromClipParameters(Void) {
var _local4 = false;
var _local2;
for (_local2 in clipParameters) {
if (hasOwnProperty(_local2)) {
_local4 = true;
this["def_" + _local2] = this[_local2];
delete this[_local2];
}
}
if (_local4) {
for (_local2 in clipParameters) {
var _local3 = this["def_" + _local2];
if (_local3 != undefined) {
this[_local2] = _local3;
}
}
}
}
function init(Void) {
__width = _width;
__height = _height;
if (initProperties == undefined) {
initFromClipParameters();
} else {
initProperties();
}
if (_global.cascadingStyles == true) {
stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var _local4 = this;
var _local3 = className;
while (_local3 != undefined) {
if (ignoreClassStyleDeclaration[_local3] == undefined) {
if (_global.styles[_local3] != undefined) {
return(_global.styles[_local3]);
}
}
_local4 = _local4.__proto__;
_local3 = _local4.className;
}
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var _local8 = stylecache.tf;
if (_local8 != undefined) {
var _local3;
for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
tf[_local3] = _local8[_local3];
}
}
}
return(false);
}
var _local6 = false;
for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
var _local5 = _tf[_local3];
if (_local5 != undefined) {
tf[_local3] = _local5;
} else if ((_local3 == "font") && (fontFamily != undefined)) {
tf[_local3] = fontFamily;
} else if ((_local3 == "size") && (fontSize != undefined)) {
tf[_local3] = fontSize;
} else if ((_local3 == "color") && (color != undefined)) {
tf[_local3] = color;
} else if ((_local3 == "leftMargin") && (marginLeft != undefined)) {
tf[_local3] = marginLeft;
} else if ((_local3 == "rightMargin") && (marginRight != undefined)) {
tf[_local3] = marginRight;
} else if ((_local3 == "italic") && (fontStyle != undefined)) {
tf[_local3] = fontStyle == _local3;
} else if ((_local3 == "bold") && (fontWeight != undefined)) {
tf[_local3] = fontWeight == _local3;
} else if ((_local3 == "align") && (textAlign != undefined)) {
tf[_local3] = textAlign;
} else if ((_local3 == "indent") && (textIndent != undefined)) {
tf[_local3] = textIndent;
} else if ((_local3 == "underline") && (textDecoration != undefined)) {
tf[_local3] = textDecoration == _local3;
} else if ((_local3 == "embedFonts") && (embedFonts != undefined)) {
tf[_local3] = embedFonts;
} else {
_local6 = true;
}
}
}
}
if (_local6) {
var _local9 = styleName;
if (_local9 != undefined) {
if (typeof(_local9) != "string") {
_local6 = _local9.__getTextFormat(tf, true, this);
} else if (_global.styles[_local9] != undefined) {
_local6 = _global.styles[_local9].__getTextFormat(tf, true, this);
}
}
}
if (_local6) {
var _local10 = getClassStyleDeclaration();
if (_local10 != undefined) {
_local6 = _local10.__getTextFormat(tf, true, this);
}
}
if (_local6) {
if (_global.cascadingStyles) {
if (_parent != undefined) {
_local6 = _parent.__getTextFormat(tf, false);
}
}
}
if (_local6) {
_local6 = _global.style.__getTextFormat(tf, true, this);
}
return(_local6);
}
function _getTextFormat(Void) {
var _local2 = stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
__getTextFormat(_local2, true);
stylecache.tf = _local2;
if (enabled == false) {
var _local3 = getStyle("disabledColor");
_local2.color = _local3;
}
return(_local2);
}
function getStyleName(Void) {
var _local2 = styleName;
if (_local2 != undefined) {
if (typeof(_local2) != "string") {
return(_local2.getStyleName());
}
return(_local2);
}
if (_parent != undefined) {
return(_parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var _local3;
_global.getStyleCounter++;
if (this[styleProp] != undefined) {
return(this[styleProp]);
}
var _local6 = styleName;
if (_local6 != undefined) {
if (typeof(_local6) != "string") {
_local3 = _local6.getStyle(styleProp);
} else {
var _local7 = _global.styles[_local6];
_local3 = _local7.getStyle(styleProp);
}
}
if (_local3 != undefined) {
return(_local3);
}
var _local7 = getClassStyleDeclaration();
if (_local7 != undefined) {
_local3 = _local7[styleProp];
}
if (_local3 != undefined) {
return(_local3);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) {
var _local5 = stylecache;
if (_local5 != undefined) {
if (_local5[styleProp] != undefined) {
return(_local5[styleProp]);
}
}
if (_parent != undefined) {
_local3 = _parent.getStyle(styleProp);
} else {
_local3 = _global.style[styleProp];
}
if (_local5 != undefined) {
_local5[styleProp] = _local3;
}
return(_local3);
}
}
if (_local3 == undefined) {
_local3 = _global.style[styleProp];
}
return(_local3);
}
static function mergeClipParameters(o, p) {
for (var _local3 in p) {
o[_local3] = p[_local3];
}
return(true);
}
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var version = "2.0.2.126";
static var textColorList = {color:1, disabledColor:1};
var invalidateFlag = false;
var lineWidth = 1;
var lineColor = 0;
var tabEnabled = false;
var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1};
}
Symbol 2 MovieClip [__Packages.mx.core.UIComponent] Frame 0
class mx.core.UIComponent extends mx.core.UIObject
{
var __width, __height, invalidate, stylecache, removeEventListener, dispatchEvent, drawFocus, addEventListener, _xscale, _yscale, _focusrect, watch, enabled;
function UIComponent () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function setVisible(x, noEvent) {
super.setVisible(x, noEvent);
}
function enabledChanged(id, oldValue, newValue) {
setEnabled(newValue);
invalidate();
delete stylecache.tf;
return(newValue);
}
function setEnabled(enabled) {
invalidate();
}
function getFocus() {
var selFocus = Selection.getFocus();
return(((selFocus === null) ? null : (eval (selFocus))));
}
function setFocus() {
Selection.setFocus(this);
}
function getFocusManager() {
var _local2 = this;
while (_local2 != undefined) {
if (_local2.focusManager != undefined) {
return(_local2.focusManager);
}
_local2 = _local2._parent;
}
return(undefined);
}
function onKillFocus(newFocus) {
removeEventListener("keyDown", this);
removeEventListener("keyUp", this);
dispatchEvent({type:"focusOut"});
drawFocus(false);
}
function onSetFocus(oldFocus) {
addEventListener("keyDown", this);
addEventListener("keyUp", this);
dispatchEvent({type:"focusIn"});
if (getFocusManager().bDrawFocus != false) {
drawFocus(true);
}
}
function findFocusInChildren(o) {
if (o.focusTextField != undefined) {
return(o.focusTextField);
}
if (o.tabEnabled == true) {
return(o);
}
return(undefined);
}
function findFocusFromObject(o) {
if (o.tabEnabled != true) {
if (o._parent == undefined) {
return(undefined);
}
if (o._parent.tabEnabled == true) {
o = o._parent;
} else if (o._parent.tabChildren) {
o = findFocusInChildren(o._parent);
} else {
o = findFocusFromObject(o._parent);
}
}
return(o);
}
function pressFocus() {
var _local3 = findFocusFromObject(this);
var _local2 = getFocus();
if (_local3 != _local2) {
_local2.drawFocus(false);
if (getFocusManager().bDrawFocus != false) {
_local3.drawFocus(true);
}
}
}
function releaseFocus() {
var _local2 = findFocusFromObject(this);
if (_local2 != getFocus()) {
_local2.setFocus();
}
}
function isParent(o) {
while (o != undefined) {
if (o == this) {
return(true);
}
o = o._parent;
}
return(false);
}
function size() {
}
function init() {
super.init();
_xscale = 100;
_yscale = 100;
_focusrect = _global.useFocusRect == false;
watch("enabled", enabledChanged);
if (enabled == false) {
setEnabled(false);
}
}
function dispatchValueChangedEvent(value) {
dispatchEvent({type:"valueChanged", value:value});
}
static var symbolName = "UIComponent";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.126";
static var kStretch = 5000;
var focusEnabled = true;
var tabEnabled = true;
var origBorderStyles = {themeColor:16711680};
var clipParameters = {};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 3 MovieClip [__Packages.Tooltip] Frame 0
class Tooltip extends mx.core.UIComponent
{
var parent_mc, tooltip_width, invalidate, tooltip_height, auto_show, auto_drag, auto_size, tooltip_str, txt_color, txt_font, txt_size, txt_align, txt_html, tooltip_position, tooltip_tail_height, tooltip_color, tooltip_alpha, tooltip_border_display, tooltip_border_color, tooltip_border_size, tooltip_border_alpha, shadow_display, shadow_distance, shadow_angle, shadow_color, shadow_alpha, shadow_blur_x, shadow_blur_y, shadow_strength, shadow_quality, shadow_inner, shadow_knockout, shadow_hide_object, loader_visible, loader_color, animate_resize, _boxWidth, _boxHeight, currentPosition, _x, _y, _height;
function Tooltip () {
super();
parent_mc = this;
parent_mc.swapDepths(1500);
mx.events.EventDispatcher.initialize(this);
init_tooltip(false);
}
function get parent() {
return(parent_mc);
}
function set __width(w) {
tooltip_width = Math.ceil(w);
invalidate();
//return(__width);
}
function get __width() {
return(tooltip_width);
}
function set __height(h) {
tooltip_height = Math.ceil(h);
invalidate();
//return(__height);
}
function get __height() {
return(tooltip_height);
}
function set autoShow(bool) {
auto_show = bool;
invalidate();
//return(autoShow);
}
function get autoShow() {
return(auto_show);
}
function set autoDrag(bool) {
auto_drag = bool;
invalidate();
//return(autoDrag);
}
function get autoDrag() {
return(auto_drag);
}
function set autoSize(bool) {
auto_size = bool;
invalidate();
//return(autoSize);
}
function get autoSize() {
return(auto_size);
}
function set content(str) {
tooltip_str = str;
invalidate();
//return(content);
}
function get content() {
return(tooltip_str);
}
function set textColor(num) {
txt_color = num;
invalidate();
//return(textColor);
}
function get textColor() {
return(txt_color);
}
function set textFont(str) {
txt_font = str;
invalidate();
//return(textFont);
}
function get textFont() {
return(txt_font);
}
function set textSize(num) {
txt_size = num;
invalidate();
//return(textSize);
}
function get textSize() {
return(txt_size);
}
function set textAlign(str) {
txt_align = str;
invalidate();
//return(textAlign);
}
function get textAlign() {
return(txt_align);
}
function set textHtml(bln) {
txt_html = bln;
invalidate();
//return(textHtml);
}
function get textHtml() {
return(txt_html);
}
function set position(str) {
tooltip_position = str;
invalidate();
//return(position);
}
function get position() {
return(tooltip_position);
}
function set tailHeight(num) {
tooltip_tail_height = num;
invalidate();
//return(tailHeight);
}
function get tailHeight() {
return(tooltip_tail_height);
}
function set color(num) {
tooltip_color = num;
invalidate();
//return(color);
}
function get color() {
return(tooltip_color);
}
function set alpha(num) {
tooltip_alpha = num;
invalidate();
//return(alpha);
}
function get alpha() {
return(tooltip_alpha);
}
function set border(bln) {
tooltip_border_display = bln;
invalidate();
//return(border);
}
function get border() {
return(tooltip_border_display);
}
function set borderColor(num) {
tooltip_border_color = num;
invalidate();
//return(borderColor);
}
function get borderColor() {
return(tooltip_border_color);
}
function set borderSize(num) {
tooltip_border_size = num;
invalidate();
//return(borderSize);
}
function get borderSize() {
return(tooltip_border_size);
}
function set borderAlpha(num) {
tooltip_border_alpha = num;
invalidate();
//return(borderAlpha);
}
function get borderAlpha() {
return(tooltip_border_alpha);
}
function set shadow(bln) {
shadow_display = bln;
invalidate();
//return(shadow);
}
function get shadow() {
return(shadow_display);
}
function set shadowDistance(num) {
shadow_distance = num;
invalidate();
//return(shadowDistance);
}
function get shadowDistance() {
return(shadow_distance);
}
function set shadowAngle(num) {
shadow_angle = num;
invalidate();
//return(shadowAngle);
}
function get shadowAngle() {
return(shadow_angle);
}
function set shadowColor(num) {
shadow_color = num;
invalidate();
//return(shadowColor);
}
function get shadowColor() {
return(shadow_color);
}
function set shadowAlpha(num) {
shadow_alpha = num;
invalidate();
//return(shadowAlpha);
}
function get shadowAlpha() {
return(shadow_alpha);
}
function set shadowBlurX(num) {
shadow_blur_x = num;
invalidate();
//return(shadowBlurX);
}
function get shadowBlurX() {
return(shadow_blur_x);
}
function set shadowBlurY(num) {
shadow_blur_y = num;
invalidate();
//return(shadowBlurY);
}
function get shadowBlurY() {
return(shadow_blur_y);
}
function set shadowStrenght(num) {
shadow_strength = num;
invalidate();
//return(shadowStrenght);
}
function get shadowStrenght() {
return(shadow_strength);
}
function set shadowQuality(num) {
shadow_quality = num;
invalidate();
//return(shadowQuality);
}
function get shadowQuality() {
return(shadow_quality);
}
function set shadowInner(bln) {
shadow_inner = bln;
invalidate();
//return(shadowInner);
}
function get shadowInner() {
return(shadow_inner);
}
function set shadowKnockout(bln) {
shadow_knockout = bln;
invalidate();
//return(shadowKnockout);
}
function get shadowKnockout() {
return(shadow_knockout);
}
function set shadowHideObject(bln) {
shadow_hide_object = bln;
invalidate();
//return(shadowHideObject);
}
function get shadowHideObject() {
return(shadow_hide_object);
}
function set type(str) {
_type = str;
invalidate();
//return(type);
}
function get type() {
return(_type);
}
function set padding(num) {
_padding = num;
invalidate();
//return(padding);
}
function get padding() {
return(_padding);
}
function set cornerRadius(num) {
_cornerRadius = num;
invalidate();
//return(cornerRadius);
}
function get cornerRadius() {
return(_cornerRadius);
}
function set preloader(str) {
loader_visible = str;
invalidate();
//return(preloader);
}
function get preloader() {
return(loader_visible);
}
function set preloaderColor(num) {
loader_color = num;
invalidate();
//return(preloaderColor);
}
function get preloaderColor() {
return(loader_color);
}
function set animateResize(bln) {
animate_resize = bln;
invalidate();
//return(animateResize);
}
function get animateResize() {
return(animate_resize);
}
function draw() {
if (autoShow == undefined) {
autoShow = (true);
}
if (autoDrag == undefined) {
autoDrag = (true);
}
if (autoSize == undefined) {
autoSize = (true);
}
if (textColor == undefined) {
textColor = (3355443);
}
if (textFont == undefined) {
textFont = ("Verdana");
}
if (textSize == undefined) {
textSize = (10);
}
if (textAlign == undefined) {
textAlign = ("left");
}
if (textHtml == undefined) {
textHtml = (false);
}
if (position == undefined) {
position = ("right");
}
if (tailHeight == undefined) {
tailHeight = (15);
}
if (color == undefined) {
color = (16774847);
}
if (alpha == undefined) {
alpha = (100);
}
if (border == undefined) {
border = (true);
}
if (borderColor == undefined) {
borderColor = (13421772);
}
if (borderSize == undefined) {
borderSize = (1);
}
if (borderAlpha == undefined) {
borderAlpha = (100);
}
if (shadow == undefined) {
shadow = (true);
}
if (shadowDistance == undefined) {
shadowDistance = (3);
}
if (shadowAngle == undefined) {
shadowAngle = (45);
}
if (shadowColor == undefined) {
shadowColor = (0);
}
if (shadowAlpha == undefined) {
shadowAlpha = (0.25);
}
if (shadowBlurX == undefined) {
shadowBlurX = (10);
}
if (shadowBlurY == undefined) {
shadowBlurY = (10);
}
if (shadowStrenght == undefined) {
shadowStrenght = (1);
}
if (shadowQuality == undefined) {
shadowQuality = (1);
}
if (shadowInner == undefined) {
shadowInner = (false);
}
if (shadowKnockout == undefined) {
shadowKnockout = (false);
}
if (shadowHideObject == undefined) {
shadowHideObject = (false);
}
}
function init_tooltip(bool) {
parent.createEmptyMovieClip("btm_mc", 1);
parent.createEmptyMovieClip("top_mc", 2);
parent.createTextField("txt", 3, 5, 5, __width - 10, 10);
parent.createEmptyMovieClip("loader_brd", 5);
parent.createEmptyMovieClip("loader_mc", 7);
parent.createEmptyMovieClip("image_mc", 10);
parent.btm_mc._visible = false;
parent.top_mc._visible = false;
parent.txt._visible = false;
if (bool) {
dsp_content();
} else if (autoShow) {
dsp_content();
}
}
function dsp_content() {
switch (type) {
case "text" :
dsp_txt();
break;
case "image" :
dsp_image();
break;
case "mixed" :
}
}
function dsp_image() {
if (content.indexOf(".") != -1) {
var _local2 = new MovieClipLoader();
_local2.addListener(this);
_local2.addListener(publicListener);
_local2.loadClip(content, parent.image_mc);
dsp_tooltip();
if (loader_visible == "on") {
dsp_preloader();
}
} else {
parent.image_mc.attachMovie(content, "image", 0);
resize_tooltip(true);
}
}
function onLoadProgress(target_mc, bytesLoaded, bytesTotal) {
parent.loader_mc._xscale = (bytesLoaded / bytesTotal) * 100;
}
function onLoadInit(target_mc) {
if (loader_visible == "on") {
parent.loader_brd.clear();
parent.loader_mc.clear();
}
resize_tooltip();
}
function dsp_txt() {
txt_fmt.font = textFont;
txt_fmt.size = textSize;
txt_fmt.color = textColor;
txt_fmt.align = textAlign;
if (autoSize == false) {
parent.txt.multiline = true;
parent.txt.wordWrap = true;
}
parent.txt.html = true;
parent.txt.selectable = false;
parent.txt.autoSize = true;
parent.txt.htmlText = content;
if (!textHtml) {
parent.txt.setTextFormat(txt_fmt);
}
dsp_tooltip();
}
function dsp_preloader() {
parent.createEmptyMovieClip("loader_brd", 5);
parent.loader_brd._x = (_boxWidth / 2) - 40;
parent.loader_brd._y = (_boxHeight / 2) - 5;
with (parent.loader_brd) {
lineStyle(0, 0, 100);
moveTo(0, 0);
lineTo(80, 0);
lineTo(80, 9.5);
lineTo(0, 9.5);
lineTo(0, 0);
}
var color = new Color(parent.loader_brd);
color.setRGB(loader_color);
parent.createEmptyMovieClip("loader_mc", 6);
parent.loader_mc._x = (_boxWidth / 2) - 38;
parent.loader_mc._y = (_boxHeight / 2) - 3;
with (parent.loader_mc) {
beginFill(0, 100);
moveTo(0, 0);
lineTo(77, 0);
lineTo(77, 6);
lineTo(0, 6);
lineTo(0, 0);
endFill();
}
parent.loader_mc._xscale = 0;
var color = new Color(parent.loader_mc);
color.setRGB(loader_color);
}
function resize_tooltip(attach) {
parent.image_mc.owner = this;
var _local2;
var _local4;
parent.image_mc._x = (parent.image_mc._y = 5 + padding);
if (autoSize) {
_local4 = (parent.image_mc._width + (padding * 2)) + 10;
_local2 = (parent.image_mc._height + (padding * 2)) + 10;
} else {
parent.image_mc._width = Math.max((__width - 10) - (padding * 2), 0);
parent.image_mc._height = Math.max((__height - 10) - (padding * 2), 0);
_local4 = __width;
_local2 = __height;
}
if (attach || (!animate_resize)) {
draw_tooltip(_local4, _local2);
} else {
parent.image_mc.w = _local4;
parent.image_mc.h = _local2;
parent.image_mc._alpha = 0;
parent.image_mc.finalW = parent.image_mc._width;
parent.image_mc.finalH = parent.image_mc._height;
parent.image_mc._width = 0;
parent.image_mc._height = 0;
parent.image_mc.onEnterFrame = function () {
var _local2 = true;
var _local4 = this.owner._boxWidth;
var _local3 = this.owner._boxHeight;
if (Math.abs(this.owner._boxWidth - this.w) > 0.5) {
_local4 = _local4 + ((this.w - this.owner._boxWidth) / 5);
_local2 = false;
}
if (Math.abs(this.owner._boxHeight - this.h) > 0.5) {
_local3 = _local3 + ((this.h - this.owner._boxHeight) / 5);
_local2 = false;
}
if (_local2) {
this.owner.draw_tooltip(this.w, this.h);
this._alpha = 0;
this._width = this.finalW;
this._height = this.finalH;
this.onEnterFrame = function () {
this._alpha = this._alpha + 10;
if (this._alpha >= 100) {
delete this.onEnterFrame;
}
};
} else {
this.owner.draw_tooltip(_local4, _local3);
}
};
}
}
function dsp_tooltip() {
var _local2;
var _local3;
switch (type) {
case "text" :
_local2 = parent.txt.textHeight + 15;
if (autoSize) {
_local3 = (parent.txt.textWidth + 20) + (padding * 2);
_local2 = _local2 + (padding * 2);
} else {
_local3 = __width;
}
break;
case "image" :
_local3 = __width;
_local2 = __height;
break;
case "mixed" :
}
parent.txt._x = parent.txt._x + padding;
parent.txt._y = parent.txt._y + padding;
draw_tooltip(_local3, _local2, true);
}
function draw_tooltip(w, h, firstDraw) {
var _local4 = (_boxWidth = w);
var _local3 = (_boxHeight = h);
parent.top_mc.clear();
if (border) {
parent.top_mc.lineStyle(borderSize, borderColor, borderAlpha);
}
if (position == "left") {
var _local5 = _local4 - 28;
var _local6 = _local4 - 38;
} else if (position == "right") {
var _local5 = 38;
var _local6 = 28;
} else if (position == "auto") {
if (firstDraw) {
if (parent._x > (Stage.width / 2)) {
currentPosition = "left";
} else {
currentPosition = "right";
}
}
switch (currentPosition) {
case "left" :
var _local5 = _local4 - 28;
var _local6 = _local4 - 38;
break;
case "right" :
_local5 = 38;
_local6 = 28;
}
}
var _local2 = _cornerRadius;
if (_local2 > 28) {
_local2 = 28;
}
if (_local2 > (_local3 / 2)) {
_local2 = _local3 / 2;
}
parent.top_mc.beginFill(color, alpha);
parent.top_mc.moveTo(_local2, 0);
parent.top_mc.lineTo(_local4 - _local2, 0);
parent.top_mc.curveTo(_local4, 0, _local4, _local2);
parent.top_mc.lineTo(_local4, _local3 - _local2);
parent.top_mc.curveTo(_local4, _local3, _local4 - _local2, _local3);
parent.top_mc.lineTo(_local5, _local3);
parent.top_mc.lineTo(_local5, _local3 + tailHeight);
parent.top_mc.lineTo(_local6, _local3);
parent.top_mc.lineTo(_local2, _local3);
parent.top_mc.curveTo(0, _local3, 0, _local3 - _local2);
parent.top_mc.lineTo(0, _local2);
parent.top_mc.curveTo(0, 0, _local2, 0);
parent.top_mc.endFill();
if (shadow) {
var _local7 = new flash.filters.DropShadowFilter(shadowDistance, shadowAngle, shadowColor, shadowAlpha, shadowBlurX, shadowBlurY, shadowStrenght, shadowQuality, shadowInner, shadowKnockout, shadowHideObject);
parent_mc.top_mc.filters = [_local7];
}
if (autoDrag) {
drag_tooltip(_local5);
}
parent.btm_mc._visible = true;
parent.top_mc._visible = true;
parent.txt._visible = true;
}
function drag_tooltip(pos) {
_x = _root._xmouse - pos;
_y = _root._ymouse - _height;
mouseListener.$obj = this;
mouseListener.onMouseMove = function () {
this.$obj.parent._y = _root._ymouse - this.$obj.parent._height;
this.$obj.parent._x = _root._xmouse - pos;
};
Mouse.addListener(mouseListener);
}
function showTooltip() {
init_tooltip(true);
}
function hideTooltip() {
parent.btm_mc._visible = false;
parent.top_mc._visible = false;
parent.txt._visible = false;
parent.image_mc._visible = false;
delete parent.image_mc.onEnterFrame;
Mouse.removeListener(mouseListener);
}
var className = "Tooltip";
static var symbolOwner = Tooltip;
static var symbolName = "Tooltip";
static var txt_fmt = new TextFormat();
static var mouseListener = new Object();
var _type = "text";
var _padding = 0;
var _cornerRadius = 0;
var publicListener = new Object();
}
Symbol 6 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip
{
var _visible, _x, _y, _width, _height;
function SkinElement () {
super();
}
static function registerElement(name, className) {
Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className)));
_global.skinRegistry[name] = true;
}
function __set__visible(visible) {
_visible = visible;
}
function move(x, y) {
_x = x;
_y = y;
}
function setSize(w, h) {
_width = w;
_height = h;
}
}
Symbol 7 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles
{
function CSSTextStyles () {
}
static function addTextStyles(o, bColor) {
o.addProperty("textAlign", function () {
return(this._tf.align);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.align = x;
});
o.addProperty("fontWeight", function () {
return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.bold = x == "bold";
});
if (bColor) {
o.addProperty("color", function () {
return(this._tf.color);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.color = x;
});
}
o.addProperty("fontFamily", function () {
return(this._tf.font);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.font = x;
});
o.addProperty("textIndent", function () {
return(this._tf.indent);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.indent = x;
});
o.addProperty("fontStyle", function () {
return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.italic = x == "italic";
});
o.addProperty("marginLeft", function () {
return(this._tf.leftMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.leftMargin = x;
});
o.addProperty("marginRight", function () {
return(this._tf.rightMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.rightMargin = x;
});
o.addProperty("fontSize", function () {
return(this._tf.size);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.size = x;
});
o.addProperty("textDecoration", function () {
return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.underline = x == "underline";
});
o.addProperty("embedFonts", function () {
return(this._tf.embedFonts);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.embedFonts = x;
});
}
}
Symbol 8 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager
{
function StyleManager () {
}
static function registerInheritingStyle(styleName) {
inheritingStyles[styleName] = true;
}
static function isInheritingStyle(styleName) {
return(inheritingStyles[styleName] == true);
}
static function registerColorStyle(styleName) {
colorStyles[styleName] = true;
}
static function isColorStyle(styleName) {
return(colorStyles[styleName] == true);
}
static function registerColorName(colorName, colorValue) {
colorNames[colorName] = colorValue;
}
static function isColorName(colorName) {
return(colorNames[colorName] != undefined);
}
static function getColorName(colorName) {
return(colorNames[colorName]);
}
static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true};
static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true};
static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344};
static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false};
static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true};
}
Symbol 9 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration
{
var _tf;
function CSSStyleDeclaration () {
}
function __getTextFormat(tf, bAll) {
var _local5 = false;
if (_tf != undefined) {
var _local2;
for (_local2 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local2])) {
if (tf[_local2] == undefined) {
var _local3 = _tf[_local2];
if (_local3 != undefined) {
tf[_local2] = _local3;
} else {
_local5 = true;
}
}
}
}
} else {
_local5 = true;
}
return(_local5);
}
function getStyle(styleProp) {
var _local2 = this[styleProp];
var _local3 = mx.styles.StyleManager.getColorName(_local2);
return(((_local3 == undefined) ? (_local2) : (_local3)));
}
static function classConstruct() {
mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true);
return(true);
}
static var classConstructed = classConstruct();
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
}
Symbol 10 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 11 MovieClip [__Packages.mx.core.View] Frame 0
class mx.core.View extends mx.core.UIComponent
{
var tabChildren, tabEnabled, boundingBox_mc, border_mc, __get__width, __get__height, __tabIndex, depth, createObject, createClassObject, loadExternal, destroyObject, createClassChildAtDepth, doLater;
function View () {
super();
}
function init() {
super.init();
tabChildren = true;
tabEnabled = false;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function size() {
border_mc.move(0, 0);
border_mc.setSize(__get__width(), __get__height());
doLayout();
}
function draw() {
size();
}
function get numChildren() {
var _local3 = childNameBase;
var _local2 = 0;
while (true) {
if (this[_local3 + _local2] == undefined) {
return(_local2);
}
_local2++;
}
}
function get tabIndex() {
return((tabEnabled ? (__tabIndex) : undefined));
}
function addLayoutObject(object) {
}
function createChild(className, instanceName, initProps) {
if (depth == undefined) {
depth = 1;
}
var _local2;
if (typeof(className) == "string") {
_local2 = createObject(className, instanceName, depth++, initProps);
} else {
_local2 = createClassObject(className, instanceName, depth++, initProps);
}
if (_local2 == undefined) {
_local2 = loadExternal(className, _loadExternalClass, instanceName, depth++, initProps);
} else {
this[childNameBase + numChildren] = _local2;
_local2._complete = true;
childLoaded(_local2);
}
addLayoutObject(_local2);
return(_local2);
}
function getChildAt(childIndex) {
return(this[childNameBase + childIndex]);
}
function destroyChildAt(childIndex) {
if (!((childIndex >= 0) && (childIndex < numChildren))) {
return(undefined);
}
var _local4 = childNameBase + childIndex;
var _local6 = numChildren;
var _local3;
for (_local3 in this) {
if (_local3 == _local4) {
_local4 = "";
destroyObject(_local3);
break;
}
}
var _local2 = Number(childIndex);
while (_local2 < (_local6 - 1)) {
this[childNameBase + _local2] = this[childNameBase + (_local2 + 1)];
_local2++;
}
delete this[childNameBase + (_local6 - 1)];
depth--;
}
function initLayout() {
if (!hasBeenLayedOut) {
doLayout();
}
}
function doLayout() {
hasBeenLayedOut = true;
}
function createChildren() {
if (border_mc == undefined) {
border_mc = createClassChildAtDepth(_global.styles.rectBorderClass, mx.managers.DepthManager.kBottom, {styleName:this});
}
doLater(this, "initLayout");
}
function convertToUIObject(obj) {
}
function childLoaded(obj) {
convertToUIObject(obj);
}
static function extension() {
mx.core.ExternalContent.enableExternalContent();
}
static var symbolName = "View";
static var symbolOwner = mx.core.View;
static var version = "2.0.2.126";
var className = "View";
static var childNameBase = "_child";
var hasBeenLayedOut = false;
var _loadExternalClass = "UIComponent";
}
Symbol 12 MovieClip [__Packages.mx.controls.Loader] Frame 0
class mx.controls.Loader extends mx.core.View
{
var _origWidth, _origHeight, __width, livePreview, __height, createTextField, contentHolder, childrenCreated, destroyChildAt, createChild, border_mc;
function Loader () {
super();
}
function init() {
super.init();
}
function setSize(w, h, noEvent) {
_origWidth = w;
_origHeight = h;
super.setSize(w, h, noEvent);
if (_global.isLivePreview) {
livePreview._width = __width - 1;
livePreview._height = __height - 1;
}
}
function draw() {
size();
}
function size() {
super.size();
if (__scaleContent) {
doScaleContent();
} else {
doScaleLoader();
}
}
function createChildren() {
super.createChildren();
if (_global.isLivePreview) {
createTextField("livePreview", -1000, 0, 0, 99, 99);
livePreview.text = "mx.controls.Loader";
livePreview.border = true;
}
if (__autoLoad) {
load();
}
}
function getAutoLoad() {
return(__autoLoad);
}
function get autoLoad() {
return(getAutoLoad());
}
function setAutoLoad(b) {
if (__autoLoad != b) {
__autoLoad = b;
if (__autoLoad && (!this[mx.core.View.childNameBase + 0]._complete)) {
load();
}
}
}
function set autoLoad(b) {
setAutoLoad(b);
//return(autoLoad);
}
function getBytesLoaded() {
return(__bytesLoaded);
}
function get bytesLoaded() {
return(getBytesLoaded());
}
function getBytesTotal() {
return(__bytesTotal);
}
function get bytesTotal() {
return(getBytesTotal());
}
function getContent() {
return(contentHolder);
}
function get content() {
return(getContent());
}
function getContentPath() {
return(__contentPath);
}
function get contentPath() {
return(getContentPath());
}
function setContentPath(url) {
if (__contentPath != url) {
__contentPath = url;
if (childrenCreated) {
if (__autoLoad) {
load();
}
}
}
}
function set contentPath(c) {
setContentPath(c);
//return(contentPath);
}
function getPercentLoaded() {
var _local2 = 100 * (__bytesLoaded / __bytesTotal);
if (isNaN(_local2)) {
_local2 = 0;
}
return(_local2);
}
function get percentLoaded() {
return(getPercentLoaded());
}
function get scaleContent() {
return(getScaleContent());
}
function getScaleContent() {
return(__scaleContent);
}
function setScaleContent(b) {
if (__scaleContent != b) {
__scaleContent = b;
if (__scaleContent) {
doScaleContent();
} else {
doScaleLoader();
}
}
}
function set scaleContent(b) {
setScaleContent(b);
//return(scaleContent);
}
function load(url) {
if (url != undefined) {
__contentPath = url;
}
if (this[mx.core.View.childNameBase + 0] != undefined) {
if (this[mx.core.View.childNameBase + 0]._complete) {
setSize(_origWidth, _origHeight);
}
destroyChildAt(0);
}
if ((__contentPath == undefined) || (__contentPath == "")) {
return(undefined);
}
createChild(__contentPath, "contentHolder");
}
function childLoaded(obj) {
super.childLoaded(obj);
obj._rotation = 0;
_origWidth = __width;
_origHeight = __height;
if (__scaleContent) {
doScaleContent();
} else {
doScaleLoader();
}
}
function dispatchEvent(obj) {
if ((obj.type == "progress") || (obj.type == "complete")) {
obj.target = this;
__bytesTotal = obj.total;
__bytesLoaded = obj.current;
}
super.dispatchEvent(obj);
}
function doScaleContent() {
if (!this[mx.core.View.childNameBase + 0]._complete) {
return(undefined);
}
unScaleContent();
var _local2 = border_mc.__get__borderMetrics();
var _local7 = (_origWidth - _local2.left) - _local2.right;
var _local6 = (_origHeight - _local2.top) - _local2.bottom;
var _local9 = _local2.left;
var _local8 = _local2.top;
var _local5 = _local7 / contentHolder._width;
var _local3 = _local6 / contentHolder._height;
var _local4;
if (_local5 > _local3) {
_local9 = _local2.left + Math.floor((_local7 - (contentHolder._width * _local3)) / 2);
_local4 = _local3;
} else {
_local8 = _local2.top + Math.floor((_local6 - (contentHolder._height * _local5)) / 2);
_local4 = _local5;
}
_local4 = _local4 * 100;
contentHolder._xscale = (contentHolder._yscale = _local4);
contentHolder._x = _local9;
contentHolder._y = _local8;
if ((__width != _origWidth) || (__height != _origHeight)) {
setSize(_origWidth, _origHeight);
}
}
function doScaleLoader() {
if (!this[mx.core.View.childNameBase + 0]._complete) {
return(undefined);
}
unScaleContent();
var _local2 = border_mc.__get__borderMetrics();
var _local4 = (contentHolder._width + _local2.left) + _local2.right;
var _local3 = (contentHolder._height + _local2.top) + _local2.bottom;
if ((__width != _local4) || (__height != _local3)) {
setSize(_local4, _local3);
}
contentHolder._x = _local2.left;
contentHolder._y = _local2.top;
}
function unScaleContent() {
contentHolder._xscale = (contentHolder._yscale = 100);
contentHolder._x = (contentHolder._y = 0);
}
static var symbolName = "Loader";
static var symbolOwner = mx.controls.Loader;
static var version = "2.0.2.126";
var className = "Loader";
var clipParameters = {autoLoad:1, scaleContent:1, contentPath:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Loader.prototype.clipParameters, mx.core.View.prototype.clipParameters);
var __autoLoad = true;
var __bytesLoaded = undefined;
var __bytesTotal = undefined;
var __contentPath = undefined;
var __scaleContent = true;
}
Symbol 30 MovieClip [__Packages.mx.skins.Border] Frame 0
class mx.skins.Border extends mx.core.UIObject
{
function Border () {
super();
}
function init(Void) {
super.init();
}
static var symbolName = "Border";
static var symbolOwner = mx.skins.Border;
var className = "Border";
var tagBorder = 0;
var idNames = new Array("border_mc");
}
Symbol 31 MovieClip [__Packages.mx.skins.RectBorder] Frame 0
class mx.skins.RectBorder extends mx.skins.Border
{
var __width, __height, offset, __borderMetrics;
function RectBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function draw(Void) {
size();
}
function getBorderMetrics(Void) {
var _local2 = offset;
if (__borderMetrics == undefined) {
__borderMetrics = {left:_local2, top:_local2, right:_local2, bottom:_local2};
} else {
__borderMetrics.left = _local2;
__borderMetrics.top = _local2;
__borderMetrics.right = _local2;
__borderMetrics.bottom = _local2;
}
return(__borderMetrics);
}
function get borderMetrics() {
return(getBorderMetrics());
}
function drawBorder(Void) {
}
function size(Void) {
drawBorder();
}
function setColor(Void) {
drawBorder();
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.RectBorder;
static var version = "2.0.2.126";
var className = "RectBorder";
var borderStyleName = "borderStyle";
var borderColorName = "borderColor";
var shadowColorName = "shadowColor";
var highlightColorName = "highlightColor";
var buttonColorName = "buttonColor";
var backgroundColorName = "backgroundColor";
}
Symbol 32 MovieClip [__Packages.mx.managers.DepthManager] Frame 0
class mx.managers.DepthManager
{
var _childCounter, createClassObject, createObject, _parent, swapDepths, _topmost, getDepth;
function DepthManager () {
MovieClip.prototype.createClassChildAtDepth = createClassChildAtDepth;
MovieClip.prototype.createChildAtDepth = createChildAtDepth;
MovieClip.prototype.setDepthTo = setDepthTo;
MovieClip.prototype.setDepthAbove = setDepthAbove;
MovieClip.prototype.setDepthBelow = setDepthBelow;
MovieClip.prototype.findNextAvailableDepth = findNextAvailableDepth;
MovieClip.prototype.shuffleDepths = shuffleDepths;
MovieClip.prototype.getDepthByFlag = getDepthByFlag;
MovieClip.prototype.buildDepthTable = buildDepthTable;
_global.ASSetPropFlags(MovieClip.prototype, "createClassChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "createChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthTo", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthAbove", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthBelow", 1);
_global.ASSetPropFlags(MovieClip.prototype, "findNextAvailableDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "shuffleDepths", 1);
_global.ASSetPropFlags(MovieClip.prototype, "getDepthByFlag", 1);
_global.ASSetPropFlags(MovieClip.prototype, "buildDepthTable", 1);
}
static function sortFunction(a, b) {
if (a.getDepth() > b.getDepth()) {
return(1);
}
return(-1);
}
static function test(depth) {
if (depth == reservedDepth) {
return(false);
}
return(true);
}
static function createClassObjectAtDepth(className, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createClassChildAtDepth(className, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createClassChildAtDepth(className, kTop, initObj);
break;
}
return(_local1);
}
static function createObjectAtDepth(linkageName, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createChildAtDepth(linkageName, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createChildAtDepth(linkageName, kTop, initObj);
break;
}
return(_local1);
}
function createClassChildAtDepth(className, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createClassObject(className, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function createChildAtDepth(linkageName, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createObject(linkageName, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function setDepthTo(depthFlag) {
var _local2 = _parent.buildDepthTable();
var _local3 = _parent.getDepthByFlag(depthFlag, _local2);
if (_local2[_local3] != undefined) {
shuffleDepths(this, _local3, _local2, undefined);
} else {
swapDepths(_local3);
}
if (depthFlag == kTopmost) {
_topmost = true;
} else {
delete _topmost;
}
}
function setDepthAbove(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local2 = targetInstance.getDepth() + 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local2] != undefined) && (getDepth() < _local2)) {
_local2 = _local2 - 1;
}
if (_local2 > highestDepth) {
_local2 = highestDepth;
}
if (_local2 == highestDepth) {
_parent.shuffleDepths(this, _local2, _local3, "down");
} else if (_local3[_local2] != undefined) {
_parent.shuffleDepths(this, _local2, _local3, undefined);
} else {
swapDepths(_local2);
}
}
function setDepthBelow(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local6 = targetInstance.getDepth() - 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local6] != undefined) && (getDepth() > _local6)) {
_local6 = _local6 + 1;
}
var _local4 = lowestDepth + numberOfAuthortimeLayers;
var _local5;
for (_local5 in _local3) {
var _local2 = _local3[_local5];
if (_local2._parent != undefined) {
_local4 = Math.min(_local4, _local2.getDepth());
}
}
if (_local6 < _local4) {
_local6 = _local4;
}
if (_local6 == _local4) {
_parent.shuffleDepths(this, _local6, _local3, "up");
} else if (_local3[_local6] != undefined) {
_parent.shuffleDepths(this, _local6, _local3, undefined);
} else {
swapDepths(_local6);
}
}
function findNextAvailableDepth(targetDepth, depthTable, direction) {
var _local5 = lowestDepth + numberOfAuthortimeLayers;
if (targetDepth < _local5) {
targetDepth = _local5;
}
if (depthTable[targetDepth] == undefined) {
return(targetDepth);
}
var _local2 = targetDepth;
var _local1 = targetDepth;
if (direction == "down") {
while (depthTable[_local1] != undefined) {
_local1--;
}
return(_local1);
}
while (depthTable[_local2] != undefined) {
_local2++;
}
return(_local2);
}
function shuffleDepths(subject, targetDepth, depthTable, direction) {
var _local9 = lowestDepth + numberOfAuthortimeLayers;
var _local8 = _local9;
var _local5;
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local9 = Math.min(_local9, _local7.getDepth());
}
}
if (direction == undefined) {
if (subject.getDepth() > targetDepth) {
direction = "up";
} else {
direction = "down";
}
}
var _local1 = new Array();
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local1.push(_local7);
}
}
_local1.sort(sortFunction);
if (direction == "up") {
var _local3;
var _local11;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.pop();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
_local11 = subject.getDepth();
_local3 = _local1.pop();
var _local4 = _local3.getDepth();
if (_local11 > (_local4 + 1)) {
if (_local4 >= 0) {
subject.swapDepths(_local4 + 1);
} else if ((_local11 > _local8) && (_local4 < _local8)) {
subject.swapDepths(_local8);
}
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
} else if (direction == "down") {
var _local3;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.shift();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
var _local11 = _local3.getDepth();
_local3 = _local1.shift();
var _local4 = _local3.getDepth();
if ((_local11 < (_local4 - 1)) && (_local4 > 0)) {
subject.swapDepths(_local4 - 1);
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
}
}
function getDepthByFlag(depthFlag, depthTable) {
var _local2 = 0;
if ((depthFlag == kTop) || (depthFlag == kNotopmost)) {
var _local5 = 0;
var _local7 = false;
var _local8;
for (_local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
if (!_local9._topmost) {
_local2 = Math.max(_local2, _local9.getDepth());
} else if (!_local7) {
_local5 = _local9.getDepth();
_local7 = true;
} else {
_local5 = Math.min(_local5, _local9.getDepth());
}
}
}
}
_local2 = _local2 + 20;
if (_local7) {
if (_local2 >= _local5) {
_local2 = _local5 - 1;
}
}
} else if (depthFlag == kBottom) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.min(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 - 20;
} else if (depthFlag == kTopmost) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.max(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 + 100;
}
if (_local2 >= highestDepth) {
_local2 = highestDepth;
}
var _local6 = lowestDepth + numberOfAuthortimeLayers;
for (var _local9 in depthTable) {
var _local4 = depthTable[_local9];
if (_local4._parent != undefined) {
_local6 = Math.min(_local6, _local4.getDepth());
}
}
if (_local2 <= _local6) {
_local2 = _local6;
}
return(_local2);
}
function buildDepthTable(Void) {
var _local5 = new Array();
var _local4;
for (_local4 in this) {
var _local2 = this[_local4];
var _local3 = typeof(_local2);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local2.__getTextFormat != undefined))) {
if (_local2._parent == this) {
_local5[_local2.getDepth()] = _local2;
}
}
}
return(_local5);
}
static var reservedDepth = 1048575;
static var highestDepth = 1048574;
static var lowestDepth = -16383;
static var numberOfAuthortimeLayers = 383;
static var kCursor = 101;
static var kTooltip = 102;
static var kTop = 201;
static var kBottom = 202;
static var kTopmost = 203;
static var kNotopmost = 204;
static var holder = _root.createEmptyMovieClip("reserved", reservedDepth);
static var __depthManager = new mx.managers.DepthManager();
}
Symbol 33 MovieClip [__Packages.mx.events.UIEventDispatcher] Frame 0
class mx.events.UIEventDispatcher extends mx.events.EventDispatcher
{
var dispatchQueue, owner, __sentLoadEvent, __origAddEventListener;
function UIEventDispatcher () {
super();
}
static function addKeyEvents(obj) {
if (obj.keyHandler == undefined) {
var _local1 = (obj.keyHandler = new Object());
_local1.owner = obj;
_local1.onKeyDown = _fEventDispatcher.onKeyDown;
_local1.onKeyUp = _fEventDispatcher.onKeyUp;
}
Key.addListener(obj.keyHandler);
}
static function removeKeyEvents(obj) {
Key.removeListener(obj.keyHandler);
}
static function addLoadEvents(obj) {
if (obj.onLoad == undefined) {
obj.onLoad = _fEventDispatcher.onLoad;
obj.onUnload = _fEventDispatcher.onUnload;
if (obj.getBytesTotal() == obj.getBytesLoaded()) {
obj.doLater(obj, "onLoad");
}
}
}
static function removeLoadEvents(obj) {
delete obj.onLoad;
delete obj.onUnload;
}
static function initialize(obj) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.UIEventDispatcher();
}
obj.addEventListener = _fEventDispatcher.__addEventListener;
obj.__origAddEventListener = _fEventDispatcher.addEventListener;
obj.removeEventListener = _fEventDispatcher.removeEventListener;
obj.dispatchEvent = _fEventDispatcher.dispatchEvent;
obj.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(mx.events.EventDispatcher, eventObj);
dispatchQueue(this, eventObj);
}
function onKeyDown(Void) {
owner.dispatchEvent({type:"keyDown", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onKeyUp(Void) {
owner.dispatchEvent({type:"keyUp", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onLoad(Void) {
if (__sentLoadEvent != true) {
dispatchEvent({type:"load"});
}
__sentLoadEvent = true;
}
function onUnload(Void) {
dispatchEvent({type:"unload"});
}
function __addEventListener(event, handler) {
__origAddEventListener(event, handler);
var _local3 = lowLevelEvents;
for (var _local5 in _local3) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local2 = _local3[_local5][0];
mx.events.UIEventDispatcher[_local2](this);
}
}
}
function removeEventListener(event, handler) {
var _local6 = "__q_" + event;
mx.events.EventDispatcher._removeEventListener(this[_local6], event, handler);
if (this[_local6].length == 0) {
var _local2 = lowLevelEvents;
for (var _local5 in _local2) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local3 = _local2[_local5][1];
mx.events.UIEventDispatcher[_local2[_local5][1]](this);
}
}
}
}
static var keyEvents = {keyDown:1, keyUp:1};
static var loadEvents = {load:1, unload:1};
static var lowLevelEvents = {keyEvents:["addKeyEvents", "removeKeyEvents"], loadEvents:["addLoadEvents", "removeLoadEvents"]};
static var _fEventDispatcher = undefined;
}
Symbol 34 MovieClip [__Packages.mx.core.ExternalContent] Frame 0
class mx.core.ExternalContent
{
var createObject, numChildren, prepList, doLater, loadList, dispatchEvent, loadedList, childLoaded;
function ExternalContent () {
}
function loadExternal(url, placeholderClassName, instanceName, depth, initProps) {
var _local2;
_local2 = createObject(placeholderClassName, instanceName, depth, initProps);
this[mx.core.View.childNameBase + numChildren] = _local2;
if (prepList == undefined) {
prepList = new Object();
}
prepList[instanceName] = {obj:_local2, url:url, complete:false, initProps:initProps};
prepareToLoadMovie(_local2);
return(_local2);
}
function prepareToLoadMovie(obj) {
obj.unloadMovie();
doLater(this, "waitForUnload");
}
function waitForUnload() {
var _local3;
for (_local3 in prepList) {
var _local2 = prepList[_local3];
if (_local2.obj.getBytesTotal() == 0) {
if (loadList == undefined) {
loadList = new Object();
}
loadList[_local3] = _local2;
_local2.obj.loadMovie(_local2.url);
delete prepList[_local3];
doLater(this, "checkLoadProgress");
} else {
doLater(this, "waitForUnload");
}
}
}
function checkLoadProgress() {
var _local8 = false;
var _local3;
for (_local3 in loadList) {
var _local2 = loadList[_local3];
_local2.loaded = _local2.obj.getBytesLoaded();
_local2.total = _local2.obj.getBytesTotal();
if (_local2.total > 0) {
_local2.obj._visible = false;
dispatchEvent({type:"progress", target:_local2.obj, current:_local2.loaded, total:_local2.total});
if (_local2.loaded == _local2.total) {
if (loadedList == undefined) {
loadedList = new Object();
}
loadedList[_local3] = _local2;
delete loadList[_local3];
doLater(this, "contentLoaded");
}
} else if (_local2.total == -1) {
if (_local2.failedOnce != undefined) {
_local2.failedOnce++;
if (_local2.failedOnce > 3) {
dispatchEvent({type:"complete", target:_local2.obj, current:_local2.loaded, total:_local2.total});
delete loadList[_local3];
}
} else {
_local2.failedOnce = 0;
}
}
_local8 = true;
}
if (_local8) {
doLater(this, "checkLoadProgress");
}
}
function contentLoaded() {
var _local4;
for (_local4 in loadedList) {
var _local2 = loadedList[_local4];
_local2.obj._visible = true;
_local2.obj._complete = true;
var _local3;
for (_local3 in _local2.initProps) {
_local2.obj[_local3] = _local2.initProps[_local3];
}
childLoaded(_local2.obj);
dispatchEvent({type:"complete", target:_local2.obj, current:_local2.loaded, total:_local2.total});
delete loadedList[_local4];
}
}
function convertToUIObject(obj) {
if (obj.setSize == undefined) {
var _local2 = mx.core.UIObject.prototype;
obj.addProperty("width", _local2.__get__width, null);
obj.addProperty("height", _local2.__get__height, null);
obj.addProperty("left", _local2.__get__left, null);
obj.addProperty("x", _local2.__get__x, null);
obj.addProperty("top", _local2.__get__top, null);
obj.addProperty("y", _local2.__get__y, null);
obj.addProperty("right", _local2.__get__right, null);
obj.addProperty("bottom", _local2.__get__bottom, null);
obj.addProperty("visible", _local2.__get__visible, _local2.__set__visible);
obj.move = mx.core.UIObject.prototype.move;
obj.setSize = mx.core.UIObject.prototype.setSize;
obj.size = mx.core.UIObject.prototype.size;
mx.events.UIEventDispatcher.initialize(obj);
}
}
static function enableExternalContent() {
}
static function classConstruct() {
var _local1 = mx.core.View.prototype;
var _local2 = mx.core.ExternalContent.prototype;
_local1.loadExternal = _local2.loadExternal;
_local1.prepareToLoadMovie = _local2.prepareToLoadMovie;
_local1.waitForUnload = _local2.waitForUnload;
_local1.checkLoadProgress = _local2.checkLoadProgress;
_local1.contentLoaded = _local2.contentLoaded;
_local1.convertToUIObject = _local2.convertToUIObject;
return(true);
}
static var classConstructed = classConstruct();
static var ViewDependency = mx.core.View;
}
Symbol 35 MovieClip [__Packages.mx.skins.ColoredSkinElement] Frame 0
class mx.skins.ColoredSkinElement
{
var getStyle, _color, onEnterFrame;
function ColoredSkinElement () {
}
function setColor(c) {
if (c != undefined) {
var _local2 = new Color(this);
_local2.setRGB(c);
}
}
function draw(Void) {
setColor(getStyle(_color));
onEnterFrame = undefined;
}
function invalidateStyle(Void) {
onEnterFrame = draw;
}
static function setColorStyle(p, colorStyle) {
if (p._color == undefined) {
p._color = colorStyle;
}
p.setColor = mixins.setColor;
p.invalidateStyle = mixins.invalidateStyle;
p.draw = mixins.draw;
p.setColor(p.getStyle(colorStyle));
}
static var mixins = new mx.skins.ColoredSkinElement();
}
Symbol 36 MovieClip [__Packages.mx.core.ext.UIObjectExtensions] Frame 0
class mx.core.ext.UIObjectExtensions
{
function UIObjectExtensions () {
}
static function addGeometry(tf, ui) {
tf.addProperty("width", ui.__get__width, null);
tf.addProperty("height", ui.__get__height, null);
tf.addProperty("left", ui.__get__left, null);
tf.addProperty("x", ui.__get__x, null);
tf.addProperty("top", ui.__get__top, null);
tf.addProperty("y", ui.__get__y, null);
tf.addProperty("right", ui.__get__right, null);
tf.addProperty("bottom", ui.__get__bottom, null);
tf.addProperty("visible", ui.__get__visible, ui.__set__visible);
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
var _local6 = mx.core.UIObject.prototype;
var _local9 = mx.skins.SkinElement.prototype;
addGeometry(_local9, _local6);
mx.events.UIEventDispatcher.initialize(_local6);
var _local13 = mx.skins.ColoredSkinElement;
mx.styles.CSSTextStyles.addTextStyles(_local6);
var _local5 = MovieClip.prototype;
_local5.getTopLevel = _local6.getTopLevel;
_local5.createLabel = _local6.createLabel;
_local5.createObject = _local6.createObject;
_local5.createClassObject = _local6.createClassObject;
_local5.createEmptyObject = _local6.createEmptyObject;
_local5.destroyObject = _local6.destroyObject;
_global.ASSetPropFlags(_local5, "getTopLevel", 1);
_global.ASSetPropFlags(_local5, "createLabel", 1);
_global.ASSetPropFlags(_local5, "createObject", 1);
_global.ASSetPropFlags(_local5, "createClassObject", 1);
_global.ASSetPropFlags(_local5, "createEmptyObject", 1);
_global.ASSetPropFlags(_local5, "destroyObject", 1);
_local5.__getTextFormat = _local6.__getTextFormat;
_local5._getTextFormat = _local6._getTextFormat;
_local5.getStyleName = _local6.getStyleName;
_local5.getStyle = _local6.getStyle;
_global.ASSetPropFlags(_local5, "__getTextFormat", 1);
_global.ASSetPropFlags(_local5, "_getTextFormat", 1);
_global.ASSetPropFlags(_local5, "getStyleName", 1);
_global.ASSetPropFlags(_local5, "getStyle", 1);
var _local7 = TextField.prototype;
addGeometry(_local7, _local6);
_local7.addProperty("enabled", function () {
return(this.__enabled);
}, function (x) {
this.__enabled = x;
this.invalidateStyle();
});
_local7.move = _local9.move;
_local7.setSize = _local9.setSize;
_local7.invalidateStyle = function () {
this.invalidateFlag = true;
};
_local7.draw = function () {
if (this.invalidateFlag) {
this.invalidateFlag = false;
var _local2 = this._getTextFormat();
this.setTextFormat(_local2);
this.setNewTextFormat(_local2);
this.embedFonts = _local2.embedFonts == true;
if (this.__text != undefined) {
if (this.text == "") {
this.text = this.__text;
}
delete this.__text;
}
this._visible = true;
}
};
_local7.setColor = function (color) {
this.textColor = color;
};
_local7.getStyle = _local5.getStyle;
_local7.__getTextFormat = _local6.__getTextFormat;
_local7.setValue = function (v) {
this.text = v;
};
_local7.getValue = function () {
return(this.text);
};
_local7.addProperty("value", function () {
return(this.getValue());
}, function (v) {
this.setValue(v);
});
_local7._getTextFormat = function () {
var _local2 = this.stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
this.__getTextFormat(_local2);
this.stylecache.tf = _local2;
if (this.__enabled == false) {
if (this.enabledColor == undefined) {
var _local4 = this.getTextFormat();
this.enabledColor = _local4.color;
}
var _local3 = this.getStyle("disabledColor");
_local2.color = _local3;
} else if (this.enabledColor != undefined) {
if (_local2.color == undefined) {
_local2.color = this.enabledColor;
}
}
return(_local2);
};
_local7.getPreferredWidth = function () {
this.draw();
return(this.textWidth + 4);
};
_local7.getPreferredHeight = function () {
this.draw();
return(this.textHeight + 4);
};
TextFormat.prototype.getTextExtent2 = function (s) {
var _local3 = _root._getTextExtent;
if (_local3 == undefined) {
_root.createTextField("_getTextExtent", -2, 0, 0, 1000, 100);
_local3 = _root._getTextExtent;
_local3._visible = false;
}
_root._getTextExtent.text = s;
var _local4 = this.align;
this.align = "left";
_root._getTextExtent.setTextFormat(this);
this.align = _local4;
return({width:_local3.textWidth, height:_local3.textHeight});
};
if (_global.style == undefined) {
_global.style = new mx.styles.CSSStyleDeclaration();
_global.cascadingStyles = true;
_global.styles = new Object();
_global.skinRegistry = new Object();
if (_global._origWidth == undefined) {
_global.origWidth = Stage.width;
_global.origHeight = Stage.height;
}
}
var _local4 = _root;
while (_local4._parent != undefined) {
_local4 = _local4._parent;
}
_local4.addProperty("width", function () {
return(Stage.width);
}, null);
_local4.addProperty("height", function () {
return(Stage.height);
}, null);
_global.ASSetPropFlags(_local4, "width", 1);
_global.ASSetPropFlags(_local4, "height", 1);
return(true);
}
static var bExtended = false;
static var UIObjectExtended = Extensions();
static var UIObjectDependency = mx.core.UIObject;
static var SkinElementDependency = mx.skins.SkinElement;
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
static var UIEventDispatcherDependency = mx.events.UIEventDispatcher;
}
Symbol 37 MovieClip [__Packages.mx.controls.SimpleButton] Frame 0
class mx.controls.SimpleButton extends mx.core.UIComponent
{
static var emphasizedStyleDeclaration;
var preset, boundingBox_mc, useHandCursor, skinName, linkLength, iconName, destroyObject, __width, _width, __height, _height, __emphaticStyleName, styleName, enabled, invalidate, pressFocus, dispatchEvent, autoRepeat, interval, getStyle, releaseFocus, createLabel, invalidateStyle;
function SimpleButton () {
super();
}
function init(Void) {
super.init();
if (preset == undefined) {
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
useHandCursor = false;
}
function createChildren(Void) {
if (preset != undefined) {
var _local2 = this[idNames[preset]];
this[refNames[preset]] = _local2;
skinName = _local2;
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
initializing = false;
} else if (__state == true) {
setStateVar(true);
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
}
}
function setIcon(tag, linkageName) {
return(setSkin(tag + 8, linkageName));
}
function changeIcon(tag, linkageName) {
linkLength = linkageName.length;
var _local2 = stateNames[tag] + "Icon";
this[_local2] = linkageName;
this[idNames[tag + 8]] = _local2;
setStateVar(getState());
}
function changeSkin(tag, linkageName) {
var _local2 = stateNames[tag] + "Skin";
this[_local2] = linkageName;
this[idNames[tag]] = _local2;
setStateVar(getState());
}
function viewIcon(varName) {
var _local4 = varName + "Icon";
var _local3 = this[_local4];
if (typeof(_local3) == "string") {
var _local5 = _local3;
if (__emphasized) {
if (this[_local3 + "Emphasized"].length > 0) {
_local3 = _local3 + "Emphasized";
}
}
if (this[_local3].length == 0) {
return(undefined);
}
_local3 = setIcon(tagMap[_local5], this[_local3]);
if ((_local3 == undefined) && (_global.isLivePreview)) {
_local3 = setIcon(0, "ButtonIcon");
}
this[_local4] = _local3;
}
iconName._visible = false;
iconName = _local3;
iconName._visible = true;
}
function removeIcons() {
var _local3 = 0;
while (_local3 < 2) {
var _local2 = 8;
while (_local2 < 16) {
destroyObject(idNames[_local2]);
this[stateNames[_local2 - 8] + "Icon"] = "";
_local2++;
}
_local3++;
}
refresh();
}
function setSkin(tag, linkageName, initobj) {
var _local3 = super.setSkin(tag, linkageName, ((initobj != undefined) ? (initobj) : ({styleName:this})));
calcSize(tag, _local3);
return(_local3);
}
function calcSize(Void) {
__width = _width;
__height = _height;
}
function viewSkin(varName, initObj) {
var _local3 = varName + "Skin";
var _local2 = this[_local3];
if (typeof(_local2) == "string") {
var _local4 = _local2;
if (__emphasized) {
if (this[_local2 + "Emphasized"].length > 0) {
_local2 = _local2 + "Emphasized";
}
}
if (this[_local2].length == 0) {
return(undefined);
}
_local2 = setSkin(tagMap[_local4], this[_local2], ((initObj != undefined) ? (initObj) : ({styleName:this})));
this[_local3] = _local2;
}
skinName._visible = false;
skinName = _local2;
skinName._visible = true;
}
function showEmphasized(e) {
if (e && (!__emphatic)) {
if (emphasizedStyleDeclaration != undefined) {
__emphaticStyleName = styleName;
styleName = emphasizedStyleDeclaration;
}
__emphatic = true;
} else {
if (__emphatic) {
styleName = __emphaticStyleName;
}
__emphatic = false;
}
}
function refresh(Void) {
var _local2 = getState();
if (enabled == false) {
viewIcon("disabled");
viewSkin("disabled");
} else {
viewSkin(phase);
viewIcon(phase);
}
setView(phase == "down");
iconName.enabled = enabled;
}
function setView(offset) {
if (iconName == undefined) {
return(undefined);
}
var _local2 = (offset ? (btnOffset) : 0);
iconName._x = ((__width - iconName._width) / 2) + _local2;
iconName._y = ((__height - iconName._height) / 2) + _local2;
}
function setStateVar(state) {
if (state) {
if (trueOverSkin.length == 0) {
rolloverSkin = tus;
} else {
rolloverSkin = trs;
}
if (trueOverIcon.length == 0) {
rolloverIcon = tui;
} else {
rolloverIcon = tri;
}
upSkin = tus;
downSkin = tds;
disabledSkin = dts;
upIcon = tui;
downIcon = tdi;
disabledIcon = dti;
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
} else {
rolloverSkin = frs;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
} else {
rolloverIcon = fri;
}
upSkin = fus;
downSkin = fds;
disabledSkin = dfs;
upIcon = fui;
downIcon = fdi;
disabledIcon = dfi;
}
__state = state;
}
function setState(state) {
if (state != __state) {
setStateVar(state);
invalidate();
}
}
function size(Void) {
refresh();
}
function draw(Void) {
if (initializing) {
initializing = false;
skinName.visible = true;
iconName.visible = true;
}
size();
}
function getState(Void) {
return(__state);
}
function setToggle(val) {
__toggle = val;
if (__toggle == false) {
setState(false);
}
}
function getToggle(Void) {
return(__toggle);
}
function set toggle(val) {
setToggle(val);
//return(toggle);
}
function get toggle() {
return(getToggle());
}
function set value(val) {
setSelected(val);
//return(value);
}
function get value() {
return(getSelected());
}
function set selected(val) {
setSelected(val);
//return(selected);
}
function get selected() {
return(getSelected());
}
function setSelected(val) {
if (__toggle) {
setState(val);
} else {
setState((initializing ? (val) : (__state)));
}
}
function getSelected() {
return(__state);
}
function setEnabled(val) {
if (enabled != val) {
super.setEnabled(val);
invalidate();
}
}
function onPress(Void) {
pressFocus();
phase = "down";
refresh();
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
interval = setInterval(this, "onPressDelay", getStyle("repeatDelay"));
}
}
function onPressDelay(Void) {
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
clearInterval(interval);
interval = setInterval(this, "onPressRepeat", getStyle("repeatInterval"));
}
}
function onPressRepeat(Void) {
dispatchEvent({type:"buttonDown"});
updateAfterEvent();
}
function onRelease(Void) {
releaseFocus();
phase = "rollover";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
if (getToggle()) {
setState(!getState());
} else {
refresh();
}
dispatchEvent({type:"click"});
}
function onDragOut(Void) {
phase = "up";
refresh();
dispatchEvent({type:"buttonDragOut"});
}
function onDragOver(Void) {
if (phase != "up") {
onPress();
return(undefined);
}
phase = "down";
refresh();
}
function onReleaseOutside(Void) {
releaseFocus();
phase = "up";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
}
function onRollOver(Void) {
phase = "rollover";
refresh();
}
function onRollOut(Void) {
phase = "up";
refresh();
}
function getLabel(Void) {
return(fui.text);
}
function setLabel(val) {
if (typeof(fui) == "string") {
createLabel("fui", 8, val);
fui.styleName = this;
} else {
fui.text = val;
}
var _local4 = fui._getTextFormat();
var _local2 = _local4.getTextExtent2(val);
fui._width = _local2.width + 5;
fui._height = _local2.height + 5;
iconName = fui;
setView(__state);
}
function get emphasized() {
return(__emphasized);
}
function set emphasized(val) {
__emphasized = val;
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]] = stateNames[_local2] + "Skin";
if (typeof(this[idNames[_local2 + 8]]) == "movieclip") {
this[idNames[_local2 + 8]] = stateNames[_local2] + "Icon";
}
_local2++;
}
showEmphasized(__emphasized);
setStateVar(__state);
invalidateStyle();
//return(emphasized);
}
function keyDown(e) {
if (e.code == 32) {
onPress();
}
}
function keyUp(e) {
if (e.code == 32) {
onRelease();
}
}
function onKillFocus(newFocus) {
super.onKillFocus();
if (phase != "up") {
phase = "up";
refresh();
}
}
static var symbolName = "SimpleButton";
static var symbolOwner = mx.controls.SimpleButton;
static var version = "2.0.2.126";
var className = "SimpleButton";
var style3dInset = 4;
var btnOffset = 1;
var __toggle = false;
var __state = false;
var __emphasized = false;
var __emphatic = false;
static var falseUp = 0;
static var falseDown = 1;
static var falseOver = 2;
static var falseDisabled = 3;
static var trueUp = 4;
static var trueDown = 5;
static var trueOver = 6;
static var trueDisabled = 7;
var falseUpSkin = "SimpleButtonUp";
var falseDownSkin = "SimpleButtonIn";
var falseOverSkin = "";
var falseDisabledSkin = "SimpleButtonUp";
var trueUpSkin = "SimpleButtonIn";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "SimpleButtonIn";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var phase = "up";
var fui = "falseUpIcon";
var fus = "falseUpSkin";
var fdi = "falseDownIcon";
var fds = "falseDownSkin";
var frs = "falseOverSkin";
var fri = "falseOverIcon";
var dfi = "falseDisabledIcon";
var dfs = "falseDisabledSkin";
var tui = "trueUpIcon";
var tus = "trueUpSkin";
var tdi = "trueDownIcon";
var tds = "trueDownSkin";
var trs = "trueOverSkin";
var tri = "trueOverIcon";
var dts = "trueDisabledSkin";
var dti = "trueDisabledIcon";
var rolloverSkin = mx.controls.SimpleButton.prototype.frs;
var rolloverIcon = mx.controls.SimpleButton.prototype.fri;
var upSkin = mx.controls.SimpleButton.prototype.fus;
var downSkin = mx.controls.SimpleButton.prototype.fds;
var disabledSkin = mx.controls.SimpleButton.prototype.dfs;
var upIcon = mx.controls.SimpleButton.prototype.fui;
var downIcon = mx.controls.SimpleButton.prototype.fdi;
var disabledIcon = mx.controls.SimpleButton.prototype.dfi;
var initializing = true;
var idNames = ["fus", "fds", "frs", "dfs", "tus", "tds", "trs", "dts", "fui", "fdi", "fri", "dfi", "tui", "tdi", "tri", "dti"];
var stateNames = ["falseUp", "falseDown", "falseOver", "falseDisabled", "trueUp", "trueDown", "trueOver", "trueDisabled"];
var refNames = ["upSkin", "downSkin", "rolloverSkin", "disabledSkin"];
var tagMap = {falseUpSkin:0, falseDownSkin:1, falseOverSkin:2, falseDisabledSkin:3, trueUpSkin:4, trueDownSkin:5, trueOverSkin:6, trueDisabledSkin:7, falseUpIcon:0, falseDownIcon:1, falseOverIcon:2, falseDisabledIcon:3, trueUpIcon:4, trueDownIcon:5, trueOverIcon:6, trueDisabledIcon:7};
}
Symbol 38 MovieClip [__Packages.mx.managers.SystemManager] Frame 0
class mx.managers.SystemManager
{
static var _xAddEventListener, addEventListener, __addEventListener, _xRemoveEventListener, removeEventListener, __removeEventListener, form, __screen, dispatchEvent;
function SystemManager () {
}
static function init(Void) {
if (_initialized == false) {
_initialized = true;
mx.events.EventDispatcher.initialize(mx.managers.SystemManager);
Mouse.addListener(mx.managers.SystemManager);
Stage.addListener(mx.managers.SystemManager);
_xAddEventListener = addEventListener;
addEventListener = __addEventListener;
_xRemoveEventListener = removeEventListener;
removeEventListener = __removeEventListener;
}
}
static function addFocusManager(f) {
form = f;
f.focusManager.activate();
}
static function removeFocusManager(f) {
}
static function onMouseDown(Void) {
var _local1 = form;
_local1.focusManager._onMouseDown();
}
static function onResize(Void) {
var _local7 = Stage.width;
var _local6 = Stage.height;
var _local9 = _global.origWidth;
var _local8 = _global.origHeight;
var _local3 = Stage.align;
var _local5 = (_local9 - _local7) / 2;
var _local4 = (_local8 - _local6) / 2;
if (_local3 == "T") {
_local4 = 0;
} else if (_local3 == "B") {
_local4 = _local8 - _local6;
} else if (_local3 == "L") {
_local5 = 0;
} else if (_local3 == "R") {
_local5 = _local9 - _local7;
} else if (_local3 == "LT") {
_local4 = 0;
_local5 = 0;
} else if (_local3 == "TR") {
_local4 = 0;
_local5 = _local9 - _local7;
} else if (_local3 == "LB") {
_local4 = _local8 - _local6;
_local5 = 0;
} else if (_local3 == "RB") {
_local4 = _local8 - _local6;
_local5 = _local9 - _local7;
}
if (__screen == undefined) {
__screen = new Object();
}
__screen.x = _local5;
__screen.y = _local4;
__screen.width = _local7;
__screen.height = _local6;
_root.focusManager.relocate();
dispatchEvent({type:"resize"});
}
static function get screen() {
init();
if (__screen == undefined) {
onResize();
}
return(__screen);
}
static var _initialized = false;
static var idleFrames = 0;
static var isMouseDown = false;
static var forms = new Array();
}
Symbol 39 MovieClip [__Packages.mx.managers.FocusManager] Frame 0
class mx.managers.FocusManager extends mx.core.UIComponent
{
var __defaultPushButton, defPushButton, form, move, tabEnabled, _width, _height, _x, _y, _alpha, _parent, tabCapture, watch, lastMouse, _visible, lastFocus, doLater, lastSelFocus, cancelAllDoLaters, _searchKey, _lastTarget, _firstNode, _nextIsNext, _nextNode, _lastx, _prevNode, _needPrev, _foundList, _prevObj, _nextObj, _firstObj, _lastObj, _lastNode, lastTabFocus, findFocusFromObject;
function FocusManager () {
super();
}
function get defaultPushButton() {
return(__defaultPushButton);
}
function set defaultPushButton(x) {
if (x != __defaultPushButton) {
__defaultPushButton.__set__emphasized(false);
__defaultPushButton = x;
defPushButton = x;
x.__set__emphasized(true);
}
//return(defaultPushButton);
}
function getMaxTabIndex(o) {
var _local3 = 0;
var _local6;
for (_local6 in o) {
var _local2 = o[_local6];
if (_local2._parent == o) {
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex > _local3) {
_local3 = _local2.tabIndex;
}
}
if (_local2.tabChildren == true) {
var _local4 = getMaxTabIndex(_local2);
if (_local4 > _local3) {
_local3 = _local4;
}
}
}
}
return(_local3);
}
function getNextTabIndex(Void) {
return(getMaxTabIndex(form) + 1);
}
function get nextTabIndex() {
return(getNextTabIndex());
}
function relocate(Void) {
var _local2 = mx.managers.SystemManager.__get__screen();
move(_local2.x - 1, _local2.y - 1);
}
function init(Void) {
super.init();
tabEnabled = false;
_width = (_height = 1);
_x = (_y = -1);
_alpha = 0;
_parent.focusManager = this;
_parent.tabChildren = true;
_parent.tabEnabled = false;
form = _parent;
_parent.addEventListener("hide", this);
_parent.addEventListener("reveal", this);
mx.managers.SystemManager.init();
mx.managers.SystemManager.addFocusManager(form);
tabCapture.tabIndex = 0;
watch("enabled", enabledChanged);
Selection.addListener(this);
lastMouse = new Object();
_global.ASSetPropFlags(_parent, "focusManager", 1);
_global.ASSetPropFlags(_parent, "tabChildren", 1);
_global.ASSetPropFlags(_parent, "tabEnabled", 1);
}
function enabledChanged(id, oldValue, newValue) {
_visible = newValue;
return(newValue);
}
function activate(Void) {
Key.addListener(this);
activated = (_visible = true);
if (lastFocus != undefined) {
bNeedFocus = true;
if (!mx.managers.SystemManager.isMouseDown) {
doLater(this, "restoreFocus");
}
}
}
function deactivate(Void) {
Key.removeListener(this);
activated = (_visible = false);
var _local2 = getSelectionFocus();
var _local3 = getActualFocus(_local2);
if (isOurFocus(_local3)) {
lastSelFocus = _local2;
lastFocus = _local3;
}
cancelAllDoLaters();
}
function isOurFocus(o) {
if (o.focusManager == this) {
return(true);
}
while (o != undefined) {
if (o.focusManager != undefined) {
return(false);
}
if (o._parent == _parent) {
return(true);
}
o = o._parent;
}
return(false);
}
function onSetFocus(o, n) {
if (n == null) {
if (activated) {
bNeedFocus = true;
}
} else {
var _local2 = getFocus();
if (isOurFocus(_local2)) {
bNeedFocus = false;
lastFocus = _local2;
lastSelFocus = n;
}
}
}
function restoreFocus(Void) {
var _local2 = lastSelFocus.hscroll;
if (_local2 != undefined) {
var _local5 = lastSelFocus.scroll;
var _local4 = lastSelFocus.background;
}
lastFocus.setFocus();
var _local3 = Selection;
Selection.setSelection(_local3.lastBeginIndex, _local3.lastEndIndex);
if (_local2 != undefined) {
lastSelFocus.scroll = _local5;
lastSelFocus.hscroll = _local2;
lastSelFocus.background = _local4;
}
}
function onUnload(Void) {
mx.managers.SystemManager.removeFocusManager(form);
}
function setFocus(o) {
if (o == null) {
Selection.setFocus(null);
} else if (o.setFocus == undefined) {
Selection.setFocus(o);
} else {
o.setFocus();
}
}
function getActualFocus(o) {
var _local1 = o._parent;
while (_local1 != undefined) {
if (_local1.focusTextField != undefined) {
while (_local1.focusTextField != undefined) {
o = _local1;
_local1 = _local1._parent;
if (_local1 == undefined) {
return(undefined);
}
if (_local1.focusTextField == undefined) {
return(o);
}
}
}
if (_local1.tabEnabled != true) {
return(o);
}
o = _local1;
_local1 = o._parent;
}
return(undefined);
}
function getSelectionFocus() {
var m = Selection.getFocus();
var o = eval (m);
return(o);
}
function getFocus(Void) {
var _local2 = getSelectionFocus();
return(getActualFocus(_local2));
}
function walkTree(p, index, groupName, dir, lookup, firstChild) {
var _local5 = true;
var _local11;
for (_local11 in p) {
var _local2 = p[_local11];
if ((((_local2._parent == p) && (_local2.enabled != false)) && (_local2._visible != false)) && ((_local2.tabEnabled == true) || ((_local2.tabEnabled != false) && ((((((((_local2.onPress != undefined) || (_local2.onRelease != undefined)) || (_local2.onReleaseOutside != undefined)) || (_local2.onDragOut != undefined)) || (_local2.onDragOver != undefined)) || (_local2.onRollOver != undefined)) || (_local2.onRollOut != undefined)) || (_local2 instanceof TextField))))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_local2 != _lastTarget) {
if (((_local2.groupName != undefined) || (groupName != undefined)) && (_local2.groupName == groupName)) {
continue;
}
if ((_local2 instanceof TextField) && (_local2.selectable == false)) {
continue;
}
if (_local5 || (((_local2.groupName != undefined) && (_local2.groupName == _firstNode.groupName)) && (_local2.selected == true))) {
if (firstChild) {
_firstNode = _local2;
firstChild = false;
}
}
if (_nextIsNext == true) {
if ((((_local2.groupName != undefined) && (_local2.groupName == _nextNode.groupName)) && (_local2.selected == true)) || ((_nextNode == undefined) && ((_local2.groupName == undefined) || ((_local2.groupName != undefined) && (_local2.groupName != groupName))))) {
_nextNode = _local2;
}
}
if ((_local2.groupName == undefined) || (groupName != _local2.groupName)) {
if (((_lastx.groupName != undefined) && (_local2.groupName == _lastx.groupName)) && (_lastx.selected == true)) {
} else {
_lastx = _local2;
}
}
} else {
_prevNode = _lastx;
_needPrev = false;
_nextIsNext = true;
}
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex == index) {
if (_foundList[_local2._name] == undefined) {
if (_needPrev) {
_prevObj = _local2;
_needPrev = false;
}
_nextObj = _local2;
}
}
if (dir && (_local2.tabIndex > index)) {
if (((_nextObj == undefined) || ((_nextObj.tabIndex > _local2.tabIndex) && (((_local2.groupName == undefined) || (_nextObj.groupName == undefined)) || (_local2.groupName != _nextObj.groupName)))) || ((((_nextObj.groupName != undefined) && (_nextObj.groupName == _local2.groupName)) && (_nextObj.selected != true)) && ((_local2.selected == true) || (_nextObj.tabIndex > _local2.tabIndex)))) {
_nextObj = _local2;
}
} else if ((!dir) && (_local2.tabIndex < index)) {
if (((_prevObj == undefined) || ((_prevObj.tabIndex < _local2.tabIndex) && (((_local2.groupName == undefined) || (_prevObj.groupName == undefined)) || (_local2.groupName != _prevObj.groupName)))) || ((((_prevObj.groupName != undefined) && (_prevObj.groupName == _local2.groupName)) && (_prevObj.selected != true)) && ((_local2.selected == true) || (_prevObj.tabIndex < _local2.tabIndex)))) {
_prevObj = _local2;
}
}
if (((_firstObj == undefined) || ((_local2.tabIndex < _firstObj.tabIndex) && (((_local2.groupName == undefined) || (_firstObj.groupName == undefined)) || (_local2.groupName != _firstObj.groupName)))) || ((((_firstObj.groupName != undefined) && (_firstObj.groupName == _local2.groupName)) && (_firstObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex < _firstObj.tabIndex)))) {
_firstObj = _local2;
}
if (((_lastObj == undefined) || ((_local2.tabIndex > _lastObj.tabIndex) && (((_local2.groupName == undefined) || (_lastObj.groupName == undefined)) || (_local2.groupName != _lastObj.groupName)))) || ((((_lastObj.groupName != undefined) && (_lastObj.groupName == _local2.groupName)) && (_lastObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex > _lastObj.tabIndex)))) {
_lastObj = _local2;
}
}
if (_local2.tabChildren) {
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
} else if (((_local2._parent == p) && (_local2.tabChildren == true)) && (_local2._visible != false)) {
if (_local2 == _lastTarget) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_prevNode == undefined) {
var _local3 = _lastx;
var _local7 = false;
while (_local3 != undefined) {
if (_local3 == _local2) {
_local7 = true;
break;
}
_local3 = _local3._parent;
}
if (_local7 == false) {
_prevNode = _lastx;
}
}
_needPrev = false;
if (_nextNode == undefined) {
_nextIsNext = true;
}
} else if (!((_local2.focusManager != undefined) && (_local2.focusManager._parent == _local2))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
}
}
_lastNode = _lastx;
if (lookup) {
if (p._parent != undefined) {
if (p != _parent) {
if ((_prevNode == undefined) && (dir)) {
_needPrev = true;
} else if ((_nextNode == undefined) && (!dir)) {
_nextIsNext = false;
}
_lastTarget = _lastTarget._parent;
getTabCandidate(p._parent, index, groupName, dir, true);
}
}
}
}
function getTabCandidate(o, index, groupName, dir, firstChild) {
var _local2;
var _local3 = true;
if (o == _parent) {
_local2 = o;
_local3 = false;
} else {
_local2 = o._parent;
if (_local2 == undefined) {
_local2 = o;
_local3 = false;
}
}
walkTree(_local2, index, groupName, dir, _local3, firstChild);
}
function getTabCandidateFromChildren(o, index, groupName, dir, firstChild) {
walkTree(o, index, groupName, dir, false, firstChild);
}
function getFocusManagerFromObject(o) {
while (o != undefined) {
if (o.focusManager != undefined) {
return(o.focusManager);
}
o = o._parent;
}
return(undefined);
}
function tabHandler(Void) {
bDrawFocus = true;
var _local5 = getSelectionFocus();
var _local4 = getActualFocus(_local5);
if (_local4 != _local5) {
_local5 = _local4;
}
if (getFocusManagerFromObject(_local5) != this) {
_local5 == undefined;
}
if (_local5 == undefined) {
_local5 = form;
} else if (_local5.tabIndex != undefined) {
if ((_foundList != undefined) || (_foundList.tabIndex != _local5.tabIndex)) {
_foundList = new Object();
_foundList.tabIndex = _local5.tabIndex;
}
_foundList[_local5._name] = _local5;
}
var _local3 = Key.isDown(16) != true;
_searchKey = getTimer();
_needPrev = true;
_nextIsNext = false;
_lastx = undefined;
_firstNode = undefined;
_lastNode = undefined;
_nextNode = undefined;
_prevNode = undefined;
_firstObj = undefined;
_lastObj = undefined;
_nextObj = undefined;
_prevObj = undefined;
_lastTarget = _local5;
var _local6 = _local5;
getTabCandidate(_local6, ((_local5.tabIndex == undefined) ? 0 : (_local5.tabIndex)), _local5.groupName, _local3, true);
var _local2;
if (_local3) {
if (_nextObj != undefined) {
_local2 = _nextObj;
} else {
_local2 = _firstObj;
}
} else if (_prevObj != undefined) {
_local2 = _prevObj;
} else {
_local2 = _lastObj;
}
if (_local2.tabIndex != _local5.tabIndex) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
_foundList[_local2._name] = _local2;
} else {
if (_foundList == undefined) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
}
_foundList[_local2._name] = _local2;
}
if (_local2 == undefined) {
if (_local3 == false) {
if (_nextNode != undefined) {
_local2 = _nextNode;
} else {
_local2 = _firstNode;
}
} else if ((_prevNode == undefined) || (_local5 == form)) {
_local2 = _lastNode;
} else {
_local2 = _prevNode;
}
}
if (_local2 == undefined) {
return(undefined);
}
lastTabFocus = _local2;
setFocus(_local2);
if (_local2.emphasized != undefined) {
if (defPushButton != undefined) {
_local5 = defPushButton;
defPushButton = _local2;
_local5.emphasized = false;
_local2.emphasized = true;
}
} else if ((defPushButton != undefined) && (defPushButton != __defaultPushButton)) {
_local5 = defPushButton;
defPushButton = __defaultPushButton;
_local5.emphasized = false;
__defaultPushButton.__set__emphasized(true);
}
}
function onKeyDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
if (defaultPushButtonEnabled) {
if (Key.getCode() == 13) {
if (defaultPushButton != undefined) {
doLater(this, "sendDefaultPushButtonEvent");
}
}
}
}
function sendDefaultPushButtonEvent(Void) {
defPushButton.dispatchEvent({type:"click"});
}
function getMousedComponentFromChildren(x, y, o) {
for (var _local7 in o) {
var _local2 = o[_local7];
if (((_local2._visible && (_local2.enabled)) && (_local2._parent == o)) && (_local2._searchKey != _searchKey)) {
_local2._searchKey = _searchKey;
if (_local2.hitTest(x, y, true)) {
if ((_local2.onPress != undefined) || (_local2.onRelease != undefined)) {
return(_local2);
}
var _local3 = getMousedComponentFromChildren(x, y, _local2);
if (_local3 != undefined) {
return(_local3);
}
return(_local2);
}
}
}
return(undefined);
}
function mouseActivate(Void) {
if (!bNeedFocus) {
return(undefined);
}
_searchKey = getTimer();
var _local2 = getMousedComponentFromChildren(lastMouse.x, lastMouse.y, form);
if (_local2 instanceof mx.core.UIComponent) {
return(undefined);
}
_local2 = findFocusFromObject(_local2);
if (_local2 == lastFocus) {
return(undefined);
}
if (_local2 == undefined) {
doLater(this, "restoreFocus");
return(undefined);
}
var _local3 = _local2.hscroll;
if (_local3 != undefined) {
var _local6 = _local2.scroll;
var _local5 = _local2.background;
}
setFocus(_local2);
var _local4 = Selection;
Selection.setSelection(_local4.lastBeginIndex, _local4.lastEndIndex);
if (_local3 != undefined) {
_local2.scroll = _local6;
_local2.hscroll = _local3;
_local2.background = _local5;
}
}
function _onMouseDown(Void) {
bDrawFocus = false;
if (lastFocus != undefined) {
lastFocus.drawFocus(false);
}
mx.managers.SystemManager.idleFrames = 0;
var _local3 = Selection;
_local3.lastBeginIndex = Selection.getBeginIndex();
_local3.lastEndIndex = Selection.getEndIndex();
lastMouse.x = _root._xmouse;
lastMouse.y = _root._ymouse;
_root.localToGlobal(lastMouse);
}
function onMouseUp(Void) {
if (_visible) {
doLater(this, "mouseActivate");
}
}
function handleEvent(e) {
if (e.type == "reveal") {
mx.managers.SystemManager.activate(form);
} else {
mx.managers.SystemManager.deactivate(form);
}
}
static function enableFocusManagement() {
if (!initialized) {
initialized = true;
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
}
}
static var symbolName = "FocusManager";
static var symbolOwner = mx.managers.FocusManager;
static var version = "2.0.2.126";
var className = "FocusManager";
var bNeedFocus = false;
var bDrawFocus = false;
var defaultPushButtonEnabled = true;
var activated = true;
static var initialized = false;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 40 MovieClip [__Packages.mx.skins.halo.Defaults] Frame 0
class mx.skins.halo.Defaults
{
var beginGradientFill, beginFill, moveTo, lineTo, curveTo, endFill;
function Defaults () {
}
static function setThemeDefaults() {
var _local2 = _global.style;
_local2.themeColor = 8453965 /* 0x80FF4D */;
_local2.disabledColor = 8684164 /* 0x848284 */;
_local2.modalTransparency = 0;
_local2.filled = true;
_local2.stroked = true;
_local2.strokeWidth = 1;
_local2.strokeColor = 0;
_local2.fillColor = 16777215 /* 0xFFFFFF */;
_local2.repeatInterval = 35;
_local2.repeatDelay = 500;
_local2.fontFamily = "_sans";
_local2.fontSize = 12;
_local2.selectionColor = 13500353 /* 0xCDFFC1 */;
_local2.rollOverColor = 14942166 /* 0xE3FFD6 */;
_local2.useRollOver = true;
_local2.backgroundDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDuration = 200;
_local2.openDuration = 250;
_local2.borderStyle = "inset";
_local2.color = 734012 /* 0x0B333C */;
_local2.textSelectedColor = 24371;
_local2.textRollOverColor = 2831164 /* 0x2B333C */;
_local2.textDisabledColor = 16777215 /* 0xFFFFFF */;
_local2.vGridLines = true;
_local2.hGridLines = false;
_local2.vGridLineColor = 6710886 /* 0x666666 */;
_local2.hGridLineColor = 6710886 /* 0x666666 */;
_local2.headerColor = 15395562 /* 0xEAEAEA */;
_local2.indentation = 17;
_local2.folderOpenIcon = "TreeFolderOpen";
_local2.folderClosedIcon = "TreeFolderClosed";
_local2.defaultLeafIcon = "TreeNodeIcon";
_local2.disclosureOpenIcon = "TreeDisclosureOpen";
_local2.disclosureClosedIcon = "TreeDisclosureClosed";
_local2.popupDuration = 150;
_local2.todayColor = 6710886 /* 0x666666 */;
_local2 = (_global.styles.ScrollSelectList = new mx.styles.CSSStyleDeclaration());
_local2.backgroundColor = 16777215 /* 0xFFFFFF */;
_local2.borderColor = 13290186 /* 0xCACACA */;
_local2.borderStyle = "inset";
_local2 = (_global.styles.ComboBox = new mx.styles.CSSStyleDeclaration());
_local2.borderStyle = "inset";
_local2 = (_global.styles.NumericStepper = new mx.styles.CSSStyleDeclaration());
_local2.textAlign = "center";
_local2 = (_global.styles.RectBorder = new mx.styles.CSSStyleDeclaration());
_local2.borderColor = 14015965 /* 0xD5DDDD */;
_local2.buttonColor = 7305079 /* 0x6F7777 */;
_local2.shadowColor = 15658734 /* 0xEEEEEE */;
_local2.highlightColor = 12897484 /* 0xC4CCCC */;
_local2.shadowCapColor = 14015965 /* 0xD5DDDD */;
_local2.borderCapColor = 9542041 /* 0x919999 */;
var _local4 = new Object();
_local4.borderColor = 16711680 /* 0xFF0000 */;
_local4.buttonColor = 16711680 /* 0xFF0000 */;
_local4.shadowColor = 16711680 /* 0xFF0000 */;
_local4.highlightColor = 16711680 /* 0xFF0000 */;
_local4.shadowCapColor = 16711680 /* 0xFF0000 */;
_local4.borderCapColor = 16711680 /* 0xFF0000 */;
mx.core.UIComponent.prototype.origBorderStyles = _local4;
var _local3;
_local3 = (_global.styles.TextInput = new mx.styles.CSSStyleDeclaration());
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderStyle = "inset";
_global.styles.TextArea = _global.styles.TextInput;
_local3 = (_global.styles.Window = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "default";
_local3 = (_global.styles.windowStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.dataGridStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.Alert = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "alert";
_local3 = (_global.styles.ScrollView = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "inset";
_local3 = (_global.styles.View = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "none";
_local3 = (_global.styles.ProgressBar = new mx.styles.CSSStyleDeclaration());
_local3.color = 11187123 /* 0xAAB3B3 */;
_local3.fontWeight = "bold";
_local3 = (_global.styles.AccordionHeader = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = "11";
_local3 = (_global.styles.Accordion = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "solid";
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderColor = 9081738 /* 0x8A938A */;
_local3.headerHeight = 22;
_local3.marginLeft = (_local3.marginRight = (_local3.marginTop = (_local3.marginBottom = -1)));
_local3.verticalGap = -1;
_local3 = (_global.styles.DateChooser = new mx.styles.CSSStyleDeclaration());
_local3.borderColor = 9542041 /* 0x919999 */;
_local3.headerColor = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.CalendarLayout = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 10;
_local3.textAlign = "right";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.WeekDayStyle = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = 11;
_local3.textAlign = "center";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.TodayStyle = new mx.styles.CSSStyleDeclaration());
_local3.color = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.HeaderDateText = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 12;
_local3.fontWeight = "bold";
_local3.textAlign = "center";
}
function drawRoundRect(x, y, w, h, r, c, alpha, rot, gradient, ratios) {
if (typeof(r) == "object") {
var _local18 = r.br;
var _local16 = r.bl;
var _local15 = r.tl;
var _local10 = r.tr;
} else {
var _local10 = r;
var _local15 = _local10;
var _local16 = _local15;
var _local18 = _local16;
}
if (typeof(c) == "object") {
if (typeof(alpha) != "object") {
var _local9 = [alpha, alpha];
} else {
var _local9 = alpha;
}
if (ratios == undefined) {
ratios = [0, 255];
}
var _local14 = h * 0.7;
if (typeof(rot) != "object") {
var _local11 = {matrixType:"box", x:-_local14, y:_local14, w:w * 2, h:h * 4, r:rot * 0.0174532925199433 /* Math.PI/180 */};
} else {
var _local11 = rot;
}
if (gradient == "radial") {
beginGradientFill("radial", c, _local9, ratios, _local11);
} else {
beginGradientFill("linear", c, _local9, ratios, _local11);
}
} else if (c != undefined) {
beginFill(c, alpha);
}
r = _local18;
var _local13 = r - (r * 0.707106781186547);
var _local12 = r - (r * 0.414213562373095);
moveTo(x + w, (y + h) - r);
lineTo(x + w, (y + h) - r);
curveTo(x + w, (y + h) - _local12, (x + w) - _local13, (y + h) - _local13);
curveTo((x + w) - _local12, y + h, (x + w) - r, y + h);
r = _local16;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x + r, y + h);
curveTo(x + _local12, y + h, x + _local13, (y + h) - _local13);
curveTo(x, (y + h) - _local12, x, (y + h) - r);
r = _local15;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x, y + r);
curveTo(x, y + _local12, x + _local13, y + _local13);
curveTo(x + _local12, y, x + r, y);
r = _local10;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo((x + w) - r, y);
curveTo((x + w) - _local12, y, (x + w) - _local13, y + _local13);
curveTo(x + w, y + _local12, x + w, y + r);
lineTo(x + w, (y + h) - r);
if (c != undefined) {
endFill();
}
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
setThemeDefaults();
mx.core.UIObject.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
static var UIObjectDependency = mx.core.UIObject;
}
Symbol 41 MovieClip [__Packages.mx.skins.halo.FocusRect] Frame 0
class mx.skins.halo.FocusRect extends mx.skins.SkinElement
{
var boundingBox_mc, _xscale, _yscale, clear, beginFill, drawRoundRect, endFill, _visible;
function FocusRect () {
super();
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function draw(o) {
o.adjustFocusRect();
}
function setSize(w, h, r, a, rectCol) {
_xscale = (_yscale = 100);
clear();
if (typeof(r) == "object") {
r.br = ((r.br > 2) ? (r.br - 2) : 0);
r.bl = ((r.bl > 2) ? (r.bl - 2) : 0);
r.tr = ((r.tr > 2) ? (r.tr - 2) : 0);
r.tl = ((r.tl > 2) ? (r.tl - 2) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
r.br = ((r.br > 1) ? (r.br + 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl + 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr + 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl + 1) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(1, 1, w - 2, h - 2, r);
r.br = ((r.br > 1) ? (r.br - 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl - 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr - 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl - 1) : 0);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
} else {
var _local5;
if (r != 0) {
_local5 = r - 2;
} else {
_local5 = 0;
}
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
beginFill(rectCol, a * 0.3);
if (r != 0) {
_local5 = r - 2;
r = r - 1;
} else {
_local5 = 0;
r = 0;
}
drawRoundRect(1, 1, w - 2, h - 2, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
}
}
function handleEvent(e) {
if (e.type == "unload") {
_visible = true;
} else if (e.type == "resize") {
e.target.adjustFocusRect();
} else if (e.type == "move") {
e.target.adjustFocusRect();
}
}
static function classConstruct() {
mx.core.UIComponent.prototype.drawFocus = function (focused) {
var _local2 = this._parent.focus_mc;
if (!focused) {
_local2._visible = false;
this.removeEventListener("unload", _local2);
this.removeEventListener("move", _local2);
this.removeEventListener("resize", _local2);
} else {
if (_local2 == undefined) {
_local2 = this._parent.createChildAtDepth("FocusRect", mx.managers.DepthManager.kTop);
_local2.tabEnabled = false;
this._parent.focus_mc = _local2;
} else {
_local2._visible = true;
}
_local2.draw(this);
if (_local2.getDepth() < this.getDepth()) {
_local2.setDepthAbove(this);
}
this.addEventListener("unload", _local2);
this.addEventListener("move", _local2);
this.addEventListener("resize", _local2);
}
};
mx.core.UIComponent.prototype.adjustFocusRect = function () {
var _local2 = this.getStyle("themeColor");
if (_local2 == undefined) {
_local2 = 8453965 /* 0x80FF4D */;
}
var _local3 = this._parent.focus_mc;
_local3.setSize(this.width + 4, this.height + 4, 0, 100, _local2);
_local3.move(this.x - 2, this.y - 2);
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.adjustFocusRect = mx.core.UIComponent.prototype.adjustFocusRect;
mx.skins.halo.FocusRect.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var DefaultsDependency = mx.skins.halo.Defaults;
static var UIComponentDependency = mx.core.UIComponent;
}
Symbol 42 MovieClip [__Packages.mx.managers.OverlappedWindows] Frame 0
class mx.managers.OverlappedWindows
{
function OverlappedWindows () {
}
static function checkIdle(Void) {
if (mx.managers.SystemManager.idleFrames > 10) {
mx.managers.SystemManager.dispatchEvent({type:"idle"});
} else {
mx.managers.SystemManager.idleFrames++;
}
}
static function __addEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager.interval == undefined) {
mx.managers.SystemManager.interval = setInterval(mx.managers.SystemManager.checkIdle, 100);
}
}
mx.managers.SystemManager._xAddEventListener(e, o, l);
}
static function __removeEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager._xRemoveEventListener(e, o, l) == 0) {
clearInterval(mx.managers.SystemManager.interval);
}
} else {
mx.managers.SystemManager._xRemoveEventListener(e, o, l);
}
}
static function onMouseDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
mx.managers.SystemManager.isMouseDown = true;
var _local5 = _root;
var _local3;
var _local8 = _root._xmouse;
var _local7 = _root._ymouse;
if (mx.managers.SystemManager.form.modalWindow == undefined) {
if (mx.managers.SystemManager.forms.length > 1) {
var _local6 = mx.managers.SystemManager.forms.length;
var _local4;
_local4 = 0;
while (_local4 < _local6) {
var _local2 = mx.managers.SystemManager.forms[_local4];
if (_local2._visible) {
if (_local2.hitTest(_local8, _local7)) {
if (_local3 == undefined) {
_local3 = _local2.getDepth();
_local5 = _local2;
} else if (_local3 < _local2.getDepth()) {
_local3 = _local2.getDepth();
_local5 = _local2;
}
}
}
_local4++;
}
if (_local5 != mx.managers.SystemManager.form) {
mx.managers.SystemManager.activate(_local5);
}
}
}
var _local9 = mx.managers.SystemManager.form;
_local9.focusManager._onMouseDown();
}
static function onMouseMove(Void) {
mx.managers.SystemManager.idleFrames = 0;
}
static function onMouseUp(Void) {
mx.managers.SystemManager.isMouseDown = false;
mx.managers.SystemManager.idleFrames = 0;
}
static function activate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form != f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local1 = mx.managers.SystemManager.form;
_local1.focusManager.deactivate();
}
}
mx.managers.SystemManager.form = f;
f.focusManager.activate();
}
static function deactivate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form == f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local5 = mx.managers.SystemManager.form;
_local5.focusManager.deactivate();
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
var _local2;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
_local1 = _local1 + 1;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
mx.managers.SystemManager.form = _local2;
break;
}
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
_local5 = mx.managers.SystemManager.form;
_local5.focusManager.activate();
}
}
}
static function addFocusManager(f) {
mx.managers.SystemManager.forms.push(f);
mx.managers.SystemManager.activate(f);
}
static function removeFocusManager(f) {
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
if (mx.managers.SystemManager.form == f) {
mx.managers.SystemManager.deactivate(f);
}
mx.managers.SystemManager.forms.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
static function enableOverlappedWindows() {
if (!initialized) {
initialized = true;
mx.managers.SystemManager.checkIdle = checkIdle;
mx.managers.SystemManager.__addEventListener = __addEventListener;
mx.managers.SystemManager.__removeEventListener = __removeEventListener;
mx.managers.SystemManager.onMouseDown = onMouseDown;
mx.managers.SystemManager.onMouseMove = onMouseMove;
mx.managers.SystemManager.onMouseUp = onMouseUp;
mx.managers.SystemManager.activate = activate;
mx.managers.SystemManager.deactivate = deactivate;
mx.managers.SystemManager.addFocusManager = addFocusManager;
mx.managers.SystemManager.removeFocusManager = removeFocusManager;
}
}
static var initialized = false;
static var SystemManagerDependency = mx.managers.SystemManager;
}
Symbol 43 MovieClip [__Packages.mx.styles.CSSSetStyle] Frame 0
class mx.styles.CSSSetStyle
{
var styleName, stylecache, _color, setColor, invalidateStyle;
function CSSSetStyle () {
}
function _setStyle(styleProp, newValue) {
this[styleProp] = newValue;
if (mx.styles.StyleManager.TextStyleMap[styleProp] != undefined) {
if (styleProp == "color") {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
}
_level0.changeTextStyleInChildren(styleProp);
return(undefined);
}
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local7 = mx.styles.StyleManager.colorNames.haloBlue;
var _local6 = mx.styles.StyleManager.colorNames.haloGreen;
var _local8 = mx.styles.StyleManager.colorNames.haloOrange;
var _local4 = {};
_local4[_local7] = 12188666 /* 0xB9FBFA */;
_local4[_local6] = 13500353 /* 0xCDFFC1 */;
_local4[_local8] = 16766319 /* 0xFFD56F */;
var _local5 = {};
_local5[_local7] = 13958653 /* 0xD4FDFD */;
_local5[_local6] = 14942166 /* 0xE3FFD6 */;
_local5[_local8] = 16772787 /* 0xFFEEB3 */;
var _local9 = _local4[newValue];
var _local10 = _local5[newValue];
if (_local9 == undefined) {
_local9 = newValue;
}
if (_local10 == undefined) {
_local10 = newValue;
}
setStyle("selectionColor", _local9);
setStyle("rollOverColor", _local10);
}
_level0.changeColorStyleInChildren(styleName, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
_level0.notifyStyleChangeInChildren(styleName, styleProp, newValue);
}
}
function changeTextStyleInChildren(styleProp) {
var _local4 = getTimer();
var _local5;
for (_local5 in this) {
var _local2 = this[_local5];
if (_local2._parent == this) {
if (_local2.searchKey != _local4) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache.tf;
delete _local2.stylecache[styleProp];
}
_local2.invalidateStyle(styleProp);
_local2.changeTextStyleInChildren(styleProp);
_local2.searchKey = _local4;
}
}
}
}
function changeColorStyleInChildren(sheetName, colorStyle, newValue) {
var _local6 = getTimer();
var _local7;
for (_local7 in this) {
var _local2 = this[_local7];
if (_local2._parent == this) {
if (_local2.searchKey != _local6) {
if (((_local2.getStyleName() == sheetName) || (sheetName == undefined)) || (sheetName == "_global")) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[colorStyle];
}
if (typeof(_local2._color) == "string") {
if (_local2._color == colorStyle) {
var _local4 = _local2.getStyle(colorStyle);
if (colorStyle == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = _local4;
}
}
_local2.setColor(_local4);
}
} else if (_local2._color[colorStyle] != undefined) {
if (typeof(_local2) != "movieclip") {
_local2._parent.invalidateStyle();
} else {
_local2.invalidateStyle(colorStyle);
}
}
}
_local2.changeColorStyleInChildren(sheetName, colorStyle, newValue);
_local2.searchKey = _local6;
}
}
}
}
function notifyStyleChangeInChildren(sheetName, styleProp, newValue) {
var _local5 = getTimer();
var _local6;
for (_local6 in this) {
var _local2 = this[_local6];
if (_local2._parent == this) {
if (_local2.searchKey != _local5) {
if (((_local2.styleName == sheetName) || ((_local2.styleName != undefined) && (typeof(_local2.styleName) == "movieclip"))) || (sheetName == undefined)) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[styleProp];
delete _local2.stylecache.tf;
}
delete _local2.enabledColor;
_local2.invalidateStyle(styleProp);
}
_local2.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
_local2.searchKey = _local5;
}
}
}
}
function setStyle(styleProp, newValue) {
if (stylecache != undefined) {
delete stylecache[styleProp];
delete stylecache.tf;
}
this[styleProp] = newValue;
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local10 = mx.styles.StyleManager.colorNames.haloBlue;
var _local9 = mx.styles.StyleManager.colorNames.haloGreen;
var _local11 = mx.styles.StyleManager.colorNames.haloOrange;
var _local6 = {};
_local6[_local10] = 12188666 /* 0xB9FBFA */;
_local6[_local9] = 13500353 /* 0xCDFFC1 */;
_local6[_local11] = 16766319 /* 0xFFD56F */;
var _local7 = {};
_local7[_local10] = 13958653 /* 0xD4FDFD */;
_local7[_local9] = 14942166 /* 0xE3FFD6 */;
_local7[_local11] = 16772787 /* 0xFFEEB3 */;
var _local12 = _local6[newValue];
var _local13 = _local7[newValue];
if (_local12 == undefined) {
_local12 = newValue;
}
if (_local13 == undefined) {
_local13 = newValue;
}
setStyle("selectionColor", _local12);
setStyle("rollOverColor", _local13);
}
if (typeof(_color) == "string") {
if (_color == styleProp) {
if (styleProp == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = newValue;
}
}
setColor(newValue);
}
} else if (_color[styleProp] != undefined) {
invalidateStyle(styleProp);
}
changeColorStyleInChildren(undefined, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
invalidateStyle(styleProp);
}
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (styleProp == "styleName")) {
var _local8;
var _local5 = newValue;
if (styleProp == "styleName") {
_local8 = ((typeof(newValue) == "string") ? (_global.styles[newValue]) : (_local5));
_local5 = _local8.themeColor;
if (_local5 != undefined) {
_local8.rollOverColor = (_local8.selectionColor = _local5);
}
}
notifyStyleChangeInChildren(undefined, styleProp, newValue);
}
}
static function enableRunTimeCSS() {
}
static function classConstruct() {
var _local2 = MovieClip.prototype;
var _local3 = mx.styles.CSSSetStyle.prototype;
mx.styles.CSSStyleDeclaration.prototype.setStyle = _local3._setStyle;
_local2.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
_local2.changeColorStyleInChildren = _local3.changeColorStyleInChildren;
_local2.notifyStyleChangeInChildren = _local3.notifyStyleChangeInChildren;
_local2.setStyle = _local3.setStyle;
_global.ASSetPropFlags(_local2, "changeTextStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "changeColorStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "notifyStyleChangeInChildren", 1);
_global.ASSetPropFlags(_local2, "setStyle", 1);
var _local4 = TextField.prototype;
_local4.setStyle = _local2.setStyle;
_local4.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
}
Symbol 44 MovieClip [__Packages.mx.core.ext.UIComponentExtensions] Frame 0
class mx.core.ext.UIComponentExtensions
{
function UIComponentExtensions () {
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
TextField.prototype.setFocus = function () {
Selection.setFocus(this);
};
TextField.prototype.onSetFocus = function (oldFocus) {
if (this.tabEnabled != false) {
if (this.getFocusManager().bDrawFocus) {
this.drawFocus(true);
}
}
};
TextField.prototype.onKillFocus = function (oldFocus) {
if (this.tabEnabled != false) {
this.drawFocus(false);
}
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.getFocusManager = mx.core.UIComponent.prototype.getFocusManager;
mx.managers.OverlappedWindows.enableOverlappedWindows();
mx.styles.CSSSetStyle.enableRunTimeCSS();
mx.managers.FocusManager.enableFocusManagement();
}
static var bExtended = false;
static var UIComponentExtended = Extensions();
static var UIComponentDependency = mx.core.UIComponent;
static var FocusManagerDependency = mx.managers.FocusManager;
static var OverlappedWindowsDependency = mx.managers.OverlappedWindows;
}
Symbol 45 MovieClip [__Packages.mx.skins.halo.RectBorder] Frame 0
class mx.skins.halo.RectBorder extends mx.skins.RectBorder
{
var offset, getStyle, borderStyleName, __borderMetrics, className, borderColorName, backgroundColorName, shadowColorName, highlightColorName, buttonColorName, __get__width, __get__height, clear, _color, drawRoundRect, beginFill, drawRect, endFill;
function RectBorder () {
super();
}
function init(Void) {
borderWidths.default = 3;
super.init();
}
function getBorderMetrics(Void) {
if (offset == undefined) {
var _local3 = getStyle(borderStyleName);
offset = borderWidths[_local3];
}
if ((getStyle(borderStyleName) == "default") || (getStyle(borderStyleName) == "alert")) {
__borderMetrics = {left:3, top:1, right:3, bottom:3};
return(__borderMetrics);
}
return(super.getBorderMetrics());
}
function drawBorder(Void) {
var _local6 = _global.styles[className];
if (_local6 == undefined) {
_local6 = _global.styles.RectBorder;
}
var _local5 = getStyle(borderStyleName);
var _local7 = getStyle(borderColorName);
if (_local7 == undefined) {
_local7 = _local6[borderColorName];
}
var _local8 = getStyle(backgroundColorName);
if (_local8 == undefined) {
_local8 = _local6[backgroundColorName];
}
var _local16 = getStyle("backgroundImage");
if (_local5 != "none") {
var _local14 = getStyle(shadowColorName);
if (_local14 == undefined) {
_local14 = _local6[shadowColorName];
}
var _local13 = getStyle(highlightColorName);
if (_local13 == undefined) {
_local13 = _local6[highlightColorName];
}
var _local12 = getStyle(buttonColorName);
if (_local12 == undefined) {
_local12 = _local6[buttonColorName];
}
var _local11 = getStyle(borderCapColorName);
if (_local11 == undefined) {
_local11 = _local6[borderCapColorName];
}
var _local10 = getStyle(shadowCapColorName);
if (_local10 == undefined) {
_local10 = _local6[shadowCapColorName];
}
}
offset = borderWidths[_local5];
var _local9 = offset;
var _local3 = __get__width();
var _local4 = __get__height();
clear();
_color = undefined;
if (_local5 == "none") {
} else if (_local5 == "inset") {
_color = colorList;
draw3dBorder(_local11, _local12, _local7, _local13, _local14, _local10);
} else if (_local5 == "outset") {
_color = colorList;
draw3dBorder(_local11, _local7, _local12, _local14, _local13, _local10);
} else if (_local5 == "alert") {
var _local15 = getStyle("themeColor");
drawRoundRect(0, 5, _local3, _local4 - 5, 5, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, 4, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, _local15, 50);
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, 2, 16777215, 100);
} else if (_local5 == "default") {
drawRoundRect(0, 5, _local3, _local4 - 5, {tl:5, tr:5, br:0, bl:0}, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, {tl:4, tr:4, br:0, bl:0}, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, {tl:3, tr:3, br:0, bl:0}, [12897484, 11844796], 100, 0, "radial");
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, {tl:2, tr:2, br:0, bl:0}, 16777215, 100);
} else if (_local5 == "dropDown") {
drawRoundRect(0, 0, _local3 + 1, _local4, {tl:4, tr:0, br:0, bl:4}, [13290186, 7895160], 100, -10, "linear");
drawRoundRect(1, 1, _local3 - 1, _local4 - 2, {tl:3, tr:0, br:0, bl:3}, 16777215, 100);
} else if (_local5 == "menuBorder") {
var _local15 = getStyle("themeColor");
drawRoundRect(4, 4, _local3 - 2, _local4 - 3, 0, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(4, 4, _local3 - 1, _local4 - 2, 0, 6184542, 10);
drawRoundRect(0, 0, _local3 + 1, _local4, 0, [0, 14342874], 100, 250, "linear");
drawRoundRect(0, 0, _local3 + 1, _local4, 0, _local15, 50);
drawRoundRect(2, 2, _local3 - 3, _local4 - 4, 0, 16777215, 100);
} else if (_local5 == "comboNonEdit") {
} else {
beginFill(_local7);
drawRect(0, 0, _local3, _local4);
drawRect(1, 1, _local3 - 1, _local4 - 1);
endFill();
_color = borderColorName;
}
if (_local8 != undefined) {
beginFill(_local8);
drawRect(_local9, _local9, __get__width() - _local9, __get__height() - _local9);
endFill();
}
}
function draw3dBorder(c1, c2, c3, c4, c5, c6) {
var _local3 = __get__width();
var _local2 = __get__height();
beginFill(c1);
drawRect(0, 0, _local3, _local2);
drawRect(1, 0, _local3 - 1, _local2);
endFill();
beginFill(c2);
drawRect(1, 0, _local3 - 1, 1);
endFill();
beginFill(c3);
drawRect(1, _local2 - 1, _local3 - 1, _local2);
endFill();
beginFill(c4);
drawRect(1, 1, _local3 - 1, 2);
endFill();
beginFill(c5);
drawRect(1, _local2 - 2, _local3 - 1, _local2 - 1);
endFill();
beginFill(c6);
drawRect(1, 2, _local3 - 1, _local2 - 2);
drawRect(2, 2, _local3 - 2, _local2 - 2);
endFill();
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
_global.styles.rectBorderClass = mx.skins.halo.RectBorder;
_global.skinRegistry.RectBorder = true;
return(true);
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.halo.RectBorder;
static var version = "2.0.2.126";
var borderCapColorName = "borderCapColor";
var shadowCapColorName = "shadowCapColor";
var colorList = {highlightColor:0, borderColor:0, buttonColor:0, shadowColor:0, borderCapColor:0, shadowCapColor:0};
var borderWidths = {none:0, solid:1, inset:2, outset:2, alert:3, dropDown:2, menuBorder:2, comboNonEdit:2};
static var classConstructed = classConstruct();
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 46 MovieClip [__Packages.com.google.GMap.core.GMap] Frame 0
class com.google.GMap.core.GMap extends mx.core.UIComponent
{
var _border, _borderColor, _background, _backgroundColor, _backgroundAlpha, _centerCross, _centerCrossColor, _mapType, _lat, _lng, _zoom, _controlByMouse, _controlByKeyboard, _controlByMouseWheel, _animateZoom, _animatePan, _doubleClickMode, _panSpeed, _zoomAtPointer, _prevLat, _prevLng, _prevZoom, _smoothing, _smoothZoom, _panning, _doubleClick, _moveVector, _mouseTimer, _centerXY, _isMouseOver, _boundingBox_mc, dispatchEvent, _mc, _back_mc, createEmptyMovieClip, _fore_mc, _mask_mc, _display, _control, useHandCursor, _mouseListener, __get__width, __get__height, width, height, invalidate, _ready, _panningLoc, _savedPosition, removeMovieClip, _dragPoint, _xmouse, _ymouse, _dragging, _dragged, _moving_x, _moving_y, _noImageQueue;
function GMap () {
super();
if (_border == undefined) {
_border = false;
}
if (_borderColor == undefined) {
_borderColor = 10066329 /* 0x999999 */;
}
if (_background == undefined) {
_background = false;
}
if (_backgroundColor == undefined) {
_backgroundColor = 16777215 /* 0xFFFFFF */;
}
if (_backgroundAlpha == undefined) {
_backgroundAlpha = 50;
}
if (_centerCross == undefined) {
_centerCross = false;
}
if (_centerCrossColor == undefined) {
_centerCrossColor = 0;
}
if (_mapType == undefined) {
_mapType = "map";
}
if (_lat == undefined) {
_lat = 0;
}
if (_lng == undefined) {
_lng = 0;
}
if (_zoom == undefined) {
_zoom = 1;
}
if (_controlByMouse == undefined) {
_controlByMouse = true;
}
if (_controlByKeyboard == undefined) {
_controlByKeyboard = true;
}
if (_controlByMouseWheel == undefined) {
_controlByMouseWheel = true;
}
if (_animateZoom == undefined) {
_animateZoom = false;
}
if (_animatePan == undefined) {
_animatePan = false;
}
if (_doubleClickMode == undefined) {
_doubleClickMode = "pan";
}
if (_panSpeed == undefined) {
_panSpeed = 3;
}
if (_zoomAtPointer == undefined) {
_zoomAtPointer = false;
}
_prevLat = undefined;
_prevLng = undefined;
_prevZoom = undefined;
_smoothing = false;
_smoothZoom = false;
_panning = false;
_doubleClick = false;
_moveVector = new com.google.GMap.types.GCoord(0, 0);
_mouseTimer = 0;
_centerXY = undefined;
_isMouseOver = false;
mx.events.EventDispatcher.initialize(this);
}
function init() {
super.init();
_boundingBox_mc._visible = false;
_boundingBox_mc._width = (_boundingBox_mc._height = 0);
dispatchEvent({target:this, type:"MAP_READY"});
}
function createChildren() {
if (_mc) {
return(undefined);
}
_back_mc = createEmptyMovieClip("back_mc", 10);
_mc = createEmptyMovieClip("mc", 20);
_fore_mc = createEmptyMovieClip("fore_mc", 30);
_mask_mc = createEmptyMovieClip("mask_mc", 40);
_mc.setMask(_mask_mc);
_display = new com.google.GMap.core.GDisplay(this);
_control = new com.google.GMap.core.GController(this);
_control.addEventListener("READY", mx.utils.Delegate.create(this, controllerReady));
if (!_global.isLivePreview) {
_control.init();
_display.init();
}
useHandCursor = false;
_mouseListener = new Object();
Mouse.addListener(_mouseListener);
_mouseListener.onMouseWheel = mx.utils.Delegate.create(this, onMouseWheel);
Key.addListener(this);
}
function draw() {
super.draw();
var _local5;
var _local4;
_back_mc.clear();
_local5 = 0;
if (_border || (_global.isLivePreview)) {
_local5 = 1;
com.google.GMap.geometry.GGraphics.drawRectOutline(_back_mc, 0, 0, __get__width(), __get__height(), _borderColor, 100, 1);
}
_local4 = 1 * _local5;
_fore_mc.clear();
if (_centerCross) {
com.google.GMap.geometry.GGraphics.drawRect(_fore_mc, __get__width() / 2, (__get__height() / 2) - (CENTER_CROSS_SIZE - 1), (__get__width() / 2) + CENTER_CROSS_WIDTH, (__get__height() / 2) + CENTER_CROSS_SIZE, _centerCrossColor, 100, 0, 0);
com.google.GMap.geometry.GGraphics.drawRect(_fore_mc, (__get__width() / 2) - (CENTER_CROSS_SIZE - 1), __get__height() / 2, (__get__width() / 2) + CENTER_CROSS_SIZE, (__get__height() / 2) + CENTER_CROSS_WIDTH, _centerCrossColor, 100, 0, 0);
}
_mask_mc.clear();
_local4 = 2 * _local5;
com.google.GMap.geometry.GGraphics.drawRect(_mask_mc, _local4, _local4, __get__width() - _local4, __get__height() - _local4, 16711680, 20, 0, 0);
if (_global.isLivePreview && (_back_mc.logo == undefined)) {
_back_mc.attachMovie("G_map_bitmap", "logo", 10);
_back_mc.logo._x = Math.round((__get__width() - _back_mc.logo._width) / 2);
_back_mc.logo._y = Math.round((__get__height() - _back_mc.logo._height) / 2);
}
}
function size() {
super.size();
_mc.mask_mc._width = width;
_mc.mask_mc._height = height;
display.resetGridLayers();
display.resetImageManager();
display.updatePosition();
display.updateZoom();
display.__get__guiManager().size();
control.__get__http().loadCopyright();
if (_global.isLivePreview) {
_back_mc.logo._x = Math.round((__get__width() - _back_mc.logo._width) / 2);
_back_mc.logo._y = Math.round((__get__height() - _back_mc.logo._height) / 2);
}
invalidate();
}
function getNewMovieClip() {
var _local2 = _mc.getNextHighestDepth();
var _local3 = _mc.createEmptyMovieClip("mc" + _local2, _local2);
return(_local3);
}
function updatePosition() {
if (_ready) {
if (((_prevLat != _lat) || (_prevLng != _lng)) || (_prevZoom != _zoom)) {
if ((_prevLat != _lat) || (_prevLng != _lng)) {
dispatchEvent({target:this, type:"MAP_POSITION_CHANGED", newLat:_lat, oldLat:_prevLat, newLng:_lng, oldLng:_prevLng});
control.__get__http().loadCopyright("p");
display.updatePosition();
}
if (_zoom != _prevZoom) {
dispatchEvent({target:this, type:"MAP_ZOOM_CHANGED", newZoom:_zoom, oldZoom:_prevZoom});
if (_zoom > _prevZoom) {
control.__get__http().loadCopyright("zi");
} else {
control.__get__http().loadCopyright("zo");
}
display.updateZoom();
}
_prevLat = _lat;
_prevLng = _lng;
_prevZoom = _zoom;
}
}
}
function setMapType(type) {
if (((type != "map") && (type != "satellite")) && (type != "hybrid")) {
return(undefined);
}
if (type == _mapType) {
return(undefined);
}
if (!_ready) {
_mapType = type;
return(undefined);
}
var _local2 = _mapType;
_mapType = type;
dispatchEvent({target:this, type:"MAP_TYPE_CHANGED", oldType:_local2, newType:type});
display.resetImageManager();
display.resetGridLayers();
display.updatePosition();
display.updateZoom();
display.__get__guiManager().updateMapType(_mapType);
display.__get__guiManager().updateMaxZoom(control.getZoomLevels(_mapType));
var _local3 = "";
_local3 = _local3 + ((_local2 == "map") ? "m" : (((_local2 == "satellite") ? "k" : (((_local2 == "hybrid") ? "h" : "")))));
_local3 = _local3 + ((_mapType == "map") ? "m" : (((_mapType == "satellite") ? "k" : (((_mapType == "hybrid") ? "h" : "")))));
control.__get__http().loadCopyright(_local3);
}
function zoomIn(delta) {
if (delta == undefined) {
delta = 1;
}
_zoom = control.checkZoom(_zoom + Number(delta));
if (!_smoothZoom) {
_zoom = Math.round(_zoom);
}
updatePosition();
}
function zoomOut(delta) {
if (delta == undefined) {
delta = 1;
}
_zoom = control.checkZoom(_zoom - Number(delta));
if (!_smoothZoom) {
_zoom = Math.round(_zoom);
}
updatePosition();
}
function setCenter(location, zoom) {
if ((location.lat == undefined) || (location.lng == undefined)) {
return(undefined);
}
_lat = control.checkLat(Number(location.lat));
_lng = control.checkLng(Number(location.lng), true);
if (zoom != undefined) {
_zoom = control.checkZoom(zoom);
}
if (!_smoothZoom) {
zoom = Math.round(zoom);
}
updatePosition();
}
function getCenter() {
return(new com.google.GMap.types.GLocation(_lat, _lng));
}
function getCenterXY() {
_centerXY = control.getXYFromLatLng(new com.google.GMap.types.GLocation(_lat, _lng));
return(_centerXY);
}
function getBounds(correct) {
var _local4 = getBoundsXY();
var _local3 = control.getLatLngFromXY(_local4.__get__northWest());
var _local2 = control.getLatLngFromXY(_local4.__get__southEast());
if (correct) {
while (_local3.__get__lng() > (com.google.GMap.core.GController.GLOBE_WIDTH / 2)) {
_local3.lng = _local3.lng - com.google.GMap.core.GController.GLOBE_WIDTH;
}
while (_local3.__get__lng() < ((-1 * com.google.GMap.core.GController.GLOBE_WIDTH) / 2)) {
_local3.lng = _local3.lng + com.google.GMap.core.GController.GLOBE_WIDTH;
}
while (_local2.__get__lng() > (com.google.GMap.core.GController.GLOBE_WIDTH / 2)) {
_local2.lng = _local2.lng - com.google.GMap.core.GController.GLOBE_WIDTH;
}
while (_local2.__get__lng() < ((-1 * com.google.GMap.core.GController.GLOBE_WIDTH) / 2)) {
_local2.lng = _local2.lng + com.google.GMap.core.GController.GLOBE_WIDTH;
}
}
return(new com.google.GMap.types.GBounds(_local3, _local2));
}
function getBoundsXY() {
if (((_lat == undefined) || (_lng == undefined)) || (_zoom == undefined)) {
return(undefined);
}
var _local2 = getCenterXY();
if (_local2 == undefined) {
return(undefined);
}
var _local3 = new com.google.GMap.types.GRect(_local2.__get__x() - (__get__width() / 2), _local2.__get__y() - (__get__height() / 2), _local2.__get__x() + (__get__width() / 2), _local2.__get__y() + (__get__height() / 2));
_local3.__set__top(Math.max(_local3.__get__top(), 0));
_local3.__set__bottom(Math.min(_local3.__get__bottom(), control.__get__mercator().height[Math.floor(_zoom)]));
return(_local3);
}
function setBounds(bounds) {
if (!(bounds instanceof com.google.GMap.types.GBounds)) {
return(false);
}
if (!bounds.__get__isValid()) {
return(false);
}
var _local4 = control.getXYFromLatLng(bounds.__get__northWest());
var _local3 = control.getXYFromLatLng(bounds.__get__southEast());
if (!(_local4.__get__isValid() && (_local3.__get__isValid()))) {
return(false);
}
var _local7 = __get__width() / (_local3.__get__x() - _local4.__get__x());
var _local6 = __get__height() / (_local3.__get__y() - _local4.__get__y());
var _local5 = Math.min(_local7, _local6);
_local5 = Math.round(Math.log(_local5) * Math.LOG2E);
var _local8 = control.checkZoom(_zoom + _local5);
setCenter(bounds.getCenter(), _local8);
return(true);
}
function addControl(type, initObject) {
return(display.__get__guiManager().addControl(type, initObject));
}
function addLayer(initObject) {
return(display.__get__layerManager().addLayer(initObject));
}
function addKMLLayer(initObject) {
return(display.__get__layerManager().addKMLLayer(initObject));
}
function getLayer(id_or_name) {
var _local2 = display.__get__layerManager().getLayer(id_or_name);
return(_local2);
}
function getLayers() {
return(display.__get__layerManager().getLayers());
}
function removeLayer(layer) {
layer.remove();
}
function removeLayers() {
display.__get__layerManager().removeLayers();
}
function addPoint(initObject) {
var _local2 = display.__get__layerManager().addPoint(initObject);
return(_local2);
}
function getPoint(id_or_name) {
return(display.__get__layerManager().searchGeometryObject(id_or_name, "GPoint"));
}
function addLine(initObject) {
var _local2 = display.__get__layerManager().addLine(initObject);
return(_local2);
}
function getLine(id_or_name) {
return(display.__get__layerManager().searchGeometryObject(id_or_name, "GLine"));
}
function addPolygon(initObject) {
var _local2 = display.__get__layerManager().addPolygon(initObject);
return(_local2);
}
function getPolygon(id_or_name) {
return(display.__get__layerManager().searchGeometryObject(id_or_name, "GPolygon"));
}
function addOverlay(initObject) {
return(display.__get__layerManager().addOverlay(initObject));
}
function getOverlay(id_or_name) {
return(display.__get__layerManager().searchGeometryObject(id_or_name, "GOverlay"));
}
function panTo(loc, immediate) {
if (loc == undefined) {
return(undefined);
}
if (!(loc instanceof com.google.GMap.types.GLocation)) {
loc.lat = Number(loc.lat);
loc.lng = Number(loc.lng);
}
var _local5 = control.getXYFromLatLng(loc);
var _local4 = getCenterXY();
if (!_animatePan) {
immediate = true;
}
if (!immediate) {
dispatchEvent({target:this, type:"MAP_PAN_START", lat:loc.lat, lng:loc.lng});
}
if ((!((Math.abs(_local5.__get__x() - _local4.__get__x()) < __get__width()) && (Math.abs(_local5.__get__y() - _local4.__get__y()) < __get__height()))) && (!immediate)) {
immediate = true;
dispatchEvent({target:this, type:"MAP_PAN_STOP", lat:loc.lat, lng:loc.lng});
}
if (immediate) {
setCenter(loc);
} else {
_panning = true;
_panningLoc = new com.google.GMap.types.GLocation(loc.lat, loc.lng);
}
}
function panByXY(distance, immediate) {
if ((distance.x == undefined) || (distance.y == undefined)) {
return(undefined);
}
var _local2 = getCenterXY();
_local2.x = _local2.x + distance.x;
_local2.y = _local2.y + distance.y;
if (_local2.__get__y() <= 0) {
_local2.__set__y(0);
}
if (_local2.__get__y() >= control.__get__mercator().height[Math.floor(_zoom)]) {
_local2.__set__y(control.__get__mercator().height[Math.floor(_zoom)]);
}
var _local4 = control.getLatLngFromXY(_local2);
panTo(_local4, immediate);
}
function panBy(distance, immediate) {
if ((distance.lat == undefined) || (distance.lng == undefined)) {
return(undefined);
}
var _local2 = control.getXYFromLatLng(new com.google.GMap.types.GLocation(_lat + distance.lat, _lng + distance.lng));
if (_local2.__get__y() <= 0) {
_local2.__set__y(0);
}
if (_local2.__get__y() >= control.__get__mercator().height[_zoom]) {
_local2.__set__y(control.__get__mercator().height[_zoom]);
}
var _local4 = control.getLatLngFromXY(_local2);
panTo(_local4, immediate);
}
function savePosition() {
_savedPosition = {lat:_lat, lng:_lng, zoom:_zoom};
}
function getSavedPosition() {
return(_savedPosition);
}
function returnToSavedPosition() {
if (_savedPosition == undefined) {
return(undefined);
}
if (_savedPosition.zoom != _zoom) {
setCenter(new com.google.GMap.types.GLocation(_savedPosition.lat, _savedPosition.lng), _savedPosition._zoom);
} else {
panTo(new com.google.GMap.types.GLocation(_savedPosition.lat, _savedPosition.lng));
}
}
function getMapTypes() {
return(["map", "satellite", "hybrid"]);
}
function getSelectedMapType() {
return(_mapType);
}
function moveNorth(distance) {
if (_panning) {
return(undefined);
}
if (distance == undefined) {
distance = DEFAULT_PANNING_DISTANCE;
}
panByXY(new com.google.GMap.types.GCoord(0, -distance));
}
function moveSouth(distance) {
if (_panning) {
return(undefined);
}
if (distance == undefined) {
distance = DEFAULT_PANNING_DISTANCE;
}
panByXY(new com.google.GMap.types.GCoord(0, distance));
}
function moveWest(distance) {
if (_panning) {
return(undefined);
}
if (distance == undefined) {
distance = DEFAULT_PANNING_DISTANCE;
}
panByXY(new com.google.GMap.types.GCoord(-distance, 0));
}
function moveEast(distance) {
if (_panning) {
return(undefined);
}
if (distance == undefined) {
distance = DEFAULT_PANNING_DISTANCE;
}
panByXY(new com.google.GMap.types.GCoord(distance, 0));
}
function openInfoWindow(initObject) {
return(display.__get__guiManager().openInfoWindow(initObject));
}
function closeInfoWindow() {
return(display.__get__guiManager().closeInfoWindow());
}
function showInfoWindow() {
if (display.__get__guiManager().infoWindow == undefined) {
return(undefined);
}
var _local5 = display.__get__guiManager().infoWindow.getRect();
var _local14 = getCenterXY();
_local5.move((__get__width() / 2) - _local14.__get__x(), (__get__height() / 2) - _local14.__get__y());
var _local13 = new com.google.GMap.types.GRect(10, 10, __get__width() - 10, __get__height() - 10);
_local5.placeInsideRect(_local13);
var _local3 = new Array();
var _local2 = _local5.clone();
var _local6 = display.__get__guiManager().controls;
var _local8;
var _local7 = 0;
while (_local7 < _local6.length) {
if (_local6[_local7].visible == false) {
} else {
_local8 = _local6[_local7].getRect();
if (_local5.intersection(_local8)) {
_local2 = _local5.clone();
_local2.move((_local8.__get__left() - _local2.__get__left()) - _local2.__get__width(), 0);
_local3.push(_local2);
_local2 = _local5.clone();
_local2.move((_local8.__get__right() - _local2.__get__right()) + _local2.__get__width(), 0);
_local3.push(_local2);
_local2 = _local5.clone();
_local2.move(0, (_local8.__get__top() - _local2.__get__top()) - _local2.__get__height());
_local3.push(_local2);
_local2 = _local5.clone();
_local2.move(0, (_local8.__get__bottom() - _local2.__get__bottom()) + _local2.__get__height());
_local3.push(_local2);
}
}
_local7++;
}
_local7 = 0;
while (_local7 < _local3.length) {
var _local9 = _local13.containsRect(_local3[_local7]);
if (_local9) {
var _local4 = 0;
while (_local4 < _local6.length) {
if (_local6[_local4].intersects(_local3[_local7])) {
_local9 = false;
break;
}
_local4++;
}
}
if (!_local9) {
_local3.splice(_local7, 1);
_local7--;
}
_local7++;
}
var _local11 = Number.POSITIVE_INFINITY;
var _local12;
var _local10 = 0;
_local7 = 0;
while (_local7 < _local3.length) {
_local10 = Math.sqrt(Math.pow(_local3[_local7].top - _local5.__get__top(), 2) + Math.pow(_local3[_local7].left - _local5.__get__left(), 2));
if (_local10 < _local11) {
_local12 = _local7;
_local11 = _local10;
}
_local7++;
}
if (_local12 != undefined) {
_local5 = _local3[_local12];
}
_local5.move(-((__get__width() / 2) - _local14.__get__x()), -((__get__height() / 2) - _local14.__get__y()));
var _local15 = display.__get__guiManager().infoWindow.getRect();
panByXY(new com.google.GMap.types.GCoord(_local15.__get__left() - _local5.__get__left(), _local15.__get__top() - _local5.__get__top()));
}
function unload() {
Mouse.removeListener(_mouseListener);
Key.removeListener(this);
delete _mouseListener;
removeMovieClip();
}
function dragStart() {
_dragPoint = new com.google.GMap.types.GCoord(_xmouse, _ymouse);
if (_panning) {
_panning = false;
}
_dragging = true;
_dragged = false;
}
function dragStop() {
_lng = control.checkLng(_lng, true);
_dragging = false;
updatePosition();
if (_dragged) {
_dragged = false;
dispatchEvent({target:this, type:"MAP_ON_DRAG_STOP"});
}
}
function dragNow() {
if (!_dragging) {
return(undefined);
}
if (!_dragged) {
_dragged = true;
dispatchEvent({target:this, type:"MAP_ON_DRAG_START"});
}
_lng = control.checkLng(_lng, true);
panByXY(new com.google.GMap.types.GCoord(_dragPoint.__get__x() - _xmouse, _dragPoint.__get__y() - _ymouse), true);
_dragPoint = new com.google.GMap.types.GCoord(_xmouse, _ymouse);
dispatchEvent({target:this, type:"MAP_ON_DRAG"});
}
function controllerReady() {
_prevLat = _lat;
_prevLng = _lng;
_prevZoom = _zoom;
display.init();
display.updatePosition();
display.updateZoom();
display.__get__guiManager().updateMaxZoom(control.getZoomLevels(_mapType));
display.__get__guiManager().showControls();
display.__get__guiManager().updateMapType(_mapType);
display.__get__layerManager().showLayers();
_ready = true;
dispatchEvent({target:this, type:"MAP_READY"});
size();
control.__get__http().loadCopyright();
onMouseMove();
if (_savedPosition == undefined) {
savePosition();
}
}
function onEnterFrame() {
if (_panning) {
var _local3 = control.getXYFromLatLng(getCenter());
var _local7 = control.getXYFromLatLng(_panningLoc);
var _local2 = true;
var _local6 = 0;
var _local5 = 0;
var _local10 = Math.floor(_zoom);
if (Math.abs(_local3.__get__x() - _local7.__get__x()) > 0.5) {
_local6 = (_local7.__get__x() - _local3.__get__x()) / _panSpeed;
_local2 = _local2 && false;
} else {
_local2 = _local2 && true;
}
if (Math.abs(_local3.__get__y() - _local7.__get__y()) > 0.5) {
_local5 = (-(_local3.__get__y() - _local7.__get__y())) / _panSpeed;
_local2 = _local2 && false;
} else {
_local2 = _local2 && true;
}
if (_local2) {
_panning = false;
_lng = control.checkLng(_panningLoc.__get__lng(), true);
_lat = control.checkLat(_panningLoc.__get__lat());
updatePosition();
dispatchEvent({target:this, type:"MAP_PAN_STOP", lat:_panningLoc.__get__lat(), lng:_panningLoc.__get__lng()});
} else {
dispatchEvent({target:this, type:"MAP_PAN", lat:_panningLoc.__get__lat(), lng:_panningLoc.__get__lng()});
_local3.x = _local3.x + _local6;
_local3.y = _local3.y + _local5;
var _local4 = control.getLatLngFromXY(_local3);
_local4.__set__lat(control.checkLat(_local4.__get__lat()));
_lat = _local4.lat;
_lng = _local4.lng;
updatePosition();
}
} else {
if (!_controlByKeyboard) {
return(undefined);
}
if (_moving_x) {
_moveVector.x = _moveVector.x + ((Math.abs(_moveVector.__get__x()) < MOVE_SPEED) ? (((_moveVector.__get__x() < 0) ? -1 : 1) * MOVE_ACCELERATION) : 0);
if ((!Key.isDown(38)) && (!Key.isDown(40))) {
_moving_y = false;
}
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
_moving_x = false;
}
}
if (_moving_y) {
_moveVector.y = _moveVector.y + ((Math.abs(_moveVector.__get__y()) < MOVE_SPEED) ? (((_moveVector.__get__y() < 0) ? -1 : 1) * MOVE_ACCELERATION) : 0);
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
_moving_x = false;
}
if ((!Key.isDown(38)) && (!Key.isDown(40))) {
_moving_y = false;
}
}
if ((!_moving_x) && (_moveVector.__get__x() != 0)) {
_moveVector.x = _moveVector.x - ((Math.abs(_moveVector.__get__x()) <= MOVE_SLOWING) ? (_moveVector.__get__x()) : (((_moveVector.__get__x() < 0) ? -1 : 1) * MOVE_SLOWING));
_moveVector.__set__x(Math.round(_moveVector.__get__x() * 10) / 10);
}
if ((!_moving_y) && (_moveVector.__get__y() != 0)) {
_moveVector.y = _moveVector.y - ((Math.abs(_moveVector.__get__y()) <= MOVE_SLOWING) ? (_moveVector.__get__y()) : (((_moveVector.__get__y() < 0) ? -1 : 1) * MOVE_SLOWING));
_moveVector.__set__y(Math.round(_moveVector.__get__y() * 10) / 10);
}
if ((_moveVector.__get__x() != 0) || (_moveVector.__get__y() != 0)) {
panByXY(_moveVector, true);
}
}
}
function onMouseDown() {
if (((!_ready) || (!_controlByMouse)) || (_dragging)) {
return(undefined);
}
if ((((_xmouse < 0) || (_xmouse > __get__width())) || (_ymouse < 0)) || (_ymouse > __get__height())) {
return(undefined);
}
dragStart();
eventPress();
}
function onMouseUp() {
if (_dragging) {
dragStop();
}
if ((!_ready) || (!_controlByMouse)) {
return(undefined);
}
if ((((_xmouse < 0) || (_xmouse > __get__width())) || (_ymouse < 0)) || (_ymouse > __get__height())) {
eventReleaseOutside();
return(undefined);
}
var _local3 = getCenterXY();
_local3.x = _local3.x + (_xmouse - (__get__width() / 2));
_local3.y = _local3.y + (_ymouse - (__get__height() / 2));
if (_local3.__get__y() <= 0) {
_local3.__set__y(0);
}
if (_local3.__get__y() >= control.__get__mercator().height[Math.floor(_zoom)]) {
_local3.__set__y(control.__get__mercator().height[Math.floor(_zoom)]);
}
var _local2 = control.getLatLngFromXY(_local3);
if (!_doubleClick) {
_mouseTimer = getTimer() / 1000;
_doubleClick = true;
} else {
if (((getTimer() / 1000) - _mouseTimer) < DOUBLE_CLICK_TIME) {
if (_doubleClickMode != "none") {
if (_doubleClickMode == "zoom") {
zoomIn(1);
}
if (_animatePan) {
_panning = true;
_panningLoc = _local2;
dispatchEvent({target:this, type:"MAP_PAN_START", lat:_local2.__get__lat(), lng:_local2.__get__lng()});
} else {
setCenter(_local2);
}
}
_doubleClick = false;
dispatchEvent({target:this, type:"MAP_DBL_CLICK", lat:_local2.__get__lat(), lng:_local2.__get__lng()});
return(undefined);
}
_mouseTimer = getTimer() / 1000;
}
dispatchEvent({target:this, type:"MAP_CLICK", lat:_local2.__get__lat(), lng:_local2.__get__lng()});
eventRelease();
}
function onMouseMove() {
var _local2 = Boolean((((_xmouse < 0) || (_xmouse > __get__width())) || (_ymouse < 0)) || (_ymouse > __get__height()));
if (_isMouseOver && (_local2)) {
_isMouseOver = false;
eventRollOut();
} else if ((!_isMouseOver) && (!_local2)) {
_isMouseOver = true;
eventRollOver();
}
if (((!_ready) || (!_controlByMouse)) || (_panning)) {
return(undefined);
}
dragNow();
}
function onMouseWheel(delta) {
if (((!_ready) || (!_controlByMouseWheel)) || (!_controlByMouse)) {
return(undefined);
}
if (_zoomAtPointer) {
var _local2 = getCenterXY();
_local2.x = _local2.x + (_xmouse - (__get__width() / 2));
_local2.y = _local2.y + (_ymouse - (__get__height() / 2));
var _local3 = control.getLatLngFromXY(_local2);
panTo(_local3);
}
if (_smoothZoom) {
zoomIn(delta / 3);
} else {
zoomIn(delta / 3);
}
}
function onKeyDown() {
if ((!_ready) || (!_controlByKeyboard)) {
return(undefined);
}
switch (Key.getCode()) {
case 37 :
if (_moveVector.__get__x() == 0) {
_moveVector.__set__x(-MOVE_ACCELERATION);
} else if (_moveVector.__get__x() > 0) {
_moveVector.x = _moveVector.x * -1;
}
_moving_x = true;
break;
case 39 :
if (_moveVector.__get__x() == 0) {
_moveVector.__set__x(MOVE_ACCELERATION);
} else if (_moveVector.__get__x() < 0) {
_moveVector.x = _moveVector.x * -1;
}
_moving_x = true;
break;
case 38 :
if (_moveVector.__get__y() == 0) {
_moveVector.__set__y(-MOVE_ACCELERATION);
} else if (_moveVector.__get__y() > 0) {
_moveVector.y = _moveVector.y * -1;
}
_moving_y = true;
break;
case 40 :
if (_moveVector.__get__y() == 0) {
_moveVector.__set__y(MOVE_ACCELERATION);
} else if (_moveVector.__get__y() < 0) {
_moveVector.y = _moveVector.y * -1;
}
_moving_y = true;
break;
case 187 :
zoomIn();
break;
case 189 :
zoomOut();
break;
case 107 :
zoomIn();
break;
case 109 :
zoomOut();
}
}
function eventRollOver() {
display.__get__guiManager().showControls(true);
dispatchEvent({target:this, type:"MAP_ON_ROLL_OVER"});
}
function eventRollOut() {
display.__get__guiManager().hideControls();
dispatchEvent({target:this, type:"MAP_ON_ROLL_OUT"});
}
function eventPress() {
var _local2 = getCenterXY();
_local2.x = _local2.x + (_xmouse - (__get__width() / 2));
_local2.y = _local2.y + (_ymouse - (__get__height() / 2));
var _local3 = control.getLatLngFromXY(_local2);
dispatchEvent({target:this, type:"MAP_ON_PRESS", lat:_local3.__get__lat(), lng:_local3.__get__lng()});
}
function eventRelease() {
var _local2 = getCenterXY();
_local2.x = _local2.x + (_xmouse - (__get__width() / 2));
_local2.y = _local2.y + (_ymouse - (__get__height() / 2));
var _local3 = control.getLatLngFromXY(_local2);
dispatchEvent({target:this, type:"MAP_ON_RELEASE", lat:_local3.__get__lat(), lng:_local3.__get__lng()});
}
function eventReleaseOutside() {
dispatchEvent({target:this, type:"MAP_ON_RELEASE_OUTSIDE"});
}
function cancelDoubleClick() {
_doubleClick = false;
_mouseTimer = 0;
}
function cancelDragging() {
_dragging = false;
}
function cloneObject(obj) {
var _local2 = new Object();
for (var _local3 in obj) {
_local2[_local3] = obj[_local3];
}
return(_local2);
}
function copyObject(dst_obj, src_obj) {
for (var _local2 in src_obj) {
dst_obj[_local2] = src_obj[_local2];
}
}
function set background(val) {
_background = val;
invalidate();
//return(background);
}
function get background() {
return(_background);
}
function set backgroundAlpha(val) {
_backgroundAlpha = val;
val = Math.max(0, val);
val = Math.min(100, val);
invalidate();
//return(backgroundAlpha);
}
function get backgroundAlpha() {
return(_backgroundAlpha);
}
function set backgroundColor(val) {
_backgroundColor = val;
invalidate();
//return(backgroundColor);
}
function get backgroundColor() {
return(_backgroundColor);
}
function set border(val) {
_border = val;
invalidate();
//return(border);
}
function get border() {
return(_border);
}
function set borderColor(val) {
_borderColor = val;
invalidate();
//return(borderColor);
}
function get borderColor() {
return(_borderColor);
}
function set centerCross(val) {
_centerCross = val;
invalidate();
//return(centerCross);
}
function get centerCross() {
return(_centerCross);
}
function set centerCrossColor(val) {
_centerCrossColor = val;
invalidate();
//return(centerCrossColor);
}
function get centerCrossColor() {
return(_centerCrossColor);
}
function get controlByMouse() {
return(_controlByMouse);
}
function set controlByMouse(val) {
_controlByMouse = Boolean(val);
//return(controlByMouse);
}
function get controlByKeyboard() {
return(_controlByKeyboard);
}
function set controlByKeyboard(val) {
_controlByKeyboard = Boolean(val);
//return(controlByKeyboard);
}
function get controlByMouseWheel() {
return(_controlByMouseWheel);
}
function set controlByMouseWheel(val) {
_controlByMouseWheel = Boolean(val);
//return(controlByMouseWheel);
}
function set latitude(val) {
val = Number(val);
if (((val == undefined) || (isNaN(val))) || (val == null)) {
return;
}
if (_ready) {
_lat = _control.checkLat(val);
} else {
_lat = val;
}
updatePosition();
//return(latitude);
}
function get latitude() {
return(_lat);
}
function set longitude(val) {
val = Number(val);
if (((val == undefined) || (isNaN(val))) || (val == null)) {
return;
}
if (_ready) {
_lng = _control.checkLng(val, true);
} else {
_lng = val;
}
updatePosition();
//return(longitude);
}
function get longitude() {
return(control.checkLng(_lng, true));
}
function set zoom(val) {
val = Number(val);
if (((val == undefined) || (isNaN(val))) || (val == null)) {
return;
}
if (!_smoothZoom) {
val = Math.round(val);
}
if (_ready) {
_zoom = _control.checkZoom(val);
} else {
_zoom = val;
}
updatePosition();
//return(zoom);
}
function get zoom() {
return(_zoom);
}
function get mapType() {
return(_mapType);
}
function set mapType(val) {
setMapType(val);
//return(mapType);
}
function get animateZoom() {
return(_animateZoom);
}
function set animateZoom(val) {
_animateZoom = Boolean(val);
//return(animateZoom);
}
function get animatePan() {
return(_animatePan);
}
function set animatePan(val) {
_animatePan = Boolean(val);
//return(animatePan);
}
function get panSpeed() {
return(_panSpeed);
}
function set panSpeed(val) {
val = Number(val);
if (((val == undefined) || (isNaN(val))) || (val == null)) {
return;
}
val = Math.min(val, 9);
val = Math.max(val, 2);
_panSpeed = Number(val);
//return(panSpeed);
}
function get doubleClickMode() {
return(_doubleClickMode);
}
function set doubleClickMode(val) {
_doubleClickMode = val;
//return(doubleClickMode);
}
function get zoomAtPointer() {
return(_zoomAtPointer);
}
function set zoomAtPointer(val) {
_zoomAtPointer = Boolean(val);
//return(zoomAtPointer);
}
function get display() {
return(_display);
}
function get control() {
return(_control);
}
function get lat() {
return(_lat);
}
function set lat(val) {
val = Number(val);
if (((val == undefined) || (isNaN(val))) || (val == null)) {
return;
}
if (_ready) {
_lat = _control.checkLat(val);
} else {
_lat = val;
}
updatePosition();
//return(lat);
}
function get lng() {
return(_lng);
}
function set lng(val) {
val = Number(val);
if (((val == undefined) || (isNaN(val))) || (val == null)) {
return;
}
if (_ready) {
_lng = _control.checkLng(val, true);
} else {
_lng = val;
}
updatePosition();
//return(lng);
}
function get noImageQueue() {
return(_noImageQueue);
}
function set noImageQueue(val) {
_noImageQueue = Boolean(val);
//return(noImageQueue);
}
function get smoothing() {
return(_smoothing);
}
function set smoothing(val) {
_smoothing = Boolean(val);
//return(smoothing);
}
function get smoothZoom() {
return(_smoothZoom);
}
function set smoothZoom(val) {
_smoothZoom = Boolean(val);
//return(smoothZoom);
}
function get mapTypeControl() {
return(display.__get__guiManager().mapTypeControl);
}
function get mapZoomControl() {
return(display.__get__guiManager().mapZoomControl);
}
function get mapPositionControl() {
return(display.__get__guiManager().mapPositionControl);
}
function get ready() {
return(_ready);
}
function get isMouseOver() {
return(_isMouseOver);
}
function GLocation(lat, lng) {
return(new com.google.GMap.types.GLocation(Number(lat), Number(lng)));
}
function GCoord(x, y) {
return(new com.google.GMap.types.GCoord(Number(x), Number(y)));
}
function GBounds(left, top, right, bottom) {
return(new com.google.GMap.types.GBounds(left, top, right, bottom));
}
function GRect(left, top, right, bottom) {
return(new com.google.GMap.types.GRect(left, top, right, bottom));
}
function GTypeControl(initObject) {
return(new com.google.GMap.controls.type.GTypeControl(initObject));
}
function GZoomControl(initObject) {
return(new com.google.GMap.controls.zoom.GZoomControl(initObject));
}
function GPositionControl(initObject) {
return(new com.google.GMap.controls.position.GPositionControl(initObject));
}
function GNavigatorControl(initObject) {
return(new com.google.GMap.controls.navigator.GNavigatorControl(initObject));
}
static var MOVE_SPEED = 9;
static var MOVE_ACCELERATION = 3;
static var MOVE_SLOWING = 3;
static var DOUBLE_CLICK_TIME = 0.25;
static var DEFAULT_PANNING_DISTANCE = 100;
static var CENTER_CROSS_SIZE = 10;
static var CENTER_CROSS_WIDTH = 1;
}
Symbol 83 MovieClip [__Packages.com.google.GMap.managers.GDepthManager] Frame 0
class com.google.GMap.managers.GDepthManager
{
var _mc, _lowest_depth, _highest_depth;
function GDepthManager (mc, initObject) {
_mc = mc;
_lowest_depth = cHighestDepth / 2;
_highest_depth = cHighestDepth / 2;
}
function getDepthFromZIndex(depth) {
if (depth == 0) {
depth = getNextLowestDepth();
} else if (depth == undefined) {
depth = getNextHighestDepth();
} else if (_mc.getInstanceAtDepth(depth) != undefined) {
depth = getNextHighestDepth();
} else if (depth < _lowest_depth) {
_lowest_depth = depth - cDepthStep;
} else if (depth > _highest_depth) {
_highest_depth = depth + cDepthStep;
}
if ((depth < cLowestDepth) || (depth > cHighestDepth)) {
return(undefined);
}
if (_mc.getInstanceAtDepth(depth) != undefined) {
depth = getNextHighestDepth();
}
return(depth);
}
function getNextLowestDepth() {
var _local2 = _lowest_depth;
_lowest_depth = _local2 - cDepthStep;
return(_local2);
}
function getNextHighestDepth() {
var _local2 = _highest_depth;
_highest_depth = _local2 + cDepthStep;
return(_local2);
}
function getTopmostDepth() {
var _local2 = _mc.getInstanceAtDepth(cTopmostDepth);
if (_local2) {
_local2.swapDepths(getNextHighestDepth());
}
return(cTopmostDepth);
}
function setObjectDepth(obj, depth) {
if ((depth == 0) || (depth == undefined)) {
return(false);
}
var _local2 = _mc.getInstanceAtDepth(depth);
if (_local2) {
_local2.swapDepths(obj.zIndex);
_local2.super$._zIndex = obj.zIndex;
}
obj._mc.swapDepths(depth);
obj._zIndex = depth;
return(true);
}
function get lowestDepth() {
return(_lowest_depth);
}
function get highestDepth() {
return(_highest_depth);
}
function get topmostDepth() {
return(cTopmostDepth);
}
static var cHighestDepth = 1000000;
static var cLowestDepth = 1000;
static var cTopmostDepth = 1000099;
static var cDepthStep = 5;
}
Symbol 84 MovieClip [__Packages.com.google.GMap.types.GCoord] Frame 0
class com.google.GMap.types.GCoord
{
var _x, _y;
function GCoord (x, y) {
_x = Number(x);
_y = Number(y);
}
function clone() {
return(new com.google.GMap.types.GCoord(_x, _y));
}
function toString() {
return(((("(" + _x) + ", ") + _y) + ")");
}
function get isValid() {
return(Boolean((((_x != undefined) && (_y != undefined)) && (!isNaN(_x))) && (!isNaN(_y))));
}
function get x() {
return(_x);
}
function set x(val) {
_x = Number(val);
//return(x);
}
function get y() {
return(_y);
}
function set y(val) {
_y = Number(val);
//return(y);
}
}
Symbol 85 MovieClip [__Packages.com.google.GMap.types.GLocation] Frame 0
class com.google.GMap.types.GLocation
{
var _lat, _lng;
function GLocation (lat, lng) {
_lat = Number(lat);
_lng = Number(lng);
}
function clone() {
return(new com.google.GMap.types.GLocation(_lat, _lng));
}
function toString() {
return(((("(" + _lat) + ", ") + _lng) + ")");
}
function get lat() {
return(_lat);
}
function set lat(val) {
_lat = Number(val);
//return(lat);
}
function get lng() {
return(_lng);
}
function set lng(val) {
_lng = Number(val);
//return(lng);
}
}
Symbol 86 MovieClip [__Packages.com.google.GMap.types.GBounds] Frame 0
class com.google.GMap.types.GBounds
{
var _left, _top, _right, _bottom;
function GBounds (left_lng, top_lat, right_lng, bottom_lat) {
if (typeof(left_lng) == "object") {
_left = Number(left_lng.lng);
_top = Number(left_lng.lat);
_right = Number(top_lat.lng);
_bottom = Number(top_lat.lat);
} else {
_left = Number(left_lng);
_top = Number(top_lat);
_right = Number(right_lng);
_bottom = Number(bottom_lat);
}
}
function clone() {
return(new com.google.GMap.types.GBounds(_left, _top, _right, _bottom));
}
function toString() {
return(((((((("(" + _top) + ", ") + _left) + ") - (") + _bottom) + ", ") + _right) + ")");
}
function getCenter() {
return(new com.google.GMap.types.GLocation(_top - ((_top - _bottom) / 2), _right - ((_right - _left) / 2)));
}
function containsLatLng(pnt) {
return(Boolean((((_left <= pnt.__get__lng()) && (_right >= pnt.__get__lng())) && (_top >= pnt.__get__lat())) && (_bottom <= pnt.__get__lat())));
}
function containsBounds(bounds) {
return(Boolean((((_left <= bounds.__get__left()) && (_right >= bounds.__get__right())) && (_top >= bounds.__get__top())) && (_bottom <= bounds.__get__bottom())));
}
function intersects(bounds) {
return(!((((_left > bounds.__get__right()) || (_right < bounds.__get__left())) || (_top < bounds.__get__bottom())) || (_bottom > bounds.__get__top())));
}
function get isValid() {
return(Boolean((_left < _right) && (_top > _bottom)));
}
function get northWest() {
return(new com.google.GMap.types.GLocation(_top, _left));
}
function get northEast() {
return(new com.google.GMap.types.GLocation(_top, _right));
}
function get southEast() {
return(new com.google.GMap.types.GLocation(_bottom, _right));
}
function get southWest() {
return(new com.google.GMap.types.GLocation(_bottom, _left));
}
function get left() {
return(_left);
}
function set left(val) {
_left = Number(val);
//return(left);
}
function get right() {
return(_right);
}
function set right(val) {
_right = Number(val);
//return(right);
}
function get top() {
return(_top);
}
function set top(val) {
_top = Number(val);
//return(top);
}
function get bottom() {
return(_bottom);
}
function set bottom(val) {
_bottom = Number(val);
//return(bottom);
}
}
Symbol 87 MovieClip [__Packages.com.google.GMap.geometry.GGeometryObject] Frame 0
class com.google.GMap.geometry.GGeometryObject
{
var _owner, _zIndex, _mc, _visible, _name, _description, _attributes, _enabled, _drag, _zIndexAuto, _lat, _lng, _fill, _fillRGB, _fillGradient, _fillAlpha, _stroke, _strokeThickness, _strokeRGB, _strokeAlpha, _filters, _strokePixelHinting, _strokeNoScale, _strokeCapsStyle, _strokeJointStyle, _strokeMiterLimit, _infoWindowStyle, _dragging, _dragged, _drag_point, _shifted, dispatchEvent, _removed, _infoWindow, _bounds, _type, _id;
function GGeometryObject (owner, initObject) {
_owner = owner;
_owner.registerObject(this);
_zIndex = ((initObject.zIndex != undefined) ? (initObject.zIndex) : undefined);
_mc = _owner.getNewMovieClip(_zIndex);
_mc._name = "geom" + _mc._name.slice(2);
_mc.super$ = this;
_zIndex = _mc.getDepth();
_visible = true;
_name = ((initObject.name != undefined) ? (String(initObject.name)) : "");
_description = ((initObject.description != undefined) ? (String(initObject.description)) : undefined);
_attributes = ((initObject.attributes != undefined) ? (initObject.attributes) : (new Array()));
_enabled = ((initObject.enabled != undefined) ? (Boolean(initObject.enabled)) : true);
_drag = ((initObject.drag != undefined) ? (Boolean(initObject.drag)) : false);
visible = (((initObject.visible != undefined) ? (Boolean(initObject.visible)) : true));
_zIndexAuto = ((initObject.zIndexAuto != undefined) ? (Boolean(initObject.zIndexAuto)) : true);
_lat = (((initObject.lat != undefined) && (!isNaN(Number(initObject.lat)))) ? (Number(initObject.lat)) : 0);
_lng = (((initObject.lng != undefined) && (!isNaN(Number(initObject.lng)))) ? (Number(initObject.lng)) : 0);
_fill = ((initObject.fill != undefined) ? (Boolean(initObject.fill)) : true);
_fillRGB = ((initObject.fillRGB != undefined) ? (Number(initObject.fillRGB)) : undefined);
_fillGradient = ((initObject.fillGradient != undefined) ? (core.cloneObject(initObject.fillGradient)) : undefined);
_fillAlpha = ((initObject.fillAlpha != undefined) ? (Number(initObject.fillAlpha)) : 100);
_stroke = ((initObject.stroke != undefined) ? (Boolean(initObject.stroke)) : true);
_strokeThickness = ((initObject.strokeThickness != undefined) ? (Number(initObject.strokeThickness)) : 2);
_strokeRGB = ((initObject.strokeRGB != undefined) ? (Number(initObject.strokeRGB)) : 0);
_strokeAlpha = ((initObject.strokeAlpha != undefined) ? (Number(initObject.strokeAlpha)) : 100);
_filters = ((initObject.filters != undefined) ? (initObject.filters) : (new Array()));
_strokePixelHinting = ((initObject.strokePixelHinting != undefined) ? (Boolean(initObject.strokePixelHinting)) : false);
_strokeNoScale = ((initObject.strokeNoScale != undefined) ? (String(initObject.strokeNoScale)) : "normal");
_strokeCapsStyle = ((initObject.strokeCapsStyle != undefined) ? (String(initObject.strokeCapsStyle)) : "round");
_strokeJointStyle = ((initObject.strokeJointStyle != undefined) ? (String(initObject.strokeJointStyle)) : "round");
_strokeMiterLimit = ((initObject.strokeMiterLimit != undefined) ? (Number(initObject.strokeMiterLimit)) : 3);
_infoWindowStyle = new Object();
if (initObject.hasOwnProperty("infoWindowStyle")) {
_infoWindowStyle = core.cloneObject(initObject.infoWindowStyle);
}
_mc.filters = _filters;
_mc._visible = _visible;
_mc.useHandCursor = _drag && (_enabled);
_mc.onPress = mx.utils.Delegate.create(this, onObjectPress);
_mc.onRelease = mx.utils.Delegate.create(this, onObjectRelease);
_mc.onReleaseOutside = mx.utils.Delegate.create(this, onObjectReleaseOutside);
_mc.onMouseMove = mx.utils.Delegate.create(this, onObjectMouseMove);
_mc.onRollOver = mx.utils.Delegate.create(this, onObjectRollOver);
_mc.onRollOut = mx.utils.Delegate.create(this, onObjectRollOut);
_dragging = false;
_dragged = false;
_drag_point = new Object();
_shifted = 0;
mx.events.EventDispatcher.initialize(this);
dispatchEvent({target:this, type:"GEOMETRY_READY"});
}
function invalidate() {
_mc.onEnterFrame = mx.utils.Delegate.create(this, redraw);
}
function redraw() {
delete _mc.onEnterFrame;
}
function size() {
updatePosition();
}
function updatePosition() {
if (!visible) {
return(undefined);
}
_owner.setObjectPosition(this);
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
}
function remove() {
dispatchEvent({target:this, type:"GEOMETRY_REMOVED"});
_owner.removeGeometryObject(this);
_removed = true;
}
function show() {
if (!_visible) {
_visible = true;
_mc._visible = true;
updatePosition();
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
}
}
function hide() {
_visible = false;
_mc._visible = false;
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
}
function releaseMovieClip() {
if (_mc.getDepth() < 0) {
var _local2 = _mc._parent.getInstanceAtDepth(0);
_mc.swapDepths(0);
_mc.removeMovieClip();
_local2.swapDepths(0);
} else {
_mc.removeMovieClip();
}
}
function openInfoWindow(initObject) {
if ((!visible) || (!enabled)) {
return(undefined);
}
if ((initObject == undefined) || (typeof(initObject) != "object")) {
initObject = new Object();
initObject = core.cloneObject(_infoWindowStyle);
}
var _local3 = getBounds().getCenter();
initObject.lat = _local3.lat;
initObject.lng = _local3.lng;
_infoWindow = core.display.guiManager.openInfoWindow(initObject);
_infoWindow.addEventListener("GEOMETRY_REMOVED", mx.utils.Delegate.create(this, closeInfoWindow));
return(_infoWindow);
}
function closeInfoWindow() {
if (infoWindow) {
delete _infoWindow;
core.closeInfoWindow();
}
}
function removeEventListeners() {
delete _mc.onPress;
delete _mc.onRelease;
delete _mc.onReleaseOutside;
delete _mc.onMouseMove;
delete _mc.onRollOver;
delete _mc.onRollOut;
}
function getBounds() {
if (!_bounds) {
_bounds = new com.google.GMap.types.GBounds(0, 0, 0, 0);
var _local2 = core.control.getXYFromLatLng(new com.google.GMap.types.GLocation(_lat, _lng));
_local2.x = _local2.x + _mc._x;
_local2.y = _local2.y + _mc._y;
var _local3 = core.control.getLatLngFromXY(_local2);
_bounds.__set__top(_local3.lat);
_bounds.__set__left(_local3.lng);
_local2.x = _local2.x + _mc._width;
_local2.y = _local2.y + _mc._height;
_local3 = core.control.getLatLngFromXY(_local2);
_bounds.__set__bottom(_local3.lat);
_bounds.__set__right(_local3.lng);
}
return(_bounds);
}
function onObjectPress() {
if (!_enabled) {
return(undefined);
}
if (_drag) {
_drag_point.x = _mc._xmouse;
_drag_point.y = _mc._ymouse;
_dragging = true;
_dragged = false;
core.cancelDragging();
}
dispatchEvent({target:this, type:"GEOMETRY_ON_PRESS"});
}
function onObjectRelease() {
if (!_enabled) {
return(undefined);
}
if (_dragging) {
_dragging = false;
_lng = core.control.checkLng(_lng, true);
updatePosition();
core.cancelDoubleClick();
if (_dragged) {
_dragged = false;
dispatchEvent({target:this, type:"GEOMETRY_ON_DRAG_STOP"});
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
}
}
dispatchEvent({target:this, type:"GEOMETRY_ON_RELEASE"});
}
function onObjectReleaseOutside() {
if (!_enabled) {
return(undefined);
}
if (_dragging) {
_dragging = false;
_lng = core.control.checkLng(_lng, true);
updatePosition();
core.cancelDoubleClick();
if (_dragged) {
_dragged = false;
dispatchEvent({target:this, type:"GEOMETRY_ON_DRAG_STOP"});
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
}
}
dispatchEvent({target:this, type:"GEOMETRY_ON_RELEASE_OUTSIDE"});
}
function onObjectMouseMove() {
if (!_enabled) {
return(undefined);
}
if (_dragging) {
if (_dragged == false) {
_dragged = true;
dispatchEvent({target:this, type:"GEOMETRY_ON_DRAG_START"});
}
var _local2 = core.control.getXYFromLatLng(new com.google.GMap.types.GLocation(_lat, _lng), Math.floor(core.zoom));
_local2.x = _local2.x - (_mc._x - (_owner.xmouse - _drag_point.x));
_local2.y = _local2.y - (_mc._y - (_owner.ymouse - _drag_point.y));
_local2.__set__y(Math.max(0, _local2.__get__y()));
_local2.__set__y(Math.min(core.control.mercator.height[Math.floor(core.zoom)], _local2.__get__y()));
var _local3 = core.control.getLatLngFromXY(_local2, Math.floor(core.zoom));
_lat = _local3.lat;
_lng = _local3.lng;
updatePosition();
core.cancelDragging();
dispatchEvent({target:this, type:"GEOMETRY_ON_DRAG"});
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
updateAfterEvent();
}
}
function onObjectRollOver() {
if (!_enabled) {
return(undefined);
}
if (_zIndexAuto && (_enabled)) {
_owner.depthManager.setObjectDepth(this, _owner.depthManager.highestDepth);
}
dispatchEvent({target:this, type:"GEOMETRY_ON_ROLL_OVER"});
}
function onObjectRollOut() {
if (!_enabled) {
return(undefined);
}
dispatchEvent({target:this, type:"GEOMETRY_ON_ROLL_OUT"});
}
function get type() {
return(_type);
}
function get id() {
return(_id);
}
function set id(val) {
_id = Number(val);
//return(id);
}
function get name() {
return(_name);
}
function set name(val) {
_name = String(val);
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
//return(name);
}
function get description() {
return(_description);
}
function set description(val) {
_description = String(val);
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
//return(description);
}
function get attributes() {
return(_attributes);
}
function set attributes(val) {
_attributes = val;
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
//return(attributes);
}
function get enabled() {
return(_enabled);
}
function set enabled(val) {
if (val == undefined) {
val = false;
}
_enabled = Boolean(val);
_mc.useHandCursor = _drag && (_enabled);
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
//return(enabled);
}
function get drag() {
return(_drag);
}
function set drag(val) {
if (val == undefined) {
val = false;
}
_drag = Boolean(val);
_mc.useHandCursor = _drag && (_enabled);
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
//return(drag);
}
function get visible() {
return(_visible);
}
function set visible(val) {
if (val == undefined) {
val = false;
}
if (Boolean(val)) {
show();
} else {
hide();
}
//return(visible);
}
function get zIndex() {
return(_zIndex);
}
function set zIndex(val) {
var _local2 = _owner.depthManager.getDepthFromZIndex(val);
_mc.swapDepths(_local2);
_zIndex = Number(_local2);
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
//return(zIndex);
}
function get zIndexAuto() {
return(_zIndexAuto);
}
function set zIndexAuto(val) {
if (val == undefined) {
val = false;
}
_zIndexAuto = Boolean(val);
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
//return(zIndexAuto);
}
function get lat() {
return(_lat);
}
function set lat(val) {
if (isNaN(Number(val)) || (val == undefined)) {
val = 0;
}
_lat = Number(val);
size();
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
//return(lat);
}
function get lng() {
return(_lng);
}
function set lng(val) {
if (isNaN(Number(val)) || (val == undefined)) {
val = 0;
}
_lng = Number(val);
size();
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
//return(lng);
}
function get fill() {
return(_fill);
}
function set fill(val) {
if (val == undefined) {
val = false;
}
_fill = Boolean(val);
invalidate();
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
//return(fill);
}
function get fillRGB() {
return(_fillRGB);
}
function set fillRGB(val) {
if (val != undefined) {
val = Math.max(0, val);
val = Math.min(16777215, val);
}
_fillRGB = Number(val);
_fillGradient = undefined;
invalidate();
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
//return(fillRGB);
}
function get fillGradient() {
return(_fillGradient);
}
function set fillGradient(val) {
_fillGradient = _owner.core.cloneObject(val);
_fillRGB = undefined;
invalidate();
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
//return(fillGradient);
}
function get fillAlpha() {
return(_fillAlpha);
}
function set fillAlpha(val) {
if (val == undefined) {
val = 100;
}
val = Math.max(0, val);
val = Math.min(100, val);
_fillAlpha = Number(val);
invalidate();
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
//return(fillAlpha);
}
function get stroke() {
return(_stroke);
}
function set stroke(val) {
if (val == undefined) {
val = false;
}
_stroke = Boolean(val);
invalidate();
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
//return(stroke);
}
function get strokeThickness() {
return(_strokeThickness);
}
function set strokeThickness(val) {
if (val != undefined) {
val = Math.max(0, val);
val = Math.min(255, val);
}
_strokeThickness = Number(val);
invalidate();
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
//return(strokeThickness);
}
function get strokeRGB() {
return(_strokeRGB);
}
function set strokeRGB(val) {
if (val == undefined) {
val = 0;
}
val = Math.max(0, val);
val = Math.min(16777215, val);
_strokeRGB = Number(val);
invalidate();
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
//return(strokeRGB);
}
function get strokeAlpha() {
return(_strokeAlpha);
}
function set strokeAlpha(val) {
if (val == undefined) {
val = 100;
}
val = Math.max(0, val);
val = Math.min(100, val);
_strokeAlpha = Number(val);
invalidate();
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
//return(strokeAlpha);
}
function get filters() {
return(_filters);
}
function set filters(val) {
_filters = val;
_mc.filters = _filters;
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
//return(filters);
}
function get infoWindowStyle() {
return(_infoWindowStyle);
}
function set infoWindowStyle(val) {
core.copyObject(_infoWindowStyle, val);
//return(infoWindowStyle);
}
function get infoWindow() {
if ((_infoWindow.__get__removed() || (_infoWindow.__get__mc() == undefined)) || (_infoWindow.__get__mc() == "")) {
delete _infoWindow;
return(undefined);
}
return(_infoWindow);
}
function get shifted() {
return(_shifted);
}
function set shifted(val) {
_shifted = Number(val);
//return(shifted);
}
function get core() {
return(_owner.core);
}
function get owner() {
return(_owner);
}
function get mc() {
return(_mc);
}
function get removed() {
return(_removed);
}
}
Symbol 88 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return((_local3 || (_local3 = mx.utils.Delegate)).create(obj, func));
}
}
Symbol 89 MovieClip [__Packages.com.google.GMap.types.GRect] Frame 0
class com.google.GMap.types.GRect
{
var _left, _top, _right, _bottom;
function GRect (left_x, top_y, right_x, bottom_y) {
if (typeof(left_x) == "object") {
_left = Number(left_x.x);
_top = Number(left_x.y);
_right = Number(top_y.x);
_bottom = Number(top_y.y);
} else {
_left = Number(left_x);
_top = Number(top_y);
_right = Number(right_x);
_bottom = Number(bottom_y);
}
}
function clone() {
return(new com.google.GMap.types.GRect(_left, _top, _right, _bottom));
}
function toString() {
return(((((((("(" + _left) + ", ") + _top) + ") - (") + _right) + ", ") + _bottom) + ")");
}
function move(x, y) {
_left = _left + x;
_right = _right + x;
_top = _top + y;
_bottom = _bottom + y;
}
function containsXY(pnt) {
return(Boolean((((_left <= pnt.__get__x()) && (_right >= pnt.__get__x())) && (_top <= pnt.__get__y())) && (_bottom >= pnt.__get__y())));
}
function intersection(rect) {
var _local3 = !((((left > rect.__get__right()) || (right < rect.__get__left())) || (top > rect.__get__bottom())) || (bottom < rect.__get__top()));
if (_local3) {
return(new com.google.GMap.types.GRect(Math.max(rect.__get__left(), left), Math.max(rect.__get__top(), top), Math.min(rect.__get__right(), right), Math.min(rect.__get__bottom(), bottom)));
}
return(undefined);
}
function placeInsideRect(rect) {
var _local3 = new com.google.GMap.types.GCoord(0, 0);
if (right > rect.__get__right()) {
_local3.__set__x(rect.__get__right() - right);
}
if (left < rect.__get__left()) {
_local3.__set__x(rect.__get__left() - left);
}
if (bottom > rect.__get__bottom()) {
_local3.__set__y(rect.__get__bottom() - bottom);
}
if (top < rect.__get__top()) {
_local3.__set__y(rect.__get__top() - top);
}
move(_local3.__get__x(), _local3.__get__y());
}
function inflate(x, y) {
x = ((x == undefined) ? 0 : (x));
y = ((y == undefined) ? 0 : (y));
_left = _left - x;
_right = _right + x;
_top = _top - y;
_bottom = _bottom + y;
}
function containsRect(rect) {
return(Boolean((((_left <= rect.__get__left()) && (_right >= rect.__get__right())) && (_top <= rect.__get__top())) && (_bottom >= rect.__get__bottom())));
}
function intersects(rect) {
return(!((((_left > rect.__get__right()) || (_right < rect.__get__left())) || (_top > rect.__get__bottom())) || (_bottom < rect.__get__top())));
}
function get northWest() {
return(new com.google.GMap.types.GCoord(_left, _top));
}
function get northEast() {
return(new com.google.GMap.types.GCoord(_right, _top));
}
function get southEast() {
return(new com.google.GMap.types.GCoord(_right, _bottom));
}
function get southWest() {
return(new com.google.GMap.types.GCoord(_left, _bottom));
}
function get left() {
return(_left);
}
function set left(val) {
_left = Number(val);
//return(left);
}
function get right() {
return(_right);
}
function set right(val) {
_right = Number(val);
//return(right);
}
function get top() {
return(_top);
}
function set top(val) {
_top = Number(val);
//return(top);
}
function get bottom() {
return(_bottom);
}
function set bottom(val) {
_bottom = Number(val);
//return(bottom);
}
function get width() {
return(_right - _left);
}
function get height() {
return(_bottom - _top);
}
}
Symbol 90 MovieClip [__Packages.com.google.GMap.window.GInfoWindow] Frame 0
class com.google.GMap.window.GInfoWindow extends com.google.GMap.geometry.GGeometryObject
{
var _w, _h, _radius, _padding, _close, _tail, _tailHeight, _tailWidth, _tailOffset, _tailAlign, _title, _titleFont, _titleRGB, _titleSize, _titleHTML, _titleFormat, _owner, _content, _contentFont, _contentRGB, _contentSize, _contentHTML, _contentFormat, _contentAutoSize, _titleStyle, _contentStyle, _autoClose, _shadow, _fillGradient, _strokeAlpha, _type, _mc, _window_mc, _shadow_mc, __get__core, _content_txt, _pointOffset, _lat, _lng, _title_txt, _stroke, _strokeThickness, _strokeRGB, _strokePixelHinting, _strokeNoScale, _strokeCapsStyle, _strokeJointStyle, _strokeMiterLimit, _fill, _fillRGB, _fillAlpha, _closeBtn, dispatchEvent;
function GInfoWindow (owner, initObject) {
super(owner, initObject);
_w = (((initObject.w != undefined) && (!isNaN(initObject.w))) ? (Number(initObject.w)) : 200);
_h = (((initObject.h != undefined) && (!isNaN(initObject.h))) ? (Number(initObject.h)) : 40);
_radius = (((initObject.radius != undefined) && (!isNaN(initObject.radius))) ? (Number(initObject.radius)) : 13);
_padding = ((initObject.padding != undefined) ? (initObject.padding) : 10);
_close = ((initObject.close != undefined) ? (Boolean(initObject.close)) : true);
_tail = ((initObject.tail != undefined) ? (Boolean(initObject.tail)) : true);
_tailHeight = (((initObject.tailHeight != undefined) && (!isNaN(initObject.tailHeight))) ? (Number(initObject.tailHeight)) : 20);
_tailWidth = (((initObject.tailWidth != undefined) && (!isNaN(initObject.tailWidth))) ? (Number(initObject.tailWidth)) : 20);
_tailOffset = (((initObject.tailOffset != undefined) && (!isNaN(initObject.tailOffset))) ? (Number(initObject.tailOffset)) : 10);
_tailAlign = ((initObject.tailAlign != undefined) ? (String(initObject.tailAlign)) : "right");
pointOffset = (initObject.pointOffset);
_title = ((initObject.title != undefined) ? (String(initObject.title)) : "Info Window");
_titleFont = ((initObject.titleFont != undefined) ? (String(initObject.titleFont)) : "_sans");
_titleRGB = ((initObject.titleRGB != undefined) ? (Number(initObject.titleRGB)) : 6710886);
_titleSize = ((initObject.titleSize != undefined) ? (Number(initObject.titleSize)) : 11);
_titleHTML = ((initObject.titleHTML != undefined) ? (Boolean(initObject.titleHTML)) : false);
_titleFormat = ((initObject.titleFormat != undefined) ? (_owner.core.cloneObject(initObject.titleFormat)) : ({}));
_content = ((initObject.content != undefined) ? (String(initObject.content)) : "");
_contentFont = ((initObject.contentFont != undefined) ? (String(initObject.contentFont)) : "_sans");
_contentRGB = ((initObject.contentRGB != undefined) ? (Number(initObject.contentRGB)) : 6710886);
_contentSize = ((initObject.contentSize != undefined) ? (Number(initObject.contentSize)) : 11);
_contentHTML = ((initObject.contentHTML != undefined) ? (Boolean(initObject.contentHTML)) : false);
_contentFormat = ((initObject.contentFormat != undefined) ? (_owner.core.cloneObject(initObject.contentFormat)) : ({}));
_contentAutoSize = ((initObject.contentAutoSize != undefined) ? (Boolean(initObject.contentAutoSize)) : false);
_titleStyle = ((initObject.titleStyle != undefined) ? (initObject.titleStyle) : undefined);
_contentStyle = ((initObject.contentStyle != undefined) ? (initObject.contentStyle) : undefined);
_autoClose = ((initObject.autoClose != undefined) ? (Boolean(initObject.autoClose)) : false);
_shadow = ((initObject.shadow != undefined) ? (initObject.shadow) : false);
if ((initObject.fillRGB == undefined) && (initObject.fillGradient == undefined)) {
var _local4 = new Object();
_local4.fillType = "linear";
_local4.colors = [16777215, 16777215];
_local4.alphas = [75, 100];
_local4.ratios = [0, 255];
_local4.matrix = new flash.geom.Matrix();
_local4.matrix.createGradientBox(_w, _h, 4.71238898038469, 0, 0);
_fillGradient = _local4;
}
if ((initObject.hasOwnProperty("filters") == false) || (initObject == undefined)) {
_shadow = true;
}
if ((initObject.hasOwnProperty("strokeAlpha") == false) || (initObject == undefined)) {
_strokeAlpha = 20;
}
_type = "GInfoWindow";
delete _mc.onPress;
delete _mc.onRelease;
delete _mc.onReleaseOutside;
delete _mc.onMouseMove;
delete _mc.onRollOver;
delete _mc.onRollOut;
_window_mc = _mc.createEmptyMovieClip("window_mc", 20);
_shadow_mc = _mc.createEmptyMovieClip("shadow_mc", 10);
__get__core().addEventListener("MAP_ON_PRESS", mx.utils.Delegate.create(this, mapOnPress));
redraw();
if (_contentHTML) {
_window_mc.createEmptyMovieClip("mc$", -100);
_window_mc.mc$.txt = _content_txt;
_window_mc.mc$.obj$ = this;
_window_mc.mc$.onEnterFrame = function () {
if (!this.obj$.contentHTML) {
return(undefined);
}
if ((this.prevHeight != this.txt.textHeight) || (this.realHeight != this.txt._height)) {
this.prevHeight = this.txt.textHeight;
this.realHeight = this.txt._height;
this.obj$.dspWindowBg();
this.obj$.size();
}
};
}
}
function invalidate() {
super.invalidate();
}
function redraw() {
super.redraw();
dspWindowTitle();
dspWindowContent();
dspCloseBtn();
dspWindowBg();
size();
if (_shadow) {
createDropShadow();
}
}
function size() {
super.size();
_window_mc._y = (-Math.round(h + tailHeight)) + _pointOffset.y;
_window_mc._x = (-Math.round(w / 2)) + _pointOffset.x;
}
function getBounds() {
var _local3 = __get__core().control.getXYFromLatLng(new com.google.GMap.types.GLocation(_lat, _lng));
var _local2 = new com.google.GMap.types.GRect(0, 0, 0, 0);
_local2.__set__left(_local3.__get__x() + _window_mc._x);
_local2.__set__top(_local3.__get__y() + _window_mc._y);
_local2.__set__right(_local2.__get__left() + w);
_local2.__set__bottom(_local3.y);
return(new com.google.GMap.types.GBounds(__get__core().control.getLatLngFromXY(_local2.__get__northWest()), __get__core().control.getLatLngFromXY(_local2.__get__southEast())));
}
function getRect() {
var _local3 = __get__core().control.getXYFromLatLng(new com.google.GMap.types.GLocation(_lat, _lng));
var _local2 = new com.google.GMap.types.GRect(0, 0, 0, 0);
_local2.__set__left((_local3.__get__x() - Math.round(w / 2)) + _pointOffset.x);
_local2.__set__top((_local3.__get__y() - Math.round(h + tailHeight)) + _pointOffset.y);
_local2.__set__right(_local2.__get__left() + w);
_local2.__set__bottom(_local3.y);
return(_local2);
}
function createDropShadow() {
_shadow = true;
if (_shadow_mc.bitmap) {
_shadow_mc.bitmap.removeMovieClip();
}
var _local2 = _shadow_mc.createEmptyMovieClip("bitmap", 10);
var _local5 = new flash.display.BitmapData(_window_mc._width, _window_mc._height, true, 0);
_local2.attachBitmap(_local5, 10, "auto", false);
var _local4 = {x:_window_mc._x, y:_window_mc._y};
var _local3 = _window_mc.getBounds();
_window_mc._x = -_local3.xMin;
_window_mc._y = -_local3.yMin;
_local5.draw(_mc);
_local2._x = 100;
_window_mc._x = _local4.x;
_window_mc._y = _local4.y;
_local2._x = _local4.x + _local3.xMin;
_local2._y = _local4.y + _local3.yMin;
var _local6 = new flash.geom.Matrix(1, 0, -0.267949192431123, 0.5, 0, 0);
var _local7 = new flash.geom.Transform(_shadow_mc);
_local7.matrix = _local6;
var _local8 = new flash.filters.DropShadowFilter(0, 0, 0, 0.6, 3, 3, 1, 1, false, false, true);
_shadow_mc.filters = [_local8];
}
function clearDropShadow() {
_shadow = false;
_shadow_mc.bitmap.removeMovieClip();
}
function dspWindowTitle() {
if (_title_txt == undefined) {
_title_txt = _window_mc.createTextField("title_txt", 3, _padding, _padding, (_w - (_padding * 3)) - 13, 10);
_title_txt.autoSize = true;
_title_txt.selectable = false;
_title_txt.multiline = true;
_title_txt.wordWrap = true;
}
_title_txt.html = _titleHTML;
if (_titleHTML) {
_title_txt.styleSheet = _titleStyle;
_title_txt.embedFonts = _titleFormat.embedFonts;
_title_txt.htmlText = _title;
} else {
_title_txt.text = _title;
setTitleFormat();
}
}
function setTitleFormat() {
_title_txt.embedFonts = _titleFormat.embedFonts;
_title_txt.textColor = ((_titleFormat.color != undefined) ? (_titleFormat.color) : (_titleRGB));
var _local2 = new TextFormat();
_local2.font = String(((_titleFormat.font != undefined) ? (_titleFormat.font) : (_titleFont)));
_local2.size = ((_titleFormat.size != undefined) ? (_titleFormat.size) : (_titleSize));
_local2.bold = ((_titleFormat.bold != undefined) ? (_titleFormat.bold) : false);
_local2.italic = ((_titleFormat.italic != undefined) ? (_titleFormat.italic) : false);
_local2.underline = ((_titleFormat.underline != undefined) ? (_titleFormat.underline) : false);
_local2.letterSpacing = ((_titleFormat.letterSpacing != undefined) ? (_titleFormat.letterSpacing) : 0);
_title_txt.setTextFormat(_local2);
}
function dspWindowContent() {
if (_content_txt == undefined) {
_content_txt = _window_mc.createTextField("content_txt", 4, _padding, (_title_txt._y + _title_txt.textHeight) + _padding, _w - (_padding * 2), _h - ((_title_txt._y + _title_txt.textHeight) + (_padding * 2)));
_content_txt.autoSize = _contentAutoSize;
_content_txt.selectable = false;
_content_txt.multiline = true;
_content_txt.wordWrap = true;
_content_txt.border = false;
}
_content_txt.html = _contentHTML;
if (_contentHTML) {
_content_txt.styleSheet = _contentStyle;
_content_txt.embedFonts = _contentFormat.embedFonts;
_content_txt.htmlText = _content;
} else {
_content_txt.text = _content;
setContentFormat();
}
}
function setContentFormat() {
_content_txt.embedFonts = _contentFormat.embedFonts;
_content_txt.textColor = ((_contentFormat.color != undefined) ? (_contentFormat.color) : (_contentRGB));
var _local2 = new TextFormat();
_local2.font = String(((_contentFormat.font != undefined) ? (_contentFormat.font) : (_contentFont)));
_local2.size = ((_contentFormat.size != undefined) ? (_contentFormat.size) : (_contentSize));
_local2.bold = ((_contentFormat.bold != undefined) ? (_contentFormat.bold) : false);
_local2.italic = ((_contentFormat.italic != undefined) ? (_contentFormat.italic) : false);
_local2.underline = ((_contentFormat.underline != undefined) ? (_contentFormat.underline) : false);
_local2.letterSpacing = ((_contentFormat.letterSpacing != undefined) ? (_contentFormat.letterSpacing) : 0);
_content_txt.setTextFormat(_local2);
}
function dspWindowBg() {
if (bg == undefined) {
var bg = _window_mc.createEmptyMovieClip("bg_mc", 1);
}
bg.clear();
if ((!_stroke) || (_strokeThickness == undefined)) {
bg.lineStyle(undefined, 0, 0);
} else {
bg.lineStyle(_strokeThickness, _strokeRGB, _strokeAlpha, _strokePixelHinting, _strokeNoScale, _strokeCapsStyle, _strokeJointStyle, _strokeMiterLimit);
}
if (_fill && ((_fillRGB != undefined) || (_fillGradient != undefined))) {
if (_fillGradient != undefined) {
bg.beginGradientFill(_fillGradient.fillType, _fillGradient.colors, _fillGradient.alphas, _fillGradient.ratios, _fillGradient.matrix, _fillGradient.spreadMethod, _fillGradient.interpolationMethod, _fillGradient.focalPointRatio);
} else {
bg.beginFill(_fillRGB, _fillAlpha);
}
}
if (contentAutoSize) {
var _local2 = _h;
_h = _content_txt._height + ((_title_txt._y + _title_txt.textHeight) + (padding * 2));
}
bg.moveTo(_radius, 0);
bg.lineTo(_w - _radius, 0);
bg.curveTo(_w, 0, _w, _radius);
bg.lineTo(_w, _h - _radius);
bg.curveTo(_w, _h, _w - _radius, _h);
if (_tail) {
switch (_tailAlign) {
case "right" :
bg.lineTo(((_w / 2) + _tailWidth) + _tailOffset, _h);
bg.lineTo(_w / 2, _h + _tailHeight);
bg.lineTo((_w / 2) + _tailOffset, _h);
break;
case "left" :
bg.lineTo((_w / 2) - _tailOffset, _h);
bg.lineTo(_w / 2, _h + _tailHeight);
bg.lineTo(((_w / 2) - _tailWidth) - _tailOffset, _h);
break;
case "center" :
bg.lineTo((_w / 2) + (_tailWidth / 2), _h);
bg.lineTo(_w / 2, _h + _tailHeight);
bg.lineTo((_w / 2) - (_tailWidth / 2), _h);
}
}
bg.lineTo(_radius, _h);
bg.curveTo(0, _h, 0, _h - _radius);
bg.lineTo(0, _radius);
bg.curveTo(0, 0, _radius, 0);
bg.endFill();
}
function dspCloseBtn() {
if (_close) {
_closeBtn = _window_mc.attachMovie("close_ico", "close_btn", 2, {_y:_padding, _x:(_w - 13) - _padding});
enableCloseButton();
} else if (_closeBtn != undefined) {
_closeBtn.removeMovieClip();
}
}
function enableCloseButton() {
_closeBtn.obj = this;
_closeBtn.onRelease = function () {
this.obj.dispatchEvent({target:this.obj, type:"INFO_WINDOW_CLOSED"});
this.obj.remove();
};
_closeBtn.onPress = function () {
this.obj.dispatchEvent({target:this.obj, type:"INFO_WINDOW_ON_PRESS"});
};
}
function updatePosition() {
super.updatePosition();
}
function mapOnPress(evt) {
if (!_autoClose) {
return(undefined);
}
if ((((_window_mc._xmouse < 0) || (_window_mc._xmouse > _window_mc._width)) || (_window_mc._ymouse < 0)) || (_window_mc._ymouse > _window_mc._height)) {
__get__core().closeInfoWindow();
}
}
function get w() {
return(_w);
}
function set w(val) {
if ((val == undefined) || (isNaN(Number(val)))) {
val = 250;
}
_w = Number(val);
invalidate();
dispatchEvent({target:this, type:"INFO_WINDOW_CHANGED"});
//return(w);
}
function get h() {
return(_h);
}
function set h(val) {
if ((val == undefined) || (isNaN(Number(val)))) {
val = 150;
}
_h = Number(val);
invalidate();
dispatchEvent({target:this, type:"INFO_WINDOW_CHANGED"});
//return(h);
}
function get radius() {
return(_radius);
}
function set radius(val) {
if ((val == undefined) || (isNaN(Number(val)))) {
val = 20;
}
_radius = Number(val);
invalidate();
dispatchEvent({target:this, type:"INFO_WINDOW_CHANGED"});
//return(radius);
}
function get padding() {
return(_padding);
}
function set padding(val) {
if ((val == undefined) || (isNaN(Number(val)))) {
val = 10;
}
_padding = Number(val);
invalidate();
dispatchEvent({target:this, type:"INFO_WINDOW_CHANGED"});
//return(padding);
}
function get close() {
return(_close);
}
function set close(val) {
if (val == undefined) {
val = true;
}
_close = Boolean(val);
invalidate();
dispatchEvent({target:this, type:"INFO_WINDOW_CHANGED"});
//return(close);
}
function get tail() {
return(_tail);
}
function set tail(val) {
if (val == undefined) {
val = true;
}
_tail = Boolean(val);
invalidate();
dispatchEvent({target:this, type:"INFO_WINDOW_CHANGED"});
//return(tail);
}
function get tailHeight() {
return(_tailHeight);
}
function set tailHeight(val) {
if ((val == undefined) || (isNaN(Number(val)))) {
val = 70;
}
_tailHeight = Number(val);
invalidate();
dispatchEvent({target:this, type:"INFO_WINDOW_CHANGED"});
//return(tailHeight);
}
function get tailWidth() {
return(_tailWidth);
}
function set tailWidth(val) {
if ((val == undefined) || (isNaN(Number(val)))) {
val = 30;
}
_tailWidth = Number(val);
invalidate();
dispatchEvent({target:this, type:"INFO_WINDOW_CHANGED"});
//return(tailWidth);
}
function get tailOffset() {
return(_tailOffset);
}
function set tailOffset(val) {
if ((val == undefined) || (isNaN(Number(val)))) {
val = 20;
}
_tailOffset = Number(val);
invalidate();
dispatchEvent({target:this, type:"INFO_WINDOW_CHANGED"});
//return(tailOffset);
}
function get pointOffset() {
return(_pointOffset);
}
function set pointOffset(val) {
if (_pointOffset == undefined) {
_pointOffset = {x:0, y:0};
}
if (val.x != undefined) {
_pointOffset.x = val.x;
}
if (val.x != undefined) {
_pointOffset.y = val.y;
}
invalidate();
dispatchEvent({target:this, type:"INFO_WINDOW_CHANGED"});
//return(pointOffset);
}
function get tailAlign() {
return(_tailAlign);
}
function set tailAlign(val) {
if (val == undefined) {
val = "right";
}
_tailAlign = String(val);
invalidate();
dispatchEvent({target:this, type:"INFO_WINDOW_CHANGED"});
//return(tailAlign);
}
function get title() {
return(_title);
}
function set title(val) {
if (val == undefined) {
val = "";
}
_title = String(val);
invalidate();
dispatchEvent({target:this, type:"INFO_WINDOW_CHANGED"});
//return(title);
}
function get titleFont() {
return(_titleFont);
}
function set titleFont(val) {
if (val == undefined) {
val = "_sans";
}
if (_titleFont != val) {
_titleFont = String(val);
invalidate();
dispatchEvent({target:this, type:"INFO_WINDOW_CHANGED"});
}
//return(titleFont);
}
function get titleRGB() {
return(_titleRGB);
}
function set titleRGB(val) {
if (val == undefined) {
val = 6710886 /* 0x666666 */;
}
_titleRGB = Number(val);
invalidate();
dispatchEvent({target:this, type:"INFO_WINDOW_CHANGED"});
//return(titleRGB);
}
function get titleSize() {
return(_titleSize);
}
function set titleSize(val) {
if (val == undefined) {
val = 1;
}
if (_titleSize != val) {
_titleSize = Number(val);
invalidate();
dispatchEvent({target:this, type:"INFO_WINDOW_CHANGED"});
}
//return(titleSize);
}
function get titleFormat() {
return(_titleFormat);
}
function set titleFormat(val) {
_owner.core.copyObject(_titleFormat, val);
invalidate();
dispatchEvent({target:this, type:"INFO_WINDOW_CHANGED"});
//return(titleFormat);
}
function get titleHTML() {
return(_titleHTML);
}
function set titleHTML(val) {
if (val == undefined) {
val = false;
}
_titleHTML = Boolean(val);
invalidate();
dispatchEvent({target:this, type:"INFO_WINDOW_CHANGED"});
//return(titleHTML);
}
function get content() {
return(_content);
}
function set content(val) {
if (val == undefined) {
val = "";
}
_content = String(val);
invalidate();
dispatchEvent({target:this, type:"INFO_WINDOW_CHANGED"});
//return(content);
}
function get contentFont() {
return(_contentFont);
}
function set contentFont(val) {
if (val == undefined) {
val = "_sans";
}
if (_contentFont != val) {
_contentFont = String(val);
invalidate();
dispatchEvent({target:this, type:"INFO_WINDOW_CHANGED"});
}
//return(contentFont);
}
function get contentRGB() {
return(_contentRGB);
}
function set contentRGB(val) {
if (val == undefined) {
val = 6710886 /* 0x666666 */;
}
_contentRGB = Number(val);
invalidate();
dispatchEvent({target:this, type:"INFO_WINDOW_CHANGED"});
//return(contentRGB);
}
function get contentSize() {
return(_contentSize);
}
function set contentSize(val) {
if (val == undefined) {
val = 1;
}
if (contentSize != val) {
_contentSize = Number(val);
size();
dispatchEvent({target:this, type:"INFO_WINDOW_CHANGED"});
}
//return(contentSize);
}
function get contentFormat() {
return(_contentFormat);
}
function set contentFormat(val) {
_owner.core.copyObject(_contentFormat, val);
invalidate();
dispatchEvent({target:this, type:"INFO_WINDOW_CHANGED"});
//return(contentFormat);
}
function get contentHTML() {
return(_contentHTML);
}
function set contentHTML(val) {
if (val == undefined) {
val = false;
}
_contentHTML = Boolean(val);
invalidate();
dispatchEvent({target:this, type:"INFO_WINDOW_CHANGED"});
//return(contentHTML);
}
function get contentAutoSize() {
return(_contentAutoSize);
}
function set contentAutoSize(val) {
if (val == undefined) {
val = false;
}
_contentAutoSize = Boolean(val);
invalidate();
dispatchEvent({target:this, type:"INFO_WINDOW_CHANGED"});
//return(contentAutoSize);
}
function get contentStyle() {
return(_contentStyle);
}
function set contentStyle(val) {
_contentStyle = val;
_content_txt.styleSheet = _contentStyle;
//return(contentStyle);
}
function get titleStyle() {
return(_titleStyle);
}
function set titleStyle(val) {
_titleStyle = val;
_title_txt.styleSheet = _titleStyle;
//return(titleStyle);
}
function get shadow() {
return(_shadow);
}
function set shadow(val) {
_shadow = Boolean(val);
if (_shadow) {
createDropShadow();
} else {
clearDropShadow();
}
//return(shadow);
}
function get autoClose() {
return(_autoClose);
}
function set autoClose(val) {
_autoClose = Boolean(val);
//return(autoClose);
}
}
Symbol 91 MovieClip [__Packages.com.google.GMap.geometry.GPoint] Frame 0
class com.google.GMap.geometry.GPoint extends com.google.GMap.geometry.GGeometryObject
{
var _radius, _icon, _iconAlign, _iconOffset, _label, _labelFont, _labelRGB, _labelSize, _labelFormat, _owner, _index, _shadow, _icon_mc, _mc, _shadow_mc, __get__core, _fillGradient, _strokeAlpha, _text_field, _type, updatePosition, __get__visible, _stroke, _strokeThickness, _strokeRGB, _strokePixelHinting, _strokeNoScale, _strokeCapsStyle, _strokeJointStyle, _strokeMiterLimit, _fill, _fillRGB, _fillAlpha, _visible, _enabled, _infoWindowStyle, lat, lng, _infoWindow, __get__infoWindow, _bounds, _lat, _lng, dispatchEvent;
function GPoint (owner, initObject) {
super(owner, initObject);
_radius = ((initObject.radius != undefined) ? (initObject.radius) : 9);
_icon = ((initObject.icon != undefined) ? (initObject.icon) : undefined);
_iconAlign = ((initObject.iconAlign != undefined) ? (initObject.iconAlign) : "top-left");
_iconOffset = ((initObject.iconOffset != undefined) ? (initObject.iconOffset) : ({x:0, y:0}));
_label = ((initObject.label != undefined) ? (initObject.label) : true);
_labelFont = ((initObject.labelFont != undefined) ? (initObject.labelFont) : "_sans");
_labelRGB = ((initObject.labelRGB != undefined) ? (initObject.labelRGB) : 0);
_labelSize = ((initObject.labelSize != undefined) ? (initObject.labelSize) : 12);
_labelFormat = ((initObject.labelFormat != undefined) ? (_owner.core.cloneObject(initObject.labelFormat)) : ({}));
_index = ((initObject.index != undefined) ? (initObject.index) : "");
_shadow = ((initObject.shadow != undefined) ? (initObject.shadow) : true);
_icon_mc = _mc.createEmptyMovieClip("icon_mc", 20);
_shadow_mc = _mc.createEmptyMovieClip("shadow_mc", 10);
__get__core().display.imageManager.addEventListener("JOB_FINISHED", this);
__get__core().display.imageManager.addEventListener("JOB_ERROR", this);
if ((initObject.fillRGB == undefined) && (initObject.fillGradient == undefined)) {
var _local4 = new Object();
_local4.fillType = "linear";
_local4.colors = [14540253, 16777215];
_local4.alphas = [70, 100];
_local4.ratios = [200, 255];
_local4.matrix = new flash.geom.Matrix();
_local4.matrix.createGradientBox(100, 100, 4.71238898038469, 0, 0);
_fillGradient = _local4;
}
if ((initObject.hasOwnProperty("strokeAlpha") == false) || (initObject == undefined)) {
_strokeAlpha = 70;
}
_text_field = _mc.createTextField("text_field", 30, 0, 0, _radius, _radius);
_text_field.autoSize = true;
_text_field.selectable = false;
_text_field.border = false;
_text_field.embedFonts = false;
_text_field.text = _index;
setCustomIcon(_icon);
_type = "GPoint";
updatePosition();
size();
redraw();
if (_icon == undefined) {
_icon_mc.owner = this;
_icon_mc.onEnterFrame = function () {
this.owner.dispatchEvent({target:this.owner, type:"GEOMETRY_READY"});
delete this.onEnterFrame;
};
}
}
function invalidate() {
super.invalidate();
}
function redraw() {
super.redraw();
if (!__get__visible()) {
return(undefined);
}
if (_icon) {
_icon_mc.invalidate();
} else {
_icon_mc.clear();
if ((!_stroke) || (_strokeThickness == undefined)) {
_icon_mc.lineStyle(undefined, 0, 0);
} else {
_icon_mc.lineStyle(_strokeThickness, _strokeRGB, _strokeAlpha, _strokePixelHinting, _strokeNoScale, _strokeCapsStyle, _strokeJointStyle, _strokeMiterLimit);
}
if (_fill && ((_fillRGB != undefined) || (_fillGradient != undefined))) {
if (_fillGradient != undefined) {
_icon_mc.beginGradientFill(_fillGradient.fillType, _fillGradient.colors, _fillGradient.alphas, _fillGradient.ratios, _fillGradient.matrix, _fillGradient.spreadMethod, _fillGradient.interpolationMethod, _fillGradient.focalPointRatio);
} else {
_icon_mc.beginFill(_fillRGB, _fillAlpha);
}
}
var _local4 = 0.414213562373095 * _radius;
var _local3 = 0.707106781186547 * _radius;
_icon_mc.moveTo(0, -_radius);
_icon_mc.curveTo(_local4, -_radius, _local3, -_local3);
_icon_mc.curveTo(_radius, -_local4, _radius, 0);
_icon_mc.curveTo(_radius, _local4, _local3, _local3);
_icon_mc.curveTo(0, _radius * cTailHeight, 0, _radius * (1 + cTailHeight));
_icon_mc.curveTo(0, _radius * cTailHeight, -_local3, _local3);
_icon_mc.curveTo(-_radius, _local4, -_radius, 0);
_icon_mc.curveTo(-_radius, -_local4, -_local3, -_local3);
_icon_mc.curveTo(-_local4, -_radius, 0, -_radius);
_icon_mc.endFill();
}
_text_field._visible = _label;
setLabelFormat();
if (_shadow) {
createDropShadow();
}
}
function size() {
super.size();
_text_field._x = -(_text_field._width / 2);
_text_field._y = -((_text_field._height / 2) + (_radius * (1 + cTailHeight)));
if (_icon) {
var _local4 = {x:0, y:0};
var _local3;
var _local6;
var _local7;
_local3 = _iconAlign.split("-")[0];
_local7 = ((((_local3 == "left") || (_local3 == "right")) || (_local3 == "center")) ? (_local3) : (_local7));
_local6 = ((((_local3 == "top") || (_local3 == "bottom")) || (_local3 == "middle")) ? (_local3) : (_local6));
_local3 = _iconAlign.split("-")[1];
_local7 = ((((_local3 == "left") || (_local3 == "right")) || (_local3 == "center")) ? (_local3) : (_local7));
_local6 = ((((_local3 == "top") || (_local3 == "bottom")) || (_local3 == "middle")) ? (_local3) : (_local6));
switch (_local7) {
case "left" :
_local4.x = 0;
break;
case "right" :
_local4.x = -_icon_mc._width;
break;
case "center" :
_local4.x = (-_icon_mc._width) / 2;
}
switch (_local6) {
case "top" :
_local4.y = 0;
break;
case "bottom" :
_local4.y = -_icon_mc._height;
break;
case "middle" :
_local4.y = (-_icon_mc._height) / 2;
}
var _local9;
var _local8;
var _local5;
_local5 = String(_iconOffset.x).indexOf("%");
if (_local5 > 0) {
_local9 = Math.round((_icon_mc._width * Number(String(_iconOffset.x).slice(0, _local5))) / 100);
} else {
_local9 = Number(_iconOffset.x);
}
_local5 = String(_iconOffset.y).indexOf("%");
if (_local5 > 0) {
_local8 = Math.round((_icon_mc._height * Number(String(_iconOffset.y).slice(0, _local5))) / 100);
} else {
_local8 = Number(_iconOffset.y);
}
_icon_mc._x = Math.round(_local4.x + _local9);
_icon_mc._y = Math.round(_local4.y + _local8);
} else {
_icon_mc._x = 0;
_icon_mc._y = (-_radius) * (1 + cTailHeight);
}
invalidate();
}
function setCustomIcon(path) {
if (path == undefined) {
return(undefined);
}
_icon = path;
delete _icon_mc.onEnterFrame;
var _local2 = _icon.substr(_icon.length - 4, 4);
if ((((_local2 == ".jpg") || (_local2 == ".png")) || (_local2 == ".gif")) || (_local2 == ".swf")) {
__get__core().display.loadImage(_icon_mc, _icon);
invalidate();
} else {
_mc._icon_mc.removeMovieClip();
_icon_mc = _mc.attachMovie(path, "icon_mc", 1);
if (_icon_mc != undefined) {
size();
_icon_mc.owner = this;
_icon_mc.onEnterFrame = function () {
this.owner.dispatchEvent({target:this.owner, type:"POINT_CUSTOM_ICON_LOADED"});
this.owner.dispatchEvent({target:this.owner, type:"GEOMETRY_READY"});
delete this.onEnterFrame;
};
} else {
_icon_mc = _mc.createEmptyMovieClip("icon_mc", 1);
_icon_mc.owner = this;
_icon_mc.onEnterFrame = function () {
this.owner.dispatchEvent({target:this.owner, type:"GEOMETRY_ERROR", message:"Geometry error: symbolNotFound"});
this.owner._owner.layerError("symbolNotFound");
delete this.onEnterFrame;
};
}
}
}
function openInfoWindow(initObject) {
if ((!_visible) || (!_enabled)) {
return(undefined);
}
if ((initObject == undefined) || (typeof(initObject) != "object")) {
initObject = new Object();
initObject = __get__core().cloneObject(_infoWindowStyle);
}
initObject.lat = lat;
initObject.lng = lng;
if ((initObject.pointOffset == undefined) && (_icon == undefined)) {
initObject.pointOffset = {x:0, y:(-_radius) * (1 + cTailHeight)};
} else if ((initObject.pointOffset == undefined) && (_icon != undefined)) {
initObject.pointOffset = {x:0, y:_icon_mc._y};
}
_infoWindow = __get__core().display.guiManager.openInfoWindow(initObject);
_infoWindow.addEventListener("GEOMETRY_REMOVED", mx.utils.Delegate.create(this, closeInfoWindow));
return(_infoWindow);
}
function closeInfoWindow() {
if (__get__infoWindow()) {
delete _infoWindow;
__get__core().closeInfoWindow();
}
}
function getBounds() {
_bounds = new com.google.GMap.types.GBounds(0, 0, 0, 0);
var _local2 = __get__core().control.getXYFromLatLng(new com.google.GMap.types.GLocation(_lat, _lng));
if (_icon) {
_local2.x = _local2.x + _icon_mc._x;
_local2.y = _local2.y + _icon_mc._y;
} else {
_local2.x = _local2.x - (_icon_mc._width / 2);
_local2.y = _local2.y - _icon_mc._height;
}
var _local3 = __get__core().control.getLatLngFromXY(_local2);
_bounds.__set__top(_local3.lat);
_bounds.__set__left(_local3.lng);
_local2.x = _local2.x + _icon_mc._width;
_local2.y = _local2.y + _icon_mc._height;
_local3 = __get__core().control.getLatLngFromXY(_local2);
_bounds.__set__bottom(_local3.lat);
_bounds.__set__right(_local3.lng);
return(_bounds);
}
function createDropShadow() {
if (_shadow_mc.bitmap) {
_shadow_mc.bitmap.removeMovieClip();
}
var _local4 = _shadow_mc.createEmptyMovieClip("bitmap", 10);
var _local5 = new flash.display.BitmapData(_icon_mc._width, _icon_mc._height, true, 0);
_local4.attachBitmap(_local5, 10, "auto", false);
var _local3 = {x:_icon_mc._x, y:_icon_mc._y};
var _local2 = _icon_mc.getBounds();
_icon_mc._x = -_local2.xMin;
_icon_mc._y = -_local2.yMin;
_local5.draw(_mc);
_icon_mc._x = _local3.x;
_icon_mc._y = _local3.y;
_local4._x = _local3.x + _local2.xMin;
_local4._y = _local3.y + _local2.yMin;
var _local6 = new flash.geom.Matrix(1, 0, -0.267949192431123, 0.5, 0, 0);
var _local7 = new flash.geom.Transform(_shadow_mc);
_local7.matrix = _local6;
var _local8 = new flash.filters.DropShadowFilter(0, 0, 0, 0.6, 3, 3, 1, 1, false, false, true);
_shadow_mc.filters = [_local8];
_shadow_mc._x = 0.267949192431123 * ((_icon_mc._height + _local2.yMin) + _icon_mc._y);
_shadow_mc._y = ((_icon_mc._height / 2) + (_local2.yMin / 2)) + (_icon_mc._y / 2);
}
function clearDropShadow() {
_shadow = false;
_shadow_mc.bitmap.removeMovieClip();
}
function remove() {
__get__core().display.unloadImage(_icon_mc);
super.remove();
}
function setLabelFormat() {
_text_field.textColor = ((_labelFormat.color != undefined) ? (_labelFormat.color) : (_labelRGB));
var _local2 = new TextFormat();
_local2.font = String(((_labelFormat.font != undefined) ? (_labelFormat.font) : (_labelFont)));
_local2.size = ((_labelFormat.size != undefined) ? (_labelFormat.size) : (_labelSize));
_local2.bold = ((_labelFormat.bold != undefined) ? (_labelFormat.bold) : false);
_local2.italic = ((_labelFormat.italic != undefined) ? (_labelFormat.italic) : false);
_local2.underline = ((_labelFormat.underline != undefined) ? (_labelFormat.underline) : false);
_local2.letterSpacing = ((_labelFormat.letterSpacing != undefined) ? (_labelFormat.letterSpacing) : 0);
_text_field.setTextFormat(_local2);
_text_field._x = -(_text_field._width / 2);
_text_field._y = -((_text_field._height / 2) + (_radius * (1 + cTailHeight)));
}
function JOB_FINISHED(evt) {
if (evt.job.mc == _icon_mc) {
if ((_icon_mc._width == 0) || (_icon_mc._height == 0)) {
_mc.onEnterFrame = function () {
if ((this.icon_mc._width != 0) && (this.icon_mc._height != 0)) {
delete this.onEnterFrame;
this.super$.size();
if (this.super.shadow) {
this.super$.createDropShadow();
}
this.super$.dispatchEvent({target:this.super$, type:"POINT_CUSTOM_ICON_LOADED"});
this.super$.dispatchEvent({target:this.super$, type:"GEOMETRY_READY"});
}
};
} else {
evt.target._visible = true;
size();
if (shadow) {
createDropShadow();
}
dispatchEvent({target:this, type:"POINT_CUSTOM_ICON_LOADED"});
dispatchEvent({target:this, type:"GEOMETRY_READY"});
}
}
}
function JOB_ERROR(evt) {
if (evt.job.mc == _icon_mc) {
dispatchEvent({target:this, type:"GEOMETRY_ERROR", message:"Geometry error: " + evt.errorCode});
dispatchEvent({target:this, type:"GEOMETRY_READY"});
_owner.layerError(evt.errorCode);
}
}
function get radius() {
return(_radius);
}
function set radius(val) {
if (val == undefined) {
val = 1;
}
_radius = val;
size();
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
//return(radius);
}
function get icon() {
return(_icon);
}
function set icon(val) {
_icon = val;
if ((_icon != undefined) && (_icon != "")) {
setCustomIcon(_icon);
} else {
size();
}
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
//return(icon);
}
function get iconAlign() {
return(_iconAlign);
}
function set iconAlign(val) {
_iconAlign = val;
if (_icon) {
size();
}
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
//return(iconAlign);
}
function get iconOffset() {
return(_iconOffset);
}
function set iconOffset(val) {
_iconOffset.x = ((val.x != undefined) ? (val.x) : (_iconOffset.x));
_iconOffset.y = ((val.y != undefined) ? (val.y) : (_iconOffset.y));
if (_icon) {
size();
}
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
//return(iconOffset);
}
function get label() {
return(_label);
}
function set label(val) {
if (val == undefined) {
val = false;
}
_label = val;
_text_field._visible = _label;
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
//return(label);
}
function get labelFont() {
return(_labelFont);
}
function set labelFont(val) {
if (val == undefined) {
val = "_sans";
}
if (_labelFont != val) {
_labelFont = val;
setLabelFormat();
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
}
//return(labelFont);
}
function get labelRGB() {
return(_labelRGB);
}
function set labelRGB(val) {
if (val == undefined) {
val = 0;
}
_labelRGB = val;
_text_field.textColor = val;
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
//return(labelRGB);
}
function get labelSize() {
return(_labelSize);
}
function set labelSize(val) {
if (val == undefined) {
val = 1;
}
if (_labelSize != val) {
_labelSize = val;
setLabelFormat();
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
}
//return(labelSize);
}
function get labelFormat() {
return(_labelFormat);
}
function set labelFormat(val) {
_owner.core.copyObject(_labelFormat, val);
setLabelFormat();
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
//return(labelFormat);
}
function get index() {
return(_index);
}
function set index(val) {
if (val == undefined) {
val = "";
}
_index = val;
_text_field.text = _index;
size();
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
//return(index);
}
function get shadow() {
return(_shadow);
}
function set shadow(val) {
_shadow = val;
if (_shadow) {
createDropShadow();
} else {
clearDropShadow();
}
//return(shadow);
}
function get width() {
return(_icon_mc._width);
}
function get height() {
return(_icon_mc._height);
}
static var cTailHeight = 1.5;
}
Symbol 92 MovieClip [__Packages.com.google.GMap.geometry.GLine] Frame 0
class com.google.GMap.geometry.GLine extends com.google.GMap.geometry.GGeometryObject
{
var _points, _type, _bounds, __get__visible, _mc, _stroke, _strokeThickness, _strokeRGB, _strokeAlpha, _strokePixelHinting, _strokeNoScale, _strokeCapsStyle, _strokeJointStyle, _strokeMiterLimit, __get__core, _lat, _lng, _prevZoom, _owner, dispatchEvent;
function GLine (owner, initObject) {
super(owner, initObject);
_points = ((initObject.points != undefined) ? (initObject.points) : (new Array()));
_type = "GLine";
_bounds = new com.google.GMap.types.GBounds(0, 0, 0, 0);
size();
redraw();
}
function invalidate() {
super.invalidate();
}
function redraw() {
super.redraw();
if (!__get__visible()) {
return(undefined);
}
_mc.clear();
if ((!_stroke) || (_strokeThickness == undefined)) {
_mc.lineStyle(undefined, 0, 0);
} else {
_mc.lineStyle(_strokeThickness, _strokeRGB, _strokeAlpha, _strokePixelHinting, _strokeNoScale, _strokeCapsStyle, _strokeJointStyle, _strokeMiterLimit);
}
var _local8 = __get__core().display.currentZoom;
var _local7 = Math.floor(_local8);
var _local5 = (_local8 - _local7) + 1;
var _local6 = __get__core().control.getXYFromLatLng(new com.google.GMap.types.GLocation(_lat, _lng), _local7);
var _local4;
var _local3 = 0;
while (_local3 < _points.length) {
if (!Boolean(_points[_local3] instanceof com.google.GMap.types.GLocation)) {
_points[_local3] = new com.google.GMap.types.GLocation(_points[_local3].lat, _points[_local3].lng);
}
_local4 = __get__core().control.getXYFromLatLng(_points[_local3], _local7);
if (_local3 == 0) {
_mc.moveTo((_local4.__get__x() - _local6.__get__x()) * _local5, (_local4.__get__y() - _local6.__get__y()) * _local5);
} else {
_mc.lineTo((_local4.__get__x() - _local6.__get__x()) * _local5, (_local4.__get__y() - _local6.__get__y()) * _local5);
}
_local3++;
}
_prevZoom = _local8;
}
function size() {
super.size();
if (!_bounds) {
_bounds = new com.google.GMap.types.GBounds(0, 0, 0, 0);
}
var _local4 = _lat;
var _local5 = _lng;
if (_points.length == 0) {
_lat = 0;
_lng = 0;
} else {
_lat = _points[0].lat;
_lng = _points[0].lng;
_bounds.__set__bottom(_points[0].lat);
_bounds.__set__right(_points[0].lng);
var _local3 = 0;
while (_local3 < _points.length) {
_lat = Math.max(_lat, _points[_local3].lat);
_lng = Math.min(_lng, _points[_local3].lng);
_bounds.__set__bottom(Math.min(_bounds.__get__bottom(), _points[_local3].lat));
_bounds.__set__right(Math.max(_bounds.__get__right(), _points[_local3].lng));
_local3++;
}
_bounds.__set__left(_lng);
_bounds.__set__top(_lat);
}
if ((_local4 != _lat) && (_local5 != _lng)) {
updatePosition();
}
}
function updatePosition() {
if (!__get__visible()) {
return(undefined);
}
if (__get__core().display.currentZoom != _prevZoom) {
redraw();
}
_owner.setObjectPosition(this, true);
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
}
function getVertexCount() {
return(_points.length);
}
function getVertices() {
return(_points);
}
function getVertex(index) {
return(_points[index]);
}
function get points() {
return(_points);
}
function set points(val) {
_points = val;
size();
_prevZoom = undefined;
invalidate();
//return(points);
}
}
Symbol 93 MovieClip [__Packages.com.google.GMap.managers.GClipper] Frame 0
class com.google.GMap.managers.GClipper
{
function GClipper () {
}
static function clipPolygon(clipPolygon, clipRect) {
var _local14;
var _local13;
var _local16;
var _local15;
var _local1;
var _local4;
var _local11 = 0;
_local4 = new Array();
var _local8;
var _local2;
var _local6;
_local1 = new Object();
var _local3 = clipPolygon.concat();
var _local5 = new com.google.GMap.types.GRect(_local3[0].x, _local3[0].y, _local3[0].x, _local3[0].y);
_local8 = _local3.length;
trace("clip start -->");
_local2 = 0;
while (_local2 < _local8) {
_local5.__set__top(Math.min(_local5.__get__top(), _local3[_local2].y));
_local5.__set__left(Math.min(_local5.__get__left(), _local3[_local2].x));
_local5.__set__bottom(Math.max(_local5.__get__bottom(), _local3[_local2].y));
_local5.__set__right(Math.max(_local5.__get__right(), _local3[_local2].x));
_local1.x1 = _local3[_local2].x;
_local1.y1 = _local3[_local2].y;
_local1.xc1 = 0;
_local1.xc2 = 0;
_local1.yc1 = 0;
_local1.yc2 = 0;
if (_local2 != (_local8 - 1)) {
_local1.x2 = _local3[_local2 + 1].x;
_local1.y2 = _local3[_local2 + 1].y;
} else {
_local1.x2 = _local3[0].x;
_local1.y2 = _local3[0].y;
}
_local6 = clipLine(_local1, clipRect);
trace((("n" + _local2) + " k ") + _local6);
switch (_local6) {
case 1 :
_local4.push({x:_local1.x2, y:_local1.y2});
break;
case 0 :
_local11++;
findCorner(_local1, _local4, true, clipRect);
break;
case 3 :
findCorner(_local1, _local4, true, clipRect);
break;
case 4 :
findCorner(_local1, _local4, false, clipRect);
if ((_local1.x1 != _local1.xc1) || (_local1.y1 != _local1.yc1)) {
_local4.push({x:_local1.xc1, y:_local1.yc1});
}
_local4.push({x:_local1.xc2, y:_local1.yc2});
}
_local2++;
}
if (_local11 == _local3.length) {
_local3.splice(0, _local3.length);
if (_local5.containsRect(clipRect)) {
_local3.push({x:clipRect.__get__top(), y:clipRect.__get__left()});
_local3.push({x:clipRect.__get__top(), y:clipRect.__get__right()});
_local3.push({x:clipRect.__get__bottom(), y:clipRect.__get__right()});
_local3.push({x:clipRect.__get__bottom(), y:clipRect.__get__left()});
_local3.push({x:clipRect.__get__top(), y:clipRect.__get__left()});
}
} else {
_local3.splice(0, _local3.length);
_local3.push({x:_local4[0].x, y:_local4[0].y});
_local6 = 1;
_local2 = 1;
while (_local2 < _local4.length) {
if ((_local2 != 0) && ((_local3[_local6 - 1].x != _local4[_local2].x) || (_local3[_local6 - 1].y != _local4[_local2].y))) {
_local3.push({x:_local4[_local2].x, y:_local4[_local2].y});
_local6++;
}
_local2++;
}
}
trace("<-- clip end");
return(_local3);
}
static function findCorner(line, dop, flag, clipRect) {
if (!clipRect) {
return(undefined);
}
var _local2 = 0;
var _local3 = 0;
if (line.y1 <= clipRect.__get__top()) {
_local2 = _local2 | Clip_Code_N;
} else if (line.y1 >= clipRect.__get__bottom()) {
_local2 = _local2 | Clip_Code_S;
}
if (line.x1 <= clipRect.__get__left()) {
_local2 = _local2 | Clip_Code_W;
} else if (line.x1 >= clipRect.__get__right()) {
_local2 = _local2 | Clip_Code_E;
}
switch (_local2) {
case Clip_Code_NE :
dop.push({x:clipRect.__get__right(), y:clipRect.__get__top()});
return(0);
case Clip_Code_SE :
dop.push({x:clipRect.__get__right(), y:clipRect.__get__bottom()});
return(0);
case Clip_Code_SW :
dop.push({x:clipRect.__get__left(), y:clipRect.__get__bottom()});
return(0);
case Clip_Code_NW :
dop.push({x:clipRect.__get__left(), y:clipRect.__get__top()});
return(0);
}
if (flag == true) {
if (line.y2 <= clipRect.__get__top()) {
_local3 = _local3 | Clip_Code_N;
} else if (line.y2 >= clipRect.__get__bottom()) {
_local3 = _local3 | Clip_Code_S;
}
if (line.x2 <= clipRect.__get__left()) {
_local3 = _local3 | Clip_Code_W;
} else if (line.x2 >= clipRect.__get__right()) {
_local3 = _local3 | Clip_Code_E;
}
if (((_local2 & Clip_Code_N) && (_local3 & Clip_Code_E)) || ((_local2 & Clip_Code_E) && (_local3 & Clip_Code_N))) {
dop.push({x:clipRect.__get__right(), y:clipRect.__get__top()});
}
if (((_local2 & Clip_Code_W) && (_local3 & Clip_Code_N)) || ((_local2 & Clip_Code_N) && (_local3 & Clip_Code_W))) {
dop.push({x:clipRect.__get__left(), y:clipRect.__get__top()});
}
if (((_local2 & Clip_Code_W) && (_local3 & Clip_Code_S)) || ((_local2 & Clip_Code_S) && (_local3 & Clip_Code_W))) {
dop.push({x:clipRect.__get__left(), y:clipRect.__get__bottom()});
}
if (((_local2 & Clip_Code_S) && (_local3 & Clip_Code_E)) || ((_local2 & Clip_Code_E) && (_local3 & Clip_Code_S))) {
dop.push({x:clipRect.__get__right(), y:clipRect.__get__bottom()});
}
}
return(0);
}
static function clipLine(line, clipRect) {
if (!clipRect) {
return(undefined);
}
var _local3 = 0;
var _local4 = 0;
line.xc1 = line.x1;
line.xc2 = line.x2;
line.yc1 = line.y1;
line.yc2 = line.y2;
if (line.y1 <= clipRect.__get__top()) {
_local3 = _local3 | Clip_Code_N;
} else if (line.y1 >= clipRect.__get__bottom()) {
_local3 = _local3 | Clip_Code_S;
}
if (line.x1 <= clipRect.__get__left()) {
_local3 = _local3 | Clip_Code_W;
} else if (line.x1 >= clipRect.__get__right()) {
_local3 = _local3 | Clip_Code_E;
}
if (line.y2 <= clipRect.__get__top()) {
_local4 = _local4 | Clip_Code_N;
} else if (line.y2 >= clipRect.__get__bottom()) {
_local4 = _local4 | Clip_Code_S;
}
if (line.x2 <= clipRect.__get__left()) {
_local4 = _local4 | Clip_Code_W;
} else if (line.x2 >= clipRect.__get__right()) {
_local4 = _local4 | Clip_Code_E;
}
if (_local3 & _local4) {
return(0);
}
if ((_local3 == 0) && (_local4 == 0)) {
return(1);
}
switch (_local3) {
case Clip_Code_C :
break;
case Clip_Code_N :
line.yc1 = clipRect.top;
line.xc1 = (line.x1 + 0.5) + (((clipRect.__get__top() - line.y1) * (line.x2 - line.x1)) / (line.y2 - line.y1));
break;
case Clip_Code_S :
line.yc1 = clipRect.bottom;
line.xc1 = (line.x1 + 0.5) + (((clipRect.__get__bottom() - line.y1) * (line.x2 - line.x1)) / (line.y2 - line.y1));
break;
case Clip_Code_W :
line.xc1 = clipRect.left;
line.yc1 = (line.y1 + 0.5) + (((clipRect.__get__left() - line.x1) * (line.y2 - line.y1)) / (line.x2 - line.x1));
break;
case Clip_Code_E :
line.xc1 = clipRect.right;
line.yc1 = (line.y1 + 0.5) + (((clipRect.__get__right() - line.x1) * (line.y2 - line.y1)) / (line.x2 - line.x1));
break;
case Clip_Code_NE :
line.yc1 = clipRect.top;
line.xc1 = (line.x1 + 0.5) + (((clipRect.__get__top() - line.y1) * (line.x2 - line.x1)) / (line.y2 - line.y1));
if ((line.xc1 < clipRect.__get__left()) || (line.xc1 > clipRect.__get__right())) {
line.xc1 = clipRect.right;
line.yc1 = (line.y1 + 0.5) + (((clipRect.__get__right() - line.x1) * (line.y2 - line.y1)) / (line.x2 - line.x1));
}
break;
case Clip_Code_SE :
line.yc1 = clipRect.bottom;
line.xc1 = (line.x1 + 0.5) + (((clipRect.__get__bottom() - line.y1) * (line.x2 - line.x1)) / (line.y2 - line.y1));
if ((line.xc1 < clipRect.__get__left()) || (line.xc1 > clipRect.__get__right())) {
line.xc1 = clipRect.right;
line.yc1 = (line.y1 + 0.5) + (((clipRect.__get__right() - line.x1) * (line.y2 - line.y1)) / (line.x2 - line.x1));
}
break;
case Clip_Code_NW :
line.yc1 = clipRect.top;
line.xc1 = (line.x1 + 0.5) + (((clipRect.__get__top() - line.y1) * (line.x2 - line.x1)) / (line.y2 - line.y1));
if ((line.xc1 < clipRect.__get__left()) || (line.xc1 > clipRect.__get__right())) {
line.xc1 = clipRect.left;
line.yc1 = (line.y1 + 0.5) + (((clipRect.__get__left() - line.x1) * (line.y2 - line.y1)) / (line.x2 - line.x1));
}
break;
case Clip_Code_SW :
line.yc1 = clipRect.bottom;
line.xc1 = (line.x1 + 0.5) + (((clipRect.__get__bottom() - line.y1) * (line.x2 - line.x1)) / (line.y2 - line.y1));
if ((line.xc1 < clipRect.__get__left()) || (line.xc1 > clipRect.__get__right())) {
line.xc1 = clipRect.left;
line.yc1 = (line.y1 + 0.5) + (((clipRect.__get__left() - line.x1) * (line.y2 - line.y1)) / (line.x2 - line.x1));
}
break;
}
switch (_local4) {
case Clip_Code_C :
break;
case Clip_Code_N :
line.xc2 = (line.x2 + 0.5) + (((clipRect.__get__top() - line.y2) * (line.x2 - line.x1)) / (line.y2 - line.y1));
line.yc2 = clipRect.top;
break;
case Clip_Code_S :
line.xc2 = (line.x2 + 0.5) + (((clipRect.__get__bottom() - line.y2) * (line.x2 - line.x1)) / (line.y2 - line.y1));
line.yc2 = clipRect.bottom;
break;
case Clip_Code_W :
line.yc2 = (line.y2 + 0.5) + (((clipRect.__get__left() - line.x2) * (line.y2 - line.y1)) / (line.x2 - line.x1));
line.xc2 = clipRect.left;
break;
case Clip_Code_E :
line.xc2 = clipRect.right;
line.yc2 = (line.y2 + 0.5) + (((clipRect.__get__right() - line.x2) * (line.y2 - line.y1)) / (line.x2 - line.x1));
break;
case Clip_Code_NE :
line.yc2 = clipRect.top;
line.xc2 = (line.x2 + 0.5) + (((clipRect.__get__top() - line.y2) * (line.x2 - line.x1)) / (line.y2 - line.y1));
if ((line.xc2 < clipRect.__get__left()) || (line.xc2 > clipRect.__get__right())) {
line.xc2 = clipRect.right;
line.yc2 = (line.y2 + 0.5) + (((clipRect.__get__right() - line.x2) * (line.y2 - line.y1)) / (line.x2 - line.x1));
}
break;
case Clip_Code_SE :
line.yc2 = clipRect.bottom;
line.xc2 = (line.x2 + 0.5) + (((clipRect.__get__bottom() - line.y2) * (line.x2 - line.x1)) / (line.y2 - line.y1));
if ((line.xc2 < clipRect.__get__left()) || (line.xc2 > clipRect.__get__right())) {
line.xc2 = clipRect.right;
line.yc2 = (line.y2 + 0.5) + (((clipRect.__get__right() - line.x2) * (line.y2 - line.y1)) / (line.x2 - line.x1));
}
break;
case Clip_Code_NW :
line.yc2 = clipRect.top;
line.xc2 = (line.x2 + 0.5) + (((clipRect.__get__top() - line.y2) * (line.x2 - line.x1)) / (line.y2 - line.y1));
if ((line.xc2 < clipRect.__get__left()) || (line.xc2 > clipRect.__get__right())) {
line.xc2 = clipRect.left;
line.yc2 = (line.y2 + 0.5) + (((clipRect.__get__left() - line.x2) * (line.y2 - line.y1)) / (line.x2 - line.x1));
}
break;
case Clip_Code_SW :
line.yc2 = clipRect.bottom;
line.xc2 = (line.x2 + 0.5) + (((clipRect.__get__bottom() - line.y2) * (line.x2 - line.x1)) / (line.y2 - line.y1));
if ((line.xc2 < clipRect.__get__left()) || (line.xc2 > clipRect.__get__right())) {
line.xc2 = clipRect.left;
line.yc2 = (line.y2 + 0.5) + (((clipRect.__get__left() - line.x2) * (line.y2 - line.y1)) / (line.x2 - line.x1));
}
break;
}
if ((((((((line.xc1 < clipRect.__get__left()) || (line.xc1 > clipRect.__get__right())) || (line.yc1 < clipRect.__get__top())) || (line.yc1 > clipRect.__get__bottom())) || (line.xc2 < clipRect.__get__left())) || (line.xc2 > clipRect.__get__right())) || (line.yc2 < clipRect.__get__top())) || (line.yc2 > clipRect.__get__bottom())) {
return(3);
}
return(4);
}
static var Clip_Code_C = 0;
static var Clip_Code_N = 8;
static var Clip_Code_S = 4;
static var Clip_Code_E = 2;
static var Clip_Code_W = 1;
static var Clip_Code_NE = 10;
static var Clip_Code_SE = 6;
static var Clip_Code_NW = 9;
static var Clip_Code_SW = 5;
}
Symbol 94 MovieClip [__Packages.com.google.GMap.geometry.GPolygon] Frame 0
class com.google.GMap.geometry.GPolygon extends com.google.GMap.geometry.GGeometryObject
{
var _outer, _inner, _clip, _type, _fillRGB, _fillAlpha, __get__visible, _mc, _fill, _fillGradient, _stroke, _strokeThickness, _strokeRGB, _strokeAlpha, _strokePixelHinting, _strokeNoScale, _strokeCapsStyle, _strokeJointStyle, _strokeMiterLimit, _prevZoom, __get__core, _bounds, _lat, _lng, _owner, dispatchEvent, _shifted;
function GPolygon (owner, initObject) {
super(owner, initObject);
_outer = ((initObject.outer != undefined) ? (initObject.outer) : undefined);
_inner = ((initObject.inner != undefined) ? (initObject.inner) : (new Array()));
_clip = ((initObject.clip != undefined) ? (Boolean(initObject.clip)) : false);
if (_outer == undefined) {
_outer = initObject.points;
}
if (_outer == undefined) {
_outer = new Array();
}
_type = "GPolygon";
if ((initObject.fillRGB == undefined) && (initObject.fillGradient == undefined)) {
_fillRGB = 9026046 /* 0x89B9FE */;
_fillAlpha = 50;
}
size();
redraw();
}
function invalidate() {
super.invalidate();
}
function redraw() {
super.redraw();
if (!__get__visible()) {
return(undefined);
}
_mc.clear();
if (_outer.length == 0) {
return(undefined);
}
if (_fill && ((_fillRGB != undefined) || (_fillGradient != undefined))) {
if (_fillGradient != undefined) {
_mc.beginGradientFill(_fillGradient.fillType, _fillGradient.colors, _fillGradient.alphas, _fillGradient.ratios, _fillGradient.matrix, _fillGradient.spreadMethod, _fillGradient.interpolationMethod, _fillGradient.focalPointRatio);
} else {
_mc.beginFill(_fillRGB, _fillAlpha);
}
}
if ((!_stroke) || (_strokeThickness == undefined)) {
_mc.lineStyle(undefined, 0, 0);
} else {
_mc.lineStyle(_strokeThickness, _strokeRGB, _strokeAlpha, _strokePixelHinting, _strokeNoScale, _strokeCapsStyle, _strokeJointStyle, _strokeMiterLimit);
}
drawLine(_outer);
var _local3 = 0;
while (_local3 < _inner.length) {
drawLine(_inner[_local3]);
_local3++;
}
_prevZoom = __get__core().display.currentZoom;
if (_fill && ((_fillRGB != undefined) || (_fillGradient != undefined))) {
_mc.endFill();
}
}
function size() {
super.size();
if (!_bounds) {
_bounds = new com.google.GMap.types.GBounds(0, 0, 0, 0);
}
var _local4 = _lat;
var _local5 = _lng;
if (_outer.length == 0) {
_lat = 0;
_lng = 0;
} else {
_lat = _outer[0].lat;
_lng = _outer[0].lng;
_bounds.__set__bottom(_outer[0].lat);
_bounds.__set__right(_outer[0].lng);
var _local3 = 0;
while (_local3 < _outer.length) {
_lat = Math.max(_lat, _outer[_local3].lat);
_lng = Math.min(_lng, _outer[_local3].lng);
_bounds.__set__bottom(Math.min(_bounds.__get__bottom(), _outer[_local3].lat));
_bounds.__set__right(Math.max(_bounds.__get__right(), _outer[_local3].lng));
_local3++;
}
_bounds.__set__left(_lng);
_bounds.__set__top(_lat);
}
if ((_local4 != _lat) && (_local5 != _lng)) {
updatePosition();
}
}
function updatePosition() {
if (!__get__visible()) {
return(undefined);
}
_owner.setObjectPosition(this, true);
if ((__get__core().display.currentZoom != _prevZoom) || (_clip)) {
redraw();
}
dispatchEvent({target:this, type:"GEOMETRY_CHANGED"});
}
function getVertexCount() {
var _local3 = _outer.length;
var _local2 = 0;
while (_local2 < _inner.length) {
_local3 = _local3 + _inner[_local2].length;
_local2++;
}
return(_local3);
}
function getVertices() {
var _local3 = new Array();
_local3 = _local3.concat(_outer);
var _local2 = 0;
while (_local2 < _inner.length) {
_local3 = _local3.concat(_inner[_local2]);
_local2++;
}
return(_local3);
}
function getVertex(index) {
return(getVertices()[index]);
}
function getOuterVertexCount() {
return(_outer.length);
}
function getOuterVertices() {
return(_outer);
}
function getOuterVertex(index) {
return(_outer[index]);
}
function getInnerVertexCount(line) {
return(getInnerVertices(line).length);
}
function getInnerVertices(line) {
if (line == undefined) {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < _inner.length) {
_local3 = _local3.concat(_inner[_local2]);
_local2++;
}
return(_local3);
}
return(_inner[line]);
}
function getInnerVertex(index, line) {
return(getInnerVertices(line)[index]);
}
function drawLine(points) {
var _local10 = __get__core().display.currentZoom;
var _local8 = Math.floor(_local10);
var _local3 = (_local10 - _local8) + 1;
var _local4 = __get__core().control.getXYFromLatLng(new com.google.GMap.types.GLocation(_lat, _lng), _local8);
var _local5;
var _local7 = new Array();
var _local2 = 0;
while (_local2 < points.length) {
if (!Boolean(points[_local2] instanceof com.google.GMap.types.GLocation)) {
points[_local2] = new com.google.GMap.types.GLocation(points[_local2].lat, points[_local2].lng);
}
_local5 = __get__core().control.getXYFromLatLng(points[_local2], _local8);
if (_clip) {
_local7.push(_local5);
} else if (_local2 == 0) {
_mc.moveTo((_local5.__get__x() - _local4.__get__x()) * _local3, (_local5.__get__y() - _local4.__get__y()) * _local3);
} else {
_mc.lineTo((_local5.__get__x() - _local4.__get__x()) * _local3, (_local5.__get__y() - _local4.__get__y()) * _local3);
}
_local2++;
}
if ((points[0].lat != points[_local2 - 1].lat) || (points[0].lng != points[_local2 - 1].lng)) {
_local5 = __get__core().control.getXYFromLatLng(points[0], _local8);
if (_clip) {
_local7.push(_local5);
} else {
_mc.lineTo((_local5.__get__x() - _local4.__get__x()) * _local3, (_local5.__get__y() - _local4.__get__y()) * _local3);
}
}
if (_clip) {
var _local9 = __get__core().getBoundsXY();
_local9.inflate(-10, -10);
if (_shifted != 0) {
_local9.move(-_shifted, 0);
}
trace((("bounds " + _local9) + " / ") + _shifted);
_local7 = com.google.GMap.managers.GClipper.clipPolygon(_local7, _local9);
_local2 = 0;
while (_local2 < _local7.length) {
if (_local2 == 0) {
_mc.moveTo((_local7[_local2].x - _local4.__get__x()) * _local3, (_local7[_local2].y - _local4.__get__y()) * _local3);
} else {
_mc.lineTo((_local7[_local2].x - _local4.__get__x()) * _local3, (_local7[_local2].y - _local4.__get__y()) * _local3);
}
_local2++;
}
}
}
function get outer() {
return(_outer);
}
function set outer(val) {
_outer = val;
size();
_prevZoom = undefined;
invalidate();
//return(outer);
}
function get inner() {
return(_inner);
}
function set inner(val) {
_inner = val;
size();
_prevZoom = undefined;
invalidate();
//return(inner);
}
function get clip() {
return(_clip);
}
function set clip(val) {
_clip = Boolean(val);
//return(clip);
}
}
Symbol 95 MovieClip [__Packages.com.google.GMap.geometry.GOverlay] Frame 0
class com.google.GMap.geometry.GOverlay extends com.google.GMap.geometry.GGeometryObject
{
var _path, _north, _south, _west, _east, _rotation, _image_mc, _mc, __get__core, _type, _loaded, _bounds, _lat, _lng, _prevZoom, __get__visible, _owner, _visible, dispatchEvent;
function GOverlay (owner, initObject) {
super(owner, initObject);
_path = ((initObject.path != undefined) ? (String(initObject.path)) : undefined);
_north = ((initObject.north != undefined) ? (Number(initObject.north)) : undefined);
_south = ((initObject.south != undefined) ? (Number(initObject.south)) : undefined);
_west = ((initObject.west != undefined) ? (Number(initObject.west)) : undefined);
_east = ((initObject.east != undefined) ? (Number(initObject.east)) : undefined);
_rotation = ((initObject.rotation != undefined) ? (Number(initObject.rotation)) : 0);
_image_mc = _mc.createEmptyMovieClip("image_mc", 1);
__get__core().display.imageManager.addEventListener("JOB_FINISHED", this);
__get__core().display.imageManager.addEventListener("JOB_ERROR", this);
_type = "GOverlay";
_loaded = false;
_bounds = new com.google.GMap.types.GBounds(_west, _north, _east, _south);
loadImage(_path);
if (_path == undefined) {
_image_mc.owner = this;
_image_mc.onEnterFrame = function () {
this.owner.dispatchEvent({target:this.owner, type:"GEOMETRY_READY"});
delete this.onEnterFrame;
};
}
}
function size() {
if (!_loaded) {
return(undefined);
}
_mc._rotation = _rotation;
_lat = _north - ((_north - _south) / 2);
_lng = _west - ((_west - _east) / 2);
if (!__get__core().ready) {
return(undefined);
}
_prevZoom = __get__core().display.currentZoom;
var _local4 = __get__core().display.currentZoom;
var _local2 = Math.floor(_local4);
var _local3 = (_local4 - _local2) + 1;
var _local6 = __get__core().control.getXYFromLatLng(new com.google.GMap.types.GLocation(_north, _west), _local2);
var _local5 = __get__core().control.getXYFromLatLng(new com.google.GMap.types.GLocation(_south, _east), _local2);
_image_mc._width = (_local5.__get__x() - _local6.__get__x()) * _local3;
_image_mc._height = (_local5.__get__y() - _local6.__get__y()) * _local3;
_image_mc._x = (-_image_mc._width) / 2;
_image_mc._y = (-_image_mc._height) / 2;
updatePosition();
}
function updatePosition() {
if ((!__get__visible()) || (!_loaded)) {
return(undefined);
}
if (_prevZoom != __get__core().display.currentZoom) {
size();
}
_owner.setObjectPosition(this, true);
}
function remove() {
__get__core().display.unloadImage(_image_mc);
super.remove();
}
function loadImage(path) {
if (path == undefined) {
return(undefined);
}
_path = path;
var _local2 = _path.substr(_path.length - 4, 4);
if ((((_local2 == ".jpg") || (_local2 == ".png")) || (_local2 == ".gif")) || (_local2 == ".swf")) {
_loaded = false;
_mc._visible = false;
__get__core().display.loadImage(_image_mc, _path);
} else {
_loaded = false;
_mc._image_mc.removeMovieClip();
_image_mc = _mc.attachMovie(_path, "image_mc", 1);
if (_image_mc != undefined) {
_loaded = true;
size();
_image_mc.owner = this;
_image_mc.onEnterFrame = function () {
this.owner.dispatchEvent({target:this.owner, type:"OVERLAY_IMAGE_LOADED"});
this.owner.dispatchEvent({target:this.owner, type:"GEOMETRY_READY"});
delete this.onEnterFrame;
};
} else {
_image_mc = _mc.createEmptyMovieClip("image_mc", 1);
_image_mc.owner = this;
_image_mc.onEnterFrame = function () {
this.owner.dispatchEvent({target:this.owner, type:"GEOMETRY_ERROR", message:"Geometry error: symbolNotFound"});
this.owner.dispatchEvent({target:this.owner, type:"GEOMETRY_READY"});
this.owner._owner.layerError("symbolNotFound");
delete this.onEnterFrame;
};
}
}
}
function JOB_FINISHED(evt) {
if (evt.job.mc == _image_mc) {
if ((_image_mc._width == 0) || (_image_mc._height == 0)) {
_mc.onEnterFrame = function () {
if ((this.image_mc._width != 0) && (this.image_mc._height != 0)) {
delete this.onEnterFrame;
this._visible = this.super$.visible;
this.super$._loaded = true;
this.super$.size();
this.super$.dispatchEvent({target:this.super$, type:"OVERLAY_IMAGE_LOADED"});
this.super$.dispatchEvent({target:this.super$, type:"GEOMETRY_READY"});
}
};
} else {
_mc._visible = _visible;
_prevZoom = undefined;
_loaded = true;
size();
dispatchEvent({target:this, type:"OVERLAY_IMAGE_LOADED"});
dispatchEvent({target:this, type:"GEOMETRY_READY"});
}
}
}
function JOB_ERROR(evt) {
trace("job error");
if (evt.job.mc == _image_mc) {
dispatchEvent({target:this, type:"GEOMETRY_ERROR", message:"Geometry error: " + evt.errorCode});
dispatchEvent({target:this, type:"GEOMETRY_READY"});
_owner.layerError(evt.errorCode);
}
}
function get path() {
return(_path);
}
function set path(val) {
if (val != _path) {
loadImage(val);
}
//return(path);
}
function get isLoaded() {
return(_loaded);
}
function get north() {
return(_north);
}
function set north(val) {
_north = Number(val);
_bounds = new com.google.GMap.types.GBounds(_west, _north, _east, _south);
_prevZoom = undefined;
size();
//return(north);
}
function get south() {
return(_south);
}
function set south(val) {
_south = Number(val);
_bounds = new com.google.GMap.types.GBounds(_west, _north, _east, _south);
_prevZoom = undefined;
size();
//return(south);
}
function get west() {
return(_west);
}
function set west(val) {
_west = Number(val);
_bounds = new com.google.GMap.types.GBounds(_west, _north, _east, _south);
_prevZoom = undefined;
size();
//return(west);
}
function get east() {
return(_east);
}
function set east(val) {
_east = Number(val);
_bounds = new com.google.GMap.types.GBounds(_west, _north, _east, _south);
_prevZoom = undefined;
size();
//return(east);
}
function get rotation() {
return(_rotation);
}
function set rotation(val) {
_rotation = Number(val);
_prevZoom = undefined;
size();
//return(rotation);
}
}
Symbol 96 MovieClip [__Packages.com.google.GMap.geometry.GLayer] Frame 0
class com.google.GMap.geometry.GLayer
{
var _owner, _zIndex, _mc, _visible, _name, _objects, _object_id, _depthManager, dispatchEvent, _lat, _lng, _layerXY, _prevZoom, _id;
function GLayer (owner, initObject) {
_owner = owner;
_owner.registerLayer(this);
_zIndex = ((initObject.zIndex != undefined) ? (initObject.zIndex) : undefined);
_mc = _owner.getNewMovieClip(_zIndex);
_mc._name = "layer" + _mc._name.slice(2);
_mc.super$ = this;
_zIndex = _mc.getDepth();
_visible = true;
_name = ((initObject.name != undefined) ? (initObject.name) : "");
visible = (((initObject.visible != undefined) ? (initObject.visible) : true));
_objects = new Array();
_object_id = 0;
_depthManager = new com.google.GMap.managers.GDepthManager(_mc);
mx.events.EventDispatcher.initialize(this);
dispatchEvent({target:this, type:"LAYER_READY"});
}
function invalidate() {
var _local2 = 0;
while (_local2 < _objects.length) {
_objects[_local2].invalidate();
_local2++;
}
}
function addPoint(initObject) {
var _local2 = new com.google.GMap.geometry.GPoint(this, initObject);
recalcLatLng();
return(_local2);
}
function getPoint(id_or_name) {
return(searchGeometryObject(id_or_name, "GPoint"));
}
function addLine(initObject) {
var _local2 = new com.google.GMap.geometry.GLine(this, initObject);
recalcLatLng();
return(_local2);
}
function getLine(id_or_name) {
return(searchGeometryObject(id_or_name, "GLine"));
}
function addPolygon(initObject) {
var _local2 = new com.google.GMap.geometry.GPolygon(this, initObject);
recalcLatLng();
return(_local2);
}
function getPolygon(id_or_name) {
return(searchGeometryObject(id_or_name, "GPolygon"));
}
function addOverlay(initObject) {
var _local2 = new com.google.GMap.geometry.GOverlay(this, initObject);
recalcLatLng();
return(_local2);
}
function getOverlay(id_or_name) {
return(searchGeometryObject(id_or_name, "GOverlay"));
}
function searchGeometryObject(id_or_name, type) {
if (id_or_name == undefined) {
return(undefined);
}
if (typeof(id_or_name) == "number") {
var _local2 = 0;
while (_local2 < _objects.length) {
if (_objects[_local2].id == Number(id_or_name)) {
if ((_objects[_local2].type == type) || (type == undefined)) {
return(_objects[_local2]);
}
}
_local2++;
}
} else if (typeof(id_or_name) == "string") {
var _local5 = new Array();
var _local2 = 0;
while (_local2 < _objects.length) {
if (_objects[_local2].name == String(id_or_name)) {
if ((_objects[_local2].type == type) || (type == undefined)) {
_local5.push(_objects[_local2]);
}
}
_local2++;
}
if (_local5.length < 2) {
return(_local5[0]);
}
return(_local5);
}
}
function getGeometryObjects() {
return(_objects);
}
function getGeometryObjectCount() {
return(_objects.length);
}
function removeGeometryObject(obj) {
var _local2 = 0;
while (_local2 < _objects.length) {
if (_objects[_local2].id == obj.id) {
dispatchEvent({target:this, type:"LAYER_GEOMETRY_REMOVED", object:obj});
obj.releaseMovieClip();
_objects.splice(_local2, 1);
return(undefined);
}
_local2++;
}
}
function updatePosition() {
if (!_visible) {
return(undefined);
}
if (!core.ready) {
return(undefined);
}
var _local4 = core.display.currentZoom;
var _local5 = Math.floor(_local4);
var _local6 = (_local4 - _local5) + 1;
var _local3 = core.control.getXYFromLatLng(new com.google.GMap.types.GLocation(_lat, _lng), _local5);
var _local7 = core.control.getXYFromLatLng(new com.google.GMap.types.GLocation(core.lat, core.lng), _local5);
_mc._x = ((_local3.__get__x() - _local7.__get__x()) * _local6) + (core.width / 2);
_mc._y = ((_local3.__get__y() - _local7.__get__y()) * _local6) + (core.height / 2);
_layerXY = _local3;
var _local2 = 0;
while (_local2 < _objects.length) {
_objects[_local2].updatePosition();
_local2++;
}
_prevZoom = _local4;
_layerXY = undefined;
}
function clear() {
var _local2 = 0;
while (_local2 < _objects.length) {
dispatchEvent({target:this, type:"LAYER_GEOMETRY_REMOVED", object:_objects[_local2]});
_objects[_local2].releaseMovieClip();
delete _objects[_local2];
_local2++;
}
_objects = new Array();
}
function remove() {
_owner.removeLayer(this);
}
function releaseMovieClip() {
_mc.removeMovieClip();
}
function show() {
if (!_visible) {
_visible = true;
_mc._visible = true;
updatePosition();
dispatchEvent({target:this, type:"LAYER_CHANGED"});
}
}
function hide() {
if (_visible) {
_visible = false;
_mc._visible = false;
dispatchEvent({target:this, type:"LAYER_CHANGED"});
}
}
function setZindex(index) {
var _local2 = _owner._depthManager.getDepthFromZIndex(index);
_mc.swapDepths(_local2);
_zIndex = _local2;
dispatchEvent({target:this, type:"LAYER_CHANGED"});
}
function getZindex() {
return(zIndex);
}
function registerObject(obj) {
obj.id = _object_id++;
_objects.push(obj);
dispatchEvent({target:this, type:"LAYER_GEOMETRY_ADDED", object:obj});
}
function getNewMovieClip(depth) {
depth = _depthManager.getDepthFromZIndex(depth);
var _local2 = _mc.createEmptyMovieClip("mc" + (_object_id - 1), depth);
return(_local2);
}
function setObjectPosition(obj, bounds) {
if (!_visible) {
return(undefined);
}
var _local13;
if (bounds) {
_local13 = obj.getBounds();
}
var _local9 = new com.google.GMap.types.GLocation(obj.lat, obj.lng);
var _local11 = core.display.currentZoom;
var _local3 = Math.floor(_local11);
var _local10 = (_local11 - _local3) + 1;
if (bounds) {
_local9 = _local13.getCenter();
}
var _local4 = core.control.getXYFromLatLng(_local9, _local3);
var _local5 = _local4.clone();
if (bounds) {
_local5 = core.control.getXYFromLatLng(new com.google.GMap.types.GLocation(obj.lat, obj.lng), _local3);
}
var _local6 = core.control.getXYFromLatLng(core.getCenter(), _local3);
var _local7 = core.control.mercator.width[_local3];
obj.shifted = 0;
if (_local9.__get__lng() < 0) {
if ((_local6.__get__x() - _local4.__get__x()) > ((_local4.__get__x() + core.control.mercator.width[_local3]) - _local6.__get__x())) {
_local5.x = _local5.x + _local7;
obj.shifted = _local7;
}
} else if ((_local4.__get__x() - _local6.__get__x()) > ((_local6.__get__x() - _local4.__get__x()) + core.control.mercator.width[_local3])) {
_local5.x = _local5.x - _local7;
obj.shifted = -_local7;
}
var _local8;
if (_layerXY == undefined) {
_local8 = core.control.getXYFromLatLng(new com.google.GMap.types.GLocation(_lat, _lng), _local3);
} else {
_local8 = _layerXY;
}
obj.mc._x = (_local5.__get__x() - _local8.__get__x()) * _local10;
obj.mc._y = (_local5.__get__y() - _local8.__get__y()) * _local10;
}
function recalcLatLng() {
var _local3 = _lat;
var _local4 = _lng;
if (_objects.length == 0) {
_lat = 0;
_lng = 0;
} else {
_lat = _objects[0].lat;
_lng = _objects[0].lng;
var _local2 = 0;
while (_local2 < _objects.length) {
_lat = Math.max(_lat, _objects[_local2].lat);
_lng = Math.min(_lng, _objects[_local2].lng);
_local2++;
}
}
if ((_local3 != _lat) || (_local4 != _lng)) {
updatePosition();
}
}
function layerError(errorCode) {
dispatchEvent({target:this, type:"LAYER_ERROR", errorCode:errorCode});
core.dispatchEvent({target:core, type:"MAP_ERROR", message:"Layer error: " + errorCode});
}
function get core() {
return(_owner.core);
}
function get mc() {
return(_mc);
}
function get depthManager() {
return(_depthManager);
}
function get xmouse() {
return(_mc._xmouse);
}
function get ymouse() {
return(_mc._ymouse);
}
function get id() {
return(_id);
}
function set id(val) {
_id = val;
//return(id);
}
function get name() {
return(_name);
}
function set name(val) {
_name = String(val);
dispatchEvent({target:this, type:"LAYER_CHANGED"});
//return(name);
}
function get visible() {
return(_visible);
}
function set visible(val) {
val = ((val == undefined) ? false : (val));
if (Boolean(val)) {
show();
} else {
hide();
}
//return(visible);
}
function get zIndex() {
return(_zIndex);
}
function set zIndex(val) {
setZindex(val);
//return(zIndex);
}
}
Symbol 97 MovieClip [__Packages.com.google.GMap.types.GColor] Frame 0
class com.google.GMap.types.GColor
{
var _r, _g, _b;
function GColor (clr) {
_r = clr >> 16;
_g = (clr & 65280) >> 8;
_b = clr & 255;
}
function get r() {
return(Math.round(_r));
}
function get g() {
return(Math.round(_g));
}
function get b() {
return(Math.round(_b));
}
function set r(v) {
_r = ((v > 255) ? 255 : (((v < 0) ? 0 : (v))));
//return(r);
}
function set g(v) {
_g = ((v > 255) ? 255 : (((v < 0) ? 0 : (v))));
//return(g);
}
function set b(v) {
_b = ((v > 255) ? 255 : (((v < 0) ? 0 : (v))));
//return(b);
}
function get rgb() {
return(((r << 16) + (g << 8)) + b);
}
function setRGB(ri, gi, bi) {
r = (ri);
g = (gi);
b = (bi);
}
function incRGB(ri, gi, bi) {
r = (_r + ri);
g = (_g + gi);
b = (_b + bi);
}
function toString() {
return((((("R:" + r) + "/G:") + g) + "/B:") + b);
}
}
Symbol 98 MovieClip [__Packages.com.google.GMap.geometry.GKMLLayer] Frame 0
class com.google.GMap.geometry.GKMLLayer extends com.google.GMap.geometry.GLayer
{
var _xml, _loading, _infoWindowStyle, __get__core, _noInfo, _cancelCleanup, _loadingItems, _styles, _kmlobjects, addPoint, addLine, addPolygon, addOverlay, updatePosition, dispatchEvent, layerError;
function GKMLLayer (owner, initObject) {
super(owner, initObject);
_xml = new XML();
_xml.ignoreWhite = true;
_xml.onLoad = mx.utils.Delegate.create(this, onXMLLoaded);
_loading = false;
_infoWindowStyle = new Object();
_infoWindowStyle.w = 250;
_infoWindowStyle.h = 200;
_infoWindowStyle.titleHTML = true;
_infoWindowStyle.contentHTML = true;
_infoWindowStyle.contentAutoSize = true;
var _local4 = new TextField.StyleSheet();
_local4.setStyle("html", {fontWeight:"bold", fontSize:"14"});
_infoWindowStyle.titleStyle = _local4;
_local4 = new TextField.StyleSheet();
_local4.setStyle("a", {textDecoration:"underline", color:"#0000ff", fontWeight:"bold"});
_infoWindowStyle.contentStyle = _local4;
if (initObject.hasOwnProperty("infoWindowStyle")) {
__get__core().copyObject(_infoWindowStyle, initObject.infoWindowStyle);
}
_noInfo = ((initObject.noInfo != undefined) ? (initObject.noInfo) : false);
if (initObject.path != undefined) {
loadKML(initObject.path);
}
_cancelCleanup = ((initObject.cancelCleanup != undefined) ? (initObject.cancelCleanup) : false);
_loadingItems = 0;
}
function loadKML(path) {
_loading = true;
_loadingItems = 0;
_xml.load(path);
}
function parseKMLdata(parent) {
if (parent == undefined) {
parent = _xml.firstChild;
}
var _local2 = parent.firstChild;
while (_local2 != null) {
if (_local2.nodeName == null) {
} else {
switch (_local2.nodeName) {
case "Style" :
var _local3 = new Object();
_local3.id = _local2.attributes.id;
parseStyle(_local2, _local3);
_styles[_local3.id] = __get__core().cloneObject(_local3);
break;
case "Placemark" :
var _local4 = new Object();
parsePlacemark(_local2, _local4);
_kmlobjects.push(__get__core().cloneObject(_local4));
break;
case "GroundOverlay" :
_local4 = new Object();
parsePlacemark(_local2, _local4);
_local4.obj$type = "overlay";
_kmlobjects.push(__get__core().cloneObject(_local4));
break;
default :
parseKMLdata(_local2);
}
}
_local2 = _local2.nextSibling;
}
}
function createObjects() {
var _local3;
var _local2 = 0;
while (_local2 < _kmlobjects.length) {
switch (_kmlobjects[_local2].obj$type) {
case "point" :
if (_kmlobjects[_local2].style != undefined) {
var _local4 = _styles[_kmlobjects[_local2].style];
_kmlobjects[_local2].fillRGB = _local4.iconStyle.color;
_kmlobjects[_local2].fillAlpha = _local4.iconStyle.alpha;
_kmlobjects[_local2].icon = _local4.iconStyle.icon;
_kmlobjects[_local2].iconOffset = __get__core().cloneObject(_local4.iconStyle.iconOffset);
_kmlobjects[_local2].iconAlign = _local4.iconStyle.iconAlign;
_kmlobjects[_local2].strokeRGB = _local4.lineStyle.color;
_kmlobjects[_local2].strokeAlpha = _local4.lineStyle.alpha;
_kmlobjects[_local2].strokeThickness = _local4.lineStyle.width;
}
_kmlobjects[_local2].infoWindowStyle = __get__core().cloneObject(_infoWindowStyle);
_kmlobjects[_local2].infoWindowStyle.title = ("<html>" + _kmlobjects[_local2].name) + "</html>";
if (!_cancelCleanup) {
_kmlobjects[_local2].description = cleanupHTML(_kmlobjects[_local2].description);
}
_kmlobjects[_local2].infoWindowStyle.content = ("<html>" + _kmlobjects[_local2].description) + "</html>";
_kmlobjects[_local2].shadow = true;
_local3 = addPoint(_kmlobjects[_local2]);
_local3.addEventListener("GEOMETRY_READY", this);
_loadingItems++;
if ((_kmlobjects[_local2].description != undefined) || (_kmlobjects[_local2].name != undefined)) {
if (!_noInfo) {
_local3.addEventListener("GEOMETRY_ON_RELEASE", openInfoWindow);
}
}
break;
case "line" :
if (_kmlobjects[_local2].style != undefined) {
var _local4 = _styles[_kmlobjects[_local2].style];
_kmlobjects[_local2].strokeRGB = _local4.lineStyle.color;
_kmlobjects[_local2].strokeAlpha = _local4.lineStyle.alpha;
_kmlobjects[_local2].strokeThickness = _local4.lineStyle.width;
}
_kmlobjects[_local2].infoWindowStyle = __get__core().cloneObject(_infoWindowStyle);
_kmlobjects[_local2].infoWindowStyle.title = _kmlobjects[_local2].name;
if (!_cancelCleanup) {
_kmlobjects[_local2].description = cleanupHTML(_kmlobjects[_local2].description);
}
_kmlobjects[_local2].infoWindowStyle.content = _kmlobjects[_local2].description;
_local3 = addLine(_kmlobjects[_local2]);
if ((_kmlobjects[_local2].description != undefined) || (_kmlobjects[_local2].name != undefined)) {
if (!_noInfo) {
_local3.addEventListener("GEOMETRY_ON_RELEASE", openInfoWindow);
}
}
break;
case "polygon" :
if (_kmlobjects[_local2].style != undefined) {
var _local4 = _styles[_kmlobjects[_local2].style];
_kmlobjects[_local2].fillRGB = _local4.polyStyle.color;
_kmlobjects[_local2].fillAlpha = _local4.polyStyle.alpha;
_kmlobjects[_local2].fill = _local4.polyStyle.fill;
_kmlobjects[_local2].strokeRGB = _local4.lineStyle.color;
_kmlobjects[_local2].strokeAlpha = _local4.lineStyle.alpha;
_kmlobjects[_local2].strokeThickness = _local4.lineStyle.width;
_kmlobjects[_local2].stroke = _local4.polyStyle.outline;
}
_kmlobjects[_local2].infoWindowStyle = __get__core().cloneObject(_infoWindowStyle);
_kmlobjects[_local2].infoWindowStyle.title = _kmlobjects[_local2].name;
if (!_cancelCleanup) {
_kmlobjects[_local2].description = cleanupHTML(_kmlobjects[_local2].description);
}
_kmlobjects[_local2].infoWindowStyle.content = _kmlobjects[_local2].description;
_local3 = addPolygon(_kmlobjects[_local2]);
if ((_kmlobjects[_local2].description != undefined) || (_kmlobjects[_local2].name != undefined)) {
if (!_noInfo) {
_local3.addEventListener("GEOMETRY_ON_RELEASE", openInfoWindow);
}
}
break;
case "overlay" :
if (_kmlobjects[_local2].style != undefined) {
var _local4 = _styles[_kmlobjects[_local2].style];
_kmlobjects[_local2].path = _local4.icon;
}
_kmlobjects[_local2].infoWindowStyle = __get__core().cloneObject(_infoWindowStyle);
_kmlobjects[_local2].infoWindowStyle.title = _kmlobjects[_local2].name;
if (!_cancelCleanup) {
_kmlobjects[_local2].description = cleanupHTML(_kmlobjects[_local2].description);
}
_kmlobjects[_local2].infoWindowStyle.content = _kmlobjects[_local2].description;
_local3 = addOverlay(_kmlobjects[_local2]);
_local3.addEventListener("GEOMETRY_READY", this);
_loadingItems++;
if (!((_kmlobjects[_local2].description != undefined) || (_kmlobjects[_local2].name != undefined))) {
break;
}
if (_noInfo) {
break;
}
_local3.addEventListener("GEOMETRY_ON_RELEASE", openInfoWindow);
}
_local2++;
}
}
function parsePlacemark(kml, initObject) {
var _local3 = kml.firstChild;
while (_local3 != null) {
switch (_local3.nodeName) {
case "name" :
initObject.name = _local3.firstChild.nodeValue;
break;
case "description" :
initObject.description = _local3.firstChild.nodeValue;
break;
case "styleUrl" :
if (String(_local3.firstChild.nodeValue).substr(0, 1) == "#") {
initObject.style = String(_local3.firstChild.nodeValue).substr(1);
} else {
trace("external kml style not supported");
}
break;
case "Point" :
initObject.obj$type = "point";
parsePlacemark(_local3, initObject);
initObject.lat = initObject.tmp$coords[0].lat;
initObject.lng = initObject.tmp$coords[0].lng;
break;
case "LineString" :
initObject.obj$type = "line";
parsePlacemark(_local3, initObject);
initObject.points = initObject.tmp$coords;
break;
case "LinearRing" :
if (initObject.obj$type == undefined) {
initObject.obj$type = "line";
}
parsePlacemark(_local3, initObject);
initObject.tmp$coords.push(initObject.tmp$coords[0]);
break;
case "coordinates" :
initObject.tmp$coords = parseCoordinates(_local3);
break;
case "Polygon" :
initObject.obj$type = "polygon";
parsePlacemark(_local3, initObject);
break;
case "outerBoundaryIs" :
parsePlacemark(_local3, initObject);
initObject.outer = initObject.tmp$coords;
break;
case "innerBoundaryIs" :
if (initObject.inner == undefined) {
initObject.inner = new Array();
}
parsePlacemark(_local3, initObject);
initObject.inner.push(initObject.tmp$coords);
break;
case "Icon" :
parseStyle(_local3, initObject);
initObject.path = initObject.tmp$href;
break;
case "LatLonBox" :
parsePlacemark(_local3, initObject);
initObject.north = initObject.tmp$north;
initObject.south = initObject.tmp$south;
initObject.east = initObject.tmp$east;
initObject.west = initObject.tmp$west;
initObject.rotation = initObject.tmp$rotation;
break;
case "north" :
initObject.tmp$north = Number(_local3.firstChild.nodeValue);
break;
case "south" :
initObject.tmp$south = Number(_local3.firstChild.nodeValue);
break;
case "west" :
initObject.tmp$west = Number(_local3.firstChild.nodeValue);
break;
case "east" :
initObject.tmp$east = Number(_local3.firstChild.nodeValue);
break;
case "rotation" :
initObject.tmp$rotation = Number(_local3.firstChild.nodeValue);
break;
default :
parsePlacemark();
}
_local3 = _local3.nextSibling;
}
}
function parseCoordinates(kml) {
var _local4 = String(kml.firstChild.nodeValue);
_local4 = _local4.split(newline).join("");
_local4 = _local4.split("\r").join("");
_local4 = _local4.split("\t").join("");
var _local2 = _local4.split(" ");
var _local3;
var _local5 = new Array();
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1] != "") {
_local3 = String(_local2[_local1]).split(",");
_local5.push(new com.google.GMap.types.GLocation(_local3[1], _local3[0]));
}
_local1++;
}
return(_local5);
}
function parseStyle(kml, styleObject) {
var _local3 = kml.firstChild;
while (_local3 != null) {
switch (_local3.nodeName) {
case "IconStyle" :
parseStyle(_local3, styleObject);
createColorStyle(styleObject);
styleObject.iconStyle = new Object();
styleObject.iconStyle.color = styleObject.tmp$rgb;
styleObject.iconStyle.alpha = styleObject.tmp$alpha;
styleObject.iconStyle.scale = styleObject.tmp$scale;
styleObject.iconStyle.icon = styleObject.tmp$icon;
if (styleObject.tmp$hotspot != undefined) {
styleObject.iconStyle.iconOffset = new Object();
if (styleObject.tmp$hotspot.yunits == "fraction") {
styleObject.iconStyle.iconAlign = "top";
styleObject.iconStyle.iconOffset.y = ("-" + String(Number(styleObject.tmp$hotspot.y) * 100)) + "%";
} else if (styleObject.tmp$hotspot.yunits == "pixels") {
styleObject.iconStyle.iconAlign = "top";
styleObject.iconStyle.iconOffset.y = -Number(styleObject.tmp$hotspot.y);
} else if (styleObject.tmp$hotspot.yunits == "insetPixels") {
styleObject.iconStyle.iconAlign = "bottom";
styleObject.iconStyle.iconOffset.y = -Number(styleObject.tmp$hotspot.y);
}
if (styleObject.tmp$hotspot.xunits == "fraction") {
styleObject.iconStyle.iconAlign = styleObject.iconStyle.iconAlign + "-left";
styleObject.iconStyle.iconOffset.x = ("-" + String(Number(styleObject.tmp$hotspot.x) * 100)) + "%";
} else if (styleObject.tmp$hotspot.xunits == "pixels") {
styleObject.iconStyle.iconAlign = styleObject.iconStyle.iconAlign + "-left";
styleObject.iconStyle.iconOffset.x = -Number(styleObject.tmp$hotspot.x);
} else if (styleObject.tmp$hotspot.xunits == "insetPixels") {
styleObject.iconStyle.iconAlign = styleObject.iconStyle.iconAlign + "-right";
styleObject.iconStyle.iconOffset.x = -Number(styleObject.tmp$hotspot.x);
}
} else {
styleObject.iconStyle.iconAlign = "bottom-center";
styleObject.iconStyle.iconOffset = {x:0, y:0};
}
break;
case "color" :
styleObject.tmp$color = _local3.firstChild.nodeValue;
break;
case "colorMode" :
styleObject.tmp$colorMode = _local3.firstChild.nodeValue;
break;
case "scale" :
styleObject.tmp$scale = Number(_local3.firstChild.nodeValue);
break;
case "Icon" :
parseStyle(_local3, styleObject);
styleObject.tmp$icon = styleObject.tmp$href;
break;
case "href" :
styleObject.tmp$href = _local3.firstChild.nodeValue;
break;
case "hotSpot" :
styleObject.tmp$hotspot = new Object();
styleObject.tmp$hotspot.x = _local3.attributes.x;
styleObject.tmp$hotspot.y = _local3.attributes.y;
styleObject.tmp$hotspot.xunits = _local3.attributes.xunits;
styleObject.tmp$hotspot.yunits = _local3.attributes.yunits;
break;
case "LineStyle" :
parseStyle(_local3, styleObject);
createColorStyle(styleObject);
styleObject.lineStyle = new Object();
styleObject.lineStyle.color = styleObject.tmp$rgb;
styleObject.lineStyle.alpha = styleObject.tmp$alpha;
styleObject.lineStyle.width = styleObject.tmp$width;
break;
case "width" :
styleObject.tmp$width = Number(_local3.firstChild.nodeValue);
break;
case "PolyStyle" :
parseStyle(_local3, styleObject);
createColorStyle(styleObject);
styleObject.polyStyle = new Object();
styleObject.polyStyle.color = styleObject.tmp$rgb;
styleObject.polyStyle.alpha = styleObject.tmp$alpha;
styleObject.polyStyle.fill = Boolean(((styleObject.tmp$fill == undefined) ? 1 : (styleObject.tmp$fill)));
styleObject.polyStyle.outline = Boolean(((styleObject.tmp$outline == undefined) ? 1 : (styleObject.tmp$outline)));
break;
case "fill" :
styleObject.tmp$fill = Number(_local3.firstChild.nodeValue);
break;
case "outline" :
styleObject.tmp$outline = Number(_local3.firstChild.nodeValue);
break;
}
_local3 = _local3.nextSibling;
}
}
function createColorStyle(styleObject) {
if ((styleObject.tmp$color == undefined) || (styleObject == undefined)) {
return(false);
}
styleObject.tmp$alpha = Math.round((Number("0x" + styleObject.tmp$color.substr(0, 2)) / 255) * 100);
var _local1 = new com.google.GMap.types.GColor();
_local1.__set__b(Number("0x" + styleObject.tmp$color.substr(2, 2)));
_local1.__set__g(Number("0x" + styleObject.tmp$color.substr(4, 2)));
_local1.__set__r(Number("0x" + styleObject.tmp$color.substr(6, 2)));
if (styleObject.tmp$colorMode == "random") {
_local1.__set__r(Math.floor(Math.random() * (_local1.__get__r() + 1)));
_local1.__set__g(Math.floor(Math.random() * (_local1.__get__g() + 1)));
_local1.__set__b(Math.floor(Math.random() * (_local1.__get__b() + 1)));
}
styleObject.tmp$rgb = _local1.rgb;
return(true);
}
function clearStyles() {
while (_styles.length > 0) {
delete eval (_styles.pop());
}
_styles = new Array();
}
function clearObjects() {
while (_kmlobjects.length > 0) {
delete eval (_kmlobjects.pop());
}
_kmlobjects = new Array();
}
function cleanupHTML(html) {
var _local2 = html.split("<p></p>");
if (_local2.length < 2) {
return(html);
}
var _local3 = 0;
var _local1 = 0;
while (_local1 < _local2.length) {
_local2[_local1] = _local2[_local1].split("</p>").join("");
if (_local2[_local1] == "") {
_local3++;
} else {
_local3 = 0;
}
if (_local3 > 1) {
_local2.splice(_local1, 1);
_local1--;
}
_local1++;
}
return(_local2.join("<p></p>"));
}
function openInfoWindow(evt) {
if (evt.target.infoWindow != undefined) {
return(undefined);
}
evt.target.openInfoWindow();
}
function onXMLLoaded(success) {
if (success) {
clearStyles();
clearObjects();
parseKMLdata();
createObjects();
updatePosition();
dispatchEvent({target:this, type:"KML_READY"});
} else {
layerError("error loading KML file");
}
_loading = false;
}
function GEOMETRY_READY(evt) {
_loadingItems--;
if (_loadingItems == 0) {
dispatchEvent({type:"KML_LOAD_COMPLETE", target:this});
}
}
function get cancelCleanup() {
return(_cancelCleanup);
}
function set cancelCleanup(val) {
_cancelCleanup = val;
//return(cancelCleanup);
}
function get infoWindowStyle() {
return(_infoWindowStyle);
}
function set infoWindowStyle(val) {
__get__core().copyObject(_infoWindowStyle, val);
//return(infoWindowStyle);
}
}
Symbol 99 MovieClip [__Packages.com.google.GMap.managers.GLayerManager] Frame 0
class com.google.GMap.managers.GLayerManager
{
var _owner, _mc, _layers, _layer_id, _init, _depthManager, dispatchEvent, _layer;
function GLayerManager (owner, initObject) {
_owner = owner;
_mc = _owner.getNewMovieClip();
_mc._name = "layerManager";
_mc.super$ = this;
_layers = new Array();
_layer_id = 0;
_init = false;
_depthManager = new com.google.GMap.managers.GDepthManager(_mc);
mx.events.EventDispatcher.initialize(this);
dispatchEvent({target:this, type:"READY"});
core.dispatchEvent({target:core, type:"LAYER_MANAGER_READY"});
}
function init() {
if (_init) {
return(undefined);
}
_layer = addLayer();
_layer._mc.swapDepths(0);
_init = true;
if (!core.ready) {
hideLayers();
}
dispatchEvent({target:this, type:"INIT"});
core.dispatchEvent({target:core, type:"LAYER_MANAGER_INIT"});
}
function updatePosition() {
_layer.updatePosition();
var _local2 = 1;
while (_local2 < _layers.length) {
_layers[_local2].updatePosition();
_local2++;
}
}
function addLayer(initObject) {
var _local2 = new com.google.GMap.geometry.GLayer(this, initObject);
dispatchEvent({target:this, type:"LAYER_ADDED", layer:_local2});
core.dispatchEvent({target:core, type:"LAYER_MANAGER_LAYER_ADDED", layer:_local2});
return(_local2);
}
function addKMLLayer(initObject) {
var _local2 = new com.google.GMap.geometry.GKMLLayer(this, initObject);
dispatchEvent({target:this, type:"LAYER_ADDED", layer:_local2});
core.dispatchEvent({target:core, type:"LAYER_MANAGER_LAYER_ADDED", layer:_local2});
return(_local2);
}
function getLayer(id_or_name) {
if (id_or_name == undefined) {
return(undefined);
}
if (typeof(id_or_name) == "number") {
var _local2 = 0;
while (_local2 < _layers.length) {
if (_layers[_local2].id == Number(id_or_name)) {
return(_layers[_local2]);
}
_local2++;
}
} else if (typeof(id_or_name) == "string") {
var _local4 = new Array();
var _local2 = 0;
while (_local2 < _layers.length) {
if (_layers[_local2].name == String(id_or_name)) {
_local4.push(_layers[_local2]);
}
_local2++;
}
if (_local4.length < 2) {
return(_local4[0]);
}
return(_local4);
}
}
function getLayers() {
return(_layers);
}
function removeLayer(layer) {
if (layer.__get__id() == 0) {
return(undefined);
}
var _local2 = 1;
while (_local2 < _layers.length) {
if (_layers[_local2].id == layer.__get__id()) {
dispatchEvent({target:this, type:"LAYER_REMOVED", layer:layer});
core.dispatchEvent({target:core, type:"LAYER_MANAGER_LAYER_REMOVED", layer:layer});
layer.releaseMovieClip();
_layers.splice(_local2, 1);
return(undefined);
}
_local2++;
}
}
function removeLayers() {
while (_layers.length > 1) {
_layers[1].remove();
}
}
function addPoint(initObject) {
return(_layer.addPoint(initObject));
}
function getPoint(id_or_name) {
return(_layer.searchGeometryObject(id_or_name, "GPoint"));
}
function addLine(initObject) {
return(_layer.addLine(initObject));
}
function getLine(id_or_name) {
return(_layer.searchGeometryObject(id_or_name, "GLine"));
}
function addPolygon(initObject) {
return(_layer.addPolygon(initObject));
}
function getPolygon(id_or_name) {
return(_layer.searchGeometryObject(id_or_name, "GPolygon"));
}
function addOverlay(initObject) {
return(_layer.addOverlay(initObject));
}
function getOverlay(id_or_name) {
return(_layer.searchGeometryObject(id_or_name, "GOverlay"));
}
function searchGeometryObject(id_or_name, type) {
return(_layer.searchGeometryObject(id_or_name, type));
}
function showLayers(show) {
_mc._visible = ((show == undefined) ? true : (show));
}
function hideLayers() {
showLayers(false);
}
function registerLayer(layer) {
layer.id = _layer_id++;
_layers.push(layer);
dispatchEvent({target:this, type:"LAYER_ADDED", layer:layer});
}
function getNewMovieClip(depth) {
depth = _depthManager.getDepthFromZIndex(depth);
var _local2 = _mc.createEmptyMovieClip("mc" + (_layer_id - 1), depth);
return(_local2);
}
function resolveFunction(name) {
arguments.shift();
if (!(name === "addPoint")) {
} else {
return(_layer.addPoint.apply(_layer, arguments));
}
}
function get core() {
return(_owner.core);
}
}
Symbol 100 MovieClip [__Packages.com.google.GMap.managers.GGuiManager] Frame 0
class com.google.GMap.managers.GGuiManager
{
var _owner, _mc, _controls, _control_id, _depthManager, dispatchEvent, _init, _logo, _infoWindow, _mapTypeControl, _mapZoomControl, _mapPositionControl, _navigatorControl, _bottomWidth, _lastCopyright;
function GGuiManager (owner) {
_owner = owner;
_mc = _owner.getNewMovieClip();
_mc._name = "guiManager";
_mc.super$ = this;
_controls = new Array();
_control_id = 0;
_depthManager = new com.google.GMap.managers.GDepthManager(_mc);
mx.events.EventDispatcher.initialize(this);
dispatchEvent({target:this, type:"READY"});
core.dispatchEvent({target:core, type:"GUI_MANAGER_READY"});
}
function init() {
if (_init) {
return(undefined);
}
_logo = _mc.attachMovie("GMap_google_logo", "logo", _depthManager.getTopmostDepth());
setCopyright(unescape("%C2%A92007 Google"));
_init = true;
size();
}
function updatePosition() {
_infoWindow.updatePosition();
var _local2 = 0;
while (_local2 < _controls.length) {
_controls[_local2].updateMapPosition();
_local2++;
}
}
function updateMapType(type) {
var _local2 = 0;
while (_local2 < _controls.length) {
_controls[_local2].setMapType(type);
_local2++;
}
}
function updateMaxZoom(new_max) {
var _local2 = 0;
while (_local2 < _controls.length) {
_controls[_local2].setMaxZoomLevel(new_max);
_local2++;
}
}
function updateZoom() {
var _local2 = 0;
while (_local2 < _controls.length) {
_controls[_local2].setZoomLevel(core.zoom);
_local2++;
}
_infoWindow.updatePosition();
}
function addControl(control, initObject) {
control.setOwner(this);
control.addEventListener("CONTROL_ACTION", mx.utils.Delegate.create(this, controlAction));
control.addEventListener("CONTROL_ON_PRESS", mx.utils.Delegate.create(core, core.cancelDragging));
control.addEventListener("CONTROL_ON_RELEASE", mx.utils.Delegate.create(core, core.cancelDoubleClick));
control.addEventListener("CONTROL_UPDATED", mx.utils.Delegate.create(core, controlUpdated));
control.updatePlacement();
switch (control.type) {
case "mapType" :
_mapTypeControl = control;
break;
case "zoom" :
_mapZoomControl = control;
break;
case "position" :
_mapPositionControl = control;
break;
case "navigator" :
_navigatorControl = control;
}
if (!core.ready) {
control.mc._visible = false;
}
sizeCopyright();
return(control);
}
function size() {
var _local2 = 0;
while (_local2 < _controls.length) {
_controls[_local2].updatePlacement();
_local2++;
}
sizeCopyright();
}
function sizeCopyright() {
var _local3 = core.width - 10;
var _local2 = 0;
while (_local2 < _controls.length) {
if ((_controls[_local2].align == "bottom-right") && (_controls[_local2].visible)) {
_local3 = Math.min(_controls[_local2].mc._x, _local3);
}
_local2++;
}
_bottomWidth = (_local3 - 20) - _logo.logo._width;
if (_bottomWidth < 100) {
_bottomWidth = (core.width - 20) - _logo.logo._width;
_local3 = core.width - 10;
}
_logo._x = 10;
_logo._y = (core.height - _logo.logo._height) - 10;
setCopyright(_lastCopyright);
}
function openInfoWindow(initObject) {
closeInfoWindow();
if (!initObject) {
initObject = new Object();
}
initObject.zIndex = 10000;
_infoWindow = new com.google.GMap.window.GInfoWindow(this, initObject);
_infoWindow.addEventListener("INFO_WINDOW_CLOSED", mx.utils.Delegate.create(this, closeInfoWindow));
_infoWindow.addEventListener("INFO_WINDOW_ON_PRESS", mx.utils.Delegate.create(core, core.cancelDragging));
core.showInfoWindow();
return(_infoWindow);
}
function closeInfoWindow() {
if (_infoWindow) {
_infoWindow.remove();
_infoWindow.releaseMovieClip();
delete _infoWindow;
return(true);
}
return(false);
}
function setCopyright(str) {
if (str == undefined) {
return(undefined);
}
_lastCopyright = str;
str = ("<p>" + str) + " - <a href=\"http://www.google.com/intl/en_ALL/help/terms_local.html\" target=\"_blank\">Terms of use</a> </p>";
var _local2 = _logo.copy;
_local2.htmlText = "";
_local2.multiline = true;
_local2.autoSize = true;
_local2.wordWrap = true;
_local2._width = _bottomWidth;
var _local3 = new TextField.StyleSheet();
var _local7 = new Object();
_local7.color = ((core.mapType == "map") ? "#000000" : "#ffffff");
_local3.setStyle("p", _local7);
var _local6 = new Object();
_local6.color = ((core.mapType == "map") ? "#7777cc" : "#ffffff");
_local6.textDecoration = "underline";
_local3.setStyle("a:link", _local6);
var _local5 = new Object();
_local5.color = "#ff0000";
_local5.textDecoration = "underline";
_local3.setStyle("a:hover", _local5);
_local2.styleSheet = _local3;
_local2.htmlText = str;
_logo.copy._x = _logo.logo._width;
_logo.copy._y = _logo.logo._height - _logo.copy._height;
}
function showControls(autohide) {
var _local2 = 0;
while (_local2 < _controls.length) {
if ((_controls[_local2].visibility == "on") || ((_controls[_local2].visibility == "auto hide") && (autohide))) {
_controls[_local2].mc._visible = true;
}
_local2++;
}
sizeCopyright();
}
function hideControls(all) {
var _local2 = 0;
while (_local2 < _controls.length) {
if ((_controls[_local2].visibility == "auto hide") || ((_controls[_local2].visibility == "on") && (all))) {
_controls[_local2].mc._visible = false;
}
_local2++;
}
sizeCopyright();
}
function getNewMovieClip(depth) {
depth = _depthManager.getDepthFromZIndex(depth);
var _local2 = _mc.createEmptyMovieClip("mc" + (_control_id - 1), depth);
return(_local2);
}
function registerControl(control) {
control.id = _control_id++;
_controls.push(control);
dispatchEvent({target:this, type:"CONTROL_ADDED", control:control});
}
function setObjectPosition(obj) {
if (obj.type == "GInfoWindow") {
var _local10 = core.display.currentZoom;
var _local5 = Math.floor(_local10);
var _local9 = (_local10 - _local5) + 1;
var _local4 = core.control.getXYFromLatLng(new com.google.GMap.types.GLocation(obj.lat, obj.lng), _local5);
var _local6 = core.control.getXYFromLatLng(core.getCenter(), _local5);
if (obj.lng < 0) {
if ((_local6.__get__x() - _local4.__get__x()) > ((_local4.__get__x() + core.control.mercator.width[_local5]) - _local6.__get__x())) {
_local4.x = _local4.x + core.control.mercator.width[_local5];
}
} else if ((_local4.__get__x() - _local6.__get__x()) > ((_local6.__get__x() - _local4.__get__x()) + core.control.mercator.width[_local5])) {
_local4.x = _local4.x - core.control.mercator.width[_local5];
}
obj.mc._x = Math.round(((_local4.__get__x() - _local6.__get__x()) * _local9) + (core.width / 2));
obj.mc._y = Math.round(((_local4.__get__y() - _local6.__get__y()) * _local9) + (core.height / 2));
} else {
var _local2;
var _local8;
var _local7;
_local2 = obj.align.split("-")[0];
_local8 = ((((_local2 == "left") || (_local2 == "right")) || (_local2 == "center")) ? (_local2) : (_local8));
_local7 = ((((_local2 == "top") || (_local2 == "bottom")) || (_local2 == "middle")) ? (_local2) : (_local7));
_local2 = obj.align.split("-")[1];
_local8 = ((((_local2 == "left") || (_local2 == "right")) || (_local2 == "center")) ? (_local2) : (_local8));
_local7 = ((((_local2 == "top") || (_local2 == "bottom")) || (_local2 == "middle")) ? (_local2) : (_local7));
var _local4 = new com.google.GMap.types.GCoord(0, 0);
switch (_local8) {
case "left" :
_local4.__set__x(obj.padding.x);
break;
case "right" :
_local4.__set__x((core.width - obj.width) - obj.padding.x);
break;
case "center" :
_local4.__set__x((core.width - obj.width) / 2);
}
switch (_local7) {
case "top" :
_local4.__set__y(obj.padding.y);
break;
case "bottom" :
_local4.__set__y((core.height - obj.height) - obj.padding.y);
break;
case "middle" :
_local4.__set__y((core.height - obj.height) / 2);
}
obj.mc._x = _local4.x;
obj.mc._y = _local4.y;
}
}
function controlAction(evt) {
switch (evt.action) {
case "type_changed" :
core.setMapType(String(evt.mapType));
break;
case "position_changed" :
switch (String(evt.direction).toLowerCase()) {
case "north" :
core.moveNorth();
break;
case "west" :
core.moveWest();
break;
case "south" :
core.moveSouth();
break;
case "east" :
core.moveEast();
break;
case "center" :
core.returnToSavedPosition();
}
break;
case "zoom_changed" :
if (core.smoothZoom) {
core.zoom = evt.zoom;
} else {
core.zoom = Math.round(evt.zoom);
}
}
}
function controlUpdated(evt) {
evt.target.updatePlacement();
sizeCopyright();
}
function mapTypeChanged(evt) {
core.mapType = String(evt.target.selectedMapType).toLowerCase();
core.cancelDoubleClick();
}
function mapPositionChanged(evt) {
switch (String(evt.direction).toLowerCase()) {
case "north" :
core.moveNorth();
break;
case "west" :
core.moveWest();
break;
case "south" :
core.moveSouth();
break;
case "east" :
core.moveEast();
break;
case "center" :
core.returnToSavedPosition();
}
core.cancelDoubleClick();
}
function mapZoomChanged(evt) {
if (core.smoothZoom) {
core.zoom = evt.zoom;
} else {
core.zoom = Math.round(evt.zoom);
}
core.cancelDoubleClick();
}
function get core() {
return(_owner.core);
}
function get depthManager() {
return(_depthManager);
}
function get controls() {
return(_controls);
}
function get mapTypeControl() {
return(_mapTypeControl);
}
function get mapPositionControl() {
return(_mapPositionControl);
}
function get mapZoomControl() {
return(_mapZoomControl);
}
function get infoWindow() {
return(_infoWindow);
}
}
Symbol 101 MovieClip [__Packages.com.google.GMap.core.GController] Frame 0
class com.google.GMap.core.GController
{
var _owner, _http, _serverIndex, _maxZoomLevel, _mercator, dispatchEvent, _segWidth, _segHeight;
function GController (owner) {
_owner = owner;
_http = new com.google.GMap.managers.GHTTPManager(this);
_http.addEventListener("PARSING_COMPLETE", mx.utils.Delegate.create(this, settingsReady));
_http.addEventListener("PARSING_COMPLETE", this);
_http.addEventListener("PARSING_ERROR", mx.utils.Delegate.create(this, settingsError));
_http.addEventListener("LOADING_ERROR", mx.utils.Delegate.create(this, settingsError));
_serverIndex = 0;
mx.events.EventDispatcher.initialize(this);
}
function init() {
if (!_global.isLivePreview) {
initMercator();
_http.loadSettings();
}
}
function getURL(x, y, z, mapType, full) {
if (_global.isLivePreview) {
return((((("GMap_x" + x) + "y") + y) + "z") + z);
}
var _local4;
switch (mapType) {
case "map" :
_local4 = _http.__get__settings().map.url;
_local4 = _local4.split("[n]").join("404");
_local4 = _local4.split("[version]").join(_http.__get__settings().map.version);
_local4 = _local4.split("[x]").join(String(x));
_local4 = _local4.split("[y]").join(String(y));
_local4 = _local4.split("[zoom]").join(String((_http.__get__settings().map.zoom - z) - 1));
if (full) {
_local4 = _local4.split("[server]").join(_http.__get__settings().map.servers[0]);
}
break;
case "satellite" :
_local4 = _http.__get__settings().satellite.url;
var _local11 = 0;
var _local3;
var _local8 = "";
var _local7 = 0;
while (_local7 < z) {
_local3 = 0;
_local3 = _local3 + ((Math.floor(x / 2) == (x / 2)) ? 0 : 1);
_local3 = _local3 + ((Math.floor(y / 2) == (y / 2)) ? 0 : 2);
_local8 = ((_local3 == 0) ? "q" : (((_local3 == 1) ? "r" : (((_local3 == 3) ? "s" : "t"))))) + _local8;
x = Math.floor(x / 2);
y = Math.floor(y / 2);
_local7++;
}
_local4 = _local4.split("[n]").join("404");
_local4 = _local4.split("[version]").join(_http.__get__settings().satellite.version);
_local4 = _local4.split("[t]").join("t" + _local8);
if (full) {
_local4 = _local4.split("[server]").join(_http.__get__settings().satellite.servers[0]);
}
break;
case "hybrid" :
_local4 = _http.__get__settings().hybrid.url;
_local4 = _local4.split("[n]").join("404");
_local4 = _local4.split("[version]").join(_http.__get__settings().hybrid.version);
_local4 = _local4.split("[x]").join(String(x));
_local4 = _local4.split("[y]").join(String(y));
_local4 = _local4.split("[zoom]").join(String((_http.__get__settings().hybrid.zoom - z) - 1));
if (!full) {
break;
}
_local4 = _local4.split("[server]").join(_http.__get__settings().hybrid.servers[0]);
}
return(_local4);
}
function getServer(mapType, index) {
if (index == undefined) {
index = ((_serverIndex >= http.settings[mapType].servers.length) ? (http.settings[mapType].servers.length - 1) : (_serverIndex));
_serverIndex++;
_serverIndex = ((_serverIndex >= http.settings[mapType].servers.length) ? 0 : (_serverIndex));
}
return(http.settings[mapType].servers[index]);
}
function initZoomLevels() {
_maxZoomLevel = 0;
for (var _local2 in _http.__get__settings()) {
_maxZoomLevel = Math.max(_maxZoomLevel, Number(_http.__get__settings()[_local2].zoom));
}
}
function getZoomLevels(mapType) {
if (_http.__get__settings() == undefined) {
return(undefined);
}
mapType = ((mapType == undefined) ? (core.mapType) : (mapType));
return(Number(_http.__get__settings()[mapType].zoom));
}
function updateMaxZoom(max, mapType) {
mapType = ((mapType == undefined) ? (core.mapType) : (mapType));
if (_http.__get__settings()[mapType].zoom != max) {
trace((((("new zoom " + max) + " was ") + _http.__get__settings()[mapType].zoom) + "/") + _http.__get__settings());
_http.__get__settings()[mapType].zoom = max;
var _local4 = Math.min(max, core.zoom);
if (_local4 != core.zoom) {
core.zoom = _local4;
}
core.display.guiManager.updateMaxZoom(max);
core.display.guiManager.updateZoom();
}
}
function checkZoom(zoom, mapType) {
mapType = ((mapType == undefined) ? (core.mapType) : (mapType));
if (zoom < 0) {
zoom = 0;
}
if (zoom > (getZoomLevels(mapType) - 1)) {
zoom = getZoomLevels(mapType) - 1;
}
return(zoom);
}
function checkLat(lat) {
lat = Number(lat);
var _local2 = GLOBE_HEIGHT / 2;
if (lat < (-_local2)) {
lat = -_local2;
}
if (lat > _local2) {
lat = _local2;
}
return(lat);
}
function checkY(y, zoom) {
y = Number(y);
zoom = Math.floor(((zoom == undefined) ? (core.zoom) : (zoom)));
if (y < 0) {
y = 0;
}
if (y > _mercator.height[zoom]) {
y = _mercator.height[zoom];
}
return(y);
}
function checkLng(lng, overlap) {
lng = Number(lng);
var _local2 = GLOBE_WIDTH / 2;
if (overlap) {
lng = lng + _local2;
while (lng > GLOBE_WIDTH) {
lng = lng - GLOBE_WIDTH;
}
while (lng < 0) {
lng = lng + GLOBE_WIDTH;
}
lng = lng - _local2;
} else {
if (lng < (-_local2)) {
lng = -_local2;
}
if (lng > _local2) {
lng = _local2;
}
}
return(lng);
}
function initMercator(max) {
max = ((max == undefined) ? (MERCATOR_DEPTH) : (max));
if (_mercator != undefined) {
delete _mercator.pixelsPerLngDegree;
delete _mercator.pixelsPerLngRadian;
delete _mercator.bitmapPoint;
delete _mercator.tileCount;
delete _mercator.width;
delete _mercator.height;
delete _mercator;
}
_mercator = new Object();
_mercator.pixelsPerLngDegree = new Array();
_mercator.pixelsPerLngRadian = new Array();
_mercator.bitmapPoint = new Array();
_mercator.tileCount = new Array();
_mercator.width = new Array();
_mercator.height = new Array();
var _local3 = TILE_WIDTH;
var _local6 = (Math.PI*2);
var _local4;
var _local2 = 0;
while (_local2 < max) {
_mercator.pixelsPerLngDegree[_local2] = _local3 / 360;
_mercator.pixelsPerLngRadian[_local2] = _local3 / _local6;
_local4 = _local3 / 2;
_mercator.bitmapPoint[_local2] = new com.google.GMap.types.GCoord(_local4, _local4);
_mercator.tileCount[_local2] = _local3 / TILE_WIDTH;
_mercator.width[_local2] = _local3;
_mercator.height[_local2] = _local3;
_local3 = _local3 * 2;
_local2++;
}
}
function getXYFromLatLng(loc, zoom) {
var _local5 = new com.google.GMap.types.GCoord(0, 0);
zoom = Math.floor(((zoom == undefined) ? (core.zoom) : (Number(zoom))));
if ((((loc.lat == undefined) || (loc.lng == undefined)) || (isNaN(loc.lat))) || (isNaN(loc.lng))) {
return(undefined);
}
if (_mercator == undefined) {
return(undefined);
}
loc.lat = Number(loc.lat);
loc.lng = Number(loc.lng);
_local5.__set__x(_mercator.bitmapPoint[zoom].x + (loc.lng * _mercator.pixelsPerLngDegree[zoom]));
var _local3 = Math.sin((loc.lat * Math.PI) / 180);
if (_local3 > 0.9999) {
_local3 = 0.9999;
}
if (_local3 < -0.9999) {
_local3 = -0.999;
}
_local5.__set__y(_mercator.bitmapPoint[zoom].y + ((0.5 * Math.log((1 + _local3) / (1 - _local3))) * (-_mercator.pixelsPerLngRadian[zoom])));
return(_local5);
}
function getLatLngFromXY(pos, zoom) {
var _local3 = new com.google.GMap.types.GLocation(0, 0);
zoom = Math.floor(((zoom == undefined) ? (core.zoom) : (zoom)));
if ((pos.__get__x() == undefined) || (pos.__get__y() == undefined)) {
return(undefined);
}
_local3.__set__lng((pos.__get__x() - _mercator.bitmapPoint[zoom].x) / _mercator.pixelsPerLngDegree[zoom]);
var _local4 = Math.exp((_mercator.bitmapPoint[zoom].y - pos.__get__y()) / (0.5 * _mercator.pixelsPerLngRadian[zoom]));
_local3.__set__lat((Math.asin((_local4 - 1) / (_local4 + 1)) * 180) / Math.PI);
return(_local3);
}
function settingsReady(evt) {
initZoomLevels();
initMercator(_maxZoomLevel);
dispatchEvent({target:this, type:"READY"});
core.dispatchEvent({target:core, type:"CONTROLLER_READY"});
}
function settingsError(evt) {
}
function get segWidth() {
return(_segWidth);
}
function get segHeight() {
return(_segHeight);
}
function get maxZoomLevel() {
return(_maxZoomLevel);
}
function get core() {
return(_owner);
}
function get mercator() {
return(_mercator);
}
function get http() {
return(_http);
}
static var TILE_WIDTH = 256;
static var TILE_HEIGHT = 256;
static var GLOBE_WIDTH = 360;
static var GLOBE_HEIGHT = 180;
static var MERCATOR_DEPTH = 25;
}
Symbol 102 MovieClip [__Packages.com.google.GMap.managers.GHTTPManager] Frame 0
class com.google.GMap.managers.GHTTPManager
{
var _owner, _loader, dispatchEvent, _timeout, _critical, _actionFunction, _queued, _loading, _settings;
function GHTTPManager (owner) {
_owner = owner;
_loader = new LoadVars();
_loader.onData = mx.utils.Delegate.create(this, onLoaderData);
mx.events.EventDispatcher.initialize(this);
dispatchEvent({target:this, type:"READY"});
core.dispatchEvent({target:core, type:"HTTP_MANAGER_READY"});
}
function loadSettings() {
_timeout = setInterval(this, "loadSettingsNow", 1);
}
function loadSettingsNow() {
clearInterval(_timeout);
_critical = true;
_actionFunction = parseSettigs;
_loader.load(SETTINGS_URL);
}
function loadCopyright(ev) {
if (_global.isLivePreview) {
return(undefined);
}
if (_loader == undefined) {
return(undefined);
}
var _local4 = core.getBounds();
if (_local4 == undefined) {
return(undefined);
}
var _local7 = _local4.__get__top() - _local4.__get__bottom();
if (_local7 < 0) {
_local7 = com.google.GMap.core.GController.GLOBE_HEIGHT;
}
var _local6 = _local4.__get__right() - _local4.__get__left();
if (_local6 < 0) {
_local6 = com.google.GMap.core.GController.GLOBE_WIDTH;
}
var _local10 = Math.round(core.lat * 1000) / 1000;
var _local9 = Math.round(core.lng * 1000) / 1000;
var _local8 = core.zoom;
if (ev != undefined) {
ev = "&ev=" + ev;
} else {
ev = "";
}
var _local3 = COPYRIGHT_URL;
_local3 = _local3 + ((("spn=" + _local7) + ",") + _local6);
_local3 = _local3 + ((("&vp=" + _local10) + ",") + _local9);
_local3 = _local3 + ("&z=" + _local8);
_local3 = _local3 + ev;
if (core.mapType == "satellite") {
_local3 = _local3 + "&t=k";
} else if (core.mapType == "hybrid") {
_local3 = _local3 + "&t=h";
}
_queued = _local3;
if (!_loading) {
loadNextCopyright();
}
}
function parseSettigs(src) {
var _local7 = new XML();
_local7.ignoreWhite = true;
_local7.parseXML(src);
if (!((_local7.firstChild.nodeName == "GMap") && (_local7.firstChild.firstChild.nodeName == "mapTypes"))) {
_settings = new Object();
_settings.map = MAP_FALLBACK;
_settings.satellite = SATELLITE_FALLBACK;
_settings.hybrid = HYBRID_FALLBACK;
} else {
String.prototype.trim = function () {
var _local2 = this.split("");
while (_local2[0] == " ") {
_local2.shift();
}
while (_local2[_local2.length - 1] == " ") {
_local2.pop();
}
return(_local2.join(""));
};
var _local5 = "";
_settings = new Object();
var _local4 = _local7.firstChild.firstChild.firstChild;
while (_local4 != null) {
if (_local4.nodeName == undefined) {
} else {
_settings[_local4.nodeName] = new Object();
var _local2 = _local4.firstChild;
while (_local2 != null) {
if (_local2.nodeName == "servers") {
_settings[_local4.nodeName].servers = new Array();
var _local3 = _local2.firstChild;
while (_local3 != null) {
_local5 = _local3.firstChild.nodeValue;
_settings[_local4.nodeName].servers.push(_local5.trim());
_local3 = _local3.nextSibling;
}
} else {
_local5 = String(_local2.firstChild.nodeValue);
_settings[_local4.nodeName][_local2.nodeName] = _local5.trim();
}
_local2 = _local2.nextSibling;
}
}
_local4 = _local4.nextSibling;
}
}
dispatchEvent({target:this, type:"PARSING_COMPLETE", settings:_settings});
core.dispatchEvent({target:core, type:"HTTP_MANAGER_PARSING_COMPLETE", settings:_settings});
}
function parseCopyright(str) {
var _local7 = 0;
if (str == undefined) {
core.display.guiManager.setCopyright(unescape("%C2%A92007 Google"));
return(undefined);
}
var _local4 = new Array();
var _local5 = new Array();
var _local6 = str.split("GAddCopyright");
for (var _local8 in _local6) {
var _local18 = _local6[_local8];
if (_local18 != "") {
var _local3 = _local18.split(",");
var _local2 = _local3[7].substring(1, _local3[7].length - 1);
_local7 = Number(_local3[_local3.length - 2]);
_local2 = _local2.split("™");
_local2 = _local2[0];
_local2 = _local2.split("\\x26trade;");
_local2 = _local2[0];
var _local19 = _local3[0].substring(2, 3);
if ((((_local2 != "") && (_local2 != undefined)) && (_local19 != "")) && (_local19 != undefined)) {
if ((_local19 == "k") && (!inArray(_local2, _local4))) {
_local4.push(_local2);
} else if ((_local19 == "m") && (!inArray(_local2, _local5))) {
_local5.push(_local2);
}
}
}
}
var _local9 = new Array();
if (_local4.length > 0) {
_local9.push("Imagery %C2%A92007 " + _local4.join(", "));
}
if (_local5.length > 0) {
_local9.push("Map Data %C2%A92007 " + _local5.join(", "));
}
var _local10 = "%C2%A92007 Google";
if ((_local4.length > 0) || (_local5.length > 0)) {
_local10 = _local10 + (" - " + _local9.join(", "));
}
core.display.guiManager.setCopyright(unescape(_local10));
core.dispatchEvent({target:core, type:"MAP_COPYRIGHT_CHANGED", bounds:core.getBounds(), zoom:core.zoom, lat:core.lat, lng:core.lng, copyright:unescape(_local10), copyrightNotice:str.split(newline)});
}
function loadNextCopyright() {
if (_queued != undefined) {
_loading = true;
_critical = false;
_actionFunction = parseCopyright;
_loader.load(_queued);
_queued = undefined;
}
}
function inArray(checkval, values, setval) {
var _local1 = 0;
while (_local1 < values.length) {
if (checkval == values[_local1]) {
if (setval != undefined) {
return(checkval);
}
return(true);
}
_local1++;
}
if (_local1 > values.length) {
if (setval != undefined) {
return(setval);
}
return(false);
}
}
function onLoaderData(src) {
if ((src == undefined) && (_critical)) {
dispatchEvent({target:this, type:"LOADING_ERROR"});
core.dispatchEvent({target:core, type:"HTTP_MANAGER_LOADING_ERROR"});
_actionFunction(src);
if (_queued != undefined) {
loadNextCopyright();
} else {
_loading = false;
}
} else {
dispatchEvent({target:this, type:"LOADING_COMPLETE"});
core.dispatchEvent({target:core, type:"HTTP_MANAGER_LOADING_COMPLETE"});
_actionFunction(src);
if (_queued != undefined) {
loadNextCopyright();
} else {
_loading = false;
}
}
}
function get core() {
return(_owner.core);
}
function get settings() {
return(_settings);
}
static var SETTINGS_URL = "http://www.afcomponents.com/components/g_map/gMapSettings.xml";
static var COPYRIGHT_URL = "http://www.afcomponents.com/map_google/scripts/getMapCopyright.php?";
static var MAP_FALLBACK = {url:"[server]/mt?n=404&v=[version]&x=[x]&y=[y]&zoom=[zoom]", servers:["http://mt0.google.com", "http://mt1.google.com", "http://mt2.google.com", "http://mt3.google.com"], version:"ap.0", zoom:18};
static var SATELLITE_FALLBACK = {url:"[server]/kh?n=404&v=[version]&t=[t]", servers:["http://kh0.google.com", "http://kh1.google.com", "http://kh2.google.com", "http://kh3.google.com"], version:"0", zoom:20};
static var HYBRID_FALLBACK = {url:"[server]/mt?n=404&v=[version]&x=[x]&y=[y]&zoom=[zoom]", servers:["http://mt0.google.com", "http://mt1.google.com", "http://mt2.google.com", "http://mt3.google.com"], version:"apt.0", zoom:18};
}
Symbol 103 MovieClip [__Packages.com.google.GMap.geometry.GSegment] Frame 0
class com.google.GMap.geometry.GSegment
{
var _owner, _mc, _x, _y, _z, _immediate;
function GSegment (owner, initObject) {
_owner = owner;
_owner.registerObject(this);
_mc = _owner.getNewMovieClip();
_mc._name = "tile" + _mc._name.slice(2);
_mc.super$ = this;
_x = ((initObject.x != undefined) ? (initObject.x) : undefined);
_y = ((initObject.y != undefined) ? (initObject.y) : undefined);
_z = ((initObject.z != undefined) ? (initObject.z) : undefined);
_immediate = ((initObject.immediate != undefined) ? (initObject.immediate) : undefined);
}
function setPosition(mc_x, mc_y) {
_mc._x = mc_x;
_mc._y = mc_y;
}
function init() {
var _local3;
var _local2 = core.mapType;
if (_owner.type != undefined) {
_local2 = _owner.type;
}
if ((_local2 == "map") || (_local2 == "satellite")) {
_mc.createEmptyMovieClip("image", 10);
_local3 = core.display.loadImage(_mc.image, core.control.getURL(_x, _y, _z, _local2), _local2, _z, _immediate);
} else if (_local2 == "hybrid") {
_mc.createEmptyMovieClip("image", 10);
_mc.createEmptyMovieClip("overlay", 20);
_local3 = core.display.loadImage(_mc.image, core.control.getURL(_x, _y, _z, "satellite"), "satellite", _z, _immediate);
_local3 = core.display.loadImage(_mc.overlay, core.control.getURL(_x, _y, _z, "hybrid"), _local2, _z, _immediate);
}
}
function remove() {
core.display.unloadImage(_mc.image);
delete _mc.bitmap;
if (_mc.overlay != undefined) {
core.display.unloadImage(_mc.overlay);
}
_mc.removeMovieClip();
}
function get x() {
return(_x);
}
function get y() {
return(_y);
}
function get zoom() {
return(_z);
}
function get core() {
return(_owner.core);
}
}
Symbol 104 MovieClip [__Packages.com.google.GMap.geometry.GGridLayer] Frame 0
class com.google.GMap.geometry.GGridLayer extends com.google.GMap.geometry.GLayer
{
var _zoom, _type, _extraTiles, _immediate, _segments, _scale, _x, _y, __get__core, _segWidth, _segHeight, _width, _mc, _height;
function GGridLayer (owner, initObject) {
super(owner, initObject);
_zoom = ((initObject.zoom != undefined) ? (Number(initObject.zoom)) : undefined);
_type = ((initObject.type != undefined) ? (String(initObject.type)) : undefined);
_extraTiles = ((initObject.extraTiles != undefined) ? (Math.max(1, Number(initObject.extraTiles))) : 2);
_immediate = ((initObject.immediate != undefined) ? (initObject.immediate) : undefined);
_segments = new Array();
_scale = 1;
setViewport(initObject.width, initObject.height);
}
function updatePosition(lat, lng, force) {
var _local6 = _x;
var _local5 = _y;
var _local2 = __get__core().control.getXYFromLatLng(new com.google.GMap.types.GLocation(lat, lng), _zoom);
var _local4 = _local2.__get__x() / com.google.GMap.core.GController.TILE_WIDTH;
var _local3 = _local2.__get__y() / com.google.GMap.core.GController.TILE_HEIGHT;
_x = _local4 - Math.floor(_segWidth / 2);
_y = _local3 - Math.floor(_segHeight / 2);
_x = Math.round(_x);
_y = Math.round(_y);
_mc._x = (_width / 2) - ((com.google.GMap.core.GController.TILE_WIDTH * _scale) * (_local4 - _x));
_mc._y = (_height / 2) - ((com.google.GMap.core.GController.TILE_HEIGHT * _scale) * (_local3 - _y));
if (((_local6 != _x) || (_local5 != _y)) || (force)) {
showSegments();
}
}
function showSegments() {
if ((__get__core().width == 0) || (__get__core().height == 0)) {
return(undefined);
}
var _local8;
var _local13;
var _local6 = __get__core().control.mercator.tileCount[_zoom];
var _local5;
var _local2;
var _local7 = new Array();
_local7 = _segments;
_segments = new Array();
var _local4 = 0;
while (_local4 < _segWidth) {
_local8 = new Array();
var _local3 = 0;
while (_local3 < _segHeight) {
_local8.push(undefined);
_local3++;
}
_segments.push(_local8);
_local4++;
}
_local4 = 0;
while (_local4 < _segWidth) {
var _local3 = 0;
while (_local3 < _segHeight) {
placeSegment(_local7[_local4][_local3]);
_local7[_local4][_local3] = undefined;
_local3++;
}
_local4++;
}
_local4 = 0;
while (_local4 < _segWidth) {
var _local3 = 0;
while (_local3 < _segHeight) {
if (_segments[_local4][_local3] == undefined) {
_local2 = _x + _local4;
while ((Math.abs(_local2) >= _local6) || (_local2 < 0)) {
_local2 = (Math.abs(_local2) - _local6) * ((_local2 > 0) ? 1 : -1);
}
_local5 = _y + _local3;
_local5 = (((_local5 < 0) || (_local5 >= _local6)) ? undefined : (_local5));
if ((_local5 != undefined) && (_local2 != undefined)) {
_segments[_local4][_local3] = new com.google.GMap.geometry.GSegment(this, {x:_local2, y:_local5, z:_zoom, immediate:_immediate});
_segments[_local4][_local3].init();
}
}
_segments[_local4][_local3].setPosition(com.google.GMap.core.GController.TILE_WIDTH * _local4, com.google.GMap.core.GController.TILE_HEIGHT * _local3);
_local3++;
}
_local4++;
}
}
function placeSegment(seg) {
if ((seg.__get__x() == undefined) || (seg.__get__y() == undefined)) {
return(undefined);
}
var _local2;
var _local4;
var _local6 = __get__core().control.mercator.tileCount[_zoom];
var _local5 = 0;
while (_local5 < _segWidth) {
var _local3 = 0;
while (_local3 < _segHeight) {
_local2 = _x + _local5;
while ((Math.abs(_local2) >= _local6) || (_local2 < 0)) {
_local2 = (Math.abs(_local2) - _local6) * ((_local2 > 0) ? 1 : -1);
}
_local4 = _y + _local3;
_local4 = (((_local4 < 0) || (_local4 >= _local6)) ? undefined : (_local4));
if (((_local2 == seg.__get__x()) && (_local4 == seg.__get__y())) && (_segments[_local5][_local3] == undefined)) {
_segments[_local5][_local3] = seg;
return(undefined);
}
_local3++;
}
_local5++;
}
seg.remove();
}
function clearSegments() {
var _local3 = 0;
while (_local3 < _segWidth) {
var _local2 = 0;
while (_local2 < _segHeight) {
_segments[_local3][_local2].remove();
_segments[_local3][_local2] = undefined;
_local2++;
}
_local3++;
}
_x = undefined;
_y = undefined;
_segments = new Array();
}
function setScale(factor) {
_scale = factor;
_mc._xscale = factor * 100;
_mc._yscale = factor * 100;
}
function setViewport(width, height) {
_width = ((width == undefined) ? (_width) : (width));
_height = ((height == undefined) ? (_height) : (height));
_segWidth = Math.ceil(_width / com.google.GMap.core.GController.TILE_WIDTH) + _extraTiles;
_segHeight = Math.ceil(_height / com.google.GMap.core.GController.TILE_HEIGHT) + _extraTiles;
if (!__get__core().ready) {
return(undefined);
}
}
function get zoom() {
return(_zoom);
}
function set zoom(val) {
_zoom = val;
//return(zoom);
}
function get type() {
return(_type);
}
function set type(val) {
_type = val;
//return(type);
}
}
Symbol 105 MovieClip [__Packages.com.google.GMap.managers.GGridManager] Frame 0
class com.google.GMap.managers.GGridManager
{
var _owner, _mc, _layers, _layer_id, _layerCount, _prevZoom;
function GGridManager (owner) {
_owner = owner;
_mc = _owner.getNewMovieClip();
_mc._name = "gridManager";
_mc.super$ = this;
}
function init() {
if (!core.ready) {
return(undefined);
}
_layers = new Array();
_layer_id = 0;
_layerCount = core.control.getZoomLevels(core.mapType);
var _local3;
var _local2 = 0;
while (_local2 < _layerCount) {
_local3 = addLayer(_local2);
_local3.__set__visible(false);
_local2++;
}
}
function updatePosition(lat, lng, zoom) {
if (_global.isLivePreview) {
return(undefined);
}
var _local4;
var _local5;
if (zoom == undefined) {
return(undefined);
}
if (_prevZoom != zoom) {
zoom = Math.max(0, zoom);
if (_prevZoom != undefined) {
_local4 = Math.floor(_prevZoom);
var _local3 = 0;
while (_local3 < LAYER_MAX_SCALE) {
_layers[_local4 - _local3].mc._visible = false;
_local3++;
}
_layers[Math.floor(_prevZoom) + 1].mc._visible = false;
}
_prevZoom = zoom;
}
_local4 = Math.floor(zoom);
_local5 = zoom - Math.floor(zoom);
var _local3 = 0;
while (_local3 < LAYER_MAX_SCALE) {
_layers[_local4 - _local3].mc._visible = true;
_layers[_local4 - _local3].setScale(Math.pow(2, _local3) * (_local5 + 1));
_layers[_local4 - _local3].updatePosition(lat, lng);
_local3++;
}
if (_local5 != 0) {
_layers[_local4 + 1].mc._visible = true;
_layers[_local4 + 1].setScale((_local5 + 1) / 2);
_layers[_local4 + 1].updatePosition(lat, lng);
}
}
function resetLayers() {
while (_layers[0] != undefined) {
_layers[0].clearSegments();
_layers[0].remove();
}
_layers = new Array();
_layer_id = 0;
}
function removeLayer(layer) {
var _local2;
_local2 = 0;
while (_local2 < _layers.length) {
if (_layers[_local2] == layer) {
layer.releaseMovieClip();
_layers.splice(_local2, 1);
break;
}
_local2++;
}
}
function addLayer(zoomLevel) {
var _local2 = new com.google.GMap.geometry.GGridLayer(this, {zoom:zoomLevel, width:core.width, height:core.height});
_local2.visible = false;
}
function registerLayer(layer) {
layer.id = _layer_id++;
_layers.push(layer);
}
function getNewMovieClip() {
var _local3 = _mc.getNextHighestDepth();
var _local2 = _mc.createEmptyMovieClip("mc" + (_layer_id - 1), _local3);
return(_local2);
}
function get core() {
return(_owner.core);
}
static var LAYER_MAX_SCALE = 3;
}
Symbol 106 MovieClip [__Packages.com.google.GMap.managers.GImageManager] Frame 0
class com.google.GMap.managers.GImageManager extends MovieClipLoader
{
var _owner, _loading, _queue, _tileNumber, dispatchEvent, loadClip, _job, unloadClip, _loader;
function GImageManager (owner) {
super();
_owner = owner;
_loading = false;
_queue = new Array();
_tileNumber = 0;
mx.events.EventDispatcher.initialize(this);
dispatchEvent({target:this, type:"READY"});
core.dispatchEvent({target:core, type:"IMAGE_MANAGER_READY"});
}
function addJob(mc, url, mapType, z, immediate) {
if (_queue.length == 0) {
dispatchEvent({target:this, type:"LOAD_START"});
core.dispatchEvent({target:core, type:"IMAGE_MANAGER_LOAD_START"});
if (mapType != undefined) {
core.dispatchEvent({target:core, type:"MAP_LOAD_START"});
_tileNumber = 0;
}
}
var _local2 = new Object();
_local2.mc = mc;
_local2.mapType = mapType;
_local2.z = z;
_local2.immediate = immediate;
if (url.indexOf("http://") == -1) {
_local2.server = 0;
_local2.base = url;
_local2.url = _local2.base.split("[server]").join(core.control.getServer(_local2.mapType));
} else {
_local2.url = url;
}
if (core.noImageQueue) {
loadClip(_local2.url, _local2.mc);
} else {
_queue.push(_local2);
continueLoading();
}
dispatchEvent({target:this, type:"JOB_ADDED", job:_local2, length:_queue.length});
core.dispatchEvent({target:core, type:"IMAGE_MANAGER_JOB_ADDED", job:_local2, length:_queue.length});
return(_local2);
}
function continueLoading() {
if (core.noImageQueue) {
return(undefined);
}
if (_loading) {
return(undefined);
}
_loading = true;
while (((_queue[0].mc == undefined) || (_queue[0].mc._name == undefined)) && (_queue.length > 0)) {
_queue.shift();
}
if (_queue.length == 0) {
_loading = false;
dispatchEvent({target:this, type:"LOAD_COMPLETE"});
core.dispatchEvent({target:core, type:"IMAGE_MANAGER_LOAD_COMPLETE"});
core.dispatchEvent({target:core, type:"MAP_LOAD_COMPLETE"});
return(undefined);
}
_job = undefined;
var _local2 = 0;
while (_local2 < _queue.length) {
if (_queue[_local2].z == core.zoom) {
_job = _queue.splice(_local2, 1)[0];
break;
}
_local2++;
}
if (_job == undefined) {
_local2 = 0;
while (_local2 < _queue.length) {
if (_queue[_local2].immediate) {
_job = _queue.splice(_local2, 1)[0];
break;
}
_local2++;
}
}
if (_job == undefined) {
_local2 = 0;
while (_local2 < _queue.length) {
if (_queue[_local2].z != undefined) {
_job = _queue.splice(_local2, 1)[0];
break;
}
_local2++;
}
}
if (_job == undefined) {
_job = _queue.shift();
}
var _local4 = loadClip(_job.url, _job.mc);
dispatchEvent({target:this, type:"JOB_PROCESSING", job:_job, length:_queue.length});
core.dispatchEvent({target:core, type:"IMAGE_MANAGER_JOB_PROCESSING", job:_job, length:_queue.length});
if (_job.mapType != undefined) {
_tileNumber++;
core.dispatchEvent({target:core, type:"MAP_LOAD_PROGRESS", totalTiles:_queue.length + _tileNumber, currentTile:_tileNumber});
}
}
function removeJob(mc) {
if (_loading && (_job.mc == mc)) {
unloadClip(mc);
_loading = false;
} else if (core.noImageQueue) {
unloadClip(mc);
}
var _local2 = 1;
while (_local2 < _queue.length) {
if (_queue[_local2].mc == mc) {
dispatchEvent({target:this, type:"JOB_REMOVED", job:_queue[_local2]});
core.dispatchEvent({target:core, type:"IMAGE_MANAGER_JOB_REMOVED", job:_queue[_local2]});
delete _queue[_local2];
_queue.splice(_local2, 1);
_local2--;
}
_local2++;
}
}
function resetQueue(all) {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < _queue.length) {
if ((!all) && (_queue[_local2].z == undefined)) {
_local3.push(_queue[_local2]);
}
_local2++;
}
_queue = _local3;
if (_loading == false) {
delete _loader;
_loader = new MovieClipLoader();
}
dispatchEvent({target:this, type:"QUEUE_CLEARED", length:_queue.length});
core.dispatchEvent({target:core, type:"IMAGE_MANAGER_QUEUE_CLEARED", length:_queue.length});
}
function onLoadStart(mc) {
}
function onLoadInit(mc) {
if ((_job.z != undefined) && (core.smoothing)) {
mc._visible = false;
var _local2 = new flash.display.BitmapData(mc._width, mc._height, true, 0);
mc._parent.attachBitmap(_local2, mc._parent.getNextHighestDepth(), "auto", true);
_local2.draw(mc);
}
if (core.noImageQueue) {
dispatchEvent({target:this, type:"JOB_FINISHED", job:{mc:mc}});
core.dispatchEvent({target:core, type:"IMAGE_MANAGER_JOB_FINISHED", job:{mc:mc}});
} else {
dispatchEvent({target:this, type:"JOB_FINISHED", job:_job});
core.dispatchEvent({target:core, type:"IMAGE_MANAGER_JOB_FINISHED", job:_job});
_loading = false;
continueLoading();
}
}
function onLoadError(mc, errorCode, httpStatus) {
var _local3 = false;
if (core.noImageQueue) {
dispatchEvent({target:this, type:"JOB_ERROR", job:{mc:mc}, errorCode:errorCode, httpStatus:httpStatus});
core.dispatchEvent({target:core, type:"IMAGE_MANAGER_JOB_ERROR", job:{mc:mc}, errorCode:errorCode, httpStatus:httpStatus});
core.dispatchEvent({target:core, type:"MAP_ERROR", message:"Image Manager error: " + errorCode});
if (mc._parent.super$.type == undefined) {
mc._parent.attachMovie("GMap_error_tile", "tile", 99);
}
} else {
dispatchEvent({target:this, type:"JOB_ERROR", job:_job, errorCode:errorCode, httpStatus:httpStatus});
core.dispatchEvent({target:core, type:"IMAGE_MANAGER_JOB_ERROR", job:_job, errorCode:errorCode, httpStatus:httpStatus});
core.dispatchEvent({target:core, type:"MAP_ERROR", message:"Image Manager error: " + errorCode});
_local3 = true;
if ((errorCode == "URLNotFound") || (_local3)) {
if ((_job.z != undefined) || (core.noImageQueue)) {
mc._parent.attachMovie("GMap_error_tile", "tile", 99);
}
_loading = false;
continueLoading();
}
}
}
function get core() {
return(_owner.core);
}
}
Symbol 107 MovieClip [__Packages.com.google.GMap.core.GDisplay] Frame 0
class com.google.GMap.core.GDisplay
{
var _owner, _mc, _gridManager, _imageManager, _layerManager, _guiManager, _currentZoom, _targetZoom;
function GDisplay (owner) {
_owner = owner;
_mc = _owner.getNewMovieClip();
_mc._name = "display";
_mc.super$ = this;
_mc.onEnterFrame = mx.utils.Delegate.create(this, timedEvents);
_gridManager = new com.google.GMap.managers.GGridManager(this);
_imageManager = new com.google.GMap.managers.GImageManager(this);
_layerManager = new com.google.GMap.managers.GLayerManager(this);
_guiManager = new com.google.GMap.managers.GGuiManager(this);
}
function init() {
_layerManager.init();
_guiManager.init();
_currentZoom = core.zoom;
_targetZoom = core.zoom;
if (core.ready) {
_gridManager.init();
guiManager.updateMapType(core.mapType);
guiManager.setMaxZoomLevel(core.control.getZoomLevels(core.mapType));
}
}
function updatePosition() {
_layerManager.updatePosition();
_guiManager.updatePosition();
_gridManager.updatePosition(core.lat, core.lng, _currentZoom);
}
function updateZoom() {
if (_currentZoom != core.zoom) {
_targetZoom = core.zoom;
if (!core.animateZoom) {
_currentZoom = _targetZoom;
}
}
_layerManager.updatePosition();
_guiManager.updateZoom();
_gridManager.updatePosition(core.lat, core.lng, _currentZoom);
}
function resetGridLayers() {
_gridManager.resetLayers();
_gridManager.init();
}
function loadImage(mc, url, mapType, z, immediate) {
return(_imageManager.addJob(mc, url, mapType, z, immediate));
}
function unloadImage(mc) {
_imageManager.removeJob(mc);
}
function resetImageManager() {
_imageManager.resetQueue();
}
function getNewMovieClip() {
var _local2 = _mc.getNextHighestDepth();
var _local3 = _mc.createEmptyMovieClip("mc" + _local2, _local2);
return(_local3);
}
function timedEvents() {
if (_targetZoom != _currentZoom) {
_currentZoom = _currentZoom + ((_targetZoom - _currentZoom) / 3);
if (Math.abs(_currentZoom - _targetZoom) < 0.01) {
_currentZoom = _targetZoom;
}
_gridManager.updatePosition(core.lat, core.lng, _currentZoom);
_layerManager.updatePosition(_currentZoom);
_guiManager.updateZoom(_currentZoom);
core.dispatchEvent({type:"MAP_ZOOM_CHANGING", target:core, zoom:_currentZoom});
}
}
function get core() {
return(_owner);
}
function get currentZoom() {
return(_currentZoom);
}
function get guiManager() {
return(_guiManager);
}
function get layerManager() {
return(_layerManager);
}
function get gridManager() {
return(_gridManager);
}
function get imageManager() {
return(_imageManager);
}
}
Symbol 108 MovieClip [__Packages.com.google.GMap.geometry.GGraphics] Frame 0
class com.google.GMap.geometry.GGraphics
{
function GGraphics () {
}
static function drawRect(mc, left, top, right, bottom, back, back_alpha, border, border_alpha) {
back = ((back == undefined) ? 0 : (back));
back_alpha = ((back_alpha == undefined) ? 100 : (back_alpha));
border = ((border == undefined) ? 0 : (border));
border_alpha = ((border_alpha == undefined) ? 0 : (border_alpha));
mc.lineStyle(1, border, border_alpha, false, "normal", "square", "miter");
mc.beginFill(back, back_alpha);
mc.moveTo(left, top);
mc.lineTo(right, top);
mc.lineTo(right, bottom);
mc.lineTo(left, bottom);
mc.lineTo(left, top);
mc.endFill();
}
static function drawRectOutline(mc, left, top, right, bottom, border, border_alpha, w) {
border = ((border == undefined) ? 0 : (border));
border_alpha = ((border_alpha == undefined) ? 0 : (border_alpha));
mc.beginFill(border, border_alpha);
mc.moveTo(left, top);
mc.lineTo(right, top);
mc.lineTo(right, bottom);
mc.lineTo(left, bottom);
mc.lineTo(left, top);
mc.moveTo(left + 1, top + 1);
mc.lineTo(right - 1, top + 1);
mc.lineTo(right - 1, bottom - 1);
mc.lineTo(left + 1, bottom - 1);
mc.lineTo(left + 1, top + 1);
mc.endFill();
}
static function setColor(mc, clr) {
var _local1 = new flash.geom.ColorTransform();
var _local3 = new flash.geom.Transform(mc);
_local1.rgb = clr;
_local3.colorTransform = _local1;
mc.color$ = clr;
delete mc.onEnterFrame;
}
static function setColorSmooth(mc, clr, nclr, speed) {
if (speed == undefined) {
speed = 1;
}
if (clr == undefined) {
clr = nclr;
}
var _local2 = new com.google.GMap.types.GColor(clr);
var _local5 = new com.google.GMap.types.GColor(nclr);
var _local9 = (_local5.__get__r() - _local2.__get__r()) / speed;
var _local11 = (_local5.__get__g() - _local2.__get__g()) / speed;
var _local8 = (_local5.__get__b() - _local2.__get__b()) / speed;
mc.clr = _local2;
mc.nclr = nclr;
mc.tr = {r:_local9, g:_local11, b:_local8, clr:_local2, nclr:_local5, step:speed};
delete eval (mc.onEnterFrame());
mc.onEnterFrame = function () {
var _local2 = new flash.geom.ColorTransform();
var _local3 = new flash.geom.Transform(this);
this.clr.incRGB(this.tr.r, this.tr.g, this.tr.b);
this.tr.step--;
if (this.tr.step == 0) {
_local2.rgb = this.nclr.rgb;
}
_local2.rgb = this.clr.rgb;
_local3.colorTransform = _local2;
this.color$ = _local2.rgb;
if (this.tr.step == 0) {
delete this.onEnterFrame;
this.onEnterFrame = undefined;
}
};
}
static function drawBevelRect(mc, style) {
if (style == undefined) {
style = new Object();
}
if (style.x == undefined) {
style.x = 0;
}
if (style.y == undefined) {
style.y = 0;
}
if (style.fill == undefined) {
style.fill = true;
}
if (style.fillRGB == undefined) {
style.fillRGB = undefined;
}
if (style.fillAlpha == undefined) {
style.fillAlpha = 100;
}
if (style.stroke == undefined) {
style.stroke = true;
}
if (style.strokeThickness == undefined) {
style.strokeThickness = 1;
}
if (style.strokeRGB == undefined) {
style.strokeRGB = 0;
}
if (style.strokeAlpha == undefined) {
style.strokeAlpha = 100;
}
if (style.filters == undefined) {
style.filters = new Array();
}
if (style.bevel == undefined) {
style.bevel = undefined;
}
if (style.bevelRGB == undefined) {
style.bevelRGB = undefined;
}
if (style.bevelAlpha == undefined) {
style.bevelAlpha = undefined;
}
if (style.cutCorner == undefined) {
style.cutCorner = false;
}
if (!style.noClear) {
mc.clear();
}
var _local8 = style.x;
var _local4 = style.x + style.w;
var _local7 = style.y;
var _local3 = style.y + style.h;
var _local2 = ((!style.stroke) ? 0 : (style.strokeThickness));
if (style.stroke) {
if (!style.cutCorner) {
drawRectOutline(mc, _local8, _local7, _local4, _local3, style.strokeRGB, style.strokeAlpha, style.strokeThickness);
} else {
drawRect(mc, _local8 + _local2, _local7, _local4 - _local2, _local7 + _local2, style.strokeRGB, style.strokeAlpha, 0, 0);
drawRect(mc, _local8 + _local2, _local3 - _local2, _local4 - _local2, _local3, style.strokeRGB, style.strokeAlpha, 0, 0);
drawRect(mc, _local8, _local7 + _local2, _local8 + _local2, _local3 - _local2, style.strokeRGB, style.strokeAlpha, 0, 0);
drawRect(mc, _local4 - _local2, _local7 + _local2, _local4, _local3 - _local2, style.strokeRGB, style.strokeAlpha, 0, 0);
}
}
if (style.fill) {
drawRect(mc, _local8 + _local2, _local7 + _local2, _local4 - _local2, _local3 - _local2, style.fillRGB, style.fillAlpha, 0, 0);
}
if ((style.bevel != undefined) && (style.bevelRGB != undefined)) {
var _local5 = 2 * _local2;
if (style.bevel == "up") {
drawRect(mc, _local8 + _local5, _local3 - _local5, _local4 - _local5, _local3 - _local2, style.bevelRGB, style.bevelAlpha, 0, 0);
drawRect(mc, _local4 - _local5, _local7 + _local5, _local4 - _local2, _local3 - _local2, style.bevelRGB, style.bevelAlpha, 0, 0);
} else if (style.bevel == "down") {
drawRect(mc, _local8 + _local2, _local7 + _local2, _local4 - _local2, _local7 + _local5, style.bevelRGB, style.bevelAlpha, 0, 0);
drawRect(mc, _local8 + _local2, _local7 + _local5, _local8 + _local5, _local3 - _local2, style.bevelRGB, style.bevelAlpha, 0, 0);
drawRect(mc, _local5, _local3 - _local5, _local4 - _local5, _local3 - _local2, style.bevelRGB, style.bevelAlpha - 40, 0, 0);
drawRect(mc, _local4 - _local5, _local5, _local4 - _local2, _local3 - _local2, style.bevelRGB, style.bevelAlpha - 40, 0, 0);
}
}
}
}
Symbol 109 MovieClip [__Packages.com.google.GMap.controls.common.GControl] Frame 0
class com.google.GMap.controls.common.GControl
{
var _visibility, _mc, _display, _stackAlignment, _stackPadding, dispatchEvent, _owner, _align, _id, _padding, _type;
function GControl (initObject) {
align = (initObject.align);
padding = (initObject.padding);
_visibility = ((initObject.visibility != undefined) ? (initObject.visibility) : "on");
if (_visibility != "on") {
_mc._visible = false;
}
_display = ((initObject.display != undefined) ? (initObject.display) : "expanded");
_stackAlignment = ((initObject.stackAlignment != undefined) ? (initObject.stackAlignment) : "horizontal");
_stackPadding = ((initObject.stackPadding != undefined) ? (initObject.stackPadding) : ({vertical:3, horizontal:3}));
mx.events.EventDispatcher.initialize(this);
dispatchEvent({target:this, type:"CONTROL_READY"});
}
function setOwner(owner) {
_owner = owner;
_owner.registerControl(this);
_mc = _owner.getNewMovieClip();
_mc._name = "control" + _mc._name.slice(2);
_mc.super$ = this;
init();
}
function init() {
if (_visibility != "on") {
_mc._visible = false;
}
}
function updatePlacement() {
_owner.setObjectPosition(this);
}
function hide() {
_visibility = "off";
_mc._visible = false;
}
function show() {
_visibility = "on";
_mc._visible = true;
}
function getRect() {
var _local2 = new com.google.GMap.types.GRect(_mc._x, _mc._y, _mc._x + _mc._width, _mc._y + _mc._height);
_local2.inflate(10, 10);
return(_local2);
}
function copyObject(dst_obj, src_obj) {
for (var _local2 in src_obj) {
dst_obj[_local2] = src_obj[_local2];
}
}
function get align() {
return(_align);
}
function set align(val) {
if (val == undefined) {
val = "top-right";
}
_align = val;
dispatchEvent({target:this, type:"CONTROL_UPDATED"});
//return(align);
}
function get display() {
return(_display);
}
function set display(val) {
if (val == undefined) {
val = "expanded";
}
_display = val;
dispatchEvent({target:this, type:"CONTROL_UPDATED"});
//return(display);
}
function get visibility() {
return(_visibility);
}
function set visibility(val) {
_visibility = val;
if (val != "on") {
_mc._visible = false;
} else {
_mc._visible = true;
}
dispatchEvent({target:this, type:"CONTROL_UPDATED"});
//return(visibility);
}
function get id() {
return(_id);
}
function set id(val) {
_id = val;
//return(id);
}
function get padding() {
return(_padding);
}
function set padding(val) {
if (!_padding) {
_padding = {x:0, y:0};
}
if (val.x != undefined) {
_padding.x = val.x;
}
if (val.y != undefined) {
_padding.y = val.y;
}
dispatchEvent({target:this, type:"CONTROL_UPDATED"});
//return(padding);
}
function get width() {
return(_mc._width);
}
function get height() {
return(_mc._height);
}
function get type() {
return(_type);
}
function set type(val) {
_type = val;
//return(type);
}
function get mc() {
return(_mc);
}
function get visible() {
return(_mc._visible);
}
function get core() {
return(_owner.core);
}
}
Symbol 110 MovieClip [__Packages.com.google.GMap.controls.common.GButton] Frame 0
class com.google.GMap.controls.common.GButton
{
var _owner, _mc, _buttonStyle, _button;
function GButton (owner, initObject) {
_owner = owner;
_mc = initObject.parent;
_buttonStyle = initObject.buttonStyle;
mx.events.EventDispatcher.initialize(this);
}
function disableButton() {
delete button.onRelease;
delete button.onRollOver;
delete button.onRollOut;
delete button.onPress;
delete button.onReleaseOutside;
}
function get button() {
return(_button);
}
function set button(val) {
_button = val;
//return(button);
}
}
Symbol 111 MovieClip [__Packages.com.google.GMap.controls.type.GTypeButton] Frame 0
class com.google.GMap.controls.type.GTypeButton extends com.google.GMap.controls.common.GButton
{
var _id, _labelText, _mc, __set__button, _text_field, __get__button, _buttonStyle;
function GTypeButton (owner, initObject) {
super(owner, initObject);
_id = initObject.id;
_labelText = initObject.labelText;
dspButton();
dspText();
enableButton();
}
function dspButton() {
if (_mc.bg_mc == undefined) {
__set__button(_mc.createEmptyMovieClip("bg_mc", 0));
}
buttonStyle.parent = _mc.bg_mc;
com.google.GMap.geometry.GGraphics.drawBevelRect(_mc.bg_mc, buttonStyle);
enableButton();
}
function dspText() {
if (_text_field == undefined) {
_text_field = _mc.createTextField("lbl_txt", 2, 0, 0, buttonStyle.w, buttonStyle.h);
_text_field.selectable = false;
_text_field.autoSize = true;
}
_text_field.textColor = ((buttonStyle.labelFormat.color != undefined) ? (buttonStyle.labelFormat.color) : (buttonStyle.labelRGB));
var _local2 = new TextFormat();
_local2.font = String(((buttonStyle.labelFormat.font != undefined) ? (buttonStyle.labelFormat.font) : "_sans"));
_local2.size = ((buttonStyle.labelFormat.size != undefined) ? (buttonStyle.labelFormat.size) : (buttonStyle.labelSize));
_local2.bold = ((buttonStyle.labelFormat.bold != undefined) ? (buttonStyle.labelFormat.bold) : false);
_local2.italic = ((buttonStyle.labelFormat.italic != undefined) ? (buttonStyle.labelFormat.italic) : false);
_local2.underline = ((buttonStyle.labelFormat.underline != undefined) ? (buttonStyle.labelFormat.underline) : false);
_local2.letterSpacing = ((buttonStyle.labelFormat.letterSpacing != undefined) ? (buttonStyle.labelFormat.letterSpacing) : 0);
_text_field.text = _labelText;
_text_field.setTextFormat(_local2);
_text_field._y = Math.round((buttonStyle.h - _text_field._height) / 2);
_text_field._x = Math.round((buttonStyle.w - _text_field._width) / 2);
var _local3 = new flash.filters.DropShadowFilter(0, 0, 16777215, 0.5, 5, 5, 1, 1, false, false, false);
_text_field.filters = [_local3];
}
function enableButton() {
__get__button().obj = this;
__get__button().onRollOver = function () {
this.obj.dispatchEvent({type:"ON_ROLL_OVER", target:this.obj});
};
__get__button().onRollOut = function () {
this.obj.dispatchEvent({type:"ON_ROLL_OUT", target:this.obj});
};
__get__button().onPress = function () {
this.obj.dispatchEvent({type:"ON_PRESS", target:this.obj});
var _local2 = new Object();
_local2.obj = this;
_local2.onMouseUp = function () {
Mouse.removeListener(this);
this.obj.obj.dispatchEvent({type:"ON_RELEASE", target:this.obj.obj});
};
Mouse.addListener(_local2);
};
}
function get id() {
return(_id);
}
function set id(val) {
_id = val;
//return(id);
}
function get buttonStyle() {
return(_buttonStyle);
}
function set buttonStyle(val) {
_buttonStyle = val;
dspButton();
dspText();
//return(buttonStyle);
}
}
Symbol 112 MovieClip [__Packages.com.google.GMap.controls.type.GTypeControl] Frame 0
class com.google.GMap.controls.type.GTypeControl extends com.google.GMap.controls.common.GControl
{
static var _selectedMapTypeId, _selectedMapType;
var _buttonDefaultStyle, copyObject, _buttonSelectedStyle, _buttonOverStyle, _align, _padding, _stackPadding, _type, _buttonObjects, _mc, _owner, dispatchEvent, _stackAlignment;
function GTypeControl (initObject) {
super(initObject);
if (initObject == undefined) {
initObject = new Object();
}
if (initObject.mapTypes == undefined) {
initObject.mapTypes = ["Map", "Satellite", "Hybrid"];
}
_mapTypes = initObject.mapTypes;
_buttonDefaultStyle = {w:67, h:19, fill:true, fillRGB:16777215, fillAlpha:100, bevel:"up", bevelRGB:10066329, bevelAlpha:70};
if (initObject.buttonDefaultStyle != undefined) {
copyObject(_buttonDefaultStyle, initObject.buttonDefaultStyle);
}
_buttonSelectedStyle = {w:67, h:19, fill:true, fillRGB:16777215, fillAlpha:100, labelFormat:{bold:true}, bevel:"down", bevelRGB:1126221, bevelAlpha:80};
if (initObject.buttonSelectedStyle != undefined) {
copyObject(_buttonSelectedStyle, initObject.buttonSelectedStyle);
}
_buttonOverStyle = {w:67, h:19, fill:true, fillRGB:15658734, fillAlpha:100, bevel:"up", bevelRGB:10066329, bevelAlpha:70};
if (initObject.buttonOverStyle != undefined) {
copyObject(_buttonOverStyle, initObject.buttonOverStyle);
}
if (initObject.hasOwnProperty("align") == false) {
_align = "top-right";
}
if (initObject.hasOwnProperty("padding") == false) {
_padding = {x:10, y:10};
}
_stackPadding = ((initObject.stackPadding != undefined) ? (initObject.stackPadding) : ({vertical:-1, horizontal:-1}));
_type = "mapType";
}
function init() {
super.init();
initControl();
}
function initControl() {
_buttonObjects = new Array();
var _local2 = 0;
while (_local2 < mapTypes.length) {
var _local4 = _mc.createEmptyMovieClip(mapTypes[_local2], _local2);
switch (stackAlignment) {
case "vertical" :
_local4._y = _local2 * buttonDefaultStyle.h;
if (_local2 != 0) {
_local4._y = _local4._y + (_local2 * stackPadding.vertical);
}
break;
case "horizontal" :
_local4._x = _local2 * buttonDefaultStyle.w;
if (_local2 == 0) {
break;
}
_local4._x = _local4._x + (_local2 * stackPadding.horizontal);
}
var _local3 = new com.google.GMap.controls.type.GTypeButton(_owner, {parent:_local4, id:_local2, labelText:mapTypes[_local2], buttonStyle:buttonDefaultStyle});
_local3.addEventListener("ON_ROLL_OVER", this);
_local3.addEventListener("ON_ROLL_OUT", this);
_local3.addEventListener("ON_RELEASE", this);
_local3.addEventListener("ON_PRESS", this);
_buttonObjects.push(_local3);
_local2++;
}
}
function ON_RELEASE(evnt) {
markButtonSelected(evnt.target);
dispatchEvent({type:"ON_RELEASE", target:this, type:selectedMapType});
dispatchEvent({type:"CONTROL_ON_RELEASE", target:this});
}
function ON_PRESS(evnt) {
evnt.target.buttonStyle = buttonSelectedStyle;
dispatchEvent({type:"ON_PRESS", target:this, type:selectedMapType});
dispatchEvent({type:"CONTROL_ON_PRESS", target:this});
}
function ON_ROLL_OVER(evnt) {
evnt.target.buttonStyle = buttonOverStyle;
}
function ON_ROLL_OUT(evnt) {
evnt.target.buttonStyle = buttonDefaultStyle;
}
function markButtonSelected(button) {
var _local3 = selectedMapTypeId;
var _local2 = button.id;
_buttonObjects[_local3].enableButton();
_buttonObjects[_local3].buttonStyle = buttonDefaultStyle;
_buttonObjects[_local2].buttonStyle = buttonSelectedStyle;
_buttonObjects[_local2].disableButton();
selectedMapTypeId = (_local2);
selectedMapType = (mapTypes[_local2]);
dispatchEvent({type:"TYPE_CHANGED", target:this, type:selectedMapType});
dispatchEvent({type:"CONTROL_ACTION", target:this, action:"type_changed", mapType:String(selectedMapType).toLowerCase()});
}
function markButtonOver(button) {
button.buttonStyle = buttonOverStyle;
}
function markButtonOut(button) {
button.buttonStyle = buttonDefaultStyle;
}
function setMapType(str) {
var _local2 = 0;
while (_local2 < mapTypes.length) {
if (String(mapTypes[_local2]).toLowerCase() == str.toLowerCase()) {
markButtonSelected(_buttonObjects[_local2]);
return(true);
}
_local2++;
}
return(false);
}
function get mapTypes() {
return(_mapTypes);
}
function set mapTypes(val) {
_mapTypes = val;
//return(mapTypes);
}
function get stackAlignment() {
return(_stackAlignment);
}
function set stackAlignment(val) {
_stackAlignment = val;
initControl();
dispatchEvent({target:this, type:"CONTROL_UPDATED"});
//return(stackAlignment);
}
function get stackPadding() {
return(_stackPadding);
}
function set stackPadding(val) {
_stackPadding = val;
initControl();
dispatchEvent({target:this, type:"CONTROL_UPDATED"});
//return(stackPadding);
}
function get buttonDefaultStyle() {
return(_buttonDefaultStyle);
}
function set buttonDefaultStyle(val) {
_buttonDefaultStyle = val;
initControl();
dispatchEvent({target:this, type:"CONTROL_UPDATED"});
//return(buttonDefaultStyle);
}
function get buttonSelectedStyle() {
return(_buttonSelectedStyle);
}
function set buttonSelectedStyle(val) {
_buttonSelectedStyle = val;
initControl();
dispatchEvent({target:this, type:"CONTROL_UPDATED"});
//return(buttonSelectedStyle);
}
function get buttonOverStyle() {
return(_buttonOverStyle);
}
function set buttonOverStyle(val) {
_buttonOverStyle = val;
initControl();
dispatchEvent({target:this, type:"CONTROL_UPDATED"});
//return(buttonOverStyle);
}
function get selectedMapTypeId() {
return(_selectedMapTypeId);
}
function set selectedMapTypeId(val) {
_selectedMapTypeId = val;
//return(selectedMapTypeId);
}
function get selectedMapType() {
return(_selectedMapType);
}
function set selectedMapType(val) {
_selectedMapType = val;
//return(selectedMapType);
}
var _mapTypes = new Array();
}
Symbol 113 MovieClip [__Packages.com.google.GMap.controls.zoom.GScrollTrack] Frame 0
class com.google.GMap.controls.zoom.GScrollTrack extends com.google.GMap.controls.common.GButton
{
var _mc, _owner, _buttonStyle;
function GScrollTrack (owner, initObject) {
super(owner, initObject);
dspButton();
enableButton();
_mc.cacheAsBitmap = true;
}
function dspButton() {
_mc.clear();
com.google.GMap.geometry.GGraphics.drawRect(_mc, 0, 0, buttonStyle.w, buttonStyle.h, 16711680, 0, 0, 0);
var _local7 = buttonStyle.w;
var _local6 = buttonStyle.h;
buttonStyle.cutCorner = true;
var _local4 = _owner.maxZoomLevel;
var _local5 = buttonStyle.hh;
var _local3 = buttonStyle.hh - 3;
buttonStyle.x = 0;
buttonStyle.bevel = "none";
buttonStyle.w = 15;
buttonStyle.h = 3;
buttonStyle.noClear = true;
var _local2 = 0;
while (_local2 <= _local4) {
buttonStyle.y = _local3 + (_local2 * _local5);
com.google.GMap.geometry.GGraphics.drawBevelRect(_mc, buttonStyle);
_local2++;
}
buttonStyle.w = 5;
buttonStyle.h = _local6;
buttonStyle.x = 5;
buttonStyle.y = 0;
buttonStyle.bevel = "up";
com.google.GMap.geometry.GGraphics.drawBevelRect(_mc, buttonStyle);
buttonStyle.w = _local7;
buttonStyle.h = _local6;
enableButton();
}
function enableButton() {
_mc.obj = this;
_mc.onRelease = function () {
this.obj.dispatchEvent({type:"SCROLL_TRACK_ON_RELEASE", target:this.obj, height:this._height, clickY:this._height - this._ymouse});
};
_mc.onPress = function () {
this.obj.dispatchEvent({type:"SCROLL_TRACK_ON_PRESS", target:this.obj, height:this._height, clickY:this._height - this._ymouse});
};
}
function get buttonStyle() {
return(_buttonStyle);
}
function set buttonStyle(val) {
_buttonStyle = val;
dspButton();
//return(buttonStyle);
}
}
Symbol 114 MovieClip [__Packages.com.google.GMap.controls.zoom.GScrollWidget] Frame 0
class com.google.GMap.controls.zoom.GScrollWidget extends com.google.GMap.controls.common.GButton
{
var _top, _bottom, _scrollPercent, _mc, __set__button, __get__button, button, _buttonStyle, _scrollPosition;
function GScrollWidget (owner, initObject) {
super(owner, initObject);
_top = initObject.top;
_bottom = initObject.bottom;
dspButton();
enableWidget();
_scrollPercent = 0;
}
function dspButton() {
if (_mc.bg_mc == undefined) {
__set__button(_mc.createEmptyMovieClip("bg_mc", _mc.getNextHighestDepth()));
var _local6 = new flash.filters.DropShadowFilter(1, 45, 0, 0.3, 4, 4, 1, 1, false, false, false);
__get__button().filters = [_local6];
}
buttonStyle.parent = button;
__get__button().y = 1;
com.google.GMap.geometry.GGraphics.drawBevelRect(__get__button(), buttonStyle);
if (buttonStyle.stroke) {
var _local3 = 4;
var _local2 = Math.floor(buttonStyle.h / 2);
var _local5 = buttonStyle.w - _local3;
var _local4 = _local2 + 1;
__get__button().lineStyle(undefined, 0, 0);
__get__button().beginFill((buttonStyle.strokeRGB ? (buttonStyle.strokeRGB) : 0), (buttonStyle.strokeAlpha ? (buttonStyle.strokeAlpha) : 100));
__get__button().moveTo(_local3, _local2);
__get__button().lineTo(_local5, _local2);
__get__button().lineTo(_local5, _local4);
__get__button().lineTo(_local3, _local4);
__get__button().lineTo(_local3, _local2);
__get__button().endFill();
if (buttonStyle.bevel && (buttonStyle.bevelRGB)) {
_local2 = _local2 + 1;
_local4 = _local4 + 1;
_local3 = _local3 + 1;
_local5 = _local5 + 1;
__get__button().lineStyle(undefined, 0, 0);
__get__button().beginFill((buttonStyle.bevelRGB ? (buttonStyle.bevelRGB) : 0), (buttonStyle.bevelAlpha ? (buttonStyle.bevelAlpha) : 100));
__get__button().moveTo(_local3, _local2);
__get__button().lineTo(_local5, _local2);
__get__button().lineTo(_local5, _local4);
__get__button().lineTo(_local3, _local4);
__get__button().lineTo(_local3, _local2);
__get__button().endFill();
}
}
}
function enableWidget() {
__get__button().obj = this;
__get__button().onRollOver = function () {
this.obj.dispatchEvent({type:"WIDGET_ON_ROLL_OVER", target:this.obj});
};
__get__button().onRollOut = function () {
this.obj.dispatchEvent({type:"WIDGET_ON_ROLL_OUT", target:this.obj});
};
__get__button().onRelease = function () {
this.obj.dispatchEvent({type:"WIDGET_ON_RELEASE", target:this.obj});
};
__get__button().onReleaseOutside = function () {
this.obj.dispatchEvent({type:"WIDGET_ON_RELEASE_OUTSIDE", target:this.obj});
};
__get__button().onPress = function () {
this.obj.dispatchEvent({type:"WIDGET_ON_PRESS", target:this.obj});
var _local2 = new Object();
_local2.obj = this;
startDrag (this, false, 0, this.obj._top, 0, this.obj._bottom);
this.obj.dispatchEvent({type:"WIDGET_ON_DRAG_START", target:this.obj});
_local2.onMouseMove = function () {
this.obj.obj.scrollPosition = Math.round(this.obj._y);
this.obj.obj.dispatchEvent({type:"WIDGET_ON_DRAG", target:this.obj.obj});
updateAfterEvent();
};
_local2.onMouseUp = function () {
stopDrag();
this.obj._y = Math.round(this.obj._y);
Mouse.removeListener(this);
this.obj.obj.dispatchEvent({type:"WIDGET_ON_DRAG_END", target:this.obj.obj});
};
Mouse.addListener(_local2);
};
}
function get buttonStyle() {
return(_buttonStyle);
}
function set buttonStyle(val) {
_buttonStyle = val;
dspButton();
//return(buttonStyle);
}
function get scrollPosition() {
return(_scrollPosition);
}
function set scrollPosition(val) {
_scrollPosition = val;
//return(scrollPosition);
}
function get scrollPercent() {
_scrollPercent = Math.abs(((scrollPosition / (_bottom - _top)) * 100) - 100);
return(_scrollPercent);
}
function set scrollPercent(val) {
if (val > 100) {
val = 100;
}
if (val < 0) {
val = 0;
}
__get__button()._y = Math.round((val / 100) * (_bottom - _top));
_scrollPercent = val;
//return(scrollPercent);
}
function get bottom() {
return(_bottom);
}
function set bottom(val) {
_bottom = val;
//return(bottom);
}
}
Symbol 115 MovieClip [__Packages.com.google.GMap.controls.common.GControlButton] Frame 0
class com.google.GMap.controls.common.GControlButton extends com.google.GMap.controls.common.GButton
{
var _id, _iconPath, _mc, __set__button, _icon, __get__button, _buttonStyle;
function GControlButton (owner, initObject) {
super(owner, initObject);
_id = initObject.id;
_iconPath = initObject.iconPath;
dspButton();
enableButton();
}
function dspButton() {
buttonStyle.parent = _mc;
__set__button(_mc);
com.google.GMap.geometry.GGraphics.drawBevelRect(_mc, buttonStyle);
if (_icon == undefined) {
_icon = _mc.createEmptyMovieClip("icon_mc", _mc.getNextHighestDepth());
_icon.attachMovie(_iconPath, "icon", _mc.getNextHighestDepth());
}
_icon._x = Math.round((buttonStyle.w / 2) - (_icon._width / 2));
_icon._y = Math.round((buttonStyle.h / 2) - (_icon._height / 2));
var _local2 = new flash.geom.ColorTransform();
var _local4 = new flash.geom.Transform(_icon.icon);
_local2.rgb = buttonStyle.labelFormat.color;
_local4.colorTransform = _local2;
var _local3 = new flash.filters.DropShadowFilter(0, 0, 16777215, 0.5, 5, 5, 1, 1, false, false, false);
_icon.filters = [_local3];
enableButton();
}
function enableButton() {
__get__button().obj = this;
__get__button().onRollOver = function () {
this.obj.dispatchEvent({type:"ON_ROLL_OVER", target:this.obj});
};
__get__button().onRollOut = function () {
this.obj.dispatchEvent({type:"ON_ROLL_OUT", target:this.obj});
};
__get__button().onPress = function () {
this.obj.dispatchEvent({type:"ON_PRESS", target:this.obj});
var _local2 = new Object();
_local2.obj = this;
_local2.onMouseUp = function () {
Mouse.removeListener(this);
this.obj.obj.dispatchEvent({type:"ON_RELEASE", target:this.obj.obj});
};
Mouse.addListener(_local2);
};
}
function get buttonStyle() {
return(_buttonStyle);
}
function set buttonStyle(val) {
_buttonStyle = val;
dspButton();
//return(buttonStyle);
}
function get id() {
return(_id);
}
function set id(val) {
_id = val;
//return(id);
}
}
Symbol 116 MovieClip [__Packages.com.google.GMap.controls.zoom.GZoomControl] Frame 0
class com.google.GMap.controls.zoom.GZoomControl extends com.google.GMap.controls.common.GControl
{
var _maxZoomLevel, _buttonDefaultStyle, copyObject, _buttonSelectedStyle, _buttonOverStyle, _backgroundStyle, _scrollTrackStyle, _widgetDefaultStyle, _widgetOverStyle, _widgetSelectedStyle, _align, _padding, _type, __get__display, _mc, _scrollButton, _scrollTrack, _widgetObject, _widgetButton, dispatchEvent, _owner, _dragging, _zoomInButton, _zoomOutButton, _display, _stackAlignment, _stackPadding;
function GZoomControl (initObject) {
super(initObject);
if (initObject == undefined) {
initObject = new Object();
}
if (initObject.maxZoomLevel == undefined) {
initObject.maxZoomLevel = 16;
}
_maxZoomLevel = initObject.maxZoomLevel;
_buttonDefaultStyle = {w:17, h:17, fill:true, fillRGB:16777215, fillAlpha:100, stroke:true, strokeRGB:0, bevel:"up", bevelRGB:14277081, bevelAlpha:70};
if (initObject.buttonDefaultStyle != undefined) {
copyObject(_buttonDefaultStyle, initObject.buttonDefaultStyle);
}
_buttonSelectedStyle = {w:17, h:17, fill:true, fillRGB:16777215, fillAlpha:100, stroke:true, strokeRGB:0, bevel:"down", bevelRGB:14277081, bevelAlpha:80};
if (initObject.buttonSelectedStyle != undefined) {
copyObject(_buttonSelectedStyle, initObject.buttonSelectedStyle);
}
_buttonOverStyle = {w:17, h:17, fill:true, fillRGB:15658734, fillAlpha:100, stroke:true, strokeRGB:0, bevel:"up", bevelRGB:14277081, bevelAlpha:70};
if (initObject.buttonOverStyle != undefined) {
copyObject(_buttonOverStyle, initObject.buttonOverStyle);
}
_backgroundStyle = {w:25, h:150, radius:0, fill:true, fillRGB:0, fillAlpha:60, stroke:false};
if (initObject.backgroundStyle != undefined) {
copyObject(_backgroundStyle, initObject.backgroundStyle);
}
_scrollTrackStyle = {w:15, fill:true, fillRGB:16777215, fillAlpha:100, stroke:true, strokeRGB:0, bevel:"up", bevelRGB:14277081, bevelAlpha:70};
if (initObject.scrollTrackStyle != undefined) {
copyObject(_scrollTrackStyle, initObject.scrollTrackStyle);
}
_widgetDefaultStyle = {w:17, h:9, fill:true, fillRGB:16777215, fillAlpha:100, stroke:true, strokeRGB:0, bevel:"up", bevelRGB:14277081, bevelAlpha:70};
if (initObject.widgetDefaultStyle != undefined) {
copyObject(_widgetDefaultStyle, initObject.widgetDefaultStyle);
}
_widgetOverStyle = {w:17, h:9, fill:true, fillRGB:15658734, fillAlpha:100, stroke:true, strokeRGB:0, bevel:"up", bevelRGB:14277081, bevelAlpha:70};
if (initObject.widgetOverStyle != undefined) {
copyObject(_widgetOverStyle, initObject.widgetOverStyle);
}
_widgetSelectedStyle = {w:17, h:9, fill:true, fillRGB:15658734, fillAlpha:100, stroke:true, strokeRGB:0, bevel:"up", bevelRGB:14277081, bevelAlpha:70};
if (initObject.widgetSelectedStyle != undefined) {
copyObject(_widgetSelectedStyle, initObject.widgetSelectedStyle);
}
if (initObject.hasOwnProperty("align") == false) {
_align = "top-left";
}
if (initObject.hasOwnProperty("padding") == false) {
_padding = {x:27, y:72};
}
_type = "zoom";
}
function init() {
super.init();
initControl();
}
function initControl() {
if (__get__display() == "expanded") {
dspScrollTrack();
dspWidget();
} else {
_backgroundStyle.h = (buttonDefaultStyle.h * 2) + (stackPadding.vertical * 3);
}
dspButtons();
}
function dspBackground() {
backgroundStyle.parent = _mc.createEmptyMovieClip("Background_mc", 1);
backgroundStyle.w = buttonDefaultStyle.w + (stackPadding.horizontal * 2);
com.google.GMap.geometry.GGraphics.drawBevelRect(backgroundStyle.parent, backgroundStyle);
}
function dspScrollTrack() {
if (!_scrollButton) {
_scrollButton = _mc.createEmptyMovieClip("scrollTrack_btn", 2);
var _local3 = new flash.filters.DropShadowFilter(1, 45, 0, 0.3, 4, 4, 1, 1, false, false, false);
_scrollButton.filters = [_local3];
}
_scrollButton._x = Math.round(((buttonDefaultStyle.w + (stackPadding.horizontal * 2)) / 2) - (scrollTrackStyle.w / 2));
_scrollButton._y = Math.round(buttonDefaultStyle.h + (stackPadding.vertical * 2));
scrollTrackStyle.h = (widgetDefaultStyle.h - 1) * (maxZoomLevel + 2);
scrollTrackStyle.hh = widgetDefaultStyle.h - 1;
var _local2 = new Object();
_local2.buttonStyle = scrollTrackStyle;
_local2.parent = _scrollButton;
_scrollTrack = new com.google.GMap.controls.zoom.GScrollTrack(this, _local2);
_scrollTrack.addEventListener("SCROLL_TRACK_ON_RELEASE", this);
_scrollTrack.addEventListener("SCROLL_TRACK_ON_PRESS", this);
}
function SCROLL_TRACK_ON_RELEASE(evnt) {
var _local3 = _widgetObject._bottom - _widgetObject._top;
var _local2 = Math.round((evnt.clickY / _local3) * 100);
var _local4 = Math.round((_widgetButton._height / _local3) * 100);
_local2 = _local2 - _local4;
zoomLevel = (Math.round((maxZoomLevel * _local2) / 10) / 10);
updateWidget();
dispatchEvent({type:"CONTROL_ON_RELEASE", target:this});
}
function SCROLL_TRACK_ON_PRESS(evnt) {
dispatchEvent({target:this, type:"SCROLL_TRACK_ON_PRESS"});
dispatchEvent({type:"CONTROL_ON_PRESS", target:this});
}
function dspWidget() {
if (_widgetButton == undefined) {
_widgetButton = _mc.createEmptyMovieClip("zoomWidget_btn", 3);
}
_widgetButton._x = ((buttonDefaultStyle.w + (stackPadding.horizontal * 2)) / 2) - (widgetDefaultStyle.w / 2);
_widgetButton._y = ((stackPadding.vertical * 2) + buttonDefaultStyle.h) + ((scrollTrackStyle.hh / 2) - 2);
_widgetObject = new com.google.GMap.controls.zoom.GScrollWidget(_owner, {parent:_widgetButton, top:0, bottom:scrollTrackStyle.hh * maxZoomLevel, buttonStyle:widgetDefaultStyle});
_widgetObject.addEventListener("WIDGET_ON_DRAG", this);
_widgetObject.addEventListener("WIDGET_ON_DRAG_START", this);
_widgetObject.addEventListener("WIDGET_ON_DRAG_STOP", this);
_widgetObject.addEventListener("WIDGET_ON_PRESS", this);
_widgetObject.addEventListener("WIDGET_ON_ROLL_OVER", this);
_widgetObject.addEventListener("WIDGET_ON_ROLL_OUT", this);
_widgetObject.addEventListener("WIDGET_ON_RELEASE", this);
_widgetObject.addEventListener("WIDGET_ON_RELEASE_OUTSIDE", this);
}
function updateWidget() {
_widgetObject.scrollPercent = Math.abs(((zoomLevel / _maxZoomLevel) * 100) - 100);
}
function WIDGET_ON_DRAG(evnt) {
zoomLevel = (Math.round((maxZoomLevel * evnt.target.scrollPercent) / 10) / 10);
}
function WIDGET_ON_PRESS(evnt) {
evnt.target.buttonStyle = widgetSelectedStyle;
_dragging = true;
dispatchEvent({target:this, type:"WIDGET_ON_PRESS"});
dispatchEvent({type:"CONTROL_ON_PRESS", target:this});
}
function WIDGET_ON_RELEASE(evnt) {
evnt.target.buttonStyle = widgetOverStyle;
_dragging = false;
dispatchEvent({target:this, type:"WIDGET_ON_RELEASE"});
dispatchEvent({type:"CONTROL_ON_RELEASE", target:this});
}
function WIDGET_ON_RELEASE_OUTSIDE(evnt) {
evnt.target.buttonStyle = widgetDefaultStyle;
_dragging = false;
dispatchEvent({target:this, type:"WIDGET_ON_RELEASE"});
}
function WIDGET_ON_ROLL_OVER(evnt) {
evnt.target.buttonStyle = widgetOverStyle;
}
function WIDGET_ON_ROLL_OUT(evnt) {
evnt.target.buttonStyle = widgetDefaultStyle;
}
function dspButtons() {
if (_zoomInButton == undefined) {
_zoomInButton = _mc.createEmptyMovieClip("zoomIn_btn", 4);
_zoomOutButton = _mc.createEmptyMovieClip("zoomOut_btn", 5);
var _local3 = new flash.filters.DropShadowFilter(1, 45, 0, 0.3, 4, 4, 1, 1, false, false, false);
_zoomInButton.filters = [_local3];
_zoomOutButton.filters = [_local3];
}
var _local2 = new com.google.GMap.controls.common.GControlButton(_owner, {parent:_zoomInButton, id:"+", iconPath:"zoomIn_ico", buttonStyle:buttonDefaultStyle});
_local2.addEventListener("ON_RELEASE", this);
_local2.addEventListener("ON_PRESS", this);
_local2.addEventListener("ON_ROLL_OVER", this);
_local2.addEventListener("ON_ROLL_OUT", this);
_local2 = new com.google.GMap.controls.common.GControlButton(_owner, {parent:_zoomOutButton, id:"-", iconPath:"zoomOut_ico", buttonStyle:buttonDefaultStyle});
_local2.addEventListener("ON_RELEASE", this);
_local2.addEventListener("ON_PRESS", this);
_local2.addEventListener("ON_ROLL_OVER", this);
_local2.addEventListener("ON_ROLL_OUT", this);
updateButtons();
}
function updateButtons() {
_zoomInButton._x = stackPadding.horizontal;
_zoomInButton._y = stackPadding.vertical;
if (_display == "expanded") {
_zoomOutButton._x = stackPadding.horizontal;
_zoomOutButton._y = Math.round(scrollTrackStyle.h + (buttonDefaultStyle.h + (stackPadding.vertical * 3)));
} else {
_zoomOutButton._x = stackPadding.horizontal;
_zoomOutButton._y = Math.round(buttonDefaultStyle.h + (stackPadding.vertical * 2));
}
}
function ON_RELEASE(evnt) {
switch (evnt.target.id) {
case "+" :
zoomIn();
break;
case "-" :
zoomOut();
}
evnt.target.buttonStyle = buttonOverStyle;
dispatchEvent({target:this, type:"BUTTON_ON_RELEASE"});
dispatchEvent({type:"CONTROL_ON_RELEASE", target:this});
}
function ON_PRESS(evnt) {
evnt.target.buttonStyle = buttonSelectedStyle;
dispatchEvent({target:this, type:"BUTTON_ON_PRESS"});
dispatchEvent({type:"CONTROL_ON_PRESS", target:this});
}
function ON_ROLL_OVER(evnt) {
evnt.target.buttonStyle = buttonOverStyle;
}
function ON_ROLL_OUT(evnt) {
evnt.target.buttonStyle = buttonDefaultStyle;
}
function zoomIn(level) {
if ((zoomLevel < maxZoomLevel) || (level < maxZoomLevel)) {
if (level == undefined) {
zoomLevel = (Math.round(zoomLevel + 1));
} else {
zoomLevel = (level);
}
updateWidget();
return(true);
}
return(false);
}
function zoomOut(level) {
if ((zoomLevel > 0) || (level > 0)) {
if (level == undefined) {
zoomLevel = (Math.round(zoomLevel - 1));
} else {
zoomLevel = (level);
}
updateWidget();
return(true);
}
return(false);
}
function setMaxZoomLevel(level) {
if ((level != undefined) && (level > 1)) {
maxZoomLevel = (level - 1);
if (_zoomLevel > maxZoomLevel) {
_zoomLevel = maxZoomLevel;
}
_scrollTrack.buttonStyle.h = (widgetDefaultStyle.h - 1) * (maxZoomLevel + 2);
_scrollTrackStyle.h = _scrollTrack.buttonStyle.h;
_scrollTrack.dspButton();
_widgetObject.bottom = scrollTrackStyle.hh * maxZoomLevel;
updateButtons();
updateWidget();
return(true);
}
return(false);
}
function setZoomLevel(level) {
if (_dragging) {
return(undefined);
}
_zoomLevel = level;
updateWidget();
}
function get stackAlignment() {
return(_stackAlignment);
}
function set stackAlignment(val) {
_stackAlignment = val;
initControl();
//return(stackAlignment);
}
function get stackPadding() {
return(_stackPadding);
}
function set stackPadding(val) {
_stackPadding = val;
initControl();
//return(stackPadding);
}
function get buttonDefaultStyle() {
return(_buttonDefaultStyle);
}
function set buttonDefaultStyle(val) {
_buttonDefaultStyle = val;
initControl();
//return(buttonDefaultStyle);
}
function get buttonSelectedStyle() {
return(_buttonSelectedStyle);
}
function set buttonSelectedStyle(val) {
_buttonSelectedStyle = val;
initControl();
//return(buttonSelectedStyle);
}
function get buttonOverStyle() {
return(_buttonOverStyle);
}
function set buttonOverStyle(val) {
_buttonOverStyle = val;
initControl();
//return(buttonOverStyle);
}
function get backgroundStyle() {
return(_backgroundStyle);
}
function set backgroundStyle(val) {
_backgroundStyle = val;
initControl();
//return(backgroundStyle);
}
function get scrollTrackStyle() {
return(_scrollTrackStyle);
}
function set scrollTrackStyle(val) {
_scrollTrackStyle = val;
initControl();
//return(scrollTrackStyle);
}
function get widgetDefaultStyle() {
return(_widgetDefaultStyle);
}
function set widgetDefaultStyle(val) {
_widgetDefaultStyle = val;
initControl();
//return(widgetDefaultStyle);
}
function get widgetOverStyle() {
return(_widgetOverStyle);
}
function set widgetOverStyle(val) {
_widgetOverStyle = val;
initControl();
//return(widgetOverStyle);
}
function get widgetSelectedStyle() {
return(_widgetSelectedStyle);
}
function set widgetSelectedStyle(val) {
_widgetSelectedStyle = val;
initControl();
//return(widgetSelectedStyle);
}
function get maxZoomLevel() {
return(_maxZoomLevel);
}
function set maxZoomLevel(val) {
_maxZoomLevel = val;
//return(maxZoomLevel);
}
function get zoomLevel() {
return(_zoomLevel);
}
function set zoomLevel(val) {
_zoomLevel = val;
dispatchEvent({type:"ZOOM_CHANGED", target:this, zoom:zoomLevel});
dispatchEvent({type:"CONTROL_ACTION", target:this, action:"zoom_changed", zoom:zoomLevel});
//return(zoomLevel);
}
var _zoomLevel = 0;
}
Symbol 117 MovieClip [__Packages.com.google.GMap.controls.position.GPositionControl] Frame 0
class com.google.GMap.controls.position.GPositionControl extends com.google.GMap.controls.common.GControl
{
var _buttonDefaultStyle, copyObject, _buttonSelectedStyle, _buttonOverStyle, _align, _padding, _type, _buttons, _mc, _owner, dispatchEvent, _panDirection, _stackPadding;
function GPositionControl (initObject) {
super(initObject);
if (initObject == undefined) {
initObject = new Object();
}
_buttonDefaultStyle = {w:17, h:17, fill:true, fillRGB:16777215, fillAlpha:100, stroke:true, strokeRGB:0, bevel:"up", bevelRGB:14277081, bevelAlpha:70};
if (initObject.buttonDefaultStyle != undefined) {
copyObject(_buttonDefaultStyle, initObject.buttonDefaultStyle);
}
_buttonSelectedStyle = {w:17, h:17, fill:true, fillRGB:16777215, fillAlpha:100, stroke:true, strokeRGB:0, bevel:"down", bevelRGB:14277081, bevelAlpha:80};
if (initObject.buttonSelectedStyle != undefined) {
copyObject(_buttonSelectedStyle, initObject.buttonSelectedStyle);
}
_buttonOverStyle = {w:17, h:17, fill:true, fillRGB:15658734, fillAlpha:100, stroke:true, strokeRGB:0, bevel:"up", bevelRGB:14277081, bevelAlpha:70};
if (initObject.buttonOverStyle != undefined) {
copyObject(_buttonOverStyle, initObject.buttonOverStyle);
}
if (initObject.hasOwnProperty("align") == false) {
_align = "top-left";
}
if (initObject.hasOwnProperty("padding") == false) {
_padding = {x:10, y:10};
}
_type = "position";
}
function init() {
super.init();
initControl();
}
function initControl() {
_buttons = new Array();
var _local5 = _mc.createEmptyMovieClip("North_btn", 1);
_local5._x = buttonDefaultStyle.w + stackPadding.horizontal;
_local5._y = 0;
var _local9 = new com.google.GMap.controls.common.GControlButton(_owner, {buttonStyle:buttonDefaultStyle, iconPath:"north_ico", id:"North", parent:_local5});
_buttons.push(_local9);
var _local6 = _mc.createEmptyMovieClip("East_btn", 2);
_local6._x = (buttonDefaultStyle.w * 2) + (stackPadding.horizontal * 2);
_local6._y = buttonDefaultStyle.w + stackPadding.vertical;
var _local11 = new com.google.GMap.controls.common.GControlButton(_owner, {buttonStyle:buttonDefaultStyle, iconPath:"east_ico", id:"East", parent:_local6});
_buttons.push(_local11);
var _local8 = _mc.createEmptyMovieClip("South_btn", 3);
_local8._x = buttonDefaultStyle.w + stackPadding.horizontal;
_local8._y = (buttonDefaultStyle.w * 2) + (stackPadding.vertical * 2);
var _local13 = new com.google.GMap.controls.common.GControlButton(_owner, {buttonStyle:buttonDefaultStyle, iconPath:"south_ico", id:"South", parent:_local8});
_buttons.push(_local13);
var _local7 = _mc.createEmptyMovieClip("West_btn", 4);
_local7._x = 0;
_local7._y = buttonDefaultStyle.w + stackPadding.vertical;
var _local10 = new com.google.GMap.controls.common.GControlButton(_owner, {buttonStyle:buttonDefaultStyle, iconPath:"west_ico", id:"West", parent:_local7});
_buttons.push(_local10);
var _local4 = _mc.createEmptyMovieClip("Center_btn", 5);
_local4._x = buttonDefaultStyle.w + stackPadding.horizontal;
_local4._y = buttonDefaultStyle.w + stackPadding.vertical;
var _local12 = new com.google.GMap.controls.common.GControlButton(_owner, {buttonStyle:buttonDefaultStyle, iconPath:"center_ico", id:"Center", parent:_local4});
_buttons.push(_local12);
var _local3 = new flash.filters.DropShadowFilter(1, 45, 0, 0.3, 4, 4, 1, 1, false, false, false);
var _local2 = 0;
while (_local2 < _buttons.length) {
_buttons[_local2].addEventListener("ON_RELEASE", this);
_buttons[_local2].addEventListener("ON_PRESS", this);
_buttons[_local2].addEventListener("ON_ROLL_OVER", this);
_buttons[_local2].addEventListener("ON_ROLL_OUT", this);
_buttons[_local2].button.filters = [_local3];
_local2++;
}
}
function ON_RELEASE(evnt) {
panDirection = (evnt.target.id);
evnt.target.buttonStyle = buttonOverStyle;
dispatchEvent({type:"POSITION_CHANGED", target:this, direction:_panDirection});
dispatchEvent({type:"CONTROL_ACTION", target:this, action:"position_changed", direction:_panDirection});
dispatchEvent({type:"CONTROL_ON_RELEASE", target:this});
}
function ON_PRESS(evnt) {
evnt.target.buttonStyle = buttonSelectedStyle;
dispatchEvent({type:"CONTROL_ON_PRESS", target:this});
}
function ON_ROLL_OVER(evnt) {
evnt.target.buttonStyle = buttonOverStyle;
}
function ON_ROLL_OUT(evnt) {
evnt.target.buttonStyle = buttonDefaultStyle;
}
function get panDirection() {
return(_panDirection);
}
function set panDirection(val) {
_panDirection = val;
//return(panDirection);
}
function get stackPadding() {
return(_stackPadding);
}
function set stackPadding(val) {
_stackPadding = val;
initControl();
//return(stackPadding);
}
function get buttonDefaultStyle() {
return(_buttonDefaultStyle);
}
function set buttonDefaultStyle(val) {
_buttonDefaultStyle = val;
initControl();
//return(buttonDefaultStyle);
}
function get buttonSelectedStyle() {
return(_buttonSelectedStyle);
}
function set buttonSelectedStyle(val) {
_buttonSelectedStyle = val;
initControl();
//return(buttonSelectedStyle);
}
function get buttonOverStyle() {
return(_buttonOverStyle);
}
function set buttonOverStyle(val) {
_buttonOverStyle = val;
initControl();
//return(buttonOverStyle);
}
}
Symbol 118 MovieClip [__Packages.com.google.GMap.controls.navigator.GNavigatorControl] Frame 0
class com.google.GMap.controls.navigator.GNavigatorControl extends com.google.GMap.controls.common.GControl
{
var _width, _height, _borderThickness, _borderStyle, _navigatorStyle, _buttonDefaultStyle, _buttonSelectedStyle, _buttonOverStyle, _align, _padding, _dragPoint, _dragging, _state, _mc, _naviOld, _naviNew, _layer, _lat, _lng, _newLat, _newLng, _navigatorWidth, _navigatorHeight, _oldLat, _oldLng, _dragMousePoint, __get__mc, _dragNaviPoint, _owner;
function GNavigatorControl (initObject) {
super(initObject);
if (initObject == undefined) {
initObject = new Object();
}
_width = ((initObject.width != undefined) ? (initObject.width) : 100);
_height = ((initObject.height != undefined) ? (initObject.height) : 100);
_borderThickness = ((initObject.borderThickness != undefined) ? (initObject.borderThickness) : 3);
var _local4 = new flash.filters.DropShadowFilter(1, 45, 0, 0.3, 4, 4, 1, 1, false, false, false);
_borderStyle = new Object();
_borderStyle.strokeRGB = 0;
_borderStyle.strokeThickness = 1;
_borderStyle.strokeAlpha = 100;
_borderStyle.fillRGB = 16777215 /* 0xFFFFFF */;
_borderStyle.fillAlpha = 100;
_borderStyle.bevel = "up";
_borderStyle.bevelRGB = 14277081 /* 0xD9D9D9 */;
_borderStyle.bevelAlpha = 70;
_borderStyle.w = _width;
_borderStyle.h = _height;
_borderStyle.filters = [_local4];
_navigatorStyle = new Object();
_navigatorStyle.strokeRGB = 4474043 /* 0x4444BB */;
_navigatorStyle.strokeThickness = 2;
_navigatorStyle.strokeAlpha = 100;
_navigatorStyle.fillRGB = 4474043 /* 0x4444BB */;
_navigatorStyle.fillAlpha = 20;
_navigatorStyle.filters = [_local4];
_buttonDefaultStyle = new Object();
_buttonDefaultStyle.w = 14;
_buttonDefaultStyle.h = 14;
_buttonDefaultStyle.fill = true;
_buttonDefaultStyle.fillRGB = 16777215 /* 0xFFFFFF */;
_buttonDefaultStyle.fillAlpha = 100;
_buttonDefaultStyle.stroke = true;
_buttonDefaultStyle.strokeRGB = 0;
_buttonDefaultStyle.bevel = "up";
_buttonDefaultStyle.bevelRGB = 14277081 /* 0xD9D9D9 */;
_buttonDefaultStyle.bevelAlpha = 70;
_buttonSelectedStyle = new Object();
_buttonSelectedStyle.w = 14;
_buttonSelectedStyle.h = 14;
_buttonSelectedStyle.fill = true;
_buttonSelectedStyle.fillRGB = 16777215 /* 0xFFFFFF */;
_buttonSelectedStyle.fillAlpha = 100;
_buttonSelectedStyle.stroke = true;
_buttonSelectedStyle.strokeRGB = 0;
_buttonSelectedStyle.bevel = "down";
_buttonSelectedStyle.bevelRGB = 14277081 /* 0xD9D9D9 */;
_buttonSelectedStyle.bevelAlpha = 80;
_buttonOverStyle = new Object();
_buttonOverStyle.w = 14;
_buttonOverStyle.h = 14;
_buttonOverStyle.fill = true;
_buttonOverStyle.fillRGB = 15658734 /* 0xEEEEEE */;
_buttonOverStyle.fillAlpha = 100;
_buttonOverStyle.stroke = true;
_buttonOverStyle.strokeRGB = 0;
_buttonOverStyle.bevel = "up";
_buttonOverStyle.bevelRGB = 14277081 /* 0xD9D9D9 */;
_buttonOverStyle.bevelAlpha = 70;
if (initObject.borderStyle != undefined) {
copyObject(_borderStyle, initObject.borderStyle);
}
if (initObject.navigatorStyle != undefined) {
copyObject(_navigatorStyle, initObject.navigatorStyle);
}
if (initObject.buttonDefaultStyle != undefined) {
copyObject(_buttonDefaultStyle, initObject.buttonDefaultStyle);
}
if (initObject.buttonSelectedStyle != undefined) {
copyObject(_buttonSelectedStyle, initObject.buttonSelectedStyle);
}
if (initObject.buttonOverStyle != undefined) {
copyObject(_buttonOverStyle, initObject.buttonOverStyle);
}
if (initObject.hasOwnProperty("align") == false) {
_align = "bottom-right";
}
if (initObject.hasOwnProperty("padding") == false) {
_padding = {x:10, y:10};
}
_dragPoint = new com.google.GMap.types.GCoord(0, 0);
_dragging = 0;
_state = 0;
}
function init() {
super.init();
_mc.createEmptyMovieClip("back", 10);
_mc.createEmptyMovieClip("content", 20);
_mc.createEmptyMovieClip("mask", 100);
_mc.content.createEmptyMovieClip("grid", 10);
_naviOld = _mc.content.createEmptyMovieClip("navi_old", 30);
_naviNew = _mc.content.createEmptyMovieClip("navi_new", 40);
_mc.content.setMask(_mc.mask);
_mc.mask.onPress = mx.utils.Delegate.create(this, dragStart);
_mc.mask.onRelease = (_mc.mask.onReleaseOutside = mx.utils.Delegate.create(this, dragStop));
_mc.mask.onMouseMove = mx.utils.Delegate.create(this, dragNow);
_mc.mask.useHandCursor = false;
_naviNew.useHandCursor = true;
_naviOld._visible = false;
var _local3 = Math.floor(core.zoom) - 4;
_local3 = ((_local3 < 0) ? 0 : (_local3));
_layer = new com.google.GMap.geometry.GGridLayer(this, {zoom:_local3, name:"gridLayer", width:viewportWidth, height:viewportHeight, extraTiles:1, immediate:true});
chooseMapType();
core.addEventListener("MAP_READY", this);
core.addEventListener("MAP_PAN_STOP", this);
core.addEventListener("MAP_PAN_START", this);
core.addEventListener("MAP_ON_DRAG_START", this);
core.addEventListener("MAP_ON_DRAG_STOP", this);
core.addEventListener("MAP_ON_PRESS", this);
size();
redraw();
}
function invalidate() {
_mc.onEnterFrame = mx.utils.Delegate.create(this, redraw);
}
function redraw() {
delete _mc.onEnterFrame;
_mc.back.clear();
_borderStyle.w = _width;
_borderStyle.h = _height;
com.google.GMap.geometry.GGraphics.drawBevelRect(_mc.back, _borderStyle);
updateNavigator();
_mc.filters = _borderStyle.filters;
_naviNew.filters = _navigatorStyle.filters;
_naviOld.filters = _navigatorStyle.filters;
}
function size() {
_mc.mask.clear();
var _local2 = _borderThickness + _borderStyle.strokeThickness;
var _local4 = _width - (_local2 * 2);
var _local3 = _height - (_local2 * 2);
com.google.GMap.geometry.GGraphics.drawRect(_mc.mask, _local2, _local2, _local4 + _local2, _local3 + _local2, 16764142, 50, 0, 0);
_mc.content.grid._x = _local2;
_mc.content.grid._y = _local2;
_layer.setViewport(_local4, _local3);
invalidate();
}
function updateNavigator() {
if (!core.ready) {
return(undefined);
}
var _local3 = core.control.getXYFromLatLng(new com.google.GMap.types.GLocation(_lat, _lng), _layer.__get__zoom());
var _local2 = core.control.getXYFromLatLng(new com.google.GMap.types.GLocation(_newLat, _newLng), _layer.__get__zoom());
_naviNew._x = (((_width - _navigatorWidth) / 2) + _local2.__get__x()) - _local3.__get__x();
_naviNew._y = (((_height - _navigatorHeight) / 2) + _local2.__get__y()) - _local3.__get__y();
if (_naviOld._visible) {
_local2 = core.control.getXYFromLatLng(new com.google.GMap.types.GLocation(_oldLat, _oldLng), _layer.__get__zoom());
_naviOld._x = (((_width - _navigatorWidth) / 2) + _local2.__get__x()) - _local3.__get__x();
_naviOld._y = (((_height - _navigatorHeight) / 2) + _local2.__get__y()) - _local3.__get__y();
}
}
function drawNavigator() {
_naviNew.clear();
com.google.GMap.geometry.GGraphics.drawRectOutline(_naviNew, 0, 0, _navigatorWidth, _navigatorHeight, _navigatorStyle.strokeRGB, _navigatorStyle.strokeAlpha, _navigatorStyle.strokeThickness);
com.google.GMap.geometry.GGraphics.drawRect(_naviNew, 0, 0, _navigatorWidth, _navigatorHeight, _navigatorStyle.fillRGB, _navigatorStyle.fillAlpha, 0, 0);
_naviOld.clear();
com.google.GMap.geometry.GGraphics.drawRectOutline(_naviOld, 0, 0, _navigatorWidth, _navigatorHeight, _navigatorStyle.strokeRGB, _navigatorStyle.strokeAlpha, _navigatorStyle.strokeThickness);
com.google.GMap.geometry.GGraphics.drawRect(_naviOld, 0, 0, _navigatorWidth, _navigatorHeight, _navigatorStyle.fillRGB, _navigatorStyle.fillAlpha, 0, 0);
}
function resizeNavigator() {
if (!core.ready) {
return(undefined);
}
var _local4 = core.getBounds();
var _local3 = core.control.getXYFromLatLng(_local4.__get__northWest(), _layer.__get__zoom());
var _local2 = core.control.getXYFromLatLng(_local4.__get__southEast(), _layer.__get__zoom());
var _local6 = _navigatorWidth;
var _local5 = _navigatorHeight;
if (_local2.__get__x() < _local3.__get__x()) {
_navigatorWidth = (core.control.mercator.width[_layer.__get__zoom()] - _local3.__get__x()) + _local2.__get__x();
} else {
_navigatorWidth = _local2.__get__x() - _local3.__get__x();
}
_navigatorHeight = _local2.__get__y() - _local3.__get__y();
if ((_navigatorWidth != _local6) || (_navigatorHeight != _local5)) {
drawNavigator();
}
if ((_navigatorWidth >= viewportWidth) || (_navigatorHeight >= viewportHeight)) {
_naviNew._visible = false;
return(undefined);
}
_naviNew._visible = true;
}
function updateMapPosition() {
if (!core.ready) {
return(undefined);
}
if (_state == 1) {
_oldLat = core.lat;
_oldLng = core.lng;
updateNavigator();
} else if (_state == 2) {
_lat = core.lat;
_lng = core.lng;
_oldLat = _lat;
_oldLng = _lng;
_layer.updatePosition(_lat, _lng);
updateNavigator();
} else {
_lat = core.lat;
_lng = core.lng;
_newLat = _lat;
_newLng = _lng;
_layer.updatePosition(_lat, _lng);
updateNavigator();
}
}
function updatePlacement() {
super.updatePlacement();
_layer.setViewport(viewportWidth, viewportHeight);
resizeNavigator();
}
function setZoomLevel(zoom) {
if (!core.ready) {
return(undefined);
}
var _local2 = Math.floor(zoom) - 4;
_local2 = ((_local2 < 0) ? 0 : (_local2));
if (_layer.__get__zoom() != _local2) {
_layer.__set__zoom(_local2);
chooseMapType();
_layer.setViewport(viewportWidth, viewportHeight);
_layer.clearSegments();
_layer.updatePosition(core.lat, core.lng);
}
resizeNavigator();
updateNavigator();
}
function setMapType(type) {
if (_layer.__get__type() != type) {
chooseMapType();
_layer.clearSegments();
_layer.updatePosition(core.lat, core.lng);
}
}
function chooseMapType() {
switch (core.mapType) {
case "map" :
_layer.__set__type("map");
break;
case "satellite" :
if (Math.floor(core.zoom) < 6) {
_layer.__set__type("satellite");
} else {
_layer.__set__type("hybrid");
}
break;
case "hybrid" :
if (Math.floor(core.zoom) < 6) {
_layer.__set__type("satellite");
} else {
_layer.__set__type("hybrid");
}
}
}
function getNewMovieClip() {
return(_mc.content.grid.createEmptyMovieClip("mc0", 10));
}
function MAP_READY(evt) {
_lat = core.lat;
_lng = core.lng;
_newLat = core.lat;
_newLng = core.lng;
resizeNavigator();
updateNavigator();
}
function MAP_PAN_STOP(evt) {
_newLat = core.lat;
_newLng = core.lng;
_lat = _newLat;
_lng = _newLng;
_layer.updatePosition(_lat, _lng);
updateNavigator();
_naviOld._visible = false;
_state = 0;
}
function MAP_PAN_START(evt) {
_naviOld._visible = false;
}
function MAP_ON_DRAG_START(evt) {
_naviOld._visible = false;
_state = 0;
}
function MAP_ON_DRAG_STOP(evt) {
_newLat = core.lat;
_newLng = core.lng;
_lat = _newLat;
_lng = _newLng;
_layer.updatePosition(_lat, _lng);
updateNavigator();
}
function MAP_ON_PRESS(evt) {
_naviOld._visible = false;
_state = 0;
updateNavigator();
}
function copyObject(dst_obj, src_obj) {
for (var _local2 in src_obj) {
dst_obj[_local2] = src_obj[_local2];
}
}
function dragStart() {
core.cancelDragging();
_dragPoint = core.control.getXYFromLatLng(new com.google.GMap.types.GLocation(_lat, _lng), _layer.__get__zoom());
_dragMousePoint = new com.google.GMap.types.GCoord(__get__mc()._xmouse, __get__mc()._ymouse);
if (!_naviNew._visible) {
_dragging = 1;
} else if ((((__get__mc()._xmouse >= _naviNew._x) && (__get__mc()._xmouse <= (_naviNew._x + _navigatorWidth))) && (__get__mc()._yxmouse >= _naviNew._y)) && (__get__mc()._ymouse <= (_naviNew._y + _navigatorHeight))) {
_dragNaviPoint = new com.google.GMap.types.GCoord(_naviNew._xmouse, _naviNew._ymouse);
_dragging = 2;
} else {
_dragging = 1;
}
if (_naviNew._visible) {
_naviOld._visible = true;
}
_oldLat = _lat;
_oldLng = _lng;
_state = 0;
updateNavigator();
}
function dragStop() {
if (_dragging == 1) {
core.removeEventListener("MAP_PAN_START", this);
core.panTo(new com.google.GMap.types.GLocation(_lat, _lng));
core.addEventListener("MAP_PAN_START", this);
_oldLat = _lat;
_oldLng = _lng;
if (!core.animatePan) {
_naviOld._visible = false;
_state = 0;
updateNavigator();
} else {
_state = 1;
}
}
if (_dragging == 2) {
core.removeEventListener("MAP_PAN_START", this);
core.panTo(new com.google.GMap.types.GLocation(_newLat, _newLng));
core.addEventListener("MAP_PAN_START", this);
if (!core.animatePan) {
_naviOld._visible = false;
_state = 0;
updateNavigator();
} else {
_state = 2;
}
}
_dragging = 0;
}
function dragNow() {
if (!_dragging) {
return(undefined);
}
if (_dragging == 1) {
_dragPoint.x = _dragPoint.x + (_dragMousePoint.__get__x() - __get__mc()._xmouse);
_dragPoint.y = _dragPoint.y + (_dragMousePoint.__get__y() - __get__mc()._ymouse);
var _local2 = core.control.getLatLngFromXY(_dragPoint, _layer.__get__zoom());
_lat = _local2.lat;
_lng = _local2.lng;
_newLat = _lat;
_newLng = _lng;
_layer.updatePosition(_lat, _lng);
updateNavigator();
_dragPoint = core.control.getXYFromLatLng(new com.google.GMap.types.GLocation(_lat, _lng), _layer.__get__zoom());
_dragMousePoint = new com.google.GMap.types.GCoord(__get__mc()._xmouse, __get__mc()._ymouse);
}
if (_dragging == 2) {
var _local5 = _dragNaviPoint.__get__x() - _naviNew._xmouse;
var _local4 = _dragNaviPoint.__get__y() - _naviNew._ymouse;
_dragPoint.x = _dragPoint.x - _local5;
_dragPoint.y = _dragPoint.y - _local4;
_dragPoint.__set__y(core.control.checkY(_dragPoint.__get__y(), _layer.__get__zoom()));
var _local2 = core.control.getLatLngFromXY(_dragPoint, _layer.__get__zoom());
_newLat = _local2.lat;
_newLng = _local2.lng;
var _local3 = core.control.getXYFromLatLng(new com.google.GMap.types.GLocation(_lat, _lng), _layer.__get__zoom());
if ((Math.abs(_local3.__get__x() - _dragPoint.__get__x()) > (viewportWidth / 2)) || (Math.abs(_local3.__get__y() - _dragPoint.__get__y()) > (viewportHeight / 2))) {
_naviNew.onEnterFrame = mx.utils.Delegate.create(this, dragAuto);
} else if (_naviNew.onEnterFrame) {
delete _naviNew.onEnterFrame;
}
updateNavigator();
_dragPoint = core.control.getXYFromLatLng(new com.google.GMap.types.GLocation(_newLat, _newLng), _layer.__get__zoom());
}
}
function dragAuto() {
if (_dragging != 2) {
return(undefined);
}
var _local6 = 0;
var _local5 = 0;
var _local2 = border;
if (_naviNew._x < _local2) {
_local6 = (_local2 - _naviNew._x) / 5;
} else if ((_naviNew._x + _navigatorWidth) > (viewportWidth + _local2)) {
_local6 = ((viewportWidth + _local2) - (_naviNew._x + _navigatorWidth)) / 5;
}
if (_naviNew._y < _local2) {
_local5 = (_local2 - _naviNew._y) / 5;
} else if ((_naviNew._y + _navigatorHeight) > (viewportHeight + _local2)) {
_local5 = ((viewportHeight + _local2) - (_naviNew._y + _navigatorHeight)) / 5;
}
if ((_local6 != 0) || (_local5 != 0)) {
_dragPoint.x = _dragPoint.x - _local6;
_dragPoint.y = _dragPoint.y - _local5;
_dragPoint.__set__y(core.control.checkY(_dragPoint.__get__y(), _layer.__get__zoom()));
var _local3 = core.control.getLatLngFromXY(_dragPoint, _layer.__get__zoom());
_newLat = _local3.lat;
_newLng = _local3.lng;
var _local4 = core.control.getXYFromLatLng(new com.google.GMap.types.GLocation(_lat, _lng), _layer.__get__zoom());
_local4.x = _local4.x - _local6;
_local4.y = _local4.y - _local5;
_local4.__set__y(core.control.checkY(_local4.__get__y(), _layer.__get__zoom()));
_local3 = core.control.getLatLngFromXY(_local4, _layer.__get__zoom());
_lat = _local3.lat;
_lng = _local3.lng;
_layer.updatePosition(_lat, _lng);
updateNavigator();
_dragPoint = core.control.getXYFromLatLng(new com.google.GMap.types.GLocation(_newLat, _newLng), _layer.__get__zoom());
}
}
function get viewportWidth() {
return(_width - ((_borderThickness + _borderStyle.strokeThickness) * 2));
}
function get viewportHeight() {
return(_height - ((_borderThickness + _borderStyle.strokeThickness) * 2));
}
function get border() {
return(_borderThickness + _borderStyle.strokeThickness);
}
function get type() {
return("navigator");
}
function get core() {
return(_owner.core);
}
function get width() {
return(_width);
}
function set width(val) {
if (_width != val) {
_width = Number(val);
size();
updatePlacement();
}
//return(width);
}
function get height() {
return(_height);
}
function set height(val) {
if (_height != val) {
_height = Number(val);
size();
updatePlacement();
}
//return(height);
}
function get borderThickness() {
return(_borderThickness);
}
function set borderThickness(val) {
if (_borderThickness != val) {
_borderThickness = val;
size();
}
//return(borderThickness);
}
function get borderStyle() {
return(_borderStyle);
}
function set borderStyle(val) {
copyObject(_borderStyle, val);
size();
//return(borderStyle);
}
function get navigatorStyle() {
return(_navigatorStyle);
}
function set navigatorStyle(val) {
copyObject(_navigatorStyle, val);
size();
updateNavigator();
//return(navigatorStyle);
}
}
Symbol 119 MovieClip [__Packages.com.yahoo.maps.api.flash.YahooMap] Frame 0
class com.yahoo.maps.api.flash.YahooMap extends MovieClip
{
var config, latitude, latitudeStr, longitude, longitudeStr, zoomLevel, zoomLevelStr, mapViewType, latlon, _xscale, _yscale, map, attachMovie, getNextHighestDepth, language, appidStr, addressStr, _x, _y, __eventController, _dataService, dispatchEvent;
function YahooMap () {
super();
mx.events.EventDispatcher.initialize(this);
loadExternalConfiguration();
}
function loadExternalConfiguration() {
config = com.yahoo.maps.ExtensibleConfig.getInstance();
initializeMap();
}
function initializeMap() {
latitude = Number(latitudeStr);
longitude = Number(longitudeStr);
zoomLevel = Number(zoomLevelStr);
mapViewType = mapViewType;
if (((latitude == 0) || (latitude == null)) || (isNaN(latitude))) {
latitude = (_local14 || (_local14 = com.yahoo.maps.ExtensibleYMap)).DEFAULT_LAT;
}
if (((longitude == 0) || (longitude == null)) || (isNaN(longitude))) {
longitude = (_local14 || (_local14 = com.yahoo.maps.ExtensibleYMap)).DEFAULT_LON;
}
if (((zoomLevel == 0) || (zoomLevel == null)) || (isNaN(zoomLevel))) {
zoomLevel = (_local14 || (_local14 = com.yahoo.maps.ExtensibleYMap)).DEFAULT_ZOOM;
}
if ((mapViewType == "") || (mapViewType == null)) {
mapViewType = (_local14 || (_local14 = com.yahoo.maps.ExtensibleYMap)).DEFAULT_MAP_VIEW_TYPE;
}
(_local13 || (_local13 = com.macromedia.mc.platform.Session)).getInstance().setAttribute("mapViewType", mapViewType);
var _local9;
if (((latitude != null) && (longitude != null)) && (latlon == null)) {
_local9 = new com.yahoo.maps.LatLon(latitude, longitude);
} else if (latlon != null) {
_local9 = latlon;
}
var _local2 = (_xscale / 100) * 25;
var _local3 = (_yscale / 100) * 25;
_xscale = 100;
_yscale = 100;
map = _local14 || (_local14 = com.yahoo.maps.ExtensibleYMap)(attachMovie("com.yahoo.maps.ExtensibleYMap", "map", getNextHighestDepth(), {width:_local2, height:_local3, latlon:_local9, zoom:zoomLevel, address:addressStr, tmpAppid:appidStr, tmpAppType:"asf", mapViewType:mapViewType, language:language}));
initializeMapListeners();
(_local13 || (_local13 = com.macromedia.mc.platform.Session)).getInstance().setAttribute("map", map);
}
function setSize(width, height) {
map.setSize(width, height);
}
function move(x, y) {
_x = x;
_y = y;
}
function initializeMapListeners() {
map.addEventListener((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).RESIZE, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
map.addEventListener((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).ZOOM, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
map.addEventListener((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).ZOOM_START, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
map.addEventListener((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).ZOOM_STOP, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
map.addEventListener((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).ONCLICK, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
map.addEventListener((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).PAN_START, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
map.addEventListener((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).PAN_STOP, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
map.addEventListener((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).MOVE, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
map.addEventListener((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).TOOL_ADDED, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
map.addEventListener((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).TOOL_CHANGE, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
map.addEventListener((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).TOOL_REMOVED, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
map.addEventListener((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).MAP_GEOCODE_ERROR, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
map.addEventListener((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).MAP_GEOCODE_SUCCESS, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
map.addEventListener((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).MAP_TYPE_CHANGED, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
map.addEventListener((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).MARKER_GEOCODE_ERROR, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
map.addEventListener((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).MARKER_GEOCODE_SUCCESS, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
map.addEventListener((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).MARKER_DRAG_STOP, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
map.addEventListener((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).MARKER_DRAG_START, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
map.addEventListener((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).MARKER_DRAG, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
map.addEventListener((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).CUSTOM_MARKER_LOADED, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
map.addEventListener((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).CUSTOM_OVERLAY_LOADED, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
map.addEventListener((_local6 || (_local6 = com.yahoo.maps.api.flash.YahooMap)).EVENT_OVERLAY_GEOCODE_ERROR, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
map.addEventListener((_local6 || (_local6 = com.yahoo.maps.api.flash.YahooMap)).EVENT_OVERLAY_GEOCODE_SUCCESS, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
map.addEventListener((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).INITIALIZE, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
map.addEventListener((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).NAVIGATOR_STATE_CHANGED, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
map.addEventListener((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).POI_CLICKED, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
map.addEventListener((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).SET_BOUNDS_COMPLETE, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
map.addEventListener((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).MAPTILES_LOADED, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
map.addEventListener((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).CUSTOM_WIDGET_LOADED, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
map.addEventListener((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).WAYPOINTMARKER_ADDED, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
map.addEventListener((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).MAP_BASE_INITIALIZE, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
map.addEventListener((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).CREATION_COMPLETE, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
__eventController = (_local3 || (_local3 = com.yahoo.maps.EventController)).getInstance();
__eventController.addEventListener((_local2 || (_local2 = com.yahoo.maps.AppEvents)).EVENT_POI_OVER, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
__eventController.addEventListener((_local2 || (_local2 = com.yahoo.maps.AppEvents)).EVENT_POI_OUT, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
__eventController.addEventListener((_local2 || (_local2 = com.yahoo.maps.AppEvents)).EVENT_POI_EXPAND, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
__eventController.addEventListener((_local2 || (_local2 = com.yahoo.maps.AppEvents)).EVENT_POI_CLOSE, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapEvent));
_dataService = new com.yahoo.maps.ExtensibleDataService();
}
function getMapBase() {
return(map["map_" + map.getZoomLevel()]);
}
function getVersion() {
return(map.getAPIVersion());
}
function getLanguage() {
return(map.getLanguage());
}
function getLocale() {
return(map.getLocale());
}
function setLocale(language) {
map.setLocale(language);
}
function getSupportedLocales() {
return(map.getSupportedLocales());
}
function getAppID() {
return(map.getAppID());
}
function setAppID(appid) {
map.__set__appid(appid);
}
function onMapEvent(event) {
dispatchEvent(event);
}
function create(latlon, zoomLevel, width, height, x, y, mapViewType) {
}
function isInitialized() {
if (map == null) {
return(false);
}
return(map.isInitialized());
}
function setCenterByLatLon(latlon, panDuration, sendPanEvts) {
map.setCenterByLatLon(latlon, panDuration, sendPanEvts);
_dataService.trackState("ll", panDuration > 0);
map.clearPanTotals();
}
function setCenterByAddress(address, panDuration) {
map.setCenterByAddress(address, panDuration);
_dataService.trackState("only1addr");
}
function setCenterByLatLonAndZoom(latlon, zoomLevel, panDuration) {
map.setCenterByLatLonAndZoom(latlon, zoomLevel, panDuration);
_dataService.trackState("ll");
map.clearPanTotals();
}
function setCenterByAddressAndZoom(address, zoomLevel, panDuration) {
map.setCenterByAddressAndZoom(address, zoomLevel, panDuration);
_dataService.trackState("only1addr");
map.clearPanTotals();
}
function setCenterByPointDelta(delta, panDuration) {
map.setCenterByPointDelta(delta, panDuration);
_dataService.trackState("ll", panDuration > 0);
}
function getCenter() {
return(map.getCenter());
}
function setMapViewType(viewType) {
map.setMapViewType(viewType);
}
function getCurrentMapViewType() {
return(map.getCurrentMapViewType());
}
function getMapViewTypes() {
return(map.getMapViewTypes());
}
function setZoomLevel(zoom, latlon) {
map.setZoomLevel(zoom, latlon);
}
function getZoomLevel() {
return(map.getZoomLevel());
}
function setBounds(bounds) {
map.setBounds(bounds);
}
function getBounds() {
return(map.getBounds());
}
function addOverlay(overlay, data) {
map.addOverlay(overlay, data);
}
function removeOverlay(overlay) {
map.removeOverlay(overlay);
}
function getOverlayContainer() {
return(map.getOverlayContainer());
}
function addWidget(widget) {
map.addWidget(widget);
}
function removeWidget(widget) {
map.removeWidget(widget);
}
function addTool(tool, activate) {
map.addTool(tool, activate);
}
function removeTool(tool) {
map.removeTool(tool);
}
function setActiveTool(tool) {
map.setActiveTool(tool);
}
function getTools() {
return(map.getTools());
}
function getActiveTool() {
return(map.getActiveTool());
}
function latlon_to_local(latlon) {
return(map.latlon_to_local(latlon));
}
function local_to_latlon(point) {
return(map.local_to_latlon(point));
}
function enableKeyboardShortcuts(enabled) {
map.enableKeyboardShortcuts(enabled);
}
function getWidth() {
return(map.getWidth());
}
function getHeight() {
return(map.getHeight());
}
function getReverseLatLon(args) {
}
function getValidLatLon(args) {
return(map.getValidLatLon(args));
}
function get mapConfig() {
return(map.__get__mapConfig());
}
function set mapConfig(args) {
map.__set__mapConfig(args);
//return(mapConfig);
}
function setMapConfig(args) {
map.setMapConfig(args);
}
function get maxZoom() {
return(map.__get__maxZoom());
}
function get minZoom() {
return(map.__get__minZoom());
}
function getMarkerByIndex(index) {
}
function addMarkerByLatLon(markerClass, latlon, data) {
return(map.addMarkerByLatLon(markerClass, latlon, data));
}
function addMarkerByAddress(markerClass, address, data) {
return(map.addMarkerByAddress(markerClass, address, data));
}
function removeMarker(marker) {
map.removeMarker(marker);
}
function removeAllMarkers() {
map.removeAllMarkers();
}
function checkPointWithinBounds(bounds, point) {
return(map.checkPointWithinBounds(bounds, point));
}
function set lat(lat) {
var _local2 = map.getCenter();
map.setCenterByLatLon(new com.yahoo.maps.LatLon(lat, _local2.lon));
//return(this.lat);
}
function get lat() {
return(map.getCenter().__get__lat());
}
function set lon(lon) {
var _local2 = map.getCenter();
map.setCenterByLatLon(new com.yahoo.maps.LatLon(_local2.lat, lon));
//return(this.lon);
}
function get lon() {
return(map.getCenter().__get__lon());
}
static var symbolName = "com.yahoo.maps.api.flash.YahooMap";
static var symbolOwner = com.yahoo.maps.api.flash.YahooMap;
var className = "YahooMap";
static var EVENT_RESIZE = "resize";
static var EVENT_MOVE = "move";
static var EVENT_PAN_START = "panStart";
static var EVENT_PAN_STOP = "panStop";
static var EVENT_ZOOM = "zoom";
static var EVENT_ZOOM_START = "zoomStart";
static var EVENT_ZOOM_STOP = "zoomStop";
static var EVENT_ONCLICK = "onClick";
static var EVENT_ZOOM_END = EVENT_ZOOM_STOP;
static var EVENT_MAP_GEOCODE_ERROR = "mapGeocodeError";
static var EVENT_MAP_GEOCODE_SUCCESS = "mapGeocodeSuccess";
static var EVENT_MAP_TYPE_CHANGED = "mapTypeChanged";
static var EVENT_MARKER_GEOCODE_ERROR = "markerGeocodeError";
static var EVENT_MARKER_GEOCODE_SUCCESS = "markerGeocodeSuccess";
static var EVENT_MARKER_DRAG_START = "markerDragStart";
static var EVENT_MARKER_DRAG_STOP = "markerDragStop";
static var EVENT_MARKER_DRAG = "markerDrag";
static var EVENT_CUSTOM_MARKER_LOADED = "customMarkerLoaded";
static var EVENT_CUSTOM_OVERLAY_LOADED = "customOverlayLoaded";
static var EVENT_OVERLAY_GEOCODE_ERROR = "overlayGeocodeError";
static var EVENT_OVERLAY_GEOCODE_SUCCESS = "overlayGeocodeSuccess";
static var EVENT_INITIALIZE = "initialize";
static var EVENT_TOOL_ADDED = "toolAdded";
static var EVENT_TOOL_REMOVED = "toolRemoved";
static var EVENT_TOOL_CHANGE = "toolChange";
static var EVENT_NAVIGATOR_STATE_CHANGED = "navigatorStateChanged";
static var EVENT_POI_CLICKED = "poiMarkerClicked";
static var EVENT_SET_BOUNDS_COMPLETE = "setBoundsComplete";
static var EVENT_MAPTILES_LOADED = "mapTilesLoaded";
static var EVENT_CUSTOM_WIDGET_LOADED = "customWidgetLoaded";
static var EVENT_WAYPOINTMARKER_ADDED = "waypointMarkerAdded";
static var EVENT_MAP_BASE_INITIALIZE = "mapBaseInitialize";
static var EVENT_CREATION_COMPLETE = "creationComplete";
static var MAP_VIEW = com.yahoo.maps.MapViews.MAP;
static var HYBRID_VIEW = com.yahoo.maps.MapViews.HYBRID;
static var SATELLITE_VIEW = com.yahoo.maps.MapViews.SATELLITE;
}
Symbol 122 MovieClip [__Packages.com.yahoo.maps.AppEvents] Frame 0
class com.yahoo.maps.AppEvents
{
function AppEvents () {
}
static var onResizeAds = "onResize";
static var showOYWayAds = "showOYWayAds";
static var initWayPointWidget = "initWayPointWidget";
static var clickLocalSearchListingItem = "clickLocalSearchListingItem";
static var getDrivingDirectionsFrom = "getDrivingDirectionsFrom";
static var getDrivingDirectionsTo = "getDrivingDirectionsTo";
static var viewPOIs = "viewPOIs";
static var expandPOI = "onExpandPOI";
static var collapsePOI = "onCollapsePOI";
static var clearLocalSearchPOIs = "clearLocalSearchPOIs";
static var onDisplayPOIPoints = "onDisplayPOIPoints";
static var saveLocalSearchListings = "saveLocalSearchListings";
static var panMapDelay = "panMapDelay";
static var dragPOI = "dragPOI";
static var mapViewChange = "mapViewChange";
static var mapTypeChange = "mapTypeChange";
static var addressListChange = "addressListChange";
static var removeLocationItem = "removeLocationItem";
static var addLocationItem = "addLocationItem";
static var reverseLocationItems = "reverseLocationItems";
static var roundTripLocationItems = "roundTripLocationItems";
static var clearLocationItems = "clearLocationItems";
static var highliteSegment = "highliteSegment";
static var rollOverPOI = "rollOverPOI";
static var rollOutPOI = "rollOutPOI";
static var setCenterAndZoom = "onSetCenterAndZoom";
static var setCenterByAddress = "onSetCenterByAddress";
static var setCenterAndZoomComplete = "onSetCenterAndZoomComplete";
static var mapResize = "onMapResize";
static var onPanStart = "panStart";
static var onPan = "onPan";
static var onPanComplete = "onPanComplete";
static var mapRollOver = "mapRollOver";
static var mapRollOut = "mapRollOut";
static var setDrivingDirections = "setDrivingDirections";
static var setSearchResults = "setSearchResults";
static var clearDrivingDirections = "clearDrivingDirections";
static var clearSearchResults = "clearSearchResults";
static var EnableLocalSearch = "onEnableLocalSearch";
static var enableTraffic = "onEnableTraffic";
static var changeMessageBox = "onChangeMessageBox";
static var EVENT_POI_OVER = "poiOver";
static var EVENT_POI_OUT = "poiOut";
static var EVENT_POI_EXPAND = "poiExpand";
static var EVENT_POI_CLOSE = "poiClose";
static var onReleaseNavigatorPuck = "onReleaseNavigatorPuck";
static var showBizPOIs = "showBizPOIs";
static var onUserMapViewChange = "onUserMapViewChange";
static var satelliteControlSelect = "satelliteControlSelect";
static var changeSatelliteControl = "changeSatelliteControl";
static var onReleaseNavigator = "onReleaseNavigator";
static var onMessageBoxButtonPress = "onMessageBoxButtonPress";
static var fixFocusIssue = "fixFocusIssue";
static var onSetMapViewType = "onSetMapViewType";
static var onSetFlexFocus = "onSetFlexFocus";
static var onUserCreatedPointLabel = "onUserCreatedPointLabel";
static var updateMarkerBusiness = "updateMarkerBusiness";
static var scrollDrivingDirectionsToBottom = "scrollDrivingDirectionsToBottom";
static var maximizeLocationPod = "maximizeLocationPod";
static var maximizeSearchPod = "maximizeSearchPod";
static var removeBusyCursor = "removeBusyCursor";
static var closeComboBox = "closeComboBox";
static var initMessageBoxTips = "initMessageBoxTips";
static var initMessageBoxTraffic = "initMessageBoxTraffic";
static var onLocationListFocusIn = "onLocationListFocusIn";
var className = "AppEvents";
}
Symbol 124 MovieClip [__Packages.EchoLogMessageVO] Frame 0
class EchoLogMessageVO
{
var message, error, filterString, timeStamp;
function EchoLogMessageVO (msg, fltrString, err, ts) {
message = msg;
error = err;
filterString = fltrString;
timeStamp = ts;
}
var className = "EchoLogMessageVO";
}
Symbol 125 MovieClip [__Packages.EchoAppConnection] Frame 0
class EchoAppConnection extends LocalConnection
{
static var staticThis;
function EchoAppConnection () {
super();
staticThis = this;
setupConnection("_echoRemote");
}
static function log(logMsg) {
staticThis.send("_echoConsole", "log", logMsg);
}
static function clearTracePanel() {
staticThis.send("_echoConsole", "clearTracePanel");
}
static function inspect(target) {
staticThis.send("_echoConsole", "handleRemoteInspectRequest", target);
}
static function fastWrite(message) {
staticThis.send("_echoConsole", "fastWrite", message);
}
static function setTraceTypeEnabledFlags() {
staticThis.send("_echoConsole", "setTraceTypeEnabledFlags");
}
function doEval(txt) {
var result = eval (txt);
var xmlResult = false;
if (result instanceof XML) {
result = weDoNotDoXmlMessage;
xmlResult = true;
}
var resultTxt = "<root label='";
resultTxt = resultTxt + ((txt + " = ") + result.toString());
resultTxt = resultTxt + "'>";
if (((result instanceof Object) && (!(result instanceof Date))) && (!xmlResult)) {
var items = "";
var tempResult;
for (var i in result) {
tempResult = result[i];
if (tempResult instanceof XML) {
tempResult = weDoNotDoXmlMessage;
}
items = items + (((i + " = ") + tempResult) + "'");
if ((tempResult instanceof Object) && (!(tempResult instanceof Date))) {
items = items + " isBranch='true' ";
items = items + ((((" path='" + txt) + ".") + i) + "'");
}
items = items + newline;
}
var itemsArray = items.split(newline);
itemsArray.sort();
while (itemsArray[0].length < 1) {
itemsArray.shift();
}
if (result.length == undefined) {
var itemsCounter = itemsArray.length;
do {
if (itemsArray[0].charAt(0) >= "a") {
break;
}
itemsArray.push(itemsArray.shift());
} while ((--itemsCounter) != 0);
}
var i = 0;
while (i < itemsArray.length) {
resultTxt = resultTxt + "<node label='";
resultTxt = resultTxt + itemsArray[i];
resultTxt = resultTxt + "/>";
i++;
}
}
resultTxt = resultTxt + "</root>";
staticThis.send("_echoConsole", "processResult", resultTxt);
}
function allowDomain(sendingDomain) {
return(true);
}
function onStatus(infoObject) {
}
function setupConnection(str) {
staticThis.connect(str);
}
function setTraceTypeEnabled(type, enabled) {
switch (type) {
case "info" :
(_local3 || (_local3 = EchoAppConnection)).infoTraceEnabled = enabled;
break;
case "debug" :
(_local3 || (_local3 = EchoAppConnection)).debugTraceEnabled = enabled;
break;
case "error" :
(_local3 || (_local3 = EchoAppConnection)).errorTraceEnabled = enabled;
}
}
static var infoTraceEnabled = true;
static var errorTraceEnabled = true;
static var debugTraceEnabled = true;
var weDoNotDoXmlMessage = "an XML object, which can not be inspected by this tool";
var className = "EchoAppConnection";
}
Symbol 126 MovieClip [__Packages.Echo] Frame 0
class Echo
{
function Echo () {
}
static function enableDebug() {
var _local2 = Echo;
if (_local2.mConnection == undefined) {
if (_root._url.indexOf("EchoConsole.mxml", 0) > -1) {
trace("[Echo] called from console ??? IS THIS EVER CALLED?????????????????????????????");
_local2.mConnection = null;
return(undefined);
}
_local2.mConnection = new EchoAppConnection();
EchoAppConnection.setTraceTypeEnabledFlags();
_local2.connected = true;
_local2.log("Debugging Enabled");
}
}
static function debug(message, fltrString) {
var _local3 = Echo;
if (EchoAppConnection.debugTraceEnabled) {
_local3.log((_local3.kDebug + " ") + message, fltrString, null);
}
}
static function info(message, fltrString) {
var _local3 = Echo;
if (EchoAppConnection.infoTraceEnabled) {
_local3.log((_local3.kInfo + " ") + message, fltrString, null);
}
}
static function error(message, fltrString) {
var _local3 = Echo;
if (EchoAppConnection.errorTraceEnabled) {
_local3.log((_local3.kError + " ") + message, fltrString, null);
}
}
static function log(message, fltrString, e) {
var _local4 = Echo;
if (!_local4.connected) {
_local4.enableDebug();
}
EchoAppConnection.log(new EchoLogMessageVO(message, fltrString, e, getTimer()));
}
static function clearConsole() {
var _local1 = Echo;
if (!_local1.connected) {
_local1.enableDebug();
}
EchoAppConnection.clearTracePanel();
}
static function inspect(target) {
var _local2 = Echo;
if (!_local2.connected) {
_local2.enableDebug();
}
EchoAppConnection.inspect(target);
}
static function fastWrite(message) {
EchoAppConnection.fastWrite(message);
}
static function dump(obj) {
var _local9 = Echo;
var _local8 = "----------------------------------";
var _local4 = newline;
var _local1 = "\t";
var _local3 = (("Begin Dump" + _local4) + _local8) + _local4;
for (var _local7 in obj) {
_local3 = _local3 + ((((_local1 + _local7) + ": ") + obj[_local7]) + _local4);
for (var _local6 in obj[_local7]) {
_local3 = _local3 + (((((_local1 + _local1) + _local6) + ": ") + obj[_local7][_local6]) + _local4);
for (var _local5 in obj[_local7][_local6]) {
_local3 = _local3 + ((((((_local1 + _local1) + _local1) + _local5) + ": ") + obj[_local7][_local6][_local5]) + _local4);
}
}
}
_local3 = _local3 + (("End Dump" + _local8) + _local4);
_local9.log(_local3);
return(_local3);
}
static var kInfo = "[Info]";
static var kDebug = "[Debug]";
static var kError = "[Error]";
static var connected = false;
var className = "Echo";
}
Symbol 127 MovieClip [__Packages.com.yahoo.maps.BeaconCaller] Frame 0
class com.yahoo.maps.BeaconCaller extends MovieClip
{
var _beacon_mc, _clickTracking_mc, _mcl, _isBeaconLoading, createEmptyMovieClip;
function BeaconCaller () {
super();
depth = _root.getNextHighestDepth() || 10000;
_beacon_mc = _root.createEmptyMovieClip("beaconCaller", depth++);
_clickTracking_mc = _root.createEmptyMovieClip("_clickTracking_mc", depth++);
_beacon_mc._visible = false;
_beacon_mc._xscale = 0;
_beacon_mc._yscale = 0;
_mcl = new MovieClipLoader();
_mcl.addListener(this);
_isBeaconLoading = false;
}
static function getInstance() {
var _local1 = com.yahoo.maps.BeaconCaller;
if (!_local1._instance) {
_local1._instance = new com.yahoo.maps.BeaconCaller();
}
return(_local1._instance);
}
function callBeacon(beaconUrl) {
if (beaconUrl != null) {
if (_isBeaconLoading) {
_queue.push(beaconUrl);
} else {
Echo.info("URL: " + beaconUrl);
_mcl.loadClip(beaconUrl, _beacon_mc);
_isBeaconLoading = true;
}
}
}
function onLoadStart(e) {
}
function onLoadError(e, errorCode) {
(_local4 || (_local4 = Echo)).info("!!!!!ERROR!!!!!");
(_local4 || (_local4 = Echo)).info(("------\n " + errorCode) + " \n-----");
(_local4 || (_local4 = Echo)).info("attempting manual call to beacon:...");
callClickTracking(e.target.beaconUrl);
}
function onLoadComplete() {
if (_queue.length > 0) {
_mcl.loadClip(String(_queue.shift()), _beacon_mc);
} else {
_isBeaconLoading = false;
}
}
function callClicklTracking(url) {
callClickTracking(url);
}
function callClickTracking(url) {
var _local2 = _beacon_mc;
if ((_local2 == null) || (_local2 == undefined)) {
_local2 = createEmptyMovieClip("beaconCaller", depth++);
}
_mcl.loadClip(url, _local2);
}
var _queue = new Array();
var depth = 0;
static var symbolOwner = com.yahoo.maps.BeaconCaller;
static var symbolName = "com.yahoo.maps.BeaconCaller";
var className = "BeaconCaller";
}
Symbol 129 MovieClip [__Packages.com.yahoo.maps.DisplayManager] Frame 0
class com.yahoo.maps.DisplayManager
{
function DisplayManager () {
}
static var HIDE_DRIVING_DIRECTIONS = _root.HIDE_DRIVING_DIRECTIONS.toLowerCase() == "true";
static var HIDE_LOCAL_SEARCH = _root.HIDE_LOCAL_SEARCH.toLowerCase() == "true";
static var HIDE_TRAFFIC = _root.HIDE_TRAFFIC.toLowerCase() == "true";
static var HIDE_BIZ_LOCATOR = _root.HIDE_BIZ_LOCATOR.toLowerCase() == "true";
static var HIDE_TIPS_ENGINE = _root.HIDE_TIPS_ENGINE.toLowerCase() == "true";
static var HIDE_BROADBAND_TOUR = _root.HIDE_BROADBAND_TOUR.toLowerCase() == "true";
static var HIDE_SEND_TO_PHONE = _root.HIDE_SEND_TO_PHONE.toLowerCase() == "true";
static var HIDE_REFINE_SEARCH = _root.HIDE_REFINE_SEARCH.toLowerCase() == "true";
static var HIDE_ULM = _root.HIDE_ULM.toLowerCase() == "true";
var className = "DisplayManager";
}
Symbol 130 MovieClip [__Packages.com.yahoo.maps.EventController] Frame 0
class com.yahoo.maps.EventController
{
var dispatchEvent;
function EventController () {
mx.events.EventDispatcher.initialize(this);
}
static function getInstance() {
var _local1 = com.yahoo.maps.EventController;
if (_local1.instance == undefined) {
_local1.instance = new com.yahoo.maps.EventController();
}
return(_local1.instance);
}
function sendEvent(sendee, event, data) {
var _local2 = new Object();
_local2.type = event;
_local2.sendee = sendee;
_local2.data = data;
dispatchEvent(_local2);
(_local6 || (_local6 = com.yahoo.maps.PrintableMapProxy)).getInstance().sendEvent(_local2);
}
function handleEvent(eventObject) {
dispatchEvent(eventObject);
}
var className = "EventController";
}
Symbol 131 MovieClip [__Packages.com.yahoo.maps.Labels] Frame 0
class com.yahoo.maps.Labels
{
function Labels () {
}
static var LABEL_PREPEND = "\u2022";
static var SEND = _root.SEND;
static var LIVE_TRAFFIC = _root.LIVE_TRAFFIC;
static var DIRECTIONS = _root.DIRECTIONS;
static var LOCATIONS = _root.LOCATIONS;
static var LOCATIONS_COMBOBOX_TOOLTIP = _root.LOCATIONS_COMBOBOX_TOOLTIP;
static var CLEAR = _root.CLEAR;
static var TRAFFIC_CHECKED_TOOLTIP = _root.TRAFFIC_CHECKED_TOOLTIP;
static var TRAFFIC_UNCHECKED_TOOLTIP = _root.TRAFFIC_UNCHECKED_TOOLTIP;
static var REVERSE_DIRECTIONS = _root.REVERSE_DIRECTIONS;
static var ROUND_TRIP = _root.ROUND_TRIP;
static var TOTAL_DISTANCE = _root.TOTAL_DISTANCE;
static var TOTAL_TRAVEL_TIME = _root.TOTAL_TRAVEL_TIME;
static var SHOW_ON_MAP = _root.SHOW_ON_MAP;
static var FIND_ON_THIS_MAP = _root.FIND_ON_THIS_MAP;
static var SEARCH = _root.SEARCH;
static var OK = _root.OK;
static var CANCEL = _root.CANCEL;
static var MILES = _root.MILES;
static var MINUTES = _root.MINUTES;
static var HOURS = _root.HOURS;
static var SEARCH_RESULTS = _root.SEARCH_RESULTS;
static var OF = _root.OF;
static var SAVE = _root.SAVE;
static var DIRECTIONS_TO = _root.DIRECTIONS_TO;
static var DIRECTIONS_FROM = _root.DIRECTIONS_FROM;
static var ZERO_SEARCH_RESULTS = _root.ZERO_SEARCH_RESULTS;
static var BROWSE_BY_CATEGORY = _root.BROWSE_BY_CATEGORY;
static var TT_CATEGORY_SEARCH = (("<b>" + _root.TT_CATEGORY_SEARCH_TITLE) + "</b>\n") + _root.TT_CATEGORY_SEARCH_TEXT;
static var FIND_RESTAURANTS_HOTELS = _root.FIND_RESTAURANTS_HOTELS;
static var ENTER_AN_ADDRESS = _root.ENTER_AN_ADDRESS;
static var SELECT = _root.SELECT;
static var PREVIOUS = _root.PREVIOUS;
static var NEXT = _root.NEXT;
static var RESULTS = _root.RESULTS;
static var DISTANCE = _root.DISTANCE;
static var TRAVEL_TIME = _root.TRAVEL_TIME;
static var APPROX = _root.APPROX;
static var HRS = _root.HRS;
static var MINS = _root.MINS;
static var TIME = _root.TIME;
static var RESULTS_PER_PAGE = _root.RESULTS_PER_PAGE;
static var REFINE = _root.REFINE;
static var REFINE_THESE_RESULTS = _root.REFINE_THESE_RESULTS;
static var SHOW_ALL = _root.SHOW_ALL;
static var MORE_INFO = _root.MORE_INFO;
static var ZOOM_TO_POINT = _root.ZOOM_TO_POINT;
static var VIEW_DETAILED_RESULTS_LIST = _root.VIEW_DETAILED_RESULTS_LIST;
static var LOCAL_SEARCH_ATTRIBUTION = _root.LOCAL_SEARCH_ATTRIBUTION;
static var PHONE = _root.PHONE;
static var SEARCHING = _root.SEARCHING;
static var RATE_IT = _root.RATE_IT;
static var SAVE_TO_MY_WEB = _root.SAVE_TO_MY_WEB;
static var ADD_TO_MY_YAHOO = _root.ADD_TO_MY_YAHOO;
static var ENTER_SEARCH_TERM = _root.ENTER_SEARCH_TERM;
static var MAXIMUM_POINTS = _root.MAXIMUM_POINTS;
static var UNAVAILABLE = _root.UNAVAILABLE;
static var SELECT_A_LOCATION = _root.SELECT_A_LOCATION;
static var DEFAULT_LOCATION = _root.DEFAULT_LOCATION;
static var DRIVE_FROM_HERE = _root.DRIVE_FROM_HERE;
static var DRIVE_TO_HERE = _root.DRIVE_TO_HERE;
static var USER_CREATED_POINT = _root.USER_CREATED_POINT;
static var CREATE = _root.CREATE;
static var MAP = _root.MAP_LABEL;
static var SATELLITE = _root.SATELLITE_LABEL;
static var HYBRID = _root.HYBRID_LABEL;
static var ENTER_STARTING_ADDRESS = _root.ENTER_STARTING_ADDRESS;
static var LATITUDE = _root.LATITUDE;
static var LONGITUDE = _root.LONGITUDE;
static var ENTER_TITLE_HERE = _root.ENTER_TITLE_HERE;
static var ALWAYS_USE_THIS_BUSINESS = _root.ALWAYS_USE_THIS_BUSINESS;
static var PROCEED_WITHOUT = _root.PROCEED_WITHOUT;
static var CLASSIC_MAPS = _root.CLASSIC_MAPS;
static var SEND_TO_PHONE = _root.SEND_TO_PHONE;
static var SEND_BY_EMAIL = _root.SEND_BY_EMAIL;
static var SELECT_A_BUSINESS = ((("<font size='12'><b>" + _root.SELECT_A_BUSINESS_HEADER) + "</b></font><br><font size='10'>") + _root.SELECT_A_BUSINESS_TEXT) + "</font>";
static var LOCATION_NOT_FOUND = ((((((("<font size='12'><b>" + _root.LOCATION_NOT_FOUND_HEADER) + "</b></font><br><br><font size='10'>") + _root.TIPS) + "<li>") + _root.LOCATION_NOT_FOUND_TIP1) + "</li><li>") + _root.LOCATION_NOT_FOUND_TIP2) + "</li></font>";
static var CHOOSE_THE_CORRECT_ADDRESS = ((("<font size='12'><b>" + _root.CHOOSE_THE_CORRECT_ADDRESS_HEADER) + "</b></font><br><font size='10'>") + _root.CHOOSE_THE_CORRECT_ADDRESS_TEXT) + "</font>";
static var INDETERMINABLE_DRIVING_DIRECTIONS = ("<font size='11'>" + _root.INDETERMINABLE_DRIVING_DIRECTIONS) + "<font size='11'>";
static var LOCAL_SEARCH_AMBIGUOUS_LOCATION = ((("<font size='12'><b>" + _root.LOCAL_SEARCH_AMBIGUOUS_LOCATION_HEADER) + "</b></font><br><font size='10'>") + _root.LOCAL_SEARCH_AMBIGUOUS_LOCATION_TEXT) + "</font>";
static var YCAT2GC_FILTER = _root.YCAT2GC_FILTER;
static var RATINGFGC_FILTER = _root.RATINGFGC_FILTER;
static var GO = _root.GO;
static var MI = _root.MI;
static var RECENT_LOCATIONS = _root.RECENT_LOCATIONS;
static var SAVED_LOCATIONS = _root.SAVED_LOCATIONS;
static var SAVE_EDIT_LOCATIONS = _root.SAVE_EDIT_LOCATIONS;
static var CLEAR_RECENT_LOCATIONS = _root.CLEAR_RECENT_LOCATIONS;
static var WHATS_THIS = _root.WHATS_THIS;
static var PRINT = _root.PRINT;
static var EMAIL_YOUR_MESSAGE = _root.EMAIL_YOUR_MESSAGE;
static var EMAIL_YOUR_NAME = _root.EMAIL_YOUR_NAME;
static var EMAIL_YOUR_EMAIL = _root.EMAIL_YOUR_EMAIL;
static var EMAIL_TO = _root.EMAIL_TO;
static var EMAIL_REQUIRED_FIELDS = _root.EMAIL_REQUIRED_FIELDS;
static var EMAIL_SEPERATE_ADDRESSES = _root.EMAIL_SEPERATE_ADDRESSES;
static var EMAIL_INSERT_FROM = _root.EMAIL_INSERT_FROM;
static var EMAIL_SEND_ME_COPY = _root.EMAIL_SEND_ME_COPY;
static var EMAIL_TITLE_STRING = _root.EMAIL_TITLE_STRING;
static var PHONE_TITLE_STRING = _root.PHONE_TITLE_STRING;
static var PHONE_TO = _root.PHONE_TO;
static var PHONE_FROM = _root.PHONE_FROM;
static var PHONE_EXAMPLE = _root.PHONE_EXAMPLE;
static var PHONE_NOTE = _root.PHONE_NOTE;
static var SUCCESS_TEXT_SEND = _root.SUCCESS_TEXT_SEND;
static var SUCCESS_TEXT_FROM = _root.SUCCESS_TEXT_FROM;
static var SUCCESS_TEXT_TO = _root.SUCCESS_TEXT_TO;
static var REGISTER_PHONE = _root.REGISTER_PHONE;
static var LEARN_MORE_PHONE = _root.LEARN_MORE_PHONE;
static var ENTER_YOUR_EMAIL = _root.ENTER_YOUR_EMAIL;
static var NO_RECENT_PHONE_NUMBERS = _root.NO_RECENT_PHONE_NUMBERS;
static var UNABLE_TO_SEND_TO_PHONE = _root.UNABLE_TO_SEND_TO_PHONE;
static var TO = _root.TO;
static var ERROR_EMAIL = _root.ERROR_EMAIL;
static var ERROR_PHONE = _root.ERROR_PHONE;
static var ERROR_VERIZON = _root.ERROR_VERIZON;
static var SPLASH_HEADER = _root.SPLASH_HEADER;
static var SPLASH_TITLE = _root.SPLASH_TITLE;
static var SPLASH_LEAD = ("<font size='12'>" + _root.SPLASH_LEAD) + "</font>";
static var SPLASH_BODY1 = ("<font size='12'><ul><li>" + _root.SPLASH_BODY1) + "</li></ul></font>";
static var SPLASH_BODY2 = ("<font size='12'><ul><li>" + _root.SPLASH_BODY2) + "</li></ul></font>";
static var SPLASH_BODY3 = ("<font size='12'><ul><li>" + _root.SPLASH_BODY3) + "</li></ul></font>";
static var SPLASH_CLASSIC = ("<font size='11'>" + _root.SPLASH_CLASSIC) + "</font>";
static var SPLASH_BUTTON = _root.SPLASH_BUTTON;
static var DONT_SHOW_AGAIN = _root.DONT_SHOW_AGAIN;
static var CLOSE = _root.CLOSE;
static var LOADER_HEADER = _root.LOADER_HEADER;
static var LOADER_INITIALIZING = _root.LOADER_INITIALIZING;
static var GO_BACK = _root.GO_BACK;
static var HELP = _root.HELP;
static var BROADBAND_TOUR = _root.BROADBAND_TOUR;
static var MAPS_HELP = _root.MAPS_HELP;
static var MAPS_FEEDBACK = _root.MAPS_FEEDBACK;
static var TERMS_OF_USE = _root.TERMS_OF_USE;
static var PRIVACY_POLICY = _root.PRIVACY_POLICY;
static var TERMS_OF_SERVICE = _root.TERMS_OF_SERVICE;
static var TIPS_TRICKS = _root.TIPS_TRICKS;
static var DEVELOPER_NETWORK = _root.DEVELOPER_NETWORK;
static var ZB_COUNTRY = _root.ZB_COUNTRY;
static var ZB_STATE = _root.ZB_STATE;
static var ZB_CITY = _root.ZB_CITY;
static var ZB_STREET = _root.ZB_STREET;
static var COPYRIGHT_DATE = _root.COPYRIGHT_DATE;
static var COPYRIGHT_YAHOO = _root.COPYRIGHT_YAHOO;
static var COPYRIGHT_DATA = _root.COPYRIGHT_DATA;
static var IMAGERY_COPYRIGHT = _root.IMAGERY_COPYRIGHT;
static var MSGBOX_TIPS_TITLE = _root.MSGBOX_TIPS_TITLE;
static var MSGBOX_TRAFFIC_TITLE = _root.MSGBOX_TRAFFIC_TITLE;
static var BIZBAR_TITLE = _root.BIZBAR_TITLE;
var className = "Labels";
}
Symbol 133 MovieClip [__Packages.com.yahoo.maps.PrintableMapProxy] Frame 0
class com.yahoo.maps.PrintableMapProxy
{
var _session, _printLcID, _lc, _lcInit, _wlc, _rlc, _isIE, _isWIN, _dataService, _locationView, _locationList, _poiData, _mapViewType, __get__isRecalculateZoom;
function PrintableMapProxy () {
_session = (_local7 || (_local7 = com.macromedia.mc.platform.Session)).getInstance();
_printLcID = String(_session.getAttribute("printLcID"));
_lc = new LocalConnection();
_lcInit = new LocalConnection();
_lcInit.setValidConnection = (_local6 || (_local6 = mx.utils.Delegate)).create(this, setValidConnection);
_lcInit.connect("initPrintableMap" + _printLcID);
_wlc = new LocalConnection();
_rlc = new LocalConnection();
_rlc.setValidConnection = (_local6 || (_local6 = mx.utils.Delegate)).create(this, setValidConnection);
_rlc.connect("printableMapProxy" + _printLcID);
_isIE = (_local9 || (_local9 = System.capabilities)).playerType.indexOf("ActiveX") != -1;
_isWIN = (_local9 || (_local9 = System.capabilities)).os.indexOf("Windows") != -1;
_dataService = com.yahoo.maps.DataService.getInstance();
_dataService.addEventListener("onGetLocalSearch", this);
_dataService.addEventListener("onGetSmartView", this);
_dataService.addEventListener("onGetMap", this);
var _local2 = (_local5 || (_local5 = com.yahoo.maps.EventController)).getInstance();
_local2.addEventListener((_local4 || (_local4 = com.yahoo.maps.AppEvents)).clearDrivingDirections, this);
_local2.addEventListener((_local4 || (_local4 = com.yahoo.maps.AppEvents)).clearSearchResults, this);
_locationView = null;
_locationList = new Array();
_poiData = null;
switch ((_local3 || (_local3 = com.yahoo.maps.flex.HistoryManager)).getInstance().loadStateObj.mvt) {
case "h" :
_mapViewType = (_local8 || (_local8 = com.yahoo.maps.MapViews)).HYBRID;
break;
case "s" :
_mapViewType = (_local8 || (_local8 = com.yahoo.maps.MapViews)).SATELLITE;
break;
default :
_mapViewType = (_local8 || (_local8 = com.yahoo.maps.MapViews)).MAP;
}
}
function onGetMap() {
_isRecalculateZoom = false;
}
function setValidConnection(type) {
if (_locationView.lat != undefined) {
updatePrintableMap(_locationView.lat, _locationView.lon, _locationView.zoom, _locationView.width, _locationView.height);
}
var _local7 = ((type == "print") ? "printableMapWin" : "printableMap") + _printLcID;
_wlc.send(_local7, "handleSendEvent", {type:com.yahoo.maps.AppEvents.satelliteControlSelect, data:{mapViewType:_mapViewType}});
_wlc.send(_local7, "handleSendEvent", {type:"recalculateZoom", data:_isRecalculateZoom});
var _local4 = _session.getAttribute("appshell").drivingDirectionsOverlay;
var _local8 = _local4.addresses.length;
var _local3 = 0;
while (_local3 < _local8) {
var _local2 = new Object();
_local2.address = _local4.addresses[_local3];
_local2.bounds = _local4.bounds[_local3];
_local2.index = _local3;
_local2.update = true;
_local2.fullStreet = _local4.addresses[_local3].fullStreet;
_wlc.send(_local7, "handleSendEvent", {type:"addLocationItem", data:_local2});
_local3++;
}
if (_locationView.lat != undefined) {
updatePrintableMap(_locationView.lat, _locationView.lon, _locationView.zoom, _locationView.width, _locationView.height);
}
if (_poiData.handler != null) {
_wlc.send(_local7, "handleProxyEvent", _poiData.handler, _poiData.xml);
}
}
function set isRecalculateZoom(b) {
_isRecalculateZoom = b;
//return(__get__isRecalculateZoom());
}
static function getInstance() {
var _local1 = com.yahoo.maps.PrintableMapProxy;
if (_local1._instance == undefined) {
_local1._instance = new com.yahoo.maps.PrintableMapProxy();
}
return(_local1._instance);
}
function proxyEvent(handler, xml) {
if ((handler == "onGetLocalSearch") || (handler == "onGetSmartView")) {
_poiData = {handler:handler, xml:xml};
_lc.send("printableMap" + _printLcID, "handleProxyEvent", handler, xml);
}
}
function sendEvent(event) {
var _local3 = event.type;
if ((((((((((((((_local3 != "highliteSegment") && (_local3 != "mapRollOver")) && (_local3 != "mapRollOut")) && (_local3 != "onEnableLocalSearch")) && (_local3 != "rollOutPOI")) && (_local3 != "rollOverPOI")) && (_local3 != "onExpandPOI")) && (_local3 != "onCollapsePOI")) && (_local3 != "setSearchResults")) && (_local3 != "onReleaseNavigatorPuck")) && (_local3 != "mapViewChange")) && (_local3 != "addressListChange")) && (_local3 != "setDrivingDirections")) && (_local3 != "onSetCenterAndZoom")) {
if ((event.type == "onPan") || (event.type == "onUserMapViewChange")) {
_isRecalculateZoom = false;
}
_lc.send("printableMap" + _printLcID, "handleSendEvent", {type:event.type, data:(_local5 || (_local5 = com.yahoo.maps.PrintableMapProxy)).deepCopy(event.data)});
if (_local3 == com.yahoo.maps.AppEvents.satelliteControlSelect) {
_mapViewType = event.data.mapViewType;
}
}
}
function clearDrivingDirections(evnet) {
_locationList = new Array();
callJS("swf_hasDrivingDirections", "false");
callJS("swf_updateDrivingDirections", " ");
}
function clearSearchResults(event) {
_poiData = null;
callJS("swf_updatePois", "");
}
function onGetLocalSearch(event) {
var _local2 = com.yahoo.maps.data.LocalSearch(event.data);
var _local3 = getFormattedPOIs(_local2.items);
callJS("swf_updatePois", _local3);
}
function onGetSmartView(event) {
var _local2 = com.yahoo.maps.data.SmartView(event.data);
var _local3 = getFormattedPOIs(_local2);
callJS("swf_updatePois", _local3);
}
function getFormattedPOIs(args) {
var _local7 = "";
var _local8 = false;
var _local6 = "";
var _local5 = Math.ceil(args.length / 2);
var _local4 = "<table class=\"ymappoi\">";
var _local2 = 0;
while (_local2 < _local5) {
_local4 = _local4 + getPOICell(args[_local2], _local2 + 1);
_local2++;
}
_local4 = _local4 + "</table>";
_local4 = _local4 + "<table class=\"ymappoi\">";
_local2 = _local5;
while (_local2 < args.length) {
_local4 = _local4 + getPOICell(args[_local2], _local2 + 1);
_local2++;
}
_local4 = _local4 + "</table>";
return(_local4);
}
function getPOICell(poi, index) {
var _local5 = ((index > 9) ? " " : "");
var _local1 = "";
if (poi != undefined) {
switch (Number(poi.rating)) {
case 0.5 :
_local1 = "<img src=\"http://us.i1.yimg.com/us.yimg.com/i/us/ls/gr/read_star_half.gif\" alt=\".5 star out of 5 stars\" class=\"ymappoirate\">";
break;
case 1 :
_local1 = "<img src=\"http://us.i1.yimg.com/us.yimg.com/i/us/ls/gr/read_star_1.gif\" alt=\"1 star out of 5 stars\" class=\"ymappoirate\">";
break;
case 1.5 :
_local1 = "<img src=\"http://us.i1.yimg.com/us.yimg.com/i/us/ls/gr/read_star_1half.gif\" alt=\"1.5 stars out of 5 stars\" class=\"ymappoirate\">";
break;
case 2 :
_local1 = "<img src=\"http://us.i1.yimg.com/us.yimg.com/i/us/ls/gr/read_star_2.gif\" alt=\"2 stars out of 5 stars\" class=\"ymappoirate\">";
break;
case 2.5 :
_local1 = "<img src=\"http://us.i1.yimg.com/us.yimg.com/i/us/ls/gr/read_star_2half.gif\" alt=\"2.5 stars out of 5 stars\" class=\"ymappoirate\">";
break;
case 3 :
_local1 = "<img src=\"http://us.i1.yimg.com/us.yimg.com/i/us/ls/gr/read_star_3.gif\" alt=\"3 stars out of 5 stars\" class=\"ymappoirate\">";
break;
case 3.5 :
_local1 = "<img src=\"http://us.i1.yimg.com/us.yimg.com/i/us/ls/gr/read_star_3half.gif\" alt=\"3.5 stars out of 5 stars\" class=\"ymappoirate\">";
break;
case 4 :
_local1 = "<img src=\"http://us.i1.yimg.com/us.yimg.com/i/us/ls/gr/read_star_4.gif\" alt=\"4 stars out of 5 stars\" class=\"ymappoirate\">";
break;
case 4.5 :
_local1 = "<img src=\"http://us.i1.yimg.com/us.yimg.com/i/us/ls/gr/read_star_4half.gif\" alt=\"4.5 stars out of 5 stars\" class=\"ymappoirate\">";
break;
case 5 :
_local1 = "<img src=\"http://us.i1.yimg.com/us.yimg.com/i/us/ls/gr/read_star_5.gif\" alt=\"5 stars out of 5 stars\" class=\"ymappoirate\">";
break;
}
var _local3 = ("<tr><td class=\"id\">" + index) + ".</td>";
_local3 = _local3 + ((("<td class=\"desc\"><address>" + poi.title) + _local1) + "<br>");
var _local4 = (((poi.addr != null) ? (poi.addr + ", ") : "") + (poi.city ? (poi.city + ", ") : "")) + (poi.state ? (poi.state) : "");
if (_local4) {
_local3 = _local3 + (_local4 + "<br>");
}
_local3 = _local3 + (poi.phone ? ("Phone: " + poi.phone) : "");
_local3 = _local3 + "</address></td></tr>";
return(_local3);
}
return("");
}
function updatePrintableMap(lat, lon, zoom, width, height) {
_lc.send("printableMap" + _printLcID, "updateMap", lat, lon, zoom, width, height, _isRecalculateZoom);
_wlc.send("printableMapWin" + _printLcID, "updateMap", lat, lon, zoom, width, height, _isRecalculateZoom);
if (_locationView == null) {
_locationView = new Object();
_locationView.type = "updateMap";
}
_locationView.lat = lat;
_locationView.lon = lon;
_locationView.zoom = zoom;
_locationView.width = width;
_locationView.height = height;
}
function updateDrivingDirections(locations, points) {
if (locations.length > 2) {
callJS("swf_hasDrivingDirections", "true");
} else {
callJS("swf_hasDrivingDirections", "false");
}
var _local20 = 0;
var _local21 = 0;
var _local14 = locations.length - 1;
var _local9 = "<table cellspacing=\"0\" id=\"ymaproute\">";
var _local11 = 0;
while (_local11 < _local14) {
var _local5 = locations[_local11];
var _local13 = _local5.business.title || "";
var _local19 = _local5.business.phone || "";
var _local18 = Number(_local5.business.rating);
var _local6 = "";
switch (_local18) {
case 0.5 :
_local6 = "<img src=\"http://us.i1.yimg.com/us.yimg.com/i/us/ls/gr/read_star_half.gif\" alt=\".5 star out of 5 stars\" class=\"ymapprate\">";
break;
case 1 :
_local6 = "<img src=\"http://us.i1.yimg.com/us.yimg.com/i/us/ls/gr/read_star_1.gif\" alt=\"1 star out of 5 stars\" class=\"ymapprate\">";
break;
case 1.5 :
_local6 = "<img src=\"http://us.i1.yimg.com/us.yimg.com/i/us/ls/gr/read_star_1half.gif\" alt=\"1.5 stars out of 5 stars\" class=\"ymapprate\">";
break;
case 2 :
_local6 = "<img src=\"http://us.i1.yimg.com/us.yimg.com/i/us/ls/gr/read_star_2.gif\" alt=\"2 stars out of 5 stars\" class=\"ymapprate\">";
break;
case 2.5 :
_local6 = "<img src=\"http://us.i1.yimg.com/us.yimg.com/i/us/ls/gr/read_star_2half.gif\" alt=\"2.5 stars out of 5 stars\" class=\"ymapprate\">";
break;
case 3 :
_local6 = "<img src=\"http://us.i1.yimg.com/us.yimg.com/i/us/ls/gr/read_star_3.gif\" alt=\"3 stars out of 5 stars\" class=\"ymapprate\">";
break;
case 3.5 :
_local6 = "<img src=\"http://us.i1.yimg.com/us.yimg.com/i/us/ls/gr/read_star_3half.gif\" alt=\"3.5 stars out of 5 stars\" class=\"ymapprate\">";
break;
case 4 :
_local6 = "<img src=\"http://us.i1.yimg.com/us.yimg.com/i/us/ls/gr/read_star_4.gif\" alt=\"4 stars out of 5 stars\" class=\"ymapprate\">";
break;
case 4.5 :
_local6 = "<img src=\"http://us.i1.yimg.com/us.yimg.com/i/us/ls/gr/read_star_4half.gif\" alt=\"4.5 stars out of 5 stars\" class=\"ymapprate\">";
break;
case 5 :
_local6 = "<img src=\"http://us.i1.yimg.com/us.yimg.com/i/us/ls/gr/read_star_5.gif\" alt=\"5 stars out of 5 stars\" class=\"ymapprate\">";
break;
}
var _local15 = points[_local11];
var _local16 = getLetterImage(_local15);
_local9 = _local9 + "<tr>";
_local9 = _local9 + (("<th class=\"ymappt\">" + _local16) + "</th>");
_local9 = _local9 + "<th class=\"ymappaddress\">";
if (_local13) {
_local9 = _local9 + (((((_local13 + " ") + _local19) + " ") + _local6) + "<br>");
}
_local9 = _local9 + (((_local5.approximateAddress == null) || (_local5.approximateAddress == "")) ? (_local5.address) : (_local5.approximateAddress));
_local9 = _local9 + "</th></tr>";
if (_local11 == (_local14 - 1)) {
break;
}
var _local12 = _local5.directions;
var _local7 = 0;
while (_local7 < _local12.length) {
var _local8 = _local12[_local7];
var _local10 = "";
if (_local8.__get__miles()) {
_local10 = ((((" - <b>" + (_local27 || (_local27 = com.yahoo.maps.Labels)).GO) + " ") + _local8.__get__miles()) + "</b> ") + (_local26 || (_local26 = com.yahoo.maps.Config)).getInstance().__get__DD_DIST_UNIT();
}
var _local3 = _local8.description.split(" ");
for (var _local17 in _local3) {
var _local2 = _local3[_local17];
var _local4 = "";
if ((_local2 == "Right") || (_local2 == "Left")) {
if (_local2 == "Right") {
_local4 = " <img src=\"http://us.i1.yimg.com/us.yimg.com/i/us/mp/gr/mp22_r.gif\" border=\"0\" class=\"ymapturns\">";
} else if (_local2 == "Left") {
_local4 = " <img src=\"http://us.i1.yimg.com/us.yimg.com/i/us/mp/gr/mp22_l.gif\" border=\"0\" class=\"ymapturns\">";
}
_local3[_local17] = ((_local4 + "<b class=\"ymapphidden\">") + _local2) + "</b>";
}
if (_local2 == _local2.toUpperCase()) {
_local3[_local17] = ("<b>" + _local2) + "</b>";
}
}
_local9 = _local9 + ((((("<tr><td class\"ymapb\">" + (_local7 + 1)) + ".</td><td>") + _local3.join(" ")) + _local10) + "</td></tr>");
_local7++;
}
_local20 = _local20 + _local5.totalTime;
_local21 = _local21 + _local5.totalDistance;
if (_local14 != 2) {
_local9 = _local9 + (((((((((("<tr><td class=\"ymapb\"> </td><td class=\"ymappdist\">" + (_local27 || (_local27 = com.yahoo.maps.Labels)).DISTANCE) + ": ") + _local5.totalDistance) + " ") + (_local26 || (_local26 = com.yahoo.maps.Config)).getInstance().__get__DD_TOTAL_DIST_UNIT()) + ", ") + (_local27 || (_local27 = com.yahoo.maps.Labels)).TRAVEL_TIME) + ": ") + getHoursMinutesText(_local5.totalTime)) + "</td></tr>");
}
_local11++;
}
var _local25 = "";
if (_local21 != 0) {
_local25 = (((((_local27 || (_local27 = com.yahoo.maps.Labels)).TOTAL_DISTANCE + ": ") + _local21) + " ") + (_local26 || (_local26 = com.yahoo.maps.Config)).getInstance().__get__DD_TOTAL_DIST_UNIT()) + ", ";
}
var _local24 = "";
if (_local20 != 0) {
_local24 = ((_local27 || (_local27 = com.yahoo.maps.Labels)).TOTAL_TRAVEL_TIME + ": ") + getHoursMinutesText(_local20);
}
_local9 = _local9 + ((("<tr><td class=\"ymapptotaldist\"> </td><td class=\"ymapptotaldist\">" + _local25) + _local24) + "</td></tr>");
_local9 = _local9 + "</table>";
callJS("swf_updateDrivingDirections", _local9);
}
function getLetterImage(letter) {
return(((("<img src=\"http://us.i1.yimg.com/us.yimg.com/i/us/map/gr/p/" + letter.toLowerCase()) + "_pic.gif\" alt=\"") + letter.toUpperCase()) + ".\">");
}
function getHoursMinutesText(minutes) {
var _local2 = Math.floor(minutes / 60);
minutes = minutes % 60;
return(((((_local2 == 0) ? "" : (((_local2 + " ") + (_local3 || (_local3 = com.yahoo.maps.Labels)).HOURS) + " ")) + minutes) + " ") + (_local3 || (_local3 = com.yahoo.maps.Labels)).MINUTES);
}
function setPrintMode(mode) {
if (mode == "map") {
callJS("swf_printMapTextOnly", "false");
} else if (mode == "text") {
callJS("swf_printMapTextOnly", "true");
}
_dataService.trackState("print");
_dataService.submitTrackStates();
}
function callJS(name, args) {
if (_root.isPrintableMap == "true") {
return(undefined);
}
args = args.split("'").join("’");
if ((_isIE && (_isWIN)) && (name != "swf_printMapTextOnly")) {
fscommand (name, args);
} else {
getURL (((("javascript:" + name) + "('") + escape(args)) + "');");
}
}
static function deepCopy(obj, alreadyProcessed, copies) {
var _local9 = com.yahoo.maps.PrintableMapProxy;
if (alreadyProcessed == null) {
alreadyProcessed = {};
copies = {};
}
if (alreadyProcessed.list == undefined) {
alreadyProcessed.list = [];
copies.list = [];
}
var _local1 = 0;
while (_local1 < alreadyProcessed.list.length) {
if (obj === alreadyProcessed.list[_local1]) {
return(copies.list[_local1]);
}
_local1++;
}
alreadyProcessed.list.push(obj);
var _local8 = typeof(obj);
var _local6;
switch (_local8) {
case "number" :
_local6 = Number(obj);
copies.list.push(_local6);
return(_local6);
case "string" :
_local6 = obj;
copies.list.push(_local6);
return(_local6);
case "boolean" :
_local6 = obj;
copies.list.push(_local6);
return(_local6);
case "array" :
return(_local9.deepCopyArray(obj, alreadyProcessed, copies));
}
if (obj instanceof Date) {
_local6 = new Date(obj.getTime());
copies.list.push(_local6);
return(_local6);
}
if (obj instanceof Array) {
return(_local9.deepCopyArray(obj, alreadyProcessed, copies));
}
var _local5 = new obj.constructor();
copies.list.push(_local5);
for (var _local7 in obj) {
if (_local7.length > 11) {
if (_local7.indexOf("__watcher__") != 0) {
_local5[_local7] = _local9.deepCopy(obj[_local7], alreadyProcessed, copies);
}
} else {
_local5[_local7] = _local9.deepCopy(obj[_local7], alreadyProcessed, copies);
}
}
return(_local5);
}
static function deepCopyArray(arr, alreadyProcessed, copies) {
var _local7 = com.yahoo.maps.PrintableMapProxy;
var _local3 = new Array(arr.length);
copies.list.push(_local3);
var _local1 = 0;
while (_local1 < arr.length) {
_local3[_local1] = _local7.deepCopy(arr[_local1], alreadyProcessed, copies);
_local1++;
}
for (var _local6 in arr) {
_local3[_local6] = _local7.deepCopy(arr[_local6], alreadyProcessed, copies);
}
return(_local3);
}
var _isRecalculateZoom = true;
var className = "PrintableMapProxy";
}
Symbol 135 MovieClip [__Packages.com.yahoo.maps.XMLParser] Frame 0
class com.yahoo.maps.XMLParser
{
function XMLParser () {
}
static function xmlNodesToArray(node) {
var _local4 = com.yahoo.maps.XMLParser;
var _local3 = new Array();
node = node.firstChild;
var _local2;
while (node != null) {
_local2 = _local4.xmlAttributesToObject(new Object(), node);
_local2.label = node.firstChild.nodeValue;
_local3.push(_local2);
node = node.nextSibling;
}
return(_local3);
}
static function xmlAttributesToObject(o, node) {
var _local1 = node.attributes;
for (var _local3 in _local1) {
if (_local3 == "name") {
o["__" + _local3] = _local1[_local3];
} else {
o["_" + _local3] = _local1[_local3];
}
}
return(o);
}
static function xmlNodesToObject(o, node) {
var _local1 = node.firstChild;
while (_local1 != null) {
if (_local1.nodeName == "name") {
o["__" + _local1.nodeName] = _local1.firstChild.nodeValue;
} else {
o["_" + _local1.nodeName] = _local1.firstChild.nodeValue;
}
_local1 = _local1.nextSibling;
}
return(o);
}
var className = "XMLParser";
}
Symbol 138 MovieClip [__Packages.com.yahoo.maps.data.AddressBookLocation] Frame 0
class com.yahoo.maps.data.AddressBookLocation extends Object
{
var _addr, _city, _state, _zip;
function AddressBookLocation (x) {
super();
com.yahoo.maps.XMLParser.xmlAttributesToObject(this, x);
}
function get address() {
return(_addr);
}
function get city() {
return(_city);
}
function get state() {
return(_state);
}
function get zip() {
return(_zip);
}
function toString() {
var _local2 = ((((address == null) ? "" : (address + ",")) + ((city == null) ? "" : (city + ","))) + ((state == null) ? "" : (state + ","))) + ((zip == null) ? "" : (zip));
if (_local2.lastIndexOf(",") == (_local2.length - 1)) {
_local2 = _local2.slice(0, _local2.length - 2);
}
return(_local2.split(" ").join("+"));
}
var className = "AddressBookLocation";
}
Symbol 142 MovieClip [__Packages.com.yahoo.maps.data.BIZs] Frame 0
class com.yahoo.maps.data.BIZs extends Array
{
var push;
function BIZs (x) {
super();
var _local3 = x.firstChild.firstChild;
while (_local3 != null) {
if (_local3.nodeName == "AD") {
var _local4 = new com.yahoo.maps.data.BIZ(_local3);
push(_local4);
}
_local3 = _local3.nextSibling;
}
}
var className = "BIZs";
}
Symbol 143 MovieClip [__Packages.com.yahoo.maps.data.SubCategory] Frame 0
class com.yahoo.maps.data.SubCategory
{
var _ov_ctxtid, _descr, _db, _bfkey, _search_text;
function SubCategory (x) {
com.yahoo.maps.XMLParser.xmlAttributesToObject(this, x);
}
function get ov_ctxtid() {
return(_ov_ctxtid);
}
function get descr() {
return(_descr);
}
function get db() {
return(_db);
}
function get bfkey() {
return(_bfkey);
}
function get search_text() {
return(_search_text);
}
var className = "SubCategory";
}
Symbol 144 MovieClip [__Packages.com.yahoo.maps.data.Category] Frame 0
class com.yahoo.maps.data.Category
{
var subCategories, _code, _descr;
function Category (x) {
com.yahoo.maps.XMLParser.xmlAttributesToObject(this, x);
subCategories = new Array();
var _local2 = x.firstChild;
while (_local2 != null) {
subCategories.push(new com.yahoo.maps.data.SubCategory(_local2));
_local2 = _local2.nextSibling;
}
}
function get code() {
return(_code);
}
function get descr() {
return(_descr);
}
var className = "Category";
}
Symbol 145 MovieClip [__Packages.com.yahoo.maps.data.Categories] Frame 0
class com.yahoo.maps.data.Categories extends Array
{
var push;
function Categories (x) {
super();
var _local3 = x.firstChild.firstChild;
while (_local3 != null) {
push(new com.yahoo.maps.data.Category(_local3));
_local3 = _local3.nextSibling;
}
}
var className = "Categories";
}
Symbol 146 MovieClip [__Packages.com.yahoo.maps.data.Address2Business] Frame 0
class com.yahoo.maps.data.Address2Business extends Array
{
var push;
function Address2Business (x) {
super();
var _local3 = x.firstChild;
while (_local3 != null) {
if (_local3.nodeName == "listing") {
push(new com.yahoo.maps.data.Address2BusinessLocation(_local3));
}
_local3 = _local3.nextSibling;
}
}
var className = "Address2Business";
}
Symbol 147 MovieClip [__Packages.com.yahoo.maps.data.Segment] Frame 0
class com.yahoo.maps.data.Segment
{
var _number, _description, _miles, _maplink, _tpoints, _tbounds;
function Segment (x) {
com.yahoo.maps.XMLParser.xmlNodesToObject(this, x);
}
function get number() {
return(Number(_number));
}
function get description() {
return(_description);
}
function get miles() {
return(_miles);
}
function get maplink() {
return(_maplink);
}
function get tpoints() {
return(_tpoints);
}
function get tbounds() {
return(_tbounds);
}
var className = "Segment";
}
Symbol 148 MovieClip [__Packages.com.yahoo.maps.data.DrivingDirections] Frame 0
class com.yahoo.maps.data.DrivingDirections
{
var addresses, directions, _real_bound, fromItems, fromHash, toItems, toHash, _total_distance, _total_time, _overview, _dest, _zoom;
function DrivingDirections (x) {
addresses = new Array();
directions = new Array();
var _local5 = x.firstChild;
var _local2;
while (_local5 != null) {
switch (_local5.nodeName) {
case "yahoo_driving_directions" :
_local2 = _local5.firstChild;
while (_local2 != null) {
switch (_local2.nodeName) {
case "address" :
addresses.push(new com.yahoo.maps.data.Address(_local2));
break;
case "directions" :
var _local4 = _local2.firstChild;
while (_local4 != null) {
directions.push(new com.yahoo.maps.data.Segment(_local4));
_local4 = _local4.nextSibling;
}
break;
case "real_bound" :
_real_bound = (_local9 || (_local9 = com.yahoo.maps.XMLParser)).xmlAttributesToObject(new Object(), _local2);
break;
default :
this["_" + _local2.nodeName] = _local2.firstChild.nodeValue;
}
_local2 = _local2.nextSibling;
}
break;
case "A2B_Start" :
var _local3 = _local5.firstChild;
while (_local3 != null) {
if (_local3.nodeName == "local") {
fromItems = new com.yahoo.maps.data.Address2Business(_local3);
} else if (_local3.nodeName == "hash") {
fromHash = _local3.firstChild.nodeValue;
}
_local3 = _local3.nextSibling;
}
break;
case "A2B_Dest" :
_local3 = _local5.firstChild;
for(;;){
if (_local3 == null) {
break;
}
if (_local3.nodeName == "local") {
toItems = new com.yahoo.maps.data.Address2Business(_local3);
} else if (_local3.nodeName == "hash") {
toHash = _local3.firstChild.nodeValue;
}
_local3 = _local3.nextSibling;
};
}
_local5 = _local5.nextSibling;
}
}
function get totalDistance() {
return(Number(_total_distance));
}
function get totalTime() {
var _local2 = _total_time.split("hours");
if (_local2.length == 1) {
return(parseInt(_local2[0]));
}
return((parseInt(_local2[0]) * 60) + parseInt(_local2[1]));
}
function get overviewSWF() {
return(_overview);
}
function get destinationSWF() {
return(_dest);
}
function get zoom() {
return(Number(_zoom));
}
var className = "DrivingDirections";
}
Symbol 149 MovieClip [__Packages.com.yahoo.maps.data.MoreLink] Frame 0
class com.yahoo.maps.data.MoreLink extends Object
{
var _type, _desc, _url;
function MoreLink (x) {
super();
com.yahoo.maps.XMLParser.xmlNodesToObject(this, x);
_type = x.attributes.type;
}
function get linktype() {
return(_type);
}
function get desc() {
return(_desc);
}
function get url() {
return(_url);
}
function set desc(i) {
_desc = i;
//return(desc);
}
function set url(i) {
_url = i;
//return(url);
}
var className = "MoreLink";
}
Symbol 150 MovieClip [__Packages.com.yahoo.maps.data.MoreLinx] Frame 0
class com.yahoo.maps.data.MoreLinx extends Object
{
var links;
function MoreLinx (x) {
super();
links = [];
var _local4 = x;
var _local6 = _local4;
for (var _local5 in _local4.childNodes) {
var _local3 = _local4.childNodes[_local5];
links.push(new com.yahoo.maps.data.MoreLink(_local3));
}
}
function getLink(_url) {
getURL (_url, "_top");
}
var className = "MoreLinx";
}
Symbol 151 MovieClip [__Packages.com.yahoo.maps.data.LocalSearchAmbiguousLocation] Frame 0
class com.yahoo.maps.data.LocalSearchAmbiguousLocation extends Object
{
var _lat, _lon, _street, _city, _state, _zip, _mag, _morelink;
function LocalSearchAmbiguousLocation (x) {
super();
com.yahoo.maps.XMLParser.xmlNodesToObject(this, x);
morelink = (new com.yahoo.maps.data.MoreLinx(x.lastChild));
}
function get lat() {
return(_lat);
}
function get lon() {
return(_lon);
}
function get street() {
return(_street);
}
function get city() {
return(_city);
}
function get state() {
return(_state);
}
function get zip() {
return(_zip);
}
function get mag() {
return(_mag);
}
function get morelink() {
return(_morelink);
}
function set morelink(i) {
_morelink = i;
//return(morelink);
}
var className = "LocalSearchAmbiguousLocation";
}
Symbol 152 MovieClip [__Packages.com.yahoo.maps.data.LocalSearchFilterItem] Frame 0
class com.yahoo.maps.data.LocalSearchFilterItem extends Object
{
var _key, __name, _count, _morelink;
function LocalSearchFilterItem (x) {
super();
com.yahoo.maps.XMLParser.xmlNodesToObject(this, x);
morelink = (new com.yahoo.maps.data.MoreLinx(x.lastChild));
}
function get key() {
return(_key);
}
function get name() {
return(__name);
}
function get count() {
return(Number(_count));
}
function get morelink() {
return(_morelink);
}
function set morelink(i) {
_morelink = i;
//return(morelink);
}
var className = "LocalSearchFilterItem";
}
Symbol 153 MovieClip [__Packages.com.yahoo.maps.data.LocalSearchFilter] Frame 0
class com.yahoo.maps.data.LocalSearchFilter
{
var id, header, items;
function LocalSearchFilter (x, i, h) {
id = i;
header = h;
items = new Array();
var _local2 = x.firstChild;
while (_local2 != null) {
items.push(new com.yahoo.maps.data.LocalSearchFilterItem(_local2));
_local2 = _local2.nextSibling;
}
}
var className = "LocalSearchFilter";
}
Symbol 154 MovieClip [__Packages.com.yahoo.maps.data.LocalSearchLocation] Frame 0
class com.yahoo.maps.data.LocalSearchLocation extends Object
{
var _markerColor, _indexColor, _id, _title, _full_addr, _addr, _city, _state, _zip, _phone, _rating, _nrating, _distance, _lat, _lon, _mapurl, _detailurl, _website, _morelinks;
function LocalSearchLocation (x) {
super();
com.yahoo.maps.XMLParser.xmlNodesToObject(this, x);
morelinks = (new com.yahoo.maps.data.MoreLinx(x.lastChild));
_markerColor = 15954209 /* 0xF37121 */;
_indexColor = "#F37121";
}
function get id() {
return(_id);
}
function get title() {
return(_title);
}
function get full_addr() {
return(_full_addr);
}
function get addr() {
return(_addr);
}
function get city() {
return(_city);
}
function get state() {
return(_state);
}
function get zip() {
return(_zip);
}
function get phone() {
return(_phone);
}
function get rating() {
return(Number(_rating));
}
function get nrating() {
return(Number(_nrating));
}
function get distance() {
return(_distance);
}
function get lat() {
return(_lat);
}
function get lon() {
return(_lon);
}
function get mapurl() {
return(_mapurl);
}
function get detailurl() {
return(_detailurl);
}
function get website() {
return(_website);
}
function get markerColor() {
return(_markerColor);
}
function get indexColor() {
return(_indexColor);
}
function get morelinks() {
return(_morelinks);
}
function set morelinks(i) {
_morelinks = i;
//return(morelinks);
}
var className = "LocalSearchLocation";
}
Symbol 155 MovieClip [__Packages.com.yahoo.maps.data.LocalSearch] Frame 0
class com.yahoo.maps.data.LocalSearch extends Object
{
var beginIndex, items, ambiguousLocations, filters, _term, _searchtotal, _numlistings, _resulturl, _warning, _fitzoom;
function LocalSearch (x, begin) {
super();
beginIndex = begin;
items = new Array();
ambiguousLocations = new Array();
filters = new Array();
var _local3 = x.firstChild.firstChild;
var _local4 = 0;
while (_local3 != null) {
switch (_local3.nodeName) {
case "listing" :
items.push(new com.yahoo.maps.data.LocalSearchLocation(_local3));
break;
case "location" :
ambiguousLocations.push(new com.yahoo.maps.data.LocalSearchAmbiguousLocation(_local3));
break;
case "aggregation" :
parseAggregationNodes(_local3);
break;
default :
this["_" + _local3.nodeName] = _local3.firstChild.nodeValue;
}
_local3 = _local3.nextSibling;
}
}
function parseAggregationNodes(x) {
var _local2 = x.firstChild;
while (_local2 != null) {
switch (_local2.nodeName) {
case "ycat2gc" :
filters.push(new com.yahoo.maps.data.LocalSearchFilter(_local2, "ycat2gc", (_local5 || (_local5 = com.yahoo.maps.Labels)).YCAT2GC_FILTER));
break;
case "ratingfgc" :
filters.push(new com.yahoo.maps.data.LocalSearchFilter(_local2, "ratingfgc", (_local5 || (_local5 = com.yahoo.maps.Labels)).RATINGFGC_FILTER));
}
_local2 = _local2.nextSibling;
}
}
function get term() {
return(_term);
}
function get searchtotal() {
return(Number(_searchtotal));
}
function get numlistings() {
return(Number(_numlistings));
}
function get viewDetailResultsURL() {
return(_resulturl);
}
function get warning() {
return(_warning);
}
function get fitzoom() {
return(Number(_fitzoom));
}
var className = "LocalSearch";
}
Symbol 156 MovieClip [__Packages.com.yahoo.maps.data.Location] Frame 0
class com.yahoo.maps.data.Location
{
var _address2BusinessArray, _warning, _error, _lat, _lon, _qty, _status, _mag, _type, _hash;
function Location (x) {
var _local2 = x.firstChild;
while (_local2 != null) {
switch (_local2.nodeName) {
case "A2B" :
_address2BusinessArray = new com.yahoo.maps.data.Address2Business(_local2.firstChild);
break;
case "name" :
this["__" + _local2.nodeName] = _local2.firstChild.nodeValue;
break;
default :
this["_" + _local2.nodeName] = _local2.firstChild.nodeValue;
}
_local2 = _local2.nextSibling;
}
}
function get warning() {
return(_warning);
}
function get error() {
return(_error);
}
function get lat() {
return(Number(_lat));
}
function get lon() {
return(Number(_lon));
}
function get qty() {
return(_qty);
}
function get street() {
return(_street);
}
function get city() {
return(_city);
}
function get state() {
return(_state);
}
function get zip() {
return(_zip);
}
function get country() {
return(_country);
}
function get status() {
return(_status);
}
function get mag() {
return(_mag);
}
function get address2Business() {
return(_address2BusinessArray);
}
function get type() {
return(_type);
}
function get hash() {
return(_hash);
}
var _street = "";
var _city = "";
var _state = "";
var _zip = "";
var _country = "";
var className = "Location";
}
Symbol 157 MovieClip [__Packages.com.yahoo.maps.data.Locations] Frame 0
class com.yahoo.maps.data.Locations extends Array
{
var push;
function Locations (x) {
super();
var _local3 = x.firstChild.firstChild;
while (_local3 != null) {
push(new com.yahoo.maps.data.Location(_local3));
_local3 = _local3.nextSibling;
}
}
var className = "Locations";
}
Symbol 158 MovieClip [__Packages.com.yahoo.maps.data.PhoneNumbers] Frame 0
class com.yahoo.maps.data.PhoneNumbers
{
var recentNumbers, _cellphone, _emailaddr;
function PhoneNumbers (x) {
recentNumbers = new Array();
var _local2 = x.firstChild.firstChild;
while (_local2 != null) {
switch (_local2.nodeName) {
case "recent_phone" :
recentNumbers.push(_local2.firstChild.nodeValue);
break;
default :
this["_" + _local2.nodeName] = _local2.firstChild.nodeValue;
}
_local2 = _local2.nextSibling;
}
}
function get cellphone() {
return(_cellphone);
}
function get email() {
return(_emailaddr);
}
var className = "PhoneNumbers";
}
Symbol 160 MovieClip [__Packages.com.yahoo.maps.data.SendToPhoneResult] Frame 0
class com.yahoo.maps.data.SendToPhoneResult
{
var _status, _subStatus, _error;
function SendToPhoneResult (x, begin) {
com.yahoo.maps.XMLParser.xmlNodesToObject(this, x.firstChild);
}
function get status() {
return(Number(_status));
}
function get subStatus() {
return(Number(_subStatus));
}
function get error() {
return(_error);
}
var className = "SendToPhoneResult";
}
Symbol 161 MovieClip [__Packages.com.yahoo.maps.data.SmartViewLocation] Frame 0
class com.yahoo.maps.data.SmartViewLocation extends Object
{
var _addr, _street, _markerColor, _indexColor, _id, _title, _city, _state, _zip, _phone, _rating, _nrating, _distance, _lat, _lon, _mapurl, _detailurl, _href, _phase, _icon, _morelinks;
function SmartViewLocation (x) {
super();
com.yahoo.maps.XMLParser.xmlNodesToObject(this, x);
morelinks = (new com.yahoo.maps.data.MoreLinx(x.lastChild));
_addr = _street;
_markerColor = 15954209 /* 0xF37121 */;
_indexColor = "#F37121";
}
function get id() {
return(_id);
}
function get title() {
return(_title);
}
function get addr() {
return(_street);
}
function get city() {
return(_city);
}
function get state() {
return(_state);
}
function get zip() {
return(_zip);
}
function get phone() {
return(_phone);
}
function get rating() {
return(_rating);
}
function get nrating() {
return(Number(_nrating));
}
function get distance() {
return(_distance);
}
function get lat() {
return(_lat);
}
function get lon() {
return(_lon);
}
function get mapurl() {
return(_mapurl);
}
function get detailurl() {
return(_detailurl);
}
function get website() {
return(_href);
}
function get markerColor() {
return(_markerColor);
}
function get indexColor() {
return(_indexColor);
}
function get phase() {
return(_phase);
}
function get icon() {
return(_icon);
}
function set icon(i) {
_icon = i;
//return(icon);
}
function set morelinks(i) {
_morelinks = i;
//return(morelinks);
}
function get morelinks() {
return(_morelinks);
}
var className = "SmartViewLocation";
}
Symbol 162 MovieClip [__Packages.com.yahoo.maps.data.SmartView] Frame 0
class com.yahoo.maps.data.SmartView extends Array
{
var beginIndex, push, _maxcnt, _retcnt, _resulturl, _fitzoom;
function SmartView (x, i) {
super();
beginIndex = i;
var _local3 = x.firstChild.firstChild;
while (_local3 != null) {
if (_local3.nodeName == "point") {
push(new com.yahoo.maps.data.SmartViewLocation(_local3));
} else {
this["_" + _local3.nodeName] = _local3.firstChild.nodeValue;
}
_local3 = _local3.nextSibling;
}
}
function get searchtotal() {
return(Number(_maxcnt));
}
function get numlistings() {
return(Number(_retcnt));
}
function get viewDetailResultsURL() {
return(_resulturl);
}
function get fitzoom() {
return(_fitzoom);
}
var className = "SmartView";
}
Symbol 164 MovieClip [__Packages.com.yahoo.maps.data.TrafficItem] Frame 0
class com.yahoo.maps.data.TrafficItem
{
var name, quality, geo, severity, description, dir, reportTime, updateTime, endTime;
function TrafficItem (x) {
var _local3 = x.firstChild;
while (_local3 != null) {
switch (_local3.nodeName) {
case "name" :
name = _local3.firstChild.nodeValue;
break;
case "geo" :
var _local2 = _local3.firstChild;
var _local5;
var _local4;
while (_local2 != null) {
switch (_local2.nodeName) {
case "lat" :
_local5 = _local2.firstChild.nodeValue;
break;
case "lon" :
_local4 = _local2.firstChild.nodeValue;
break;
case "qual" :
quality = Number(_local2.firstChild.nodeValue);
}
_local2 = _local2.nextSibling;
}
geo = new mx.graphics.Point(Number(_local5), Number(_local4));
break;
case "severity" :
severity = _local3.firstChild.nodeValue;
break;
case "desc" :
description = _local3.firstChild.nodeValue;
break;
case "dir" :
dir = _local3.firstChild.nodeValue;
break;
case "reporttime" :
reportTime = _local3.firstChild.nodeValue;
break;
case "updatetime" :
updateTime = _local3.firstChild.nodeValue;
break;
case "endtime" :
endTime = _local3.firstChild.nodeValue;
}
_local3 = _local3.nextSibling;
}
}
var className = "TrafficItem";
}
Symbol 165 MovieClip [__Packages.com.yahoo.maps.data.TrafficSpeed] Frame 0
class com.yahoo.maps.data.TrafficSpeed
{
var speedItems, speed, lat, lon, sfmt;
function TrafficSpeed (x) {
speedItems = new Array();
speed = Number(x.attributes.speed0);
lat = Number(x.attributes.lat0);
lon = Number(x.attributes.lon0);
sfmt = Number(x.attributes.sfmt);
var _local7 = Number(x.attributes.x0);
var _local6 = Number(x.attributes.y0);
var _local5 = x.firstChild;
while (_local5 != null) {
if (!(_local5.nodeName === "s_item")) {
} else {
var _local13 = new String(_local5.firstChild);
var _local4 = _local13.split(";");
var _local3 = 0;
while (_local3 < _local4.length) {
if (_local4[_local3] != "") {
var _local2 = _local4[_local3].split(",");
if (_local2.length == 3) {
if (sfmt == 3) {
_local7 = _local7 + parseInt(_local2[2], 36);
_local6 = _local6 + parseInt(_local2[1], 36);
speedItems.push({speed:_local2[0], y:_local6, x:_local7});
} else {
speedItems.push({speed:speed + Number(_local2[0]), lat:lat + Number(_local2[1]), lon:lon + Number(_local2[2])});
}
}
}
_local3++;
}
}
_local5 = _local5.nextSibling;
}
}
var className = "TrafficSpeed";
}
Symbol 166 MovieClip [__Packages.com.yahoo.maps.data.Traffic] Frame 0
class com.yahoo.maps.data.Traffic
{
var speedArray, itemArray, _feedupdatetime, _feedupxdatetime, _feedloctime;
function Traffic (x) {
speedArray = new Array();
itemArray = new Array();
var _local3 = x.firstChild.firstChild;
while (_local3 != null) {
switch (_local3.nodeName) {
case "results" :
var _local2 = _local3.firstChild;
while (_local2 != null) {
switch (_local2.nodeName) {
case "speed" :
speedArray.push(new com.yahoo.maps.data.TrafficSpeed(_local2));
break;
case "item" :
itemArray.push(new com.yahoo.maps.data.TrafficItem(_local2));
break;
default :
this["_" + _local2.nodeName] = _local2.firstChild.nodeValue;
}
_local2 = _local2.nextSibling;
}
break;
default :
this["_" + _local3.nodeName] = _local3.firstChild.nodeValue;
}
_local3 = _local3.nextSibling;
}
}
function get feedupdatetime() {
return(_feedupdatetime);
}
function get feedupxdatetime() {
return(_feedupxdatetime);
}
function get feedloctime() {
return(_feedloctime);
}
var className = "Traffic";
}
Symbol 167 MovieClip [__Packages.com.yahoo.maps.data.ULMLocation] Frame 0
class com.yahoo.maps.data.ULMLocation
{
var __name, _type, _address, _city, _state, _zip, _isuniquezip;
function ULMLocation (x) {
__name = "";
com.yahoo.maps.XMLParser.xmlNodesToObject(this, x);
}
function get type() {
return(Number(_type));
}
function get name() {
return(String(__name));
}
function get address() {
return(_address);
}
function get city() {
return(_city);
}
function get state() {
return(_state);
}
function get zip() {
return(_zip);
}
function get isuniquezip() {
return(Boolean(Number(_isuniquezip)));
}
function toString() {
var _local2 = (((((address == null) || (address == "")) ? "" : (address + ",")) + (((city == null) || (city == "")) ? "" : (city + ","))) + (((state == null) || (state == "")) ? "" : (state + ","))) + (((zip == null) || (zip == "")) ? "" : (zip));
if (_local2.lastIndexOf(", ") == (_local2.length - 2)) {
_local2 = _local2.slice(0, _local2.length - 2);
}
return(_local2);
}
var className = "ULMLocation";
}
Symbol 169 MovieClip [__Packages.com.yahoo.maps.data.XLREC] Frame 0
class com.yahoo.maps.data.XLREC extends com.yahoo.maps.data.Ad
{
var _title, _phrase;
function XLREC (x) {
var _local2 = x.firstChild.firstChild;
super(_local2);
}
function get title() {
return(_title);
}
function get phrase() {
return(_phrase);
}
var className = "XLREC";
}
Symbol 170 MovieClip [__Packages.com.yahoo.maps.data.XTL] Frame 0
class com.yahoo.maps.data.XTL extends com.yahoo.maps.data.Ad
{
var _title, _phrase;
function XTL (x) {
super(x);
}
function get title() {
return(_title);
}
function get phrase() {
return(_phrase);
}
var className = "XTL";
}
Symbol 171 MovieClip [__Packages.com.yahoo.maps.data.XTLs] Frame 0
class com.yahoo.maps.data.XTLs extends Array
{
var push;
function XTLs (x) {
super();
var _local3 = x.firstChild.firstChild;
while (_local3 != null) {
if (_local3.nodeName == "AD") {
push(new com.yahoo.maps.data.XTL(_local3));
}
_local3 = _local3.nextSibling;
}
}
var className = "XTLs";
}
Symbol 172 MovieClip [__Packages.com.yahoo.maps.flex.HistoryManager] Frame 0
class com.yahoo.maps.flex.HistoryManager
{
var loadStateObj, _lc, _states, _dataService, _isSavePending, _sentVariables;
function HistoryManager () {
var _local2 = (_local4 || (_local4 = com.macromedia.mc.platform.Session)).getInstance().getAttribute("loadStateObj");
loadStateObj = _local2;
(_local4 || (_local4 = com.macromedia.mc.platform.Session)).getInstance().setAttribute("loadStateObj", null);
delete eval ((_local4 || (_local4 = com.macromedia.mc.platform.Session)).getInstance().getAttribute("loadStateObj"));
_lc = new LocalConnection();
_lc.loadState = (_local3 || (_local3 = mx.utils.Delegate)).create(this, loadState);
_lc.connect("state" + loadStateObj.lconid);
_states = new Array();
_dataService = com.yahoo.maps.DataService.getInstance();
}
static function getInstance() {
var _local1 = com.yahoo.maps.flex.HistoryManager;
if (_local1._instance == undefined) {
_local1._instance = new com.yahoo.maps.flex.HistoryManager();
}
return(_local1._instance);
}
function cancelPendingSave(o) {
if (_root._name == "appshell") {
_isSavePending = false;
}
}
function onStatus(obj) {
if (obj.level == "error") {
loadState();
isTrackHistory = false;
} else {
isTrackHistory = true;
}
}
function register(obj) {
_registeredObjects.push(obj);
}
function save() {
if (isTrackHistory) {
(_local8 || (_local8 = com.yahoo.maps.flex.HistoryManager)).loadingState = true;
var _local2 = "";
var _local3;
for (var _local5 in _registeredObjects) {
_local3 = _registeredObjects[_local5].saveState();
for (var _local4 in _local3) {
_local2 = _local2 + (((_local4 + "==") + _local3[_local4]) + "&&");
}
}
_local2 = _local2.substr(0, _local2.length - 2);
if (((unescape(hash) != unescape(_local2)) && (unescape(_sentVariables) != unescape(_local2))) && (_local2 != "")) {
_isSavePending = true;
var _local7 = (_local9 || (_local9 = System.capabilities)).playerType.indexOf("ActiveX") != -1;
_local2 = escape(_local2);
_local2 = _local2.split("%40").join("@");
_local2 = _local2.split("%2A").join("*");
_local2 = _local2.split("%5F").join("_");
_local2 = _local2.split("%2D").join("-");
_local2 = _local2.split("%2E").join(".");
_local2 = _local2.split("%20").join("+");
_local2 = _local2.split("%3D%3D").join("=");
_local2 = _local2.split("%26%26").join("&");
_local2 = _local2.split("%26").join(escape("%26"));
_local2 = _local2.split("%23").join(escape("%23"));
var _local6 = _local2;
if (_local7) {
_local6 = unescape(_local2);
getURL (("javascript:saveViewChange('" + _local6) + "')");
} else {
_local6 = escape(_local2);
getURL (("javascript:saveViewChange('" + _local6) + "')");
}
_sentVariables = _local6;
_states.push(_sentVariables);
if (_states.length > 5) {
_states.splice(0, _states.length - 5);
}
}
}
}
function loadState(o) {
(_local4 || (_local4 = com.yahoo.maps.flex.HistoryManager)).loadingState = false;
if (isTrackHistory) {
if (_isSavePending) {
for (var _local3 in o) {
o[_local3] = o[_local3].split("+").join(" ");
}
for (var _local3 in _registeredObjects) {
_registeredObjects[_local3].loadState(o);
}
hash = "";
for (var _local3 in o) {
hash = hash + (((_local3 + "=") + o[_local3]) + "&");
}
hash = escape(hash.substr(0, hash.length - 1));
_dataService.submitTrackStates();
}
removeLastState();
}
}
function removeLastState() {
if (_states.length >= 2) {
_states.pop();
_sentVariables = String(_states[_states.length]);
}
}
static var loadingState = false;
var isTrackHistory = true;
var hash = "";
var _registeredObjects = new Array();
var className = "HistoryManager";
}
Symbol 173 MovieClip [__Packages.com.yahoo.maps.MapViews] Frame 0
class com.yahoo.maps.MapViews
{
function MapViews () {
}
static function init() {
var _local1 = com.yahoo.maps.MapViews;
_local1.all = [_local1.MAP, _local1.SATELLITE, _local1.HYBRID];
return(true);
}
static var MAP = "map";
static var SATELLITE = "satellite";
static var HYBRID = "hybrid";
static var inited = init();
var className = "MapViews";
}
Symbol 174 MovieClip [__Packages.com.yahoo.maps.api.Languages] Frame 0
class com.yahoo.maps.api.Languages
{
function Languages () {
}
static function init() {
var _local1 = com.yahoo.maps.api.Languages;
_local1.all = [_local1.it_IT, _local1.es_ES, _local1.de_DE, _local1.en_GB, _local1.en_US, _local1.en_IN, _local1.fr_CA, _local1.fr_FR];
return(true);
}
static var IT = "IT";
static var it_IT = "it-IT";
static var ES = "ES";
static var es_ES = "es-ES";
static var DE = "DE";
static var de_DE = "de-DE";
static var en_GB = "en-GB";
static var en_US = "en-US";
static var en_IN = "en-IN";
static var CF = "CF";
static var fr_CA = "fr-CA";
static var FR = "FR";
static var fr_FR = "fr-FR";
static var inited = init();
var className = "Languages";
}
Symbol 186 MovieClip [__Packages.com.yahoo.maps.ExtensibleLabels] Frame 0
class com.yahoo.maps.ExtensibleLabels
{
function ExtensibleLabels () {
}
static var zoomMax = 16;
static var zoomMin = 1;
var className = "ExtensibleLabels";
}
Symbol 187 MovieClip [__Packages.com.yahoo.maps.NavKeys] Frame 0
class com.yahoo.maps.NavKeys
{
function NavKeys () {
}
static var NAV_KEY_S = 98;
static var NAV_KEY_W = 100;
static var NAV_KEY_E = 102;
static var NAV_KEY_N = 104;
static var NAV_KEY_SW = 97;
static var NAV_KEY_SE = 99;
static var NAV_KEY_NW = 103;
static var NAV_KEY_NE = 105;
static var NAV_KEY_ZOOM_IN = 107;
static var NAV_KEY_PLUS = 187;
static var NAV_KEY_ZOOM_OUT = 109;
static var NAV_KEY_MINUS = 189;
static var NAV_KEY_SHIFT = 16;
static var SAT_KEY_MAP = 77;
static var SAT_KEY_HYB = 72;
static var SAT_KEY_SAT = 83;
static var SN_KEY = 89;
static var MC_KEY = 121;
static var FP_KEY = 70;
static var KN_KEY = 75;
static var SN_ADD = "701 FIRST AVE, SUNNYVALE, CA 94089-1019";
static var MC_ADD = "2821 MISSION COLLEGE BLVD, SANTA CLARA, CA 95054";
static var FP_ADD = "4 Yawkey Way, BOSTON, MA 02215-3409";
static var KN_ADD = "UTILITY ROAD, ORSINO, FL";
var className = "NavKeys";
}
Symbol 189 MovieClip [__Packages.com.robertpenner.easing.Quad] Frame 0
class com.robertpenner.easing.Quad
{
function Quad () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
var className = "Quad";
}
Symbol 191 MovieClip [__Packages.com.yahoo.maps.flash.ScaleEffect] Frame 0
class com.yahoo.maps.flash.ScaleEffect extends Object
{
var startTime, deltaScale, startScale, target, duration, dispatchObj, targetOrigin, normalW, normalH, started, timer_id;
function ScaleEffect (target, scaleTo, duration, dispatchObj, normalW, normalH) {
super();
if (scaleTo == undefined) {
scaleTo = 100;
}
if (duration == undefined) {
duration = 500;
}
startTime = getTimer();
deltaScale = scaleTo - target._xscale;
startScale = target._xscale;
this.target = target;
this.duration = duration;
this.dispatchObj = dispatchObj;
targetOrigin = new mx.graphics.Point(target._x, target._y);
if (normalW == undefined) {
normalW = target._width;
}
if (normalH == undefined) {
normalH = target._height;
}
this.normalW = normalW;
this.normalH = normalH;
started = false;
timer_id = setInterval((_local9 || (_local9 = mx.utils.Delegate)).create(this, onTimer), 50, this);
}
function destroy() {
clearInterval(timer_id);
timer_id = 0;
dispatchObj = null;
target = null;
targetOrigin = null;
}
function onTimer(context) {
with (context) {
var deltaT = (getTimer() - startTime);
if (deltaT >= duration) {
deltaT = duration;
}
var current = (startScale + (deltaScale * Math.sin(((Math.PI * deltaT) / duration) / 2)));
var multiplier = (current / 100);
target._xscale = current;
target._yscale = current;
var newWidth = (normalW * multiplier);
var newHeight = (normalH * multiplier);
var dx = ((newWidth - normalW) / 2);
var dy = ((newHeight - normalH) / 2);
target._x = (targetOrigin.x * multiplier) - dx;
target._y = (targetOrigin.y * multiplier) - dy;
if (started == false) {
dispatchObj.onScaleEffect({type:"started"});
}
started = true;
var percentComplete = ((((current - startScale) + deltaScale) / deltaScale) - 1);
dispatchObj.onScaleEffect({type:"move", data:{dx:dx, dy:dy, percentComplete:percentComplete}});
if (deltaT >= duration) {
dispatchObj.onScaleEffect({type:"complete"});
destroy();
}
}
}
var className = "ScaleEffect";
}
Symbol 192 MovieClip [__Packages.com.yahoo.maps.flash.TileUrl] Frame 0
class com.yahoo.maps.flash.TileUrl
{
var center, zoom, tileHash, tileUrl, maxRowIndex, maxColIndex, hybridUrl, satelliteUrl, hybridBatch, satelliteBatch;
function TileUrl (row, col, zoom, maxRowIndex, maxColIndex) {
center = new mx.graphics.Point(col, row);
this.zoom = zoom;
tileHash = new Object();
tileUrl = (_local7 || (_local7 = com.yahoo.maps.Config)).getInstance().tileURL;
this.maxRowIndex = maxRowIndex;
this.maxColIndex = maxColIndex;
hybridUrl = (_local7 || (_local7 = com.yahoo.maps.Config)).getInstance().hybridURL;
satelliteUrl = (_local7 || (_local7 = com.yahoo.maps.Config)).getInstance().satelliteURL;
hybridBatch = (_local7 || (_local7 = com.yahoo.maps.Config)).getInstance().hybridBatch;
satelliteBatch = (_local7 || (_local7 = com.yahoo.maps.Config)).getInstance().satelliteBatch;
}
function destroy() {
for (var _local2 in tileHash) {
tileHash[_local2] = undefined;
}
tileHash = undefined;
}
function defer(t, row, col) {
var _local5 = makeKey(t.tileRow, t.tileCol);
tileHash[_local5] = undefined;
var _local3 = center.y - row;
var _local4 = validateCol(t, center.x + col);
t.tileRow = _local3;
t.tileCol = _local4;
_local5 = makeKey(t.tileRow, t.tileCol);
tileHash[_local5] = t;
}
function update(t, row, col, mapViewType) {
var _local4 = makeKey(t.tileRow, t.tileCol);
tileHash[_local4] = undefined;
if (mapViewType == (_local7 || (_local7 = com.yahoo.maps.MapViews)).HYBRID) {
t.__set__url(calculate(t, row, col, (_local7 || (_local7 = com.yahoo.maps.MapViews)).SATELLITE));
t.__set__urlHB(calculate(t, row, col, (_local7 || (_local7 = com.yahoo.maps.MapViews)).HYBRID));
} else {
t.__set__url(calculate(t, row, col, mapViewType));
}
_local4 = makeKey(t.tileRow, t.tileCol);
tileHash[_local4] = t;
}
function find(r, c) {
return(com.yahoo.maps.YTile(tileHash[makeKey(r, c)]));
}
function makeKey(r, c) {
return((String(r) + "_") + String(c));
}
function calculate(t, row, col, mapViewType) {
var _local5;
var _local2 = center.y - row;
var _local3 = validateCol(t, center.x + col);
t.tileRow = _local2;
t.tileCol = _local3;
return(makeUrl(_local2, _local3, mapViewType));
}
function validateCol(t, index) {
if ((index >= 0) && (index <= maxColIndex)) {
return(index);
}
if (index < 0) {
index = (maxColIndex + index) + 1;
} else if (index > maxColIndex) {
index = (index - maxColIndex) - 1;
}
t.tileCol = index;
return(index);
}
function makeUrl(row, col, mapViewType) {
switch (mapViewType) {
case (_local6 || (_local6 = com.yahoo.maps.MapViews)).MAP :
var _local4 = (((((tileUrl + "&col=") + col) + "&row=") + row) + "&z=") + String(zoom);
break;
case (_local6 || (_local6 = com.yahoo.maps.MapViews)).HYBRID :
_local4 = ((((((((hybridUrl + "&x=") + col) + "&y=") + row) + "&z=") + String(zoom)) + "&v=") + hybridBatch) + "&t=h";
break;
case (_local6 || (_local6 = com.yahoo.maps.MapViews)).SATELLITE :
_local4 = ((((((((satelliteUrl + "&x=") + col) + "&y=") + row) + "&z=") + String(zoom)) + "&v=") + satelliteBatch) + "&t=a";
break;
default :
_local4 = (((((tileUrl + "&col=") + col) + "&row=") + row) + "&z=") + String(zoom);
}
return(_local4);
}
function get row() {
return(center.y);
}
function get column() {
return(center.x);
}
var className = "TileUrl";
}
Symbol 193 MovieClip [__Packages.com.yahoo.maps.projections.TileXY] Frame 0
class com.yahoo.maps.projections.TileXY
{
var m_col, m_row, m_x, m_y;
function TileXY (p_col, p_row, p_x, p_y) {
m_col = ((p_col == null) ? 0 : (p_col));
m_row = ((p_row == null) ? 0 : (p_row));
m_x = ((p_x == null) ? 0 : (p_x));
m_y = ((p_y == null) ? 0 : (p_y));
}
var className = "TileXY";
}
Symbol 196 MovieClip [__Packages.mx.graphics.Rect] Frame 0
class mx.graphics.Rect
{
function Rect (l, t, r, b) {
if (b != null) {
left = l;
top = t;
right = r;
bottom = b;
}
}
function toString() {
return(((((((("rect(" + left) + ", ") + top) + ", ") + right) + ", ") + bottom) + ")");
}
function get width() {
return(right - left);
}
function set width(w) {
right = left + w;
//return(width);
}
function set height(height) {
bottom = top + height;
//return(this.height);
}
function get height() {
return(bottom - top);
}
function get center() {
return(new mx.graphics.Point((left + right) / 2, (top + bottom) / 2));
}
function set center(a) {
var _local3 = _pointFromArgs(arguments);
var _local4 = width / 2;
var _local5 = height / 2;
left = _local3.x - _local4;
right = _local3.x + _local4;
top = _local3.y - _local5;
bottom = _local3.y + _local5;
//return(center);
}
function aspectRatio() {
return((right - left) / (bottom - top));
}
function centerAndConstrain(dest, bGrow) {
if (((bGrow == false) && (width < dest.__get__width())) && (height < dest.__get__height())) {
center = (dest.center);
return(undefined);
}
var _local6 = dest.aspectRatio();
var _local5 = aspectRatio();
var _local3;
var _local4;
if ((_local5 / _local6) > 1) {
_local3 = dest.width;
_local4 = _local3 / _local5;
} else {
_local4 = dest.height;
_local3 = _local4 * _local5;
}
left = dest.left + ((dest.__get__width() - _local3) / 2);
top = dest.top + ((dest.__get__height() - _local4) / 2);
height = (_local4);
width = (_local3);
return(this);
}
function isEmpty() {
return((width == 0) || (height == 0));
}
function normalize() {
if (right < left) {
var _local2 = left;
left = right;
right = _local2;
}
if (bottom < top) {
var _local2 = top;
top = bottom;
bottom = _local2;
}
}
function isNormal() {
return((left <= right) && (top <= bottom));
}
function inset(w, h) {
left = left + w;
right = right - w;
top = top + h;
bottom = bottom - h;
}
function union(rect2) {
var _local3;
if (isEmpty()) {
_local3 = new mx.graphics.Rect(rect2);
} else if (rect2.isEmpty()) {
_local3 = new mx.graphics.Rect(this);
} else {
_local3 = new mx.graphics.Rect((_local5 || (_local5 = Math)).min(left, rect2.left), (_local5 || (_local5 = Math)).min(top, rect2.top), (_local5 || (_local5 = Math)).max(right, rect2.right), (_local5 || (_local5 = Math)).max(bottom, rect2.bottom));
}
return(_local3);
}
function intersection(rect2) {
var _local3;
if (isEmpty() || (rect2.isEmpty())) {
_local3 = new mx.graphics.Rect();
} else if ((((rect2.right < left) || (rect2.left > right)) || (rect2.bottom < top)) || (rect2.top > bottom)) {
_local3 = new mx.graphics.Rect();
} else {
_local3 = new mx.graphics.Rect((_local5 || (_local5 = Math)).max(left, rect2.left), (_local5 || (_local5 = Math)).max(top, rect2.top), (_local5 || (_local5 = Math)).min(right, rect2.right), (_local5 || (_local5 = Math)).min(bottom, rect2.bottom));
}
return(_local3);
}
function scale() {
var _local3 = _pointFromArgs(arguments);
left = left * _local3.x;
top = top * _local3.y;
right = right * _local3.x;
bottom = bottom * _local3.y;
}
function moveTo(pt) {
var _local3 = _pointFromArgs(arguments);
right = _local3.x + width;
left = _local3.x;
bottom = _local3.y + height;
top = _local3.y;
}
function translate() {
var _local3 = _pointFromArgs(arguments);
left = left + _local3.x;
top = top + _local3.y;
right = right + _local3.x;
bottom = bottom + _local3.y;
}
function pointInRect() {
var _local3 = _pointFromArgs(arguments);
return((((_local3.x >= (_local4 || (_local4 = Math)).min(left, right)) && (_local3.x <= (_local4 || (_local4 = Math)).max(left, right))) && (_local3.y >= (_local4 || (_local4 = Math)).min(top, bottom))) && (_local3.y <= (_local4 || (_local4 = Math)).max(top, bottom)));
}
function _pointFromArgs(args) {
var _local2;
switch (args.length) {
case 2 :
_local2 = new mx.graphics.Point(args[0], args[1]);
break;
case 1 :
if (args[0] instanceof (_local3 || (_local3 = mx.graphics.Point))) {
_local2 = args[0];
} else {
_local2 = new mx.graphics.Point(args[0], args[0]);
}
break;
default :
_local2 = new mx.graphics.Point(0, 0);
}
return(_local2);
}
function dump() {
return(((((((("Rect(" + left) + ",") + top) + ",") + right) + ",") + bottom) + ")");
}
var left = 0;
var top = 0;
var right = 0;
var bottom = 0;
}
Symbol 203 MovieClip [__Packages.com.yahoo.maps.MapBase] Frame 0
class com.yahoo.maps.MapBase
{
var _created, isMainMap, _mapViewType, expectedInitialTiles, parent, origWidth, origHeight, _zoom, container, mask, mapProjection, tileUrl, middleRow, middleColumn, mouseBlocked, mc, crossHairs, tiles, dispatchEvent, panPoint, panOffset, lastY, scaleOffset, oldX, oldY, drag_mc, mouse_mc, dataService, session, historyManager, bg, isNavKeyPressed, isPanKeyPressed, moveEffect, _scale, onPressPoint, pressTimer, singleClickPoint, lastOffset, offset;
function MapBase (parent, width, height, centerLatitude, centerLongitude, zoomin, _buffer, _flags, mapViewType, isBgVisible) {
_created = false;
isMainMap = parent._target == _root._target;
_mapViewType = mapViewType;
if (_buffer != undefined) {
buffer = _buffer;
}
if (_flags != undefined) {
flags = _flags;
}
if ((flags & (_local41 || (_local41 = com.yahoo.maps.MapBase)).bDeferredLoading) != 0) {
_deferredLoading = true;
}
expectedInitialTiles = 0;
this.parent = parent;
origWidth = width;
origHeight = height;
_zoom = zoomin;
mx.events.EventDispatcher.initialize(this);
(_local41 || (_local41 = com.yahoo.maps.MapBase)).instance = (_local41 || (_local41 = com.yahoo.maps.MapBase)).instance + 1;
container = parent.createEmptyMovieClip("MapBase" + String((_local41 || (_local41 = com.yahoo.maps.MapBase)).instance), parent.getNextHighestDepth());
if (IsAtLeastPlayer8()) {
}
mask = new com.macromedia.mc.shapes.RoundRect(container);
mask.draw(0, 0, width, height, 0, 0, 100);
if ((centerLatitude == undefined) && (centerLongitude == undefined)) {
centerLatitude = 37.77159;
centerLongitude = -122.401714;
(_local39 || (_local39 = com.macromedia.mc.platform.Session)).getInstance().setAttribute("latitude", centerLatitude);
(_local39 || (_local39 = com.macromedia.mc.platform.Session)).getInstance().setAttribute("longitude", centerLongitude);
}
mapProjection = new com.yahoo.maps.projections.MercatorProjection(_zoom, (_local41 || (_local41 = com.yahoo.maps.MapBase)).tileSize, (_local41 || (_local41 = com.yahoo.maps.MapBase)).tileSize);
var _local9 = mapProjection.ll_to_xy(centerLatitude, centerLongitude);
tileUrl = new com.yahoo.maps.flash.TileUrl(_local9.m_row, _local9.m_col, _zoom, ((_local36 || (_local36 = Math)).pow(2, 18 - zoomin) / 2) - 1, (_local36 || (_local36 = Math)).pow(2, 18 - zoomin) - 1);
rows = (_local36 || (_local36 = Math)).round(height / (_local41 || (_local41 = com.yahoo.maps.MapBase)).tileSize) + (2 * buffer);
if ((rows % 2) == 0) {
rows = rows + 1;
}
columns = (_local36 || (_local36 = Math)).round(width / (_local41 || (_local41 = com.yahoo.maps.MapBase)).tileSize) + (2 * buffer);
if ((columns % 2) == 0) {
columns = columns + 1;
}
middleRow = (rows + 1) / 2;
middleColumn = (columns + 1) / 2;
middleRow = middleRow - 1;
middleColumn = middleColumn - 1;
var _local7 = ((_local36 || (_local36 = Math)).max(rows, columns) - 1) / 2;
mouseBlocked = false;
mc = container.createEmptyMovieClip("MapBase_mc" + String((_local41 || (_local41 = com.yahoo.maps.MapBase)).instance), container.getNextHighestDepth(), {_width:(_local41 || (_local41 = com.yahoo.maps.MapBase)).tileSize * columns, _height:(_local41 || (_local41 = com.yahoo.maps.MapBase)).tileSize * rows});
mc._x = (_local36 || (_local36 = Math)).round(width / 2);
mc._y = (_local36 || (_local36 = Math)).round(height / 2);
if (height > 130) {
var _local13 = 13;
var _local14 = 13;
crossHairs = container.createEmptyMovieClip("crossHair" + String((_local41 || (_local41 = com.yahoo.maps.MapBase)).instance), container.getNextHighestDepth());
crossHairs.lineStyle(1, ((mapViewType == com.yahoo.maps.MapViews.MAP) ? 0 : 16777215), 60);
crossHairs.moveTo(-(_local36 || (_local36 = Math)).floor(_local13 / 2), 0);
crossHairs.lineTo((_local36 || (_local36 = Math)).ceil(_local13 / 2), 0);
crossHairs.endFill();
crossHairs.moveTo(0, (_local36 || (_local36 = Math)).ceil(_local14 / 2));
crossHairs.lineTo(0, -(_local36 || (_local36 = Math)).floor(_local14 / 2));
crossHairs.endFill();
crossHairs._x = mc._x;
crossHairs._y = mc._y;
}
tiles = new Array(rows);
var _local6 = 0;
while (_local6 < rows) {
tiles[_local6] = new Array(columns);
var _local5 = 0;
while (_local5 < columns) {
var _local21 = new com.yahoo.maps.YTile(mc, (flags & (_local41 || (_local41 = com.yahoo.maps.MapBase)).bAlphaTiles) != 0, (flags & (_local41 || (_local41 = com.yahoo.maps.MapBase)).bTransparentTiles) != 0, _mapViewType);
_local21.addEventListener("tileLoaded", (_local34 || (_local34 = mx.utils.Delegate)).create(this, tileLoaded));
tiles[_local6][_local5] = _local21;
_local5++;
}
_local6++;
}
if (!IsAtLeastPlayer8()) {
mc.setMask(mask.__get__mc());
} else {
mc.cacheAsBitmap = true;
}
var _local12 = new mx.graphics.Point(0, 0);
dispatchEvent({type:"panStart", data:{x:panPoint.x, y:panPoint.y}});
dispatchEvent({type:"moveStart", data:{x:panPoint.x, y:panPoint.y}});
panOffset = new mx.graphics.Point((_local36 || (_local36 = Math)).round(((_local41 || (_local41 = com.yahoo.maps.MapBase)).halfTileSize - _local9.m_x) + (_local12.x / 2)), (_local36 || (_local36 = Math)).round(((-(_local41 || (_local41 = com.yahoo.maps.MapBase)).halfTileSize) + _local9.m_y) + (_local12.y / 2)));
mc._x = mc._x + panOffset.x;
mc._y = mc._y + panOffset.y;
lastY = panOffset.y;
scaleOffset = new mx.graphics.Point(0, 0);
dispatchEvent({type:"pan", data:{dx:panOffset.x, dy:panOffset.y}});
dispatchEvent({type:"move", data:{dx:panOffset.x, dy:panOffset.y}});
dispatchEvent({type:"panStop"});
dispatchEvent({type:"moveStop"});
initTile(middleRow, middleColumn);
var _local21 = tiles[middleRow][middleColumn];
var _local4 = 1;
while (_local4 <= _local7) {
var _local3 = -_local4;
while (_local3 <= _local4) {
initTile(_local3 + middleRow, _local4 + middleColumn);
initTile(_local4 + middleRow, _local3 + middleColumn);
initTile(_local3 + middleRow, middleColumn - _local4);
initTile(middleRow - _local4, _local3 + middleColumn);
_local3++;
}
_local4++;
}
oldX = mc._x;
oldY = mc._y;
if ((flags & ((_local41 || (_local41 = com.yahoo.maps.MapBase)).bPanning | (_local41 || (_local41 = com.yahoo.maps.MapBase)).bDblClk)) != 0) {
mc.onPress = (_local34 || (_local34 = mx.utils.Delegate)).create(this, onPress);
mc.onRelease = (_local34 || (_local34 = mx.utils.Delegate)).create(this, onRelease);
mc.onReleaseOutside = (_local34 || (_local34 = mx.utils.Delegate)).create(this, onRelease);
mc.onRollOut = (_local34 || (_local34 = mx.utils.Delegate)).create(this, onRollOut);
mc.onRollOver = (_local34 || (_local34 = mx.utils.Delegate)).create(this, onRollOver);
}
drag_mc = parent.attachMovie(moveCursor, moveCursor + String((_local41 || (_local41 = com.yahoo.maps.MapBase)).instance), parent.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, _visible:false});
drag_mc._visible = false;
mouse_mc = parent.attachMovie(selectCursor, selectCursor + String((_local41 || (_local41 = com.yahoo.maps.MapBase)).instance), parent.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, _visible:false});
mouse_mc._visible = false;
if (flags & (_local41 || (_local41 = com.yahoo.maps.MapBase)).bPanning) {
(_local33 || (_local33 = Key)).addListener(this);
}
dataService = (_local35 || (_local35 = com.yahoo.maps.DataService)).getInstance();
session = (_local39 || (_local39 = com.macromedia.mc.platform.Session)).getInstance();
historyManager = (_local37 || (_local37 = com.yahoo.maps.flex.HistoryManager)).getInstance();
}
function IsAtLeastPlayer8() {
var _local2 = Number(String(getVersion()).charAt(4));
var _local3 = _root.getSWFVersion();
return((_local2 >= 8) && (_local3 >= 8));
}
function destroy() {
parent = null;
delete mc.onPress;
delete mc.onRelease;
delete mc.onReleaseOutside;
delete mc.onRollOut;
delete mc.onRollOver;
clearInterval(keyTimer);
clearInterval(singleClickTimer);
Key.removeListener(this);
delete mapProjection;
mapProjection = null;
var _local2;
for (var _local4 in tiles) {
for (var _local3 in tiles[_local4]) {
_local2 = tiles[_local4][_local3];
_local2.destroy();
}
}
delete tiles;
tiles = null;
tileUrl.destroy();
tileUrl = null;
drag_mc.removeMovieClip();
drag_mc = null;
mouse_mc.removeMovieClip();
mouse_mc = null;
mc.setMask(null);
mc.removeMovieClip();
mask.destroy();
mask = null;
delete mask;
bg.destroy();
delete bg;
crossHairs.removeMovieClip();
delete crossHairs;
container.removeMovieClip();
container = null;
}
function set deferredLoading(v) {
if (v == true) {
_deferredLoading = true;
} else {
_deferredLoading = false;
var _local5 = 0;
while (_local5 < rows) {
var _local3 = 0;
while (_local3 < columns) {
var _local2 = tiles[_local5][_local3];
var _local4 = tileUrl;
if (_mapViewType == (_local7 || (_local7 = com.yahoo.maps.MapViews)).HYBRID) {
_local2.__set__url(_local4.makeUrl(_local2.tileRow, _local2.tileCol, (_local7 || (_local7 = com.yahoo.maps.MapViews)).SATELLITE));
_local2.__set__urlHB(_local4.makeUrl(_local2.tileRow, _local2.tileCol, (_local7 || (_local7 = com.yahoo.maps.MapViews)).HYBRID));
} else {
_local2.__set__url(_local4.makeUrl(_local2.tileRow, _local2.tileCol, _mapViewType));
}
_local3++;
}
_local5++;
}
}
//return(deferredLoading);
}
function get deferredLoading() {
return(_deferredLoading);
}
function get minimumTileRadius() {
return(Math.min(height, width) / 2);
}
function onRollOut() {
(_local3 || (_local3 = com.yahoo.maps.EventController)).getInstance().sendEvent(this, com.yahoo.maps.AppEvents.mapRollOut, {isMainMap:isMainMap});
Mouse.removeListener(this);
stopDragging();
}
function onRollOver() {
(_local3 || (_local3 = com.yahoo.maps.EventController)).getInstance().sendEvent(this, com.yahoo.maps.AppEvents.mapRollOver, {isMainMap:isMainMap});
Mouse.addListener(this);
}
function tileLoaded(o) {
tilesComplete = tilesComplete + 1;
if (tilesComplete == expectedInitialTiles) {
bg.mc._visible = true;
dispatchEvent({type:"mapCreated", mapType:_mapViewType, rows:rows, cols:columns, row1:tiles[0][0].tileRow, col1:tiles[0][0].tileCol});
}
o.target.removeEventListener(o.type, this);
_created = true;
}
function get created() {
return(_created);
}
function get zoom() {
return(_zoom);
}
function set width(w) {
//return(width);
}
function get width() {
return(origWidth);
}
function set height(h) {
//return(height);
}
function get height() {
return(origHeight);
}
function onKeyDown() {
var className = eval (Selection.getFocus()).className;
if ((((!(eval (Selection.getFocus()) instanceof TextField)) && (className != "List")) && (className != "ComboBox")) && (!session.getAttribute("isTextFieldFocus"))) {
isNavKeyPressed = true;
var keyCode = Key.getCode();
if ((isPanKeyPressed || (dragging)) && ((((((keyCode == 34) || (keyCode == com.yahoo.maps.NavKeys.NAV_KEY_PLUS)) || (keyCode == com.yahoo.maps.NavKeys.NAV_KEY_ZOOM_IN)) || (keyCode == 33)) || (keyCode == com.yahoo.maps.NavKeys.NAV_KEY_MINUS)) || (keyCode == com.yahoo.maps.NavKeys.NAV_KEY_ZOOM_OUT))) {
Mouse.show();
onKeyUpDelay();
}
isPanKeyPressed = false;
switch (keyCode) {
case 38 :
historyManager.cancelPendingSave();
isPanKeyPressed = true;
scroll(0, 35);
break;
case com.yahoo.maps.NavKeys.NAV_KEY_N :
historyManager.cancelPendingSave();
isPanKeyPressed = true;
scroll(0, 35);
break;
case 39 :
historyManager.cancelPendingSave();
isPanKeyPressed = true;
scroll(-35, 0);
break;
case com.yahoo.maps.NavKeys.NAV_KEY_E :
historyManager.cancelPendingSave();
isPanKeyPressed = true;
scroll(-35, 0);
break;
case 40 :
historyManager.cancelPendingSave();
isPanKeyPressed = true;
scroll(0, -35);
break;
case com.yahoo.maps.NavKeys.NAV_KEY_S :
historyManager.cancelPendingSave();
isPanKeyPressed = true;
scroll(0, -35);
break;
case 37 :
historyManager.cancelPendingSave();
isPanKeyPressed = true;
scroll(35, 0);
break;
case com.yahoo.maps.NavKeys.NAV_KEY_W :
historyManager.cancelPendingSave();
isPanKeyPressed = true;
scroll(35, 0);
break;
case com.yahoo.maps.NavKeys.NAV_KEY_SE :
historyManager.cancelPendingSave();
isPanKeyPressed = true;
scroll(-35, -35);
break;
case com.yahoo.maps.NavKeys.NAV_KEY_NE :
historyManager.cancelPendingSave();
isPanKeyPressed = true;
scroll(-35, 35);
break;
case 35 :
historyManager.cancelPendingSave();
isPanKeyPressed = true;
scroll(35, -35);
break;
case com.yahoo.maps.NavKeys.NAV_KEY_SW :
historyManager.cancelPendingSave();
isPanKeyPressed = true;
scroll(35, -35);
break;
case 36 :
historyManager.cancelPendingSave();
isPanKeyPressed = true;
scroll(35, 35);
break;
case com.yahoo.maps.NavKeys.NAV_KEY_NW :
historyManager.cancelPendingSave();
isPanKeyPressed = true;
scroll(35, 35);
break;
case 34 :
historyManager.cancelPendingSave();
com.yahoo.maps.EventController.getInstance().sendEvent(this, com.yahoo.maps.AppEvents.setCenterAndZoom, {zoom:Number(com.macromedia.mc.platform.Session.getInstance().getAttribute("zoom")) - 1});
break;
case com.yahoo.maps.NavKeys.NAV_KEY_PLUS :
historyManager.cancelPendingSave();
if (Key.isToggled(com.yahoo.maps.NavKeys.NAV_KEY_SHIFT)) {
com.yahoo.maps.EventController.getInstance().sendEvent(this, com.yahoo.maps.AppEvents.setCenterAndZoom, {zoom:Number(com.macromedia.mc.platform.Session.getInstance().getAttribute("zoom")) - 1});
}
break;
case com.yahoo.maps.NavKeys.NAV_KEY_ZOOM_IN :
historyManager.cancelPendingSave();
com.yahoo.maps.EventController.getInstance().sendEvent(this, com.yahoo.maps.AppEvents.setCenterAndZoom, {zoom:Number(com.macromedia.mc.platform.Session.getInstance().getAttribute("zoom")) - 1});
break;
case 33 :
historyManager.cancelPendingSave();
com.yahoo.maps.EventController.getInstance().sendEvent(this, com.yahoo.maps.AppEvents.setCenterAndZoom, {zoom:Number(com.macromedia.mc.platform.Session.getInstance().getAttribute("zoom")) + 1});
break;
case com.yahoo.maps.NavKeys.NAV_KEY_MINUS :
historyManager.cancelPendingSave();
com.yahoo.maps.EventController.getInstance().sendEvent(this, com.yahoo.maps.AppEvents.setCenterAndZoom, {zoom:Number(com.macromedia.mc.platform.Session.getInstance().getAttribute("zoom")) + 1});
break;
case com.yahoo.maps.NavKeys.NAV_KEY_ZOOM_OUT :
historyManager.cancelPendingSave();
com.yahoo.maps.EventController.getInstance().sendEvent(this, com.yahoo.maps.AppEvents.setCenterAndZoom, {zoom:Number(com.macromedia.mc.platform.Session.getInstance().getAttribute("zoom")) + 1});
break;
default :
isNavKeyPressed = false;
}
if (!isNavKeyPressed) {
switch (Key.getAscii()) {
case com.yahoo.maps.NavKeys.SAT_KEY_MAP :
historyManager.cancelPendingSave();
com.yahoo.maps.EventController.getInstance().sendEvent(this, com.yahoo.maps.AppEvents.changeSatelliteControl, {mapViewType:com.yahoo.maps.MapViews.MAP});
break;
case com.yahoo.maps.NavKeys.SAT_KEY_HYB :
historyManager.cancelPendingSave();
com.yahoo.maps.EventController.getInstance().sendEvent(this, com.yahoo.maps.AppEvents.changeSatelliteControl, {mapViewType:com.yahoo.maps.MapViews.HYBRID});
break;
case com.yahoo.maps.NavKeys.SAT_KEY_SAT :
historyManager.cancelPendingSave();
com.yahoo.maps.EventController.getInstance().sendEvent(this, com.yahoo.maps.AppEvents.changeSatelliteControl, {mapViewType:com.yahoo.maps.MapViews.SATELLITE});
break;
case com.yahoo.maps.NavKeys.SN_KEY :
historyManager.cancelPendingSave();
com.yahoo.maps.EventController.getInstance().sendEvent(this, com.yahoo.maps.AppEvents.setCenterByAddress, {address:com.yahoo.maps.NavKeys.SN_ADD, panDuration:10});
break;
case com.yahoo.maps.NavKeys.MC_KEY :
historyManager.cancelPendingSave();
com.yahoo.maps.EventController.getInstance().sendEvent(this, com.yahoo.maps.AppEvents.setCenterByAddress, {address:com.yahoo.maps.NavKeys.MC_ADD, panDuration:10});
break;
case com.yahoo.maps.NavKeys.FP_KEY :
historyManager.cancelPendingSave();
com.yahoo.maps.EventController.getInstance().sendEvent(this, com.yahoo.maps.AppEvents.setCenterByAddress, {address:com.yahoo.maps.NavKeys.FP_ADD, panDuration:10});
break;
case com.yahoo.maps.NavKeys.KN_KEY :
historyManager.cancelPendingSave();
com.yahoo.maps.EventController.getInstance().sendEvent(this, com.yahoo.maps.AppEvents.setCenterByAddress, {address:com.yahoo.maps.NavKeys.KN_ADD, panDuration:10});
}
}
clearInterval(keyTimer);
}
}
function onKeyUp() {
if (isNavKeyPressed) {
clearInterval(keyTimer);
if (isPanKeyPressed) {
keyTimer = setInterval(this, "onKeyUpDelay", 500);
}
}
}
function onKeyUpDelay() {
clearInterval(keyTimer);
dispatchEvent({type:"panStop"});
keyTimer = 0;
}
function ll_to_local(lat, lon, clip) {
var _local4 = getCenter();
var _local2 = mapProjection.ll_to_xy(Number(lat), Number(lon));
var _local6 = ((_local2.m_col * (_local10 || (_local10 = com.yahoo.maps.MapBase)).tileSize) + _local2.m_x) - ((_local4.m_col * (_local10 || (_local10 = com.yahoo.maps.MapBase)).tileSize) + _local4.m_x);
var _local5 = (((_local4.m_row - _local2.m_row) * (_local10 || (_local10 = com.yahoo.maps.MapBase)).tileSize) - _local2.m_y) + _local4.m_y;
var _local3 = new mx.graphics.Point(origWidth / 2, origHeight / 2);
mask.mc.localToGlobal(_local3);
clip.globalToLocal(_local3);
_local6 = _local6 + _local3.x;
_local5 = _local5 + _local3.y;
return({dx:(_local11 || (_local11 = Math)).round(_local6), dy:(_local11 || (_local11 = Math)).round(_local5)});
}
function getLatLon(point) {
mask.mc.localToGlobal(point);
var _local6;
var _local4 = 0;
while (_local4 < tiles.length) {
var _local2 = 0;
while (_local2 < tiles[_local4].length) {
var _local3 = tiles[_local4][_local2];
if (!_local3.hitTest(point)) {
} else {
_local6 = _local3;
break;
}
_local2++;
}
_local4++;
}
if (_local6 == undefined) {
}
_local6.globalToLocal(point);
point.y = (_local9 || (_local9 = com.yahoo.maps.MapBase)).tileSize - point.y;
var _local7 = mapProjection.xy_to_ll(_local6.tileCol, _local6.tileRow, point.x, point.y);
var _local8 = new com.yahoo.maps.LatLon(_local7.m_lat, _local7.m_lon);
return(_local8);
}
function getCenter() {
var _local5 = new mx.graphics.Point(origWidth / 2, origHeight / 2);
mask.mc.localToGlobal(_local5);
var _local6;
var _local4 = middleRow - 3;
while (_local4 < (middleRow + 3)) {
var _local2 = middleColumn - 3;
while (_local2 < (middleColumn + 3)) {
var _local3 = tiles[_local4][_local2];
if (!_local3.hitTest(_local5)) {
} else {
_local6 = _local3;
break;
}
_local2++;
}
_local4++;
}
if (_local6 == undefined) {
var _local9 = Number((_local10 || (_local10 = com.macromedia.mc.platform.Session)).getInstance().getAttribute("latitude"));
var _local8 = Number((_local10 || (_local10 = com.macromedia.mc.platform.Session)).getInstance().getAttribute("longitude"));
var _local7 = mapProjection.ll_to_xy(_local9, _local8);
_local7.m_lat = _local9;
_local7.m_lon = _local8;
return(_local7);
}
_local6.globalToLocal(_local5);
_local5.y = (_local11 || (_local11 = com.yahoo.maps.MapBase)).tileSize - _local5.y;
var _local7 = mapProjection.xy_to_ll(_local6.tileCol, _local6.tileRow, _local5.x, _local5.y);
_local7.m_x = Number(_local5.x);
_local7.m_y = Number(_local5.y);
_local7.m_row = _local6.tileRow;
_local7.m_col = _local6.tileCol;
return(_local7);
}
function setCenter(latitude, longitude, duration) {
var _local4 = mc._xscale;
if (_local4 != 100) {
scale(1);
}
var _local3 = getCenter();
var _local2 = mapProjection.ll_to_xy(Number(latitude), Number(longitude));
var _local6 = -((((_local2.m_col - _local3.m_col) * (_local10 || (_local10 = com.yahoo.maps.MapBase)).tileSize) + _local2.m_x) - _local3.m_x);
var _local5 = -((((_local3.m_row - _local2.m_row) * (_local10 || (_local10 = com.yahoo.maps.MapBase)).tileSize) + _local3.m_y) - _local2.m_y);
pan(_local6, _local5, duration);
pan(0, 0, 0);
if (_local4 != 100) {
scale(_local4 / 100);
}
}
function setCenterXY(pixelXY) {
var _local2 = new mx.graphics.Point(origWidth / 2, origHeight / 2);
mask.mc.localToGlobal(_local2);
var _local4 = _local2.x - pixelXY.x;
var _local3 = _local2.y - pixelXY.y;
pan(_local4, _local3);
}
function pan(dx, dy, duration) {
dx = (_local11 || (_local11 = Math)).round(dx);
dy = (_local11 || (_local11 = Math)).round(dy);
if (mc._xcale != 100) {
dx = (dx * 100) / mc._xscale;
dy = (dy * 100) / mc._yscale;
}
if (duration == 0) {
panPoint = new mx.graphics.Point(panOffset.x, panOffset.y);
var _local5 = new mx.graphics.Point(dx, dy);
panOffset = panOffset.Add(_local5);
moveTiles();
} else {
if (duration == undefined) {
duration = 500;
}
dragging = false;
panPoint = new mx.graphics.Point(panOffset.x, panOffset.y);
moveEffect.destroy();
dispatchEvent({type:"moveStart", data:{x:panPoint.x, y:panPoint.y}});
moveEffect = new com.yahoo.maps.flash.Effect(mc, duration, this, new mx.graphics.Point(dx, dy));
}
}
function scroll(dx, dy) {
dispatchEvent({type:"keyDown", data:{dx:dx, dy:dy}});
dispatchEvent({type:"panStart", data:{x:0, y:0}});
panOffset.x = panOffset.x + dx;
panOffset.y = panOffset.y + dy;
moveTiles();
dispatchEvent({type:"pan", data:{dx:dx, dy:dy}});
}
function move(x, y) {
if (x != undefined) {
container._x = x;
}
if (y != undefined) {
container._y = y;
}
}
function cancelPendingRequests() {
for (var _local3 in tiles) {
for (var _local2 in tiles[_local3]) {
tiles[_local3][_local2].cancelPendingRequest();
}
}
}
function hideHybridTiles() {
for (var _local3 in tiles) {
for (var _local2 in tiles[_local3]) {
tiles[_local3][_local2].hideHybrid();
}
}
}
function setViewType(type) {
if ((type == (_local7 || (_local7 = com.yahoo.maps.MapViews)).SATELLITE) && (_mapViewType == (_local7 || (_local7 = com.yahoo.maps.MapViews)).HYBRID)) {
hideHybridTiles();
} else if ((type == (_local7 || (_local7 = com.yahoo.maps.MapViews)).HYBRID) && (_mapViewType == (_local7 || (_local7 = com.yahoo.maps.MapViews)).SATELLITE)) {
var _local2;
var _local3 = tileUrl;
for (var _local5 in tiles) {
for (var _local4 in tiles[_local5]) {
_local2 = tiles[_local5][_local4];
_local2.__set__urlHB(_local3.makeUrl(_local2.tileRow, _local3.validateCol(_local2, _local2.tileCol), (_local7 || (_local7 = com.yahoo.maps.MapViews)).HYBRID));
}
}
}
_mapViewType = type;
}
function getTileAt(r, c) {
return(tiles[r][c]);
}
function scaleToZoomLevel(zoomIndex) {
var _local4 = _zoom;
var _local3 = zoomIndex;
var _local2 = (141.42135623731 * _local4) / _local3;
new com.yahoo.maps.flash.ScaleEffect(mc, _local2, 500, undefined, (_local6 || (_local6 = com.yahoo.maps.MapBase)).tileSize * (columns - (buffer * 2)), (_local6 || (_local6 = com.yahoo.maps.MapBase)).tileSize * (rows - (buffer * 2)));
}
function getScale() {
return(_scale);
}
function scale(multiplier) {
mc._xscale = 100 * multiplier;
mc._yscale = 100 * multiplier;
var _local7 = origWidth * multiplier;
var _local8 = origHeight * multiplier;
var _local4 = (_local9 || (_local9 = Math)).round((_local7 - origWidth) / 2);
var _local3 = (_local9 || (_local9 = Math)).round((_local8 - origHeight) / 2);
var _local6 = (oldX * multiplier) - _local4;
var _local5 = (oldY * multiplier) - _local3;
scaleOffset = new mx.graphics.Point(-_local4, -_local3);
mc._x = (_local9 || (_local9 = Math)).round(_local6);
mc._y = (_local9 || (_local9 = Math)).round(_local5);
_scale = multiplier;
}
function onRelease(o) {
dispatchEvent({type:"onRelease"});
var _local2 = getTimer();
if (((!dragging) && (!moveEffect)) && ((((_local6 || (_local6 = Math)).abs(_xmouse - onPressPoint.x) <= 1) && ((_local6 || (_local6 = Math)).abs(_ymouse - onPressPoint.y) <= 1)) || ((_local2 - pressTimer) < 300))) {
if (singleClickTimer != 0) {
clearInterval(singleClickTimer);
}
singleClickTimer = setInterval(this, "onSingleClickTimer", 300);
} else {
(_local5 || (_local5 = com.yahoo.maps.EventController)).getInstance().sendEvent(this, com.yahoo.maps.AppEvents.onUserMapViewChange);
dataService.trackState("pan");
}
stopDragging(o);
}
function onPress(o) {
bg.mc._visible = true;
var _local2 = getTimer();
if ((_local2 - pressTimer) < 300) {
stopDragging();
if (singleClickTimer != 0) {
clearInterval(singleClickTimer);
}
singleClickTimer = 0;
dragging = true;
gotozoom = Number((_local9 || (_local9 = com.macromedia.mc.platform.Session)).getInstance().getAttribute("zoom")) - 1;
if ((gotozoom >= 1) && (gotozoom <= 16)) {
dataService.trackState("zoom");
}
if (gotozoom < 1) {
gotozoom = 1;
} else if (gotozoom > 16) {
gotozoom = 16;
}
var _local5 = getLatLon(new mx.graphics.Point(mask.mc._xmouse, mask.mc._ymouse));
(_local9 || (_local9 = com.macromedia.mc.platform.Session)).getInstance().setAttribute("latitude", _local5.lat);
(_local9 || (_local9 = com.macromedia.mc.platform.Session)).getInstance().setAttribute("longitude", _local5.lon);
(_local7 || (_local7 = com.yahoo.maps.EventController)).getInstance().sendEvent(this, com.yahoo.maps.AppEvents.setCenterAndZoom, {center:_local5, zoom:gotozoom, ignoreZoom:true});
} else {
if (moveEffect) {
moveEffect.destroy();
moveEffect = null;
}
singleClickPoint = new mx.graphics.Point(mask.mc._xmouse, mask.mc._ymouse);
pressTimer = _local2;
startDragging(o);
}
historyManager.cancelPendingSave();
}
function onEffect(e) {
if (e.type == "update") {
var _local4 = new mx.graphics.Point((_local13 || (_local13 = Math)).round(e.data.x * e.percentComplete), (_local13 || (_local13 = Math)).round(e.data.y * e.percentComplete));
panOffset = panPoint.Add(_local4);
if (lastOffset == undefined) {
lastOffset = panPoint;
}
var _local3 = panOffset.subtract(lastOffset);
lastOffset = panOffset;
dispatchEvent({type:"movemap", data:{dx:_local3.x, dy:_local3.y}});
moveTiles();
} else {
lastOffset = undefined;
dispatchEvent({type:"moveStop", bypassMapViewChange:gotozoom != undefined});
if (gotozoom != undefined) {
(_local12 || (_local12 = com.yahoo.maps.EventController)).getInstance().sendEvent(this, com.yahoo.maps.AppEvents.setCenterAndZoom, {center:parent.map.getCenter(), zoom:gotozoom});
gotozoom = undefined;
}
moveEffect = null;
}
}
function onSingleClickTimer() {
if (singleClickTimer) {
dataService.trackState("pan");
clearInterval(singleClickTimer);
singleClickTimer = 0;
(_local5 || (_local5 = com.yahoo.maps.EventController)).getInstance().sendEvent(this, (_local4 || (_local4 = com.yahoo.maps.AppEvents)).onUserMapViewChange);
(_local5 || (_local5 = com.yahoo.maps.EventController)).getInstance().sendEvent(this, (_local4 || (_local4 = com.yahoo.maps.AppEvents)).setCenterAndZoom, {center:getLatLon(singleClickPoint)});
dispatchEvent({type:"singleClick"});
}
}
function startDragging() {
panPoint = new mx.graphics.Point((_local8 || (_local8 = Math)).round(_xmouse), (_local8 || (_local8 = Math)).round(_ymouse));
onPressPoint = panPoint;
if ((flags & (_local7 || (_local7 = com.yahoo.maps.MapBase)).bPanning) == 0) {
return(undefined);
}
dispatchEvent({type:"panStart", data:{x:panPoint.x, y:panPoint.y}});
Mouse.hide();
mouse_mc._x = _xmouse - 5;
mouse_mc._y = _ymouse;
mouse_mc._visible = true;
mc.onMouseMove = (_local6 || (_local6 = mx.utils.Delegate)).create(this, drag);
}
function drag() {
Mouse.hide();
drag_mc._x = _xmouse - 5;
drag_mc._y = _ymouse;
mouse_mc._x = _xmouse - 5;
mouse_mc._y = _ymouse;
var _local2 = new mx.graphics.Point((_local11 || (_local11 = Math)).round(_xmouse), (_local11 || (_local11 = Math)).round(_ymouse));
if ((_local2.x == panPoint.x) && (_local2.y == panPoint.y)) {
return(undefined);
}
if (dragging == false) {
dispatchEvent({type:"panStart", data:{x:panPoint.x, y:panPoint.y}});
}
dragging = true;
drag_mc._visible = true;
mouse_mc._visible = false;
if (singleClickTimer != 0) {
clearInterval(singleClickTimer);
}
singleClickTimer = 0;
var _local3 = _local2.subtract(panPoint);
var _local4 = _local3;
panOffset = panOffset.Add(_local4);
offset = _local4;
panPoint = _local2;
moveTiles();
dispatchEvent({type:"pan", data:{dx:_local3.x, dy:_local3.y}});
}
function stopDragging() {
drag_mc._visible = false;
mouse_mc._visible = false;
Mouse.show();
mc.onEnterFrame = null;
delete mc.onEnterFrame;
mc.onMouseMove = null;
delete mc.onMouseMove;
if (dragging) {
dispatchEvent({type:"panStop"});
}
dragging = false;
}
function makeText(col, row) {
return(((("[" + String(col)) + " , ") + String(row)) + "]");
}
function moveTiles() {
var _local11 = mc._xscale;
if (_local11 != 100) {
scale(1);
}
var _local2;
var _local3;
var _local4;
if (isMainMap) {
var _local10 = getLatLon(new mx.graphics.Point(origWidth / 2, 0));
var _local12 = getLatLon(new mx.graphics.Point(origWidth / 2, origHeight));
var _local16 = mapProjection.ll_to_pxy(_local10.lat, _local10.lon);
var _local19 = mapProjection.ll_to_pxy(_local12.lat, _local12.lon);
var _local18 = mapProjection.ll_to_pxy(85, _local10.lon);
var _local17 = mapProjection.ll_to_pxy(-85, _local12.lon);
var _local15 = panOffset.y - lastY;
var _local14 = (_local23 || (_local23 = Math)).floor(_local18.m_y - _local16.m_y);
var _local13 = (_local23 || (_local23 = Math)).ceil(_local19.m_y - _local17.m_y);
if (_local14 <= _local15) {
panOffset.y = lastY + _local14;
} else if (_local13 <= (-_local15)) {
panOffset.y = lastY - _local13;
}
lastY = panOffset.y;
}
if ((panOffset.x - xOffset) > (_local22 || (_local22 = com.yahoo.maps.MapBase)).halfTileSize) {
var _local9 = (_local23 || (_local23 = Math)).floor(((panOffset.x - xOffset) + (_local22 || (_local22 = com.yahoo.maps.MapBase)).halfTileSize) / (_local22 || (_local22 = com.yahoo.maps.MapBase)).tileSize);
var _local8 = 1;
while (_local8 <= _local9) {
var _local7 = 0;
while (_local7 < rows) {
_local2 = tiles[_local7].pop();
_local2.__set__x(_local2.__get__x() - ((_local22 || (_local22 = com.yahoo.maps.MapBase)).tileSize * columns));
_local3 = (_local7 - (_local23 || (_local23 = Math)).floor(yOffset / (_local22 || (_local22 = com.yahoo.maps.MapBase)).tileSize)) - middleRow;
_local4 = ((_local23 || (_local23 = Math)).floor((-xOffset) / (_local22 || (_local22 = com.yahoo.maps.MapBase)).tileSize) - _local8) - middleColumn;
tileUrl.defer(_local2, _local3, _local4);
tiles[_local7].unshift(_local2);
_local7++;
}
var _local6 = 0;
while (_local6 < columns) {
_local7 = 0;
while (_local7 < rows) {
tiles[_local7][_local6].x = ((_local6 - middleColumn) * (_local22 || (_local22 = com.yahoo.maps.MapBase)).tileSize) - (_local22 || (_local22 = com.yahoo.maps.MapBase)).halfTileSize;
_local7++;
}
_local6++;
}
_local8++;
}
xOffset = (_local23 || (_local23 = Math)).floor(0.5 + (panOffset.x / (_local22 || (_local22 = com.yahoo.maps.MapBase)).tileSize)) * (_local22 || (_local22 = com.yahoo.maps.MapBase)).tileSize;
} else if ((panOffset.x - xOffset) < (-(_local22 || (_local22 = com.yahoo.maps.MapBase)).halfTileSize)) {
var _local9 = (_local23 || (_local23 = Math)).ceil(((panOffset.x - xOffset) - (_local22 || (_local22 = com.yahoo.maps.MapBase)).halfTileSize) / (_local22 || (_local22 = com.yahoo.maps.MapBase)).tileSize);
var _local8 = -1;
while (_local8 >= _local9) {
_local4 = (middleColumn - (_local23 || (_local23 = Math)).floor(xOffset / (_local22 || (_local22 = com.yahoo.maps.MapBase)).tileSize)) - _local8;
var _local7 = 0;
while (_local7 < rows) {
_local2 = tiles[_local7].shift();
_local2.__set__x(_local2.__get__x() + ((_local22 || (_local22 = com.yahoo.maps.MapBase)).tileSize * columns));
_local3 = (_local7 - (_local23 || (_local23 = Math)).floor(yOffset / (_local22 || (_local22 = com.yahoo.maps.MapBase)).tileSize)) - middleRow;
tileUrl.defer(_local2, _local3, _local4);
tiles[_local7].push(_local2);
_local7++;
}
var _local6 = 0;
while (_local6 < columns) {
_local7 = 0;
while (_local7 < rows) {
tiles[_local7][_local6].x = ((_local6 - middleColumn) * (_local22 || (_local22 = com.yahoo.maps.MapBase)).tileSize) - (_local22 || (_local22 = com.yahoo.maps.MapBase)).halfTileSize;
_local7++;
}
_local6++;
}
_local8--;
}
xOffset = (_local23 || (_local23 = Math)).ceil((panOffset.x / (_local22 || (_local22 = com.yahoo.maps.MapBase)).tileSize) - 0.5) * (_local22 || (_local22 = com.yahoo.maps.MapBase)).tileSize;
}
mc._x = (_local23 || (_local23 = Math)).round(((width / 2) + panOffset.x) - xOffset);
if ((panOffset.y - yOffset) > (_local22 || (_local22 = com.yahoo.maps.MapBase)).halfTileSize) {
var _local9 = (_local23 || (_local23 = Math)).floor(((panOffset.y - yOffset) + (_local22 || (_local22 = com.yahoo.maps.MapBase)).halfTileSize) / (_local22 || (_local22 = com.yahoo.maps.MapBase)).tileSize);
var _local8 = 1;
while (_local8 <= _local9) {
var _local7 = tiles.pop();
var _local6 = 0;
while (_local6 < columns) {
_local2 = _local7[_local6];
_local2.__set__y(_local2.__get__y() - ((_local22 || (_local22 = com.yahoo.maps.MapBase)).tileSize * rows));
_local4 = (_local6 - (_local23 || (_local23 = Math)).floor(xOffset / (_local22 || (_local22 = com.yahoo.maps.MapBase)).tileSize)) - middleColumn;
_local3 = ((_local23 || (_local23 = Math)).floor((-yOffset) / (_local22 || (_local22 = com.yahoo.maps.MapBase)).tileSize) - _local8) - middleRow;
tileUrl.defer(_local2, _local3, _local4);
_local6++;
}
tiles.unshift(_local7);
_local6 = 0;
while (_local6 < columns) {
_local7 = 0;
while (_local7 < rows) {
tiles[_local7][_local6].y = ((_local7 - middleRow) * (_local22 || (_local22 = com.yahoo.maps.MapBase)).tileSize) - (_local22 || (_local22 = com.yahoo.maps.MapBase)).halfTileSize;
_local7++;
}
_local6++;
}
_local8++;
}
yOffset = (_local23 || (_local23 = Math)).floor(0.5 + (panOffset.y / (_local22 || (_local22 = com.yahoo.maps.MapBase)).tileSize)) * (_local22 || (_local22 = com.yahoo.maps.MapBase)).tileSize;
} else if ((panOffset.y - yOffset) < (-(_local22 || (_local22 = com.yahoo.maps.MapBase)).halfTileSize)) {
var _local9 = (_local23 || (_local23 = Math)).ceil(((panOffset.y - yOffset) - (_local22 || (_local22 = com.yahoo.maps.MapBase)).halfTileSize) / (_local22 || (_local22 = com.yahoo.maps.MapBase)).tileSize);
var _local8 = -1;
while (_local8 >= _local9) {
_local3 = (middleRow - (_local23 || (_local23 = Math)).floor(yOffset / (_local22 || (_local22 = com.yahoo.maps.MapBase)).tileSize)) - _local8;
var _local7 = tiles.shift();
var _local6 = 0;
while (_local6 < columns) {
_local2 = _local7[_local6];
_local4 = (_local6 - (_local23 || (_local23 = Math)).floor(xOffset / (_local22 || (_local22 = com.yahoo.maps.MapBase)).tileSize)) - middleColumn;
tileUrl.defer(_local2, _local3, _local4);
_local2.__set__y(_local2.__get__y() + ((_local22 || (_local22 = com.yahoo.maps.MapBase)).tileSize * rows));
_local6++;
}
tiles.push(_local7);
_local6 = 0;
while (_local6 < columns) {
_local7 = 0;
while (_local7 < rows) {
tiles[_local7][_local6].y = ((_local7 - middleRow) * (_local22 || (_local22 = com.yahoo.maps.MapBase)).tileSize) - (_local22 || (_local22 = com.yahoo.maps.MapBase)).halfTileSize;
_local7++;
}
_local6++;
}
_local8--;
}
yOffset = (_local23 || (_local23 = Math)).ceil((panOffset.y / (_local22 || (_local22 = com.yahoo.maps.MapBase)).tileSize) - 0.5) * (_local22 || (_local22 = com.yahoo.maps.MapBase)).tileSize;
}
var _local5 = tileUrl;
var _local7 = 0;
while (_local7 < rows) {
var _local6 = 0;
while (_local6 < columns) {
_local2 = tiles[_local7][_local6];
if ((!_deferredLoading) || (tileIsInView(_local2))) {
if (_mapViewType == (_local21 || (_local21 = com.yahoo.maps.MapViews)).HYBRID) {
_local2.__set__url(_local5.makeUrl(_local2.tileRow, _local5.validateCol(_local2, _local2.tileCol), (_local21 || (_local21 = com.yahoo.maps.MapViews)).SATELLITE));
_local2.__set__urlHB(_local5.makeUrl(_local2.tileRow, _local5.validateCol(_local2, _local2.tileCol), (_local21 || (_local21 = com.yahoo.maps.MapViews)).HYBRID));
} else {
_local2.__set__url(_local5.makeUrl(_local2.tileRow, _local5.validateCol(_local2, _local2.tileCol), _mapViewType));
}
}
_local6++;
}
_local7++;
}
mc._y = (_local23 || (_local23 = Math)).round(((height / 2) + panOffset.y) - yOffset);
oldX = mc._x;
oldY = mc._y;
if (_local11 != 100) {
scale(_local11 / 100);
}
updateAfterEvent();
}
function initTile(row, col, url) {
if ((row >= rows) || (col >= columns)) {
return(undefined);
}
var _local2 = tiles[row][col];
if ((_local2 == undefined) || (_local2.initialized())) {
return(undefined);
}
var _local6 = ((col - middleColumn) * (_local7 || (_local7 = com.yahoo.maps.MapBase)).tileSize) - (_local7 || (_local7 = com.yahoo.maps.MapBase)).halfTileSize;
var _local5 = ((row - middleRow) * (_local7 || (_local7 = com.yahoo.maps.MapBase)).tileSize) - (_local7 || (_local7 = com.yahoo.maps.MapBase)).halfTileSize;
_local2.move(_local6, _local5);
if (_deferredLoading) {
if (tileIsInView(_local2)) {
tileUrl.update(_local2, row - middleRow, col - middleColumn, _mapViewType);
expectedInitialTiles = expectedInitialTiles + 1;
} else {
tileUrl.defer(_local2, row - middleRow, col - middleColumn);
}
} else {
tileUrl.update(_local2, row - middleRow, col - middleColumn, _mapViewType);
expectedInitialTiles = expectedInitialTiles + 1;
}
}
function tileIsInView(t) {
var _local3 = new mx.graphics.Point(0, 0);
var _local2 = new mx.graphics.Point(width, height);
mask.mc.localToGlobal(_local3);
mask.mc.localToGlobal(_local2);
var _local5 = new mx.graphics.Rect(_local3.x, _local3.y, _local2.x, _local2.y);
_local3 = new mx.graphics.Point(t.__get__x(), t.__get__y());
_local2 = new mx.graphics.Point(t.__get__x() + (_local8 || (_local8 = com.yahoo.maps.MapBase)).tileSize, t.__get__y() + (_local8 || (_local8 = com.yahoo.maps.MapBase)).tileSize);
mc.localToGlobal(_local3);
mc.localToGlobal(_local2);
if (_local5.intersection(new mx.graphics.Rect(_local3.x, _local3.y, _local2.x, _local2.y)).isEmpty() == false) {
return(true);
}
return(false);
}
function addEventListener(event, listener) {
}
function removeEventListener(event, listener) {
}
static var tileSize = 256;
static var halfTileSize = 128;
var rows = 5;
var columns = 5;
var _deferredLoading = false;
static var bPanning = 1;
static var bDblClk = 2;
static var bAlphaTiles = 4;
static var bTransparentTiles = 8;
static var bDeferredLoading = 16;
static var instance = 0;
var tilesComplete = 0;
var dragging = false;
var xOffset = 0;
var yOffset = 0;
var buffer = 2;
var flags = bPanning | bDblClk;
var singleClickTimer = 0;
var keyTimer = 0;
var gotozoom = undefined;
var selectCursor = "__Resources.0785805483.csr_opn_png";
var moveCursor = "__Resources.0785805483.csr_cls_png";
var className = "MapBase";
}
Symbol 209 MovieClip [__Packages.com.yahoo.maps.data.SuggestedAddress] Frame 0
class com.yahoo.maps.data.SuggestedAddress
{
var latlon, street, city, state, zip, country, status, zoomLevel;
function SuggestedAddress () {
}
function parseLocation(location) {
latlon = new com.yahoo.maps.LatLon(location.__get__lat(), location.__get__lon());
street = location.street;
city = location.city;
state = location.state;
zip = location.zip;
country = location.country;
status = location.status;
zoomLevel = Number(location.__get__mag());
}
var className = "SuggestedAddress";
}
Symbol 226 MovieClip [__Packages.com.yahoo.maps.markers.CustomImageMarker] Frame 0
class com.yahoo.maps.markers.CustomImageMarker extends com.yahoo.maps.Marker
{
var url, createEmptyMovieClip, mcLoader;
function CustomImageMarker () {
super();
}
function onLoad() {
attachImage();
}
function getURL() {
return(url);
}
function attachImage() {
createEmptyMovieClip("mcLoader", 1);
mcLoader.loadMovie(url);
}
static var className = "com.yahoo.maps.markers.CustomImageMarker";
static var symbolOwner = com.yahoo.maps.markers.CustomImageMarker;
static var symbolName = "com.yahoo.maps.markers.CustomImageMarker";
}
Symbol 228 MovieClip [__Packages.com.yahoo.maps.flash.Bubble] Frame 0
class com.yahoo.maps.flash.Bubble
{
var _mc, bubbleWidth, bubbleHeight, color, _icon;
function Bubble (owner, width, height, color, borderColor, borderWidth) {
(_local8 || (_local8 = com.yahoo.maps.flash.Bubble)).instance = (_local8 || (_local8 = com.yahoo.maps.flash.Bubble)).instance + 1;
_mc = owner.createEmptyMovieClip("bubble" + String((_local8 || (_local8 = com.yahoo.maps.flash.Bubble)).instance), owner.getNextHighestDepth());
bubbleWidth = width;
bubbleHeight = height;
this.color = color;
this.borderColor = borderColor;
this.borderWidth = borderWidth;
if (bubbleWidth == undefined) {
bubbleWidth = 16;
}
if (bubbleHeight == undefined) {
bubbleHeight = 16;
}
if (this.color == undefined) {
this.color = 11184810 /* 0xAAAAAA */;
}
if (this.borderColor == undefined) {
this.borderColor = 16777215 /* 0xFFFFFF */;
}
if (this.borderWidth == undefined) {
this.borderWidth = 1;
}
draw();
}
function draw() {
_mc.clear();
_mc.beginFill(shadowColor, shadowAlpha / 2);
drawBubble(_mc, borderWidth + 3, borderWidth + 3, bubbleWidth, bubbleHeight, stemWidth, stemHeight);
_mc.endFill();
_mc.beginFill(shadowColor, shadowAlpha / 2);
drawBubble(_mc, borderWidth + 1, borderWidth + 1, bubbleWidth, bubbleHeight, stemWidth, stemHeight);
_mc.endFill();
_mc.beginFill(borderColor, 100);
drawBubble(_mc, 0, 0, bubbleWidth, bubbleHeight, stemWidth, stemHeight);
_mc.endFill();
_mc.beginFill(color, 100);
drawBubble(_mc, borderWidth, -2 * borderWidth, bubbleWidth - (2 * borderWidth), bubbleHeight - (2 * borderWidth), stemWidth - (2 * borderWidth), stemHeight - borderWidth);
_mc.endFill();
}
function drawBubble(clip, x, y, w, h, sw, sh) {
var _local7 = radius * 0.292893218813453;
var _local6 = radius * 0.585786437626905;
var _local4 = new mx.graphics.Point(x, (y - h) - sh);
var _local3 = new mx.graphics.Point(x + w, (y - h) - sh);
var _local2 = new mx.graphics.Point(x + w, y - sh);
var _local12 = new mx.graphics.Point(x + sw, y - sh);
var _local8 = new mx.graphics.Point(x, y);
clip.moveTo(_local8.x, _local8.y);
clip.lineTo(_local4.x, _local4.y + radius);
clip.curveTo(_local4.x, _local4.y + _local6, _local4.x + _local7, _local4.y + _local7);
clip.curveTo(_local4.x + _local6, _local4.y, _local4.x + radius, _local4.y);
clip.lineTo(_local3.x - radius, _local3.y);
clip.curveTo(_local3.x - _local6, _local3.y, _local3.x - _local7, _local3.y + _local7);
clip.curveTo(_local3.x, _local3.y + _local6, _local3.x, _local3.y + radius);
clip.lineTo(_local2.x, _local2.y - radius);
clip.curveTo(_local2.x, _local2.y - _local6, _local2.x - _local7, _local2.y - _local7);
clip.curveTo(_local2.x - _local6, _local2.y, _local2.x - radius, _local2.y);
clip.lineTo(_local12.x, _local12.y);
clip.lineTo(_local8.x, _local8.y);
}
function set icon(v) {
_icon = _mc.attachMovie(v, v + String((_local7 || (_local7 = com.yahoo.maps.flash.Bubble)).instance), _mc.getNextHighestDepth(), {_x:1, _y:(-stemHeight) - (2 * borderWidth), _width:bubbleWidth - (2 * borderWidth), _height:bubbleHeight - (2 * borderWidth)});
//return(icon);
}
function get icon() {
return(_icon);
}
function set width(v) {
bubbleWidth = v;
//return(width);
}
function get width() {
return(mc._width);
}
function set height(v) {
bubbleHeight = v;
//return(height);
}
function get height() {
return(mc._height);
}
function get mc() {
return(_mc);
}
function get stem() {
return(stemHeight + borderWidth);
}
var stemHeight = 7;
var stemWidth = 7;
var radius = 6;
static var instance = 1;
var borderColor = 16777215;
var borderWidth = 1;
var shadowColor = 0;
var shadowAlpha = 30;
var className = "Bubble";
}
Symbol 229 MovieClip [__Packages.com.yahoo.maps.markers.CustomPOIMarker] Frame 0
class com.yahoo.maps.markers.CustomPOIMarker extends com.yahoo.maps.Marker
{
var up, over, rolloverState, locked, _isInExpand, _eventController, globalToLocal, _width, _height, onMouseDown, createEmptyMovieClip, getNextHighestDepth, rating, styleSheet, index, title, description, originalDepth, getDepth, swapDepths, _parent, rolloverWidth, rolloverHeight, rolloverHeightAndStem, finishInterval, urlsArray, getURL, maxWidth, overWidth, overHeight, overHeightAndStem;
function CustomPOIMarker () {
super();
up._visible = false;
over._visible = false;
rolloverState._visible = false;
locked = false;
_isInExpand = false;
_eventController = (_local3 || (_local3 = com.yahoo.maps.EventController)).getInstance();
}
function onLoad() {
initMarker();
}
function onContainerMouseDown() {
var _local3 = {x:_root._xmouse, y:_root._ymouse};
globalToLocal(_local3);
if ((((_local3.x < 0) || (_local3.x > _width)) || (_local3.y > 0)) || (_local3.y < (-_height))) {
}
}
function onMouseOut() {
if (locked) {
return(undefined);
}
onMouseDown();
}
function initMarker() {
over = createEmptyMovieClip("over", getNextHighestDepth());
over._visible = false;
up._visible = true;
rolloverState._visible = false;
over.rating._visible = false;
over.rating._xscale = 0;
rating._visible = false;
styleSheet = new TextField.StyleSheet();
styleSheet.setStyle("upIndex", {fontWeight:"bold", textDecoration:"none", fontSize:"10", color:"#FFFFFF", fontFamily:"Tahoma,Verdana,Arial"});
styleSheet.setStyle("indexTitle", {textDecoration:"none", fontSize:"10", color:indexColor, fontFamily:"Tahoma,Verdana,Arial"});
styleSheet.setStyle("mr", {textDecoration:"none", fontSize:"10", color:"#333333", fontFamily:"Tahoma,Verdana,Arial"});
styleSheet.setStyle("a", {textDecoration:"none", color:"#255fc1", fontSize:"10", fontFamily:"Tahoma,Verdana,Arial"});
styleSheet.setStyle("a:hover", {textDecoration:"underline", fontSize:"10", fontFamily:"Tahoma,Verdana,Arial"});
styleSheet.setStyle("upStyle", {fontWeight:"bold", fontSize:"10", fontFamily:"Tahoma,Verdana,Arial", textDecoration:"none", color:"#0353A5", textAlign:"center"});
up.label.styleSheet = styleSheet;
var scope = this;
if (index == undefined) {
index = "";
}
if (title == undefined) {
title = "";
}
if (description == undefined) {
description = "";
}
createStates();
up.onRollOver = function () {
if (scope.locked) {
return(undefined);
}
(_local3 || (_local3 = com.yahoo.maps.markers.CustomPOIMarker)).openMarker.close();
(_local3 || (_local3 = com.yahoo.maps.markers.CustomPOIMarker)).openMarker = scope;
scope.over._visible = false;
scope.rolloverState._visible = true;
scope.rolloverState.isOpen = true;
scope.swapMarker();
var _local2 = new Object();
_local2.trueWidth = scope.rolloverState.bubble.bubbleWidth;
scope.rolloverState.bubble.width = scope.up.bubble.bubbleWidth;
scope.rolloverState.bubble.draw();
scope.rolloverState.labelText._visible = false;
scope.rolloverState.chevron._visible = false;
_local2.target = scope.rolloverState;
_local2.onEffect = function (e) {
if (e.type == "update") {
this.target.bubble.width = Math.max(this.trueWidth * e.percentComplete, this.target.bubble.bubbleWidth);
this.target.bubble.draw();
} else {
scope.rolloverState.labelText._visible = (scope.rolloverState.chevron._visible = true);
this.target = null;
}
};
new com.yahoo.maps.flash.Effect(this, 200, _local2);
scope._eventController.sendEvent(scope, com.yahoo.maps.AppEvents.EVENT_POI_OVER, null);
};
rolloverState.onRelease = function () {
scope.overState();
clearInterval(this._parent.dragInterval);
scope._eventController.sendEvent(scope, com.yahoo.maps.AppEvents.EVENT_POI_EXPAND, null);
var _local2 = this._parent._parent._parent;
_local2.dispatchEvent({type:(_local6 || (_local6 = com.yahoo.maps.ExtensibleYMap)).POI_CLICKED, latlon:this._parent.__latlon, marker:this._parent});
};
rolloverState.onRollOut = function () {
if (scope.locked) {
return(undefined);
}
if ((((this._xmouse > this._x) && (this._xmouse < (this._x + this._width))) && (this._ymouse < (this._y - this.borderWidth))) && (this._ymouse > ((this._y - this._height) + (2 * this.borderWidth)))) {
return(undefined);
}
if (this._visible) {
scope._eventController.sendEvent(scope, com.yahoo.maps.AppEvents.EVENT_POI_OUT, null);
scope.close();
}
};
rolloverState.onPress = function () {
this._parent.overStatePressX = this._parent._xmouse;
this._parent.overStatePressY = this._parent._ymouse;
};
over.bubble.mc.onPress = function () {
var _local2 = {x:this._parent.labelText._x, y:this._parent.labelText._y};
scope.localToGlobal(_local2);
var _local6 = {htmlText:scope._dragDisplayText, address:scope._addressCityState, x:_local2.x - 22, y:_local2.y, width:this._parent.labelText._width};
};
over.closeButton.onRollOver = (over.closeButton.onDragOver = function () {
if (this.locked) {
return(undefined);
}
(this.gotoAndStop("over"));// not popped
});
over.closeButton.onRollOut = (over.closeButton.onDragOut = function () {
if (this.locked) {
return(undefined);
}
(this.gotoAndStop("up"));// not popped
});
over.closeButton.onPress = function () {
(this.gotoAndStop("down"));// not popped
};
over.closeButton.onRelease = function () {
this.over.closeButton.onRollOut();
scope.close();
};
}
function onCloseButtonOver() {
}
function onCloseButtonOut() {
}
function onCloseButtonPress() {
}
function onCloseButtonRelease() {
}
function overState() {
rolloverState.isOpen = false;
over._visible = true;
rolloverState.isOpen = false;
over.isOpen = true;
up._visible = false;
rolloverState._visible = false;
originalDepth = getDepth();
swapMarker();
var _local2 = new Object();
_local2.trueHeight = over.bubble.bubbleHeight;
over.bubble.height = rolloverState.bubble.bubbleHeight;
over.bubble.draw();
over.labelText._visible = false;
over.detailText._visible = false;
over.rating._visible = false;
over.closeButton._visible = false;
_local2.target = over;
_local2.onEffect = function (e) {
if (e.type == "update") {
this.target.bubble.height = Math.max(this.trueHeight * e.percentComplete, this.target.bubble.bubbleHeight);
this.target.bubble.draw();
} else {
this.target.rating._visible = (this.target.closeButton._visible = (this.target.labelText._visible = (this.target.detailText._visible = true)));
this.target = null;
}
};
new com.yahoo.maps.flash.Effect(this, 200, _local2);
}
function swapMarker() {
swapDepths(_parent.getNextHighestDepth());
}
function createStates() {
drawUpState();
drawRolloverState();
drawOverState();
}
function drawUpState() {
up = createEmptyMovieClip("up", getNextHighestDepth());
up.topMargin = 2;
up.rightMargin = 5;
up.bottomMargin = 2;
up.leftMargin = 5;
up.bubble = new com.yahoo.maps.flash.Bubble(up, undefined, undefined, markerColor);
up.createTextField("labelText", up.getNextHighestDepth(), 0, 0, 0, 0);
up.labelText.selectable = false;
up.labelText.autoSize = "left";
up.labelText.html = true;
up.labelText.styleSheet = styleSheet;
up.labelText.htmlText = ("<upIndex>" + index) + "</upIndex>";
up.bubble.width = (up.labelText._width + up.rightMargin) + up.leftMargin;
up.bubble.height = (up.labelText._height + up.topMargin) + up.bottomMargin;
up.bubble.draw();
up.labelText._x = up.leftMargin;
up.labelText._y = (((-up.bubble.height) + up.topMargin) + 2) + 1;
}
function drawRolloverState() {
rolloverState = createEmptyMovieClip("rolloverState", getNextHighestDepth());
rolloverState._visible = false;
rolloverState.topMargin = 2;
rolloverState.rightMargin = 5;
rolloverState.bottomMargin = 2;
rolloverState.leftMargin = 5;
rolloverState.innerSpace = 10;
rolloverState.borderWidth = 2;
rolloverState.bubble = new com.yahoo.maps.flash.Bubble(rolloverState, undefined, undefined, strokeColor, markerColor, rolloverState.borderWidth);
rolloverState.createTextField("labelText", rolloverState.getNextHighestDepth(), 0, 0, 0, 0);
rolloverState.labelText.selectable = false;
rolloverState.labelText.autoSize = "left";
rolloverState.labelText.html = true;
rolloverState.labelText.styleSheet = styleSheet;
rolloverState.labelText.htmlText = (((("<p><indexTitle><b>" + index) + " ") + "<mr>") + title) + "</mr></b></indexTitle></p>";
rolloverState.labelText._x = rolloverState.leftMargin;
rolloverState.chevron = rolloverState.attachMovie("chevron", "chevron", rolloverState.getNextHighestDepth());
rolloverState.chevron._x = (rolloverState.labelText._x + rolloverState.labelText._width) + rolloverState.innerSpace;
rolloverWidth = (rolloverState.chevron._x + rolloverState.chevron._width) + rolloverState.rightMargin;
rolloverHeight = (rolloverState.labelText._height + rolloverState.topMargin) + rolloverState.bottomMargin;
rolloverHeightAndStem = (rolloverHeight + rolloverState.bubble.stem) + rolloverState.bubble.borderWidth;
rolloverState.bubble.width = rolloverWidth;
rolloverState.bubble.height = rolloverHeight;
rolloverState.bubble.draw();
rolloverState.labelText._y = (((-rolloverState.bubble.height) + rolloverState.topMargin) + 2) + 2;
rolloverState.chevron._y = rolloverState.labelText._y + (rolloverState.chevron._height / 2);
}
function drawOverState() {
over._visible = false;
over.topMargin = 2;
over.rightMargin = 7;
over.bottomMargin = 11;
over.leftMargin = 7;
over.innerSpace = 10;
over.bubble = new com.yahoo.maps.flash.Bubble(over, undefined, undefined, strokeColor, markerColor, 2);
over.createTextField("dummy", 1000, -5000, -5000, 0, 0);
over.dummy.wordWrap = true;
over.dummy.multiline = true;
over.dummy.autoSize = "left";
over.dummy.html = true;
over.dummy.styleSheet = styleSheet;
over.createTextField("labelText", over.getNextHighestDepth(), 0, 0, 0, 0);
over.labelText.selectable = false;
over.labelText.autoSize = "left";
over.labelText.multiline = true;
over.labelText.html = true;
over.labelText.styleSheet = styleSheet;
over.labelText.htmlText = (((("<p><indexTitle><b>" + index) + " ") + "<mr>") + title) + "</mr></b></indexTitle></p>";
over.labelText._x = over.leftMargin;
over.labelText.styleSheet = styleSheet;
over.attachMovie("rating", "rating", over.getNextHighestDepth());
over.rating._visible = false;
over.rating._xscale = (over.rating._yscale = 0);
if (description.indexOf("<img") > -1) {
over.labelText.wordWrap = false;
}
var _local2 = ((((("<p><indexTitle><b>" + index) + " </b><mr><b>") + title) + "</b><br />") + description) + "</mr></indexTitle></p>";
var _local3 = MovieClip(this) + ".launchUrl";
_local2 = htmlAnchor128CharHack(_local2, _local3);
over.labelText.htmlText = (over.dummy.htmlText = _local2);
over.closeButton = over.attachMovie("closeButton", "closeButton", over.getNextHighestDepth());
finishInterval = setInterval(this, "finishStateDraw", 500);
}
function appendTextToAdjustImageWidth(htmlText) {
var _local9 = htmlText.split("<img");
if (_local9.length > 0) {
var _local8 = _local9[1].split("width");
if (_local8.length <= 0) {
trace((("CustomPOIMarker.appendTextToAdjustImageWidth(htmlText) The <image> tag in the html must contain 'width' and 'height' attribtues. The bad html is: " + htmlText) + " and belongs to: ") + toString());
} else {
var _local5 = _local8[1];
var _local6 = 0;
var _local7 = _local5.indexOf("'");
var _local11 = _local5.indexOf("\"");
if ((_local7 == -1) && (_local11 == -1)) {
trace("Error: html incorrectly formatted for " + this);
}
if (_local7 == -1) {
_local6 = _local11;
} else {
_local6 = _local7;
}
var _local12 = _local5.charAt(_local6);
var _local13 = _local5.indexOf(_local12, _local6 + 2);
var _local4 = _local5.substring(_local6 + 1, _local13);
var _local3 = ("<font color='" + strokeColor) + "' size='10'>";
var _local2 = 0;
while (_local2 < _local4) {
_local3 = _local3 + "-";
_local2 = _local2 + 5;
}
_local3 = _local3 + "</font>";
htmlText = htmlText + _local3;
}
}
return(htmlText);
}
function htmlAnchor128CharHack(htmlText, functionName) {
var _local21 = "<a ";
var _local20 = "</a>";
var _local13 = new Array();
urlsArray = new Array();
var _local4 = 0;
var _local3 = 0;
while (_local3 < (htmlText.length - 1)) {
_local3 = htmlText.indexOf(_local21, _local4);
if (_local3 == -1) {
break;
}
_local13.push(htmlText.substring(_local4, _local3));
_local4 = _local3;
_local3 = htmlText.indexOf(_local20, _local4);
if (_local3 == -1) {
break;
}
_local3 = _local3 + _local20.length;
var _local8 = htmlText.substring(_local4, _local3);
var _local2 = 0;
var _local7 = _local8.split("href")[1];
var _local10 = _local7.indexOf("'");
var _local12 = _local7.indexOf("\"");
if ((_local10 == -1) && (_local12 == -1)) {
trace("Error: html incorrectly formatted for " + this);
}
if (_local10 == -1) {
_local2 = _local12;
} else {
_local2 = _local10;
}
var _local14 = _local7.charAt(_local2);
var _local18 = _local7.indexOf(_local14, _local2 + 2);
var _local11 = _local7.substring(_local2 + 1, _local18);
if (_local11.length < 126) {
_local13.push(_local8);
_local4 = _local3;
continue;
}
var _local17 = urlsArray.push(_local11) - 1;
_local2 = 0;
var _local5 = _local8.split("target")[1];
_local10 = _local5.indexOf("'");
_local12 = _local5.indexOf("\"");
if ((_local10 == -1) && (_local12 == -1)) {
trace("Error: html incorrectly formatted for. " + this);
}
if (_local10 == -1) {
_local2 = _local12;
} else {
_local2 = _local10;
}
_local14 = _local5.charAt(_local2);
_local18 = _local5.indexOf(_local14, _local2 + 2);
var _local6 = _local5.substring(_local2 + 1, _local18);
if (((_local6 == undefined) || (_local6 == "")) || (_local6 == null)) {
_local6 = "_blank";
}
var _local16 = _local8.split(">")[1].split("<")[0];
var _local19 = (_local17 + "|") + _local6;
var _local15 = ((((("<a href='asfunction:" + functionName) + ",") + _local19) + "'>") + _local16) + "</a>";
_local13.push(_local15);
_local4 = _local3;
}
_local13.push(htmlText.substring(_local4, htmlText.length));
return(_local13.join(""));
}
function launchUrl(args) {
var _local2 = args.split("|");
var _local3 = urlsArray[_local2[0]];
var _local4 = _local2[1];
(getURL(_local3, _local4));// not popped
}
function finishStateDraw() {
over.labelText._width = over.dummy._width;
if (description.indexOf("<img") > -1) {
over.labelText._width = over.labelText._width + 20;
}
clearInterval(finishInterval);
if ((maxWidth != null) && (over.labelText._width > maxWidth)) {
over.labelText.wordWrap = true;
over.labelText._width = maxWidth;
}
over.createTextField("detailText", over.getNextHighestDepth(), 0, 0, 0, 0);
over.detailText.styleSheet = styleSheet;
over.detailText.html = true;
over.detailText.multiline = true;
over.detailText.autoSize = "left";
over.detailText._x = (over.labelText._x = (over.rating._x = over.leftMargin));
over.detailText._y = (-over.detailText._height) - over.bottomMargin;
var _local2 = 0;
over.labelText._y = (over.detailText._y - over.labelText._height) - 2;
over.closeButton._y = over.labelText._y;
overWidth = (_local3 || (_local3 = Math)).max(over.labelText._width + 20, over.detailText._width);
overWidth = ((_local3 || (_local3 = Math)).max(overWidth, over.rating._width) + over.rightMargin) + over.leftMargin;
over.bubble.width = overWidth;
overHeight = ((((over.labelText._height + over.detailText._height) + over.rating._height) + over.topMargin) + over.bottomMargin) - _local2;
overHeightAndStem = (overHeight + over.bubble.stem) + over.bubble.borderWidth;
over.bubble.height = overHeight;
over.bubble.draw();
over.closeButton._x = overWidth - 20;
over.closeButton._y = -overHeight;
}
function close() {
if (locked) {
return(undefined);
}
rolloverState._visible = false;
over._visible = false;
up._visible = true;
if (!_isInExpand) {
_eventController.sendEvent(this, com.yahoo.maps.AppEvents.EVENT_POI_CLOSE, null);
} else {
_isInExpand = false;
}
}
function openDetailurl() {
}
function hidePOIMarker() {
close();
}
function expand() {
if (locked) {
return(undefined);
}
overState();
}
function open() {
_isInExpand = true;
up.onRollOver();
}
function toString(Void) {
return((((("com.yahoo.maps.markers.CustomPOIMarker index = " + index) + ", title = ") + title) + " description = ") + description);
}
static var className = "com.yahoo.maps.markers.CustomPOIMarker";
var strokeColor = 16777215;
var markerColor = 10066176;
var indexColor = 0;
static var symbolOwner = com.yahoo.maps.markers.CustomPOIMarker;
static var symbolName = "com.yahoo.maps.markers.CustomPOIMarker";
}
Symbol 231 MovieClip [__Packages.com.yahoo.maps.markers.CustomSWFMarker] Frame 0
class com.yahoo.maps.markers.CustomSWFMarker extends com.yahoo.maps.Marker
{
var mcContainer, createEmptyMovieClip, useClip, url, mcLoader, _parent, ref;
function CustomSWFMarker () {
super();
}
function onLoad() {
attachSWF();
}
function attachSWF() {
var scope = this;
mcContainer = createEmptyMovieClip("mcContainer", 1);
if ((!useClip) || (useClip == false)) {
var _local2 = new Object();
System.security.allowDomain(url);
_local2.onLoadInit = function () {
scope.onLoadInit();
};
_local2.onLoadError = function () {
scope.onLoadError();
};
mcLoader = new MovieClipLoader();
mcLoader.addListener(_local2);
mcLoader.loadClip(url, mcContainer);
} else if (useClip == true) {
var _local6;
_local6 = mcContainer.attachMovie(url, url, mcContainer.getNextHighestDepth());
if (_local6) {
mcContainer.initMarker(this);
var _local3 = _parent._parent;
_local3.dispatchEvent({type:(_local8 || (_local8 = com.yahoo.maps.ExtensibleYMap)).CUSTOM_MARKER_LOADED, marker:mcContainer._parent, ref:ref});
}
}
}
function onLoadInit() {
mcContainer.initMarker(this);
mcContainer.gotoAndStop("init");
var _local2 = _parent._parent;
_local2.dispatchEvent({type:(_local6 || (_local6 = com.yahoo.maps.ExtensibleYMap)).CUSTOM_MARKER_LOADED, marker:mcContainer._parent, ref:ref});
}
function onLoadError() {
}
function show() {
super.show();
mcContainer.show();
}
function hide() {
super.hide();
mcContainer.hide();
}
function getURL() {
return(url);
}
function callCustomMethod(methodName, args) {
mcContainer[methodName].apply(mcContainer, args);
}
static var className = "com.yahoo.maps.markers.CustomSWFMarker";
static var symbolOwner = com.yahoo.maps.markers.CustomSWFMarker;
static var symbolName = "com.yahoo.maps.markers.CustomSWFMarker";
}
Symbol 254 MovieClip [__Packages.com.yahoo.maps.markers.POIMarker] Frame 0
class com.yahoo.maps.markers.POIMarker extends com.yahoo.maps.Marker
{
var locked, _config, _eventController, up, rolloverState, over, styleSheet, hitTest, icon, _icon, createEmptyMovieClip, _strokeColor, _markerColor, _indexColor, _addressCityState, _state, _city, _addr, _dragDisplayText, _phone, _title, _indexTitle, _index, _href, _detailurl, _id, _rateItURL, closeSessionOpenPOI, nudge, _width, _trueWidth, _xmouse, overStatePressX, _ymouse, overStatePressY, dragInterval, localToGlobal, originalDepth, getDepth, _rating, _height, setSessionOpenPOI, _marker, _lat, _lon, _nrating, _morelinks, swapDepths, _parent, isRolloverStateDrawn, isOverStateDrawn, showDirectionLinks, getURL;
function POIMarker () {
super();
locked = false;
_config = com.yahoo.maps.ExtensibleConfig.getInstance();
_eventController = (_local3 || (_local3 = com.yahoo.maps.EventController)).getInstance();
}
function onLoad() {
init();
}
function onUnload() {
delete up.onRollOver;
delete rolloverState.onRelease;
delete rolloverState.onRollOut;
delete rolloverState.onPress;
delete over.bubble.mc.onPress;
delete over.closeButton.onRollOver;
delete over.closeButton.onRollOut;
delete over.closeButton.onPress;
delete over.closeButton.onRelease;
delete over.rating.onPress;
delete up.labelText;
delete rolloverState.labelText;
delete over.labelText;
delete over.ratingText;
delete over.detailText;
delete styleSheet;
super.onUnload();
}
function onMouseDown() {
if ((!hitTest(_root._xmouse, _root._ymouse)) && (over._visible || (rolloverState._visible))) {
close();
}
}
function onMouseOut() {
if (locked) {
return(undefined);
}
onMouseDown();
}
function resizeIcon(target_mc) {
icon._width = _iconHW;
icon._height = _iconHW;
}
function init() {
if (_icon != null) {
var _local2 = new MovieClipLoader();
icon = createEmptyMovieClip("icon", 10);
_local2.loadClip(_icon, icon);
_local2.onLoadInit = (_local9 || (_local9 = mx.utils.Delegate)).create(this, resizeIcon);
} else {
_iconHW = 0;
}
_strokeColor = ((_strokeColor != undefined) ? (_strokeColor) : (strokeColor));
_markerColor = ((_markerColor != undefined) ? (_markerColor) : (markerColor));
styleSheet = new TextField.StyleSheet();
styleSheet.setStyle("upIndex", {fontWeight:"bold", textDecoration:"none", fontSize:"10", color:"#FFFFFF", fontFamily:"Tahoma,Verdana,Arial"});
styleSheet.setStyle("indexTitle", {textDecoration:"none", fontSize:"10", color:_indexColor, fontFamily:"Tahoma,Verdana,Arial"});
styleSheet.setStyle("mr", {textDecoration:"none", fontSize:"10", color:"#333333", fontFamily:"Tahoma,Verdana,Arial"});
styleSheet.setStyle("a", {textDecoration:"none", color:"#255fc1", fontSize:"10", fontFamily:"Tahoma,Verdana,Arial"});
styleSheet.setStyle("a:hover", {textDecoration:"underline", fontSize:"10", fontFamily:"Tahoma,Verdana,Arial"});
styleSheet.setStyle("upStyle", {fontWeight:"bold", fontSize:"10", fontFamily:"Tahoma,Verdana,Arial", textDecoration:"none", color:"#0353A5", textAlign:"center"});
up.label.styleSheet = styleSheet;
drawUpState();
up.onRollOver = (_local9 || (_local9 = mx.utils.Delegate)).create(this, showRollOverState);
_addressCityState = ((((_addr == undefined) || (_addr == "")) ? "" : (_addr + ", ")) + (((_city == undefined) || (_city == "")) ? "" : (_city + ", "))) + _state;
_dragDisplayText = ((((("<b>" + _title) + "</b><br>") + (((_phone == undefined) || (_phone == "")) ? "" : (_phone + "<br>"))) + (((_addr == undefined) || (_addr == "")) ? "" : (_addr + ",<br>"))) + (((_city == undefined) || (_city == "")) ? "" : (_city + ", "))) + _state;
_indexTitle = String(_index) + " ";
if (!_href) {
_detailurl = "http://local.yahoo.com/details?id=" + _id;
} else {
_detailurl = _href;
}
_rateItURL = "http://local.yahoo.com/reviews?id=" + _id;
}
function showRollOverState() {
drawRolloverState();
if (locked) {
return(undefined);
}
closeSessionOpenPOI();
(_local5 || (_local5 = com.yahoo.maps.markers.POIMarker)).openMarker.close();
(_local5 || (_local5 = com.yahoo.maps.markers.POIMarker)).openMarker = this;
over._visible = false;
up._visible = false;
rolloverState._visible = true;
rolloverState.isOpen = true;
swapMarker();
_eventController.sendEvent(up, com.yahoo.maps.AppEvents.rollOverPOI, _id);
nudge(_width, 0);
var _local2 = new Object();
_trueWidth = rolloverState.bubble.bubbleWidth;
rolloverState.bubble.width = up.bubble.bubbleWidth;
rolloverState.bubble.draw();
rolloverState.labelText._visible = false;
rolloverState.chevron._visible = false;
_local2.onEffect = (_local4 || (_local4 = mx.utils.Delegate)).create(this, doRollOverEffect);
var _local3 = new com.yahoo.maps.flash.Effect(up, 200, _local2);
}
function doRollOverEffect(e) {
if (e.type == "update") {
rolloverState.bubble.width = Math.max(_trueWidth * e.percentComplete, rolloverState.bubble.bubbleWidth);
rolloverState.bubble.draw();
} else {
rolloverState.labelText._visible = (rolloverState.chevron._visible = true);
}
}
function checkForDrag() {
if ((overStatePressX != _xmouse) || (overStatePressY != _ymouse)) {
clearInterval(dragInterval);
var _local2 = {x:rolloverState.labelText._x, y:rolloverState.labelText._y};
localToGlobal(_local2);
var _local3 = {htmlText:_dragDisplayText, address:_addressCityState, x:_local2.x, y:_local2.y, width:rolloverState.labelText._width, data:getDataObj()};
_eventController.sendEvent(this, com.yahoo.maps.AppEvents.dragPOI, _local3);
}
}
function showOverState() {
drawOverState();
rolloverState.isOpen = (rolloverState.isOpen = false);
over._visible = true;
over.isOpen = true;
up._visible = (rolloverState._visible = false);
originalDepth = getDepth();
showRating(_rating);
swapMarker();
nudge(_width, -_height);
var _local2 = new Object();
_local2.trueHeight = over.bubble.bubbleHeight;
over.bubble.height = rolloverState.bubble.bubbleHeight;
over.bubble.draw();
over.labelText._visible = (over.detailText._visible = (over.ratingText._visible = (over.rating._visible = (over.closeButton._visible = false))));
_local2.target = over;
_local2.onEffect = function (e) {
if (e.type == "update") {
this.target.bubble.height = Math.max(this.trueHeight * e.percentComplete, this.target.bubble.bubbleHeight);
this.target.bubble.draw();
} else {
this.target.rating._visible = (this.target.closeButton._visible = (this.target.labelText._visible = (this.target.ratingText._visible = (this.target.detailText._visible = true))));
this.target = null;
}
};
new com.yahoo.maps.flash.Effect(this, 200, _local2);
setSessionOpenPOI(true);
over.swapDepths(rolloverState);
}
function getDataObj() {
var _local2 = new Object();
_local2._id = _id;
_local2._title = _title;
_local2._addr = _addr;
_local2._city = _city;
_local2._state = _state;
_local2._marker = _marker;
_local2._dragDisplayText = _dragDisplayText;
_local2._addressCityState = _addressCityState;
_local2._indexTitle = _indexTitle;
_local2._rating = _rating;
_local2._index = _index;
_local2._detailurl = _detailurl;
_local2._rateItURL = _rateItURL;
_local2._strokeColor = _strokeColor;
_local2._markerColor = _markerColor;
_local2._indexColor = _indexColor;
_local2._phone = _phone;
_local2._lat = _lat;
_local2._lon = _lon;
_local2._nrating = _nrating;
_local2._morelinks = _morelinks;
return(_local2);
}
function swapMarker() {
swapDepths(_parent.getNextHighestDepth());
}
function drawUpState() {
up = createEmptyMovieClip("up", 8);
up.topMargin = 2;
up.rightMargin = 5;
up.bottomMargin = 2;
up.leftMargin = 5;
up.bubble = new com.yahoo.maps.flash.Bubble(up, undefined, undefined, _markerColor);
up.createTextField("labelText", up.getNextHighestDepth(), 0, 0, 0, 0);
up.labelText.selectable = false;
up.labelText.autoSize = "left";
up.labelText.html = true;
up.labelText.styleSheet = styleSheet;
up.labelText.htmlText = ("<upIndex>" + _index) + "</upIndex>";
up.bubble.width = ((up.labelText._width + up.rightMargin) + up.leftMargin) + _iconHW;
up.bubble.height = (Math.max(up.labelText._height, _iconHW + 3) + up.topMargin) + up.bottomMargin;
up.bubble.draw();
up.labelText._x = up.leftMargin + (icon ? (_iconHW + 1) : 0);
up.labelText._y = ((((-up.bubble.height) + up.topMargin) + 2) + 1) + (icon ? 2 : 0);
icon._y = up.labelText._y + 1;
icon._x = icon._x + 4;
}
function drawRolloverState() {
if (!isRolloverStateDrawn) {
rolloverState = createEmptyMovieClip("rolloverState", 6);
rolloverState._visible = false;
rolloverState.topMargin = 2;
rolloverState.rightMargin = 5;
rolloverState.bottomMargin = 2;
rolloverState.leftMargin = 5;
rolloverState.innerSpace = 10;
rolloverState.borderWidth = 2;
rolloverState.bubble = new com.yahoo.maps.flash.Bubble(rolloverState, undefined, undefined, _strokeColor, _markerColor, rolloverState.borderWidth);
rolloverState.createTextField("labelText", rolloverState.getNextHighestDepth(), 0, 0, 0, 0);
rolloverState.labelText.selectable = false;
rolloverState.labelText.autoSize = "left";
rolloverState.labelText.html = true;
rolloverState.labelText.styleSheet = styleSheet;
rolloverState.labelText.htmlText = (((("<p><indexTitle><b>" + _index) + " ") + "<mr>") + _title) + "</b></mr></indexTitle></p>";
rolloverState.labelText._x = rolloverState.leftMargin + (icon ? (_iconHW + 1) : 0);
rolloverState.chevron = rolloverState.attachMovie("chevron", "chevron", rolloverState.getNextHighestDepth());
rolloverState.chevron._x = (rolloverState.labelText._x + rolloverState.labelText._width) + rolloverState.innerSpace;
rolloverState.bubble.width = (rolloverState.chevron._x + rolloverState.chevron._width) + rolloverState.rightMargin;
rolloverState.bubble.height = (Math.max(rolloverState.labelText._height, _iconHW + 3) + rolloverState.topMargin) + rolloverState.bottomMargin;
rolloverState.bubble.draw();
rolloverState.labelText._y = ((((-rolloverState.bubble.height) + rolloverState.topMargin) + 2) + 2) + (icon ? 2 : 0);
rolloverState.chevron._y = rolloverState.labelText._y + (rolloverState.chevron._height / 2);
var scope = this;
rolloverState.onRelease = function () {
scope.showOverState();
clearInterval(this._parent.dragInterval);
};
rolloverState.onRollOut = function () {
if (scope.locked) {
return(undefined);
}
if ((((this._xmouse > this._x) && (this._xmouse < (this._x + this._width))) && (this._ymouse < (this._y - this.borderWidth))) && (this._ymouse > ((this._y - this._height) + (2 * this.borderWidth)))) {
return(undefined);
}
if (this._visible) {
scope.close();
}
scope._eventController.sendEvent(this, com.yahoo.maps.AppEvents.rollOutPOI, scope._id);
this.rolloverState.swapDepths(this.up);
};
rolloverState.onPress = function () {
this._parent.overStatePressX = this._parent._xmouse;
this._parent.overStatePressY = this._parent._ymouse;
this._parent.dragInterval = setInterval(this._parent, "checkForDrag", 100);
};
isRolloverStateDrawn = true;
}
}
function drawOverState() {
icon._visible = false;
if (!isOverStateDrawn) {
over = createEmptyMovieClip("over", 4);
over._visible = false;
over.topMargin = 2;
over.rightMargin = 7;
over.bottomMargin = 11;
over.leftMargin = 7;
over.innerSpace = 10;
over.bubble = new com.yahoo.maps.flash.Bubble(over, undefined, undefined, _strokeColor, _markerColor, 2);
over.createTextField("labelText", over.getNextHighestDepth(), 0, 0, 0, 0);
over.labelText.selectable = false;
over.labelText.autoSize = "left";
over.labelText.multiline = true;
over.labelText.html = true;
over.labelText.styleSheet = styleSheet;
over.labelText.htmlText = (((("<p><indexTitle><b>" + _index) + " ") + "<mr>") + _title) + "</b></mr></indexTitle></p>";
over.labelText._x = over.leftMargin;
over.attachMovie("rating", "rating", over.getNextHighestDepth());
over.rating._visible = false;
over.rating._xscale = (over.rating._yscale = 0);
showRating(_rating);
over.labelText.styleSheet = styleSheet;
over.labelText.htmlText = ((("<p><indexTitle><b>" + _indexTitle) + "</b><mr>") + _dragDisplayText) + "</mr></indexTitle></p>";
over.createTextField("ratingText", over.getNextHighestDepth(), 0, 0, 0, 0);
over.createTextField("detailText", over.getNextHighestDepth(), 0, 0, 0, 0);
over.detailText.styleSheet = (over.ratingText.styleSheet = styleSheet);
over.detailText.html = (over.ratingText.html = true);
over.detailText.multiline = (over.ratingText.multiline = true);
over.detailText.autoSize = (over.ratingText.autoSize = "left");
var _local8 = "";
if (_rating != null) {
_local8 = ((_nrating > 0) ? (("<font color='#aaaaaa' face='tahoma,verdana,arial' size='10'>(" + _nrating) + ")</font> ") : "");
over.ratingText._x = 90;
} else {
over.ratingText._x = over.leftMargin;
}
if ((_local23 || (_local23 = com.yahoo.maps.Labels)).RATE_IT != undefined) {
var _local10 = (_local23 || (_local23 = com.yahoo.maps.Labels)).RATE_IT;
} else if (getExtensibleLanguages().rateItLabel != undefined) {
var _local10 = getExtensibleLanguages().rateItLabel;
} else {
var _local10 = "";
}
if (!_icon) {
over.ratingText.htmlText = ((_local8 + "<a href='asfunction:_parent.openRateItURL'>") + _local10) + "</a>";
} else {
over.ratingText.htmlText = "";
}
if (showDirectionLinks != false) {
over.detailText.htmlText = ((("<a href='asfunction:_parent.getDrivingDirectionsTo'>" + (_local23 || (_local23 = com.yahoo.maps.Labels)).DIRECTIONS_TO) + "</a> | <a href='asfunction:_parent.getDrivingDirectionsFrom'>") + (_local23 || (_local23 = com.yahoo.maps.Labels)).DIRECTIONS_FROM) + "</a>";
}
if ((_local23 || (_local23 = com.yahoo.maps.Labels)).MORE_INFO != undefined) {
var _local11 = (_local23 || (_local23 = com.yahoo.maps.Labels)).MORE_INFO;
var _local4 = (_local23 || (_local23 = com.yahoo.maps.Labels)).ZOOM_TO_POINT;
} else if (getExtensibleLanguages().moreInfoLabel != undefined) {
var _local11 = getExtensibleLanguages().moreInfoLabel;
var _local4 = "";
} else {
var _local11 = "";
var _local4 = "";
}
if ((!_icon) || (_icon && (_href != null))) {
over.detailText.htmlText = over.detailText.htmlText + (("<br><a href='asfunction:_parent.openDetailurl'>" + _local11) + "</a> ");
var _local13 = (_local21 || (_local21 = com.macromedia.mc.platform.Session)).getInstance().getAttribute("currentBizLocAd");
if (_local13.disableZoomToCenter) {
var _local4 = "";
} else {
var _local4 = (_local23 || (_local23 = com.yahoo.maps.Labels)).ZOOM_TO_POINT;
}
if ((_local4 != "") && ((_local23 || (_local23 = com.yahoo.maps.Labels)).ZOOM_TO_POINT != undefined)) {
over.detailText.htmlText = over.detailText.htmlText + (("| <a href='asfunction:_parent.zoomOnCenter'>" + _local4) + "</a> ");
}
}
over.detailText.autoSize = true;
if (_morelinks.links.length > 0) {
var _local17 = "<br>";
var i = 0;
while (i < _morelinks.links.length) {
var _local3 = i;
var _local2 = _morelinks.links[i];
over.relink = function () {
this.doLink(i);
};
if (_local2.desc != undefined) {
over.detailText.htmlText = over.detailText.htmlText + (((("<br><a href='asfunction:_parent.doLink," + String(i)) + "'>") + _local2.desc) + "</a>");
}
i++;
}
}
over.detailText._x = (over.labelText._x = (over.rating._x = over.leftMargin));
over.detailText._y = (-over.detailText._height) - over.bottomMargin;
var _local6 = 0;
if (_rating != null) {
_local6 = 5;
over.rating._y = over.detailText._y - over.rating._height;
over.ratingText._y = over.rating._y - 2;
over.labelText._y = over.rating._y - over.labelText._height;
} else {
over.ratingText._y = over.detailText._y - 10;
over.labelText._y = over.ratingText._y - over.labelText.textHeight;
}
if (_icon) {
over.labelText._y = over.labelText._y + 10;
_local6 = _local6 + 10;
}
over.closeButton = over.attachMovie("closeButton", "closeButton", over.getNextHighestDepth());
over.closeButton._y = over.labelText._y;
var _local5 = (_local22 || (_local22 = Math)).max(over.labelText._width + 20, over.detailText._width);
_local5 = ((_local22 || (_local22 = Math)).max(_local5, over.rating._width) + over.rightMargin) + over.leftMargin;
over.bubble.width = _local5;
var _local9 = ((((over.labelText._height + over.detailText._height) + over.rating._height) + over.topMargin) + over.bottomMargin) - _local6;
over.bubble.height = _local9;
over.bubble.draw();
over.closeButton._x = _local5 - 20;
over.closeButton._y = -_local9;
var scope = this;
over.bubble.mc.onPress = function () {
var _local2 = {x:this._parent.labelText._x, y:this._parent.labelText._y};
scope.localToGlobal(_local2);
var _local3 = {htmlText:scope._dragDisplayText, address:scope._addressCityState, x:_local2.x - 22, y:_local2.y, width:this._parent.labelText._width, data:scope.getDataObj()};
scope._eventController.sendEvent(this, com.yahoo.maps.AppEvents.dragPOI, _local3);
};
over.closeButton.onRollOver = (over.closeButton.onDragOver = function () {
if (this.locked) {
return(undefined);
}
(this.gotoAndStop("over"));// not popped
});
over.closeButton.onRollOut = (over.closeButton.onDragOut = function () {
if (this.locked) {
return(undefined);
}
(this.gotoAndStop("up"));// not popped
});
over.closeButton.onPress = function () {
(this.gotoAndStop("down"));// not popped
};
over.closeButton.onRelease = function () {
this.over.closeButton.onRollOut();
scope.close();
};
isOverStateDrawn = true;
}
}
function close() {
if (locked) {
return(undefined);
}
super.close();
_eventController.sendEvent(this, com.yahoo.maps.AppEvents.rollOutPOI, _id);
rolloverState._visible = false;
over._visible = false;
up._visible = true;
icon._visible = true;
over.swapDepths(up);
}
function openDetailurl() {
(getURL(_detailurl, "_parent"));// not popped
}
function openRateItURL() {
(getURL(_rateItURL, "_parent"));// not popped
}
function zoomOnCenter() {
var _local2 = 1;
_eventController.sendEvent(this, com.yahoo.maps.AppEvents.setCenterAndZoom, {center:new com.yahoo.maps.LatLon(Number(_lat), Number(_lon)), zoom:Number(_local2)});
}
function hidePOIMarker() {
close();
}
function showRating(val) {
if (val != undefined) {
val = val * 10;
over.rating._visible = true;
over.rating._xscale = (over.rating._yscale = 100);
over.rating.gotoAndStop(val);
over.rating.onPress = function () {
this._parent._parent.openDetailurl();
};
}
}
function expand() {
if (locked) {
return(undefined);
}
up.onRollOver();
}
function getDrivingDirectionsTo() {
_eventController.sendEvent(this, com.yahoo.maps.AppEvents.getDrivingDirectionsTo, {address:_addressCityState, address2BusinessLocation:address2BusinessLocation});
}
function getDrivingDirectionsFrom() {
_eventController.sendEvent(this, com.yahoo.maps.AppEvents.getDrivingDirectionsFrom, {address:_addressCityState, address2BusinessLocation:address2BusinessLocation});
}
function get address2BusinessLocation() {
var _local2 = new com.yahoo.maps.data.Address2BusinessLocation();
_local2.__set__localurl(_detailurl);
_local2.__set__rateItURL(_rateItURL);
_local2.__set__title(_title);
_local2.__set__phone(_phone);
_local2.__set__rating(_rating);
_local2.__set__nrating(_nrating);
return(_local2);
}
function setIcon(o) {
_icon = o.icon;
}
function getExtensibleLanguages() {
return(_config.getMapLocale());
}
function doLink(index) {
(getURL(_morelinks.links[index]._url, "_parent"));// not popped
}
static var className = "__Resources.0785805483.ddmarker_swf";
var _iconHW = 16;
var strokeColor = 16777215;
var markerColor = 10066176;
static var symbolOwner = com.yahoo.maps.markers.POIMarker;
static var symbolName = "com.yahoo.maps.markers.POIMarker";
}
Symbol 256 MovieClip [__Packages.com.yahoo.maps.api.rss.RSSError] Frame 0
class com.yahoo.maps.api.rss.RSSError
{
function RSSError (args) {
code = args.attributes.code;
cause = args.attributes.cause;
message = args.firstChild.nodeValue;
}
function toString() {
return((((("Code: " + code) + ", Casue: ") + cause) + ", Message: ") + message);
}
var code = new String();
var cause = new String();
var message = new String();
var className = "RSSError";
}
Symbol 257 MovieClip [__Packages.com.yahoo.maps.api.rss.RSSBase] Frame 0
class com.yahoo.maps.api.rss.RSSBase
{
var success, error;
function RSSBase (args, exceptions) {
var _local2;
var _local5;
var _local6;
var _local3 = args.firstChild;
while (_local3 != null) {
_local5 = false;
_local6 = _local3.nodeName.toLowerCase();
_local2 = 0;
while (_local2 < exceptions.length) {
if (_local6 == exceptions[_local2].field.toLowerCase()) {
exceptions[_local2].handler(_local3);
_local5 = true;
break;
}
_local2++;
}
if (_local5 == false) {
parseRSSFeed(_local3);
}
_local3 = _local3.nextSibling;
}
}
function parseRSSFeed(args) {
var _local4;
var _local2;
var _local3 = args;
success = true;
_local2 = getNodeName(_local3.nodeName);
_local4 = typeof(this[_local2]);
if (_local2 == "error") {
error = new com.yahoo.maps.api.rss.RSSError(_local3);
success = false;
} else if (_local3.firstChild.hasChildNodes()) {
if (_local4 == "object") {
this[getCall("set", _local2)](_local3);
} else {
handleArray(_local3);
}
} else if (this[_local2] instanceof String) {
this[_local2] = new String(_local3.firstChild.nodeValue);
} else if (this[_local2] instanceof Number) {
this[_local2] = new Number(_local3.firstChild.nodeValue);
} else if (this[_local2] instanceof Boolean) {
this[_local2] = new Boolean(_local3.firstChild.nodeValue);
} else if (_local2.indexOf("_") != 0) {
}
}
function handleArray(args) {
var _local2 = ("_" + args.nodeName) + "s";
var _local4 = typeof(this[_local2]);
if (this[_local2] instanceof Array) {
this[getCall("add", args.nodeName)](args);
}
}
function getCall(pre, root) {
var _local2;
root = root.toLowerCase();
_local2 = (pre + root.charAt(0).toUpperCase()) + root.substr(1, root.length);
return(_local2);
}
function getNodeName(arg) {
if (arg.indexOf(":") > -1) {
arg = arg.substring(arg.indexOf(":"), arg.length);
}
return(arg.toLowerCase());
}
var className = "RSSBase";
}
Symbol 258 MovieClip [__Packages.com.yahoo.maps.api.rss.POIImage] Frame 0
class com.yahoo.maps.api.rss.POIImage extends com.yahoo.maps.api.rss.RSSBase
{
function POIImage (arg) {
super(arg);
}
var height = new Number();
var index = new Number();
var link = new String();
var title = new String();
var url = new String();
var width = new Number();
var className = "POIImage";
}
Symbol 259 MovieClip [__Packages.com.yahoo.maps.api.rss.POILink] Frame 0
class com.yahoo.maps.api.rss.POILink extends com.yahoo.maps.api.rss.RSSBase
{
function POILink (args) {
super(args);
type = args.attributes.type;
}
var desc = new String();
var index = new Number();
var type = new String();
var url = new String();
var className = "POILink";
}
Symbol 260 MovieClip [__Packages.com.yahoo.maps.api.rss.POIPoint] Frame 0
class com.yahoo.maps.api.rss.POIPoint extends com.yahoo.maps.api.rss.RSSBase
{
function POIPoint (args) {
super(args, [{field:"morelink", handler:(_local6 || (_local6 = mx.utils.Delegate)).create(this, setMoreLink)}]);
}
function setMoreLink(args) {
var _local3;
var _local2 = args.firstChild;
while (_local2 != null) {
addLink(_local2);
_local2 = _local2.nextSibling;
}
}
function addLink(args) {
var _local2 = new com.yahoo.maps.api.rss.POILink(args);
_local2.index = _links.length + 1;
_links.push(_local2);
}
function getLinkAt(i) {
if ((i > 0) && (i < (_links.length - 1))) {
return(_links[i]);
}
return(null);
}
function get links() {
return(_links);
}
function addImg(args) {
var _local2 = new com.yahoo.maps.api.rss.POIImage(args);
_local2.index = _images.length + 1;
_images.push(_local2);
}
function getImageAt(i) {
if ((i > 0) && (i < (_images.length - 1))) {
return(_images[i]);
}
return(null);
}
function get images() {
return(_images);
}
var _links = new Array();
var _images = new Array();
var id = new String();
var body = new String();
var city = new String();
var category = new String();
var desc = new String();
var dist = new Number();
var href = new String();
var icon = new String();
var icon_hover = new String();
var icon_popup = new String();
var index = new Number();
var lat = new Number();
var lon = new Number();
var name = new String();
var phone = new String();
var plainbody = new String();
var qual = new String();
var street = new String();
var state = new String();
var title = new String();
var zip = new String();
var className = "POIPoint";
}
Symbol 261 MovieClip [__Packages.com.yahoo.maps.markers.RSSMarker] Frame 0
class com.yahoo.maps.markers.RSSMarker extends com.yahoo.maps.Marker
{
var _eventController, _dp, globalToLocal, _width, _height, styleSheet, mcl, createEmptyMovieClip, getNextHighestDepth, iconContainer, imageUrl, iconOver, locked, isOpen, title, body, iconPopup, imageContainer, swapDepths, _parent;
function RSSMarker () {
super();
_eventController = (_local3 || (_local3 = com.yahoo.maps.EventController)).getInstance();
}
function set dataProvider(dp) {
_dp = dp;
//return(dataProvider);
}
function get dataProvider() {
return(_dp);
}
function onLoad() {
initMarker();
}
function onContainerMouseDown() {
var _local3 = {x:_root._xmouse, y:_root._ymouse};
globalToLocal(_local3);
if ((((_local3.x < 0) || (_local3.x > _width)) || (_local3.y > 0)) || (_local3.y < (-_height))) {
}
}
function initMarker() {
styleSheet = new TextField.StyleSheet();
styleSheet.setStyle("upIndex", {fontWeight:"bold", textDecoration:"none", fontSize:"10", color:"#FFFFFF", fontFamily:"Tahoma,Verdana,Arial"});
styleSheet.setStyle("indexTitle", {textDecoration:"none", fontSize:"10", color:indexColor, fontFamily:"Tahoma,Verdana,Arial"});
styleSheet.setStyle("mr", {textDecoration:"none", fontSize:"10", color:"#333333", fontFamily:"Tahoma,Verdana,Arial"});
styleSheet.setStyle("a", {textDecoration:"none", color:"#255fc1", fontSize:"10", fontFamily:"Tahoma,Verdana,Arial"});
styleSheet.setStyle("a:hover", {textDecoration:"underline", fontSize:"10", fontFamily:"Tahoma,Verdana,Arial"});
styleSheet.setStyle("upStyle", {fontWeight:"bold", fontSize:"10", fontFamily:"Tahoma,Verdana,Arial", textDecoration:"none", color:"#0353A5", textAlign:"center"});
mcl = new MovieClipLoader();
mcl.addListener(this);
createEmptyMovieClip("iconContainer", getNextHighestDepth());
iconContainer.createEmptyMovieClip("icon", getNextHighestDepth());
createEmptyMovieClip("iconOver", getNextHighestDepth());
createEmptyMovieClip("iconPopup", getNextHighestDepth());
var _local2 = createEmptyMovieClip("imageContainer", getNextHighestDepth());
if (imageUrl) {
mcl.loadClip(imageUrl, _local2);
}
if (_dp.icon.toString().indexOf((_local10 || (_local10 = com.yahoo.maps.markers.RSSMarker)).DEFAULT_ICON) == -1) {
mcl.loadClip(String(_dp.icon), iconContainer.icon);
mcl.loadClip(String(_dp.icon_hover), iconOver);
} else {
iconContainer.icon = new com.yahoo.maps.flash.Bubble(iconContainer, undefined, undefined, BLUE, WHITE, 1);
}
iconContainer.onRelease = (_local9 || (_local9 = mx.utils.Delegate)).create(this, iconContainer_onRelease);
drawOverState();
locked = false;
isOpen = false;
_local2._visible = false;
}
function drawOverState() {
var _local4;
var _local3;
if ((!_dp.title) && (!_dp.body)) {
_local3 = title;
_local4 = body;
} else {
_local3 = _dp.title;
_local4 = _dp.body;
}
var scope = this;
iconPopup._visible = false;
iconPopup.topMargin = 2;
iconPopup.rightMargin = 7;
iconPopup.bottomMargin = 11;
iconPopup.leftMargin = 7;
iconPopup.innerSpace = 10;
iconPopup.bubble = new com.yahoo.maps.flash.Bubble(iconPopup, undefined, undefined, strokeColor, markerColor, 2);
imageContainer._visible = true;
iconPopup.createTextField("labelText", iconPopup.getNextHighestDepth(), 0, 0, 0, 0);
iconPopup.labelText.selectable = true;
iconPopup.labelText.autoSize = "left";
iconPopup.labelText.multiline = true;
iconPopup.labelText.html = true;
iconPopup.labelText.htmlText = ("<p><indexTitle><b><mr>" + _local3) + "</mr></b></indexTitle></p>";
iconPopup.labelText._x = (imageContainer._x = iconPopup.leftMargin);
iconPopup.labelText.styleSheet = styleSheet;
iconPopup.labelText._width = 250;
iconPopup.labelText.htmlText = ((("<p><indexTitle><mr><b>" + _local3) + "</b><br />") + _local4) + "</mr></indexTitle></p>";
iconPopup.createTextField("detailText", iconPopup.getNextHighestDepth(), 0, 0, 0, 0);
iconPopup.detailText.styleSheet = styleSheet;
iconPopup.detailText.selectable = true;
iconPopup.detailText.html = true;
iconPopup.detailText.multiline = true;
iconPopup.detailText.autoSize = "left";
iconPopup.detailText._x = (iconPopup.labelText._x = iconPopup.leftMargin);
iconPopup.detailText._y = (-iconPopup.detailText._height) - iconPopup.bottomMargin;
iconPopup.labelText._y = (iconPopup.detailText._y - iconPopup.labelText._height) - 2;
var _local2 = Math.max(iconPopup.labelText._width + 20, iconPopup.detailText._width);
_local2 = _local2 + (iconPopup.rightMargin + iconPopup.leftMargin);
if (imageUrl) {
_local2 = _local2 + 40;
}
iconPopup.bubble.width = _local2;
var _local5 = ((iconPopup.labelText._height + iconPopup.detailText._height) + iconPopup.topMargin) + iconPopup.bottomMargin;
iconPopup.bubble.height = _local5;
iconPopup.bubble.draw();
iconPopup.closeButton = iconPopup.attachMovie("closeButton", "closeButton", iconPopup.getNextHighestDepth());
iconPopup.closeButton._x = _local2 - 20;
iconPopup.closeButton._y = -_local5;
imageContainer._y = iconPopup.labelText._y + 15;
iconPopup.closeButton.onPress = function () {
(this.gotoAndStop("down"));// not popped
};
iconPopup.closeButton.onRelease = function () {
(this.gotoAndStop("up"));// not popped
scope.close();
};
iconPopup.closeButton.onRollOver = (iconPopup.closeButton.onDragOver = function () {
(this.gotoAndStop("over"));// not popped
});
iconPopup.closeButton.onRollOut = (iconPopup.closeButton.onDragOut = function () {
(this.gotoAndStop("up"));// not popped
});
}
function openDetailurl() {
}
function hidePOIMarker() {
close();
}
function open() {
if (!isOpen) {
isOpen = true;
swapDepths(_parent.getNextHighestDepth());
iconContainer._visible = false;
iconOver._visible = false;
iconPopup._visible = true;
imageContainer._visible = true;
}
}
function close() {
if (!isOpen) {
return(undefined);
}
imageContainer._visible = false;
isOpen = false;
iconPopup._visible = false;
iconOver._visible = false;
iconContainer._visible = true;
_eventController.sendEvent(this, com.yahoo.maps.AppEvents.EVENT_POI_CLOSE, null);
}
function onLoadError(target, code) {
}
function onLoadInit(target) {
if (target == imageContainer) {
target._visible = false;
}
if (target == iconContainer.icon) {
if (_dp.icon.toString().indexOf((_local6 || (_local6 = com.yahoo.maps.markers.RSSMarker)).DEFAULT_ICON) == -1) {
var _local4 = iconContainer.icon._width;
var _local3 = 20;
iconContainer.icon._width = _local3;
iconContainer.icon._height = iconContainer.icon._height * (_local3 / _local4);
}
iconContainer.icon._x = iconContainer.icon._x - (_local5 || (_local5 = Math)).ceil(iconContainer.icon._width / 2);
iconContainer.icon._y = iconContainer.icon._y - (_local5 || (_local5 = Math)).ceil(iconContainer.icon._height / 2);
iconContainer.icon._visible = true;
}
if (target == iconOver) {
target._x = target._x - (_local5 || (_local5 = Math)).ceil(target._width / 2);
target._y = target._y - (_local5 || (_local5 = Math)).ceil(target._height / 2);
}
}
function iconContainer_onRelease() {
(isOpen ? (close()) : (open()));
}
static var DEFAULT_ICON = "map_ic1_s.swf";
static var className = "com.yahoo.maps.markers.RSSMarker";
var strokeColor = 16777215;
var markerColor = 10066176;
var indexColor = 0;
var BLUE = 4848;
var WHITE = 16777215;
static var symbolOwner = com.yahoo.maps.markers.RSSMarker;
static var symbolName = "com.yahoo.maps.markers.RSSMarker";
}
Symbol 263 MovieClip [__Packages.com.yahoo.maps.markers.WaypointMarker] Frame 0
class com.yahoo.maps.markers.WaypointMarker extends com.yahoo.maps.Marker
{
var waypoint, attachMovie, getNextHighestDepth, _parent, waypointIndex;
function WaypointMarker () {
super();
}
function onLoad() {
waypoint = attachMovie((_local5 || (_local5 = com.yahoo.maps.markers.WaypointMarker)).waypointSymbol, "waypointSymbol", getNextHighestDepth());
updateWaypointIndex();
_parent._parent.dispatchEvent({type:(_local6 || (_local6 = com.yahoo.maps.ExtensibleYMap)).WAYPOINTMARKER_ADDED, marker:this, index:waypointIndex});
}
function setWaypointIndex(index) {
waypointIndex = index;
updateWaypointIndex();
}
function getWaypointIndex() {
return(waypointIndex);
}
function updateWaypointIndex() {
if (waypointIndex == null) {
waypointIndex = "";
}
waypoint.text.text = waypointIndex;
}
static var className = "com.yahoo.maps.markers.WaypointMarker";
static var waypointSymbol = "waypointSymbol";
static var symbolOwner = com.yahoo.maps.markers.WaypointMarker;
static var symbolName = "com.yahoo.maps.markers.WaypointMarker";
}
Symbol 268 MovieClip [__Packages.com.yahoo.maps.overlays.CustomSWFOverlay] Frame 0
class com.yahoo.maps.overlays.CustomSWFOverlay extends com.yahoo.maps.Overlay
{
var loaded, url, useClip, mcContainer, getContainer, mcLoader;
function CustomSWFOverlay (url, useClip) {
super();
loaded = false;
this.url = url;
this.useClip = useClip;
}
function initOverlay() {
attachSWF();
}
function attachSWF() {
var scope = this;
mcContainer = getContainer().createEmptyMovieClip("mcContainer", 1);
if ((!useClip) || (useClip == false)) {
var _local2 = new Object();
System.security.allowDomain(url);
_local2.onLoadInit = function () {
scope.onLoadInit();
};
_local2.onLoadError = function () {
scope.onLoadError();
};
mcLoader = new MovieClipLoader();
mcLoader.addListener(_local2);
mcLoader.loadClip(url, mcContainer);
} else if (useClip == true) {
var _local6;
_local6 = mcContainer.attachMovie(url, url, mcContainer.getNextHighestDepth());
if (_local6) {
var _local3 = mcContainer._parent._parent._parent;
_local3.dispatchEvent({type:(_local7 || (_local7 = com.yahoo.maps.ExtensibleYMap)).CUSTOM_OVERLAY_LOADED, overlay:mcContainer});
}
}
}
function onLoadInit() {
loaded = true;
mcContainer.initOverlay(this);
var _local2 = mcContainer._parent._parent._parent;
_local2.dispatchEvent({type:(_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).CUSTOM_OVERLAY_LOADED, overlay:mcContainer});
}
function onLoadError() {
loaded = false;
}
function show() {
super.show();
mcContainer.show();
}
function hide() {
super.hide();
mcContainer.hide();
}
function redraw() {
super.redraw();
mcContainer.redraw();
}
function detach() {
mcContainer.detach();
mcContainer.removeMovieClip();
super.detach();
}
function isLoaded() {
return(loaded);
}
function callCustomMethod(methodName, args) {
mcContainer[methodName].apply(mcContainer, args);
}
var className = "CustomSWFOverlay";
}
Symbol 269 MovieClip [__Packages.com.yahoo.maps.api.rss.RSSBound] Frame 0
class com.yahoo.maps.api.rss.RSSBound extends com.yahoo.maps.api.rss.RSSBase
{
var _bounds;
function RSSBound (args) {
super();
minLat = args.attributes.minLat;
maxLat = args.attributes.maxLat;
minLon = args.attributes.minLon;
maxLon = args.attributes.maxLon;
_bounds = new com.yahoo.maps.LatLonRect(minLat, minLon, maxLat, maxLon);
}
function getLatLonRect() {
return(_bounds);
}
var minLat = new Number();
var maxLat = new Number();
var minLon = new Number();
var maxLon = new Number();
var className = "RSSBound";
}
Symbol 270 MovieClip [__Packages.com.yahoo.maps.api.rss.RSSResponse] Frame 0
class com.yahoo.maps.api.rss.RSSResponse extends com.yahoo.maps.api.rss.RSSBase
{
var real_bound;
function RSSResponse (args) {
super(args, [{field:"real_bound", handler:(_local6 || (_local6 = mx.utils.Delegate)).create(this, setRealBound)}]);
}
function setRealBound(args) {
real_bound = new com.yahoo.maps.api.rss.RSSBound(args);
}
function addPoint(args) {
var _local2 = new com.yahoo.maps.api.rss.POIPoint(args, [{field:"morelink", handler:setRealBound}]);
_local2.index = _points.length + 1;
_points.push(_local2);
}
function getPointAt(index) {
if ((index > 0) && (index < (_points.length - 1))) {
return(_points[index]);
}
return(null);
}
function get points() {
return(_points);
}
var _points = new Array();
var bfkey = new String();
var clat = new Number();
var clong = new Number();
var errcnt = new Number();
var height = new Number();
var isbizlocator = new Boolean();
var fitzoom = new Number();
var maxcnt = new Number();
var more = new Boolean();
var radius = new Number();
var retcnt = new Number();
var width = new Number();
var zoom = new Number();
var className = "RSSResponse";
}
Symbol 271 MovieClip [__Packages.com.yahoo.maps.overlays.GeoRSSOverlay] Frame 0
class com.yahoo.maps.overlays.GeoRSSOverlay extends com.yahoo.maps.Overlay
{
var _url, _serviceUrl, _config, _updateMap, map, _rssFeed, _response, removeAllMarkers, addMarkerByLatLon;
function GeoRSSOverlay (url, updateMap) {
super();
_url = url;
_serviceUrl = null;
_config = com.yahoo.maps.ExtensibleConfig.getInstance();
_updateMap = ((updateMap != undefined) ? (updateMap) : true);
mx.events.EventDispatcher.initialize(this);
}
function initOverlay() {
if (!_config.isLoaded) {
_config.addEventListener("onLoad", (_local2 || (_local2 = mx.utils.Delegate)).create(this, loadFeed));
return(undefined);
}
loadFeed();
}
function loadFeed() {
if (_url == null) {
return(undefined);
}
var _local2 = (((((((_config.__get__dataServiceURL() + "/") + _config.__get__getAPI()) + "?xmlsrc=") + escape(_url)) + "&wpx=") + String(map.getWidth())) + "&hpx=") + String(map.getHeight());
_rssFeed = new XML();
_rssFeed.ignoreWhite = true;
_rssFeed.onData = (_local3 || (_local3 = mx.utils.Delegate)).create(this, validateRSSFeed);
_rssFeed.onLoad = (_local3 || (_local3 = mx.utils.Delegate)).create(this, parseRSSFeed);
_rssFeed.load(_local2);
}
function validateRSSFeed(data) {
if (data == undefined) {
dispatchEvent({type:(_local5 || (_local5 = com.yahoo.maps.overlays.GeoRSSOverlay)).OVERLAY_GEOCODE_ERROR, url:_url});
} else {
_rssFeed.parseXML(data);
_rssFeed.loaded = true;
_rssFeed.onLoad(true);
}
}
function parseRSSFeed(success) {
_response = new com.yahoo.maps.api.rss.RSSResponse(_rssFeed.firstChild);
addMarkers();
dispatchEvent({type:(_local4 || (_local4 = com.yahoo.maps.overlays.GeoRSSOverlay)).OVERLAY_GEOCODE_SUCCESS, url:_url});
}
function updatePOIs() {
addMarkers();
}
function addMarkers() {
var _local3;
removeAllMarkers();
if (_response.points.length <= 0) {
return(undefined);
}
var _local2 = 0;
while (_local2 < _response.points.length) {
_local3 = _local5 || (_local5 = com.yahoo.maps.api.rss.POIPoint)(_response.points[_local2]);
addMarkerByLatLon(_local7 || (_local7 = com.yahoo.maps.markers.RSSMarker), new com.yahoo.maps.LatLon(_local3.lat, _local3.lon), {dataProvider:_local3});
_local2++;
}
}
function detach() {
super.detach();
}
function dispatchEvent(o) {
}
static var OVERLAY_GEOCODE_ERROR = "overlayGeocodeError";
static var OVERLAY_GEOCODE_SUCCESS = "overlayGeocodeSuccess";
var className = "GeoRSSOverlay";
}
Symbol 272 MovieClip [__Packages.com.yahoo.maps.markers.ExtensiblePOIMarker] Frame 0
class com.yahoo.maps.markers.ExtensiblePOIMarker extends com.yahoo.maps.Marker
{
var locked, _config, _eventController, up, rolloverState, over, styleSheet, hitTest, icon, _icon, createEmptyMovieClip, _strokeColor, _markerColor, _indexColor, _addressCityState, _state, _city, _addr, _dragDisplayText, _phone, _title, _indexTitle, _index, _href, _detailurl, _id, _rateItURL, closeSessionOpenPOI, nudge, _width, _trueWidth, _xmouse, overStatePressX, _ymouse, overStatePressY, dragInterval, localToGlobal, originalDepth, getDepth, _rating, _height, setSessionOpenPOI, _marker, _lat, _lon, _nrating, swapDepths, _parent, isRolloverStateDrawn, isOverStateDrawn, _morelink, getURL, __latlon;
function ExtensiblePOIMarker () {
super();
locked = false;
_config = com.yahoo.maps.ExtensibleConfig.getInstance();
_eventController = (_local3 || (_local3 = com.yahoo.maps.EventController)).getInstance();
}
function onLoad() {
init();
}
function onUnload() {
delete up.onRollOver;
delete rolloverState.onRelease;
delete rolloverState.onRollOut;
delete rolloverState.onPress;
delete over.bubble.mc.onPress;
delete over.closeButton.onRollOver;
delete over.closeButton.onRollOut;
delete over.closeButton.onPress;
delete over.closeButton.onRelease;
delete over.rating.onPress;
delete up.labelText;
delete rolloverState.labelText;
delete over.labelText;
delete over.ratingText;
delete over.detailText;
delete styleSheet;
super.onUnload();
}
function onMouseDown() {
if ((!hitTest(_root._xmouse, _root._ymouse)) && (over._visible || (rolloverState._visible))) {
}
}
function onMouseOut() {
if (locked) {
return(undefined);
}
onMouseDown();
}
function resizeIcon(target_mc) {
icon._width = _iconHW;
icon._height = _iconHW;
}
function init() {
if (_icon != null) {
var _local2 = new MovieClipLoader();
icon = createEmptyMovieClip("icon", 10);
_local2.loadClip(_icon, icon);
_local2.onLoadInit = (_local9 || (_local9 = mx.utils.Delegate)).create(this, resizeIcon);
} else {
_iconHW = 0;
}
_strokeColor = ((_strokeColor != undefined) ? (_strokeColor) : (strokeColor));
_markerColor = ((_markerColor != undefined) ? (_markerColor) : (markerColor));
styleSheet = new TextField.StyleSheet();
styleSheet.setStyle("upIndex", {fontWeight:"bold", textDecoration:"none", fontSize:"10", color:"#FFFFFF", fontFamily:"Tahoma,Verdana,Arial"});
styleSheet.setStyle("indexTitle", {textDecoration:"none", fontSize:"10", color:_indexColor, fontFamily:"Tahoma,Verdana,Arial"});
styleSheet.setStyle("mr", {textDecoration:"none", fontSize:"10", color:"#333333", fontFamily:"Tahoma,Verdana,Arial"});
styleSheet.setStyle("a", {textDecoration:"none", color:"#255fc1", fontSize:"10", fontFamily:"Tahoma,Verdana,Arial"});
styleSheet.setStyle("a:hover", {textDecoration:"underline", fontSize:"10", fontFamily:"Tahoma,Verdana,Arial"});
styleSheet.setStyle("upStyle", {fontWeight:"bold", fontSize:"10", fontFamily:"Tahoma,Verdana,Arial", textDecoration:"none", color:"#0353A5", textAlign:"center"});
up.label.styleSheet = styleSheet;
drawUpState();
up.onRollOver = (_local9 || (_local9 = mx.utils.Delegate)).create(this, showRollOverState);
_addressCityState = ((((_addr == undefined) || (_addr == "")) ? "" : (_addr + ", ")) + (((_city == undefined) || (_city == "")) ? "" : (_city + ", "))) + (((_state == undefined) || (_state == "")) ? "" : (_state));
_dragDisplayText = ((((("<b>" + _title) + "</b><br>") + (((_phone == undefined) || (_phone == "")) ? "" : (_phone + "<br>"))) + (((_addr == undefined) || (_addr == "")) ? "" : (_addr + ",<br>"))) + (((_city == undefined) || (_city == "")) ? "" : (_city + ", "))) + (((_state == undefined) || (_state == "")) ? "" : (_state + ", "));
_indexTitle = String(_index) + " ";
if (!_href) {
_detailurl = "http://local.yahoo.com/details?id=" + _id;
} else {
_detailurl = _href;
}
_rateItURL = "http://local.yahoo.com/reviews?id=" + _id;
}
function showRollOverState() {
drawRolloverState();
if (locked) {
return(undefined);
}
closeSessionOpenPOI();
(_local4 || (_local4 = com.yahoo.maps.markers.ExtensiblePOIMarker)).openMarker.close();
(_local4 || (_local4 = com.yahoo.maps.markers.ExtensiblePOIMarker)).openMarker = this;
over._visible = false;
up._visible = false;
rolloverState._visible = true;
rolloverState.isOpen = true;
swapMarker();
_eventController.sendEvent(up, com.yahoo.maps.AppEvents.rollOverPOI, _id);
nudge(_width, 0);
var _local2 = new Object();
_trueWidth = rolloverState.bubble.bubbleWidth;
rolloverState.bubble.width = up.bubble.bubbleWidth;
rolloverState.bubble.draw();
rolloverState.labelText._visible = false;
rolloverState.chevron._visible = false;
_local2.onEffect = (_local3 || (_local3 = mx.utils.Delegate)).create(this, doRollOverEffect);
new com.yahoo.maps.flash.Effect(up, 200, _local2);
}
function doRollOverEffect(e) {
if (e.type == "update") {
rolloverState.bubble.width = Math.max(_trueWidth * e.percentComplete, rolloverState.bubble.bubbleWidth);
rolloverState.bubble.draw();
} else {
rolloverState.labelText._visible = (rolloverState.chevron._visible = true);
}
}
function checkForDrag() {
if ((overStatePressX != _xmouse) || (overStatePressY != _ymouse)) {
clearInterval(dragInterval);
var _local2 = {x:rolloverState.labelText._x, y:rolloverState.labelText._y};
localToGlobal(_local2);
var _local3 = {htmlText:_dragDisplayText, address:_addressCityState, x:_local2.x, y:_local2.y, width:rolloverState.labelText._width, data:getDataObj()};
_eventController.sendEvent(this, com.yahoo.maps.AppEvents.dragPOI, _local3);
}
}
function showOverState() {
drawOverState();
rolloverState.isOpen = (rolloverState.isOpen = false);
over._visible = true;
over.isOpen = true;
up._visible = (rolloverState._visible = false);
originalDepth = getDepth();
showRating(_rating);
swapMarker();
nudge(_width, -_height);
var _local2 = new Object();
_local2.trueHeight = over.bubble.bubbleHeight;
over.bubble.height = rolloverState.bubble.bubbleHeight;
over.bubble.draw();
over.labelText._visible = (over.detailText._visible = (over.ratingText._visible = (over.rating._visible = (over.closeButton._visible = false))));
_local2.target = over;
_local2.onEffect = function (e) {
if (e.type == "update") {
this.target.bubble.height = Math.max(this.trueHeight * e.percentComplete, this.target.bubble.bubbleHeight);
this.target.bubble.draw();
} else {
this.target.rating._visible = (this.target.closeButton._visible = (this.target.labelText._visible = (this.target.ratingText._visible = (this.target.detailText._visible = true))));
this.target = null;
}
};
new com.yahoo.maps.flash.Effect(this, 200, _local2);
setSessionOpenPOI(true);
over.swapDepths(rolloverState);
}
function getDataObj() {
var _local2 = new Object();
_local2._id = _id;
_local2._title = _title;
_local2._addr = _addr;
_local2._city = _city;
_local2._state = _state;
_local2._marker = _marker;
_local2._dragDisplayText = _dragDisplayText;
_local2._addressCityState = _addressCityState;
_local2._indexTitle = _indexTitle;
_local2._rating = _rating;
_local2._index = _index;
_local2._detailurl = _detailurl;
_local2._rateItURL = _rateItURL;
_local2._strokeColor = _strokeColor;
_local2._markerColor = _markerColor;
_local2._indexColor = _indexColor;
_local2._phone = _phone;
_local2._lat = _lat;
_local2._lon = _lon;
_local2._nrating = _nrating;
return(_local2);
}
function swapMarker() {
swapDepths(_parent.getNextHighestDepth());
}
function drawUpState() {
up = createEmptyMovieClip("up", 8);
up.topMargin = 2;
up.rightMargin = 5;
up.bottomMargin = 2;
up.leftMargin = 5;
up.bubble = new com.yahoo.maps.flash.Bubble(up, undefined, undefined, _markerColor);
up.createTextField("labelText", up.getNextHighestDepth(), 0, 0, 0, 0);
up.labelText.selectable = false;
up.labelText.autoSize = "left";
up.labelText.html = true;
up.labelText.styleSheet = styleSheet;
up.labelText.htmlText = ("<upIndex>" + _index) + "</upIndex>";
up.bubble.width = ((up.labelText._width + up.rightMargin) + up.leftMargin) + _iconHW;
up.bubble.height = (Math.max(up.labelText._height, _iconHW + 3) + up.topMargin) + up.bottomMargin;
up.bubble.draw();
up.labelText._x = up.leftMargin + (icon ? (_iconHW + 1) : 0);
up.labelText._y = ((((-up.bubble.height) + up.topMargin) + 2) + 1) + (icon ? 2 : 0);
icon._y = up.labelText._y + 1;
icon._x = icon._x + 4;
}
function drawRolloverState() {
if (!isRolloverStateDrawn) {
rolloverState = createEmptyMovieClip("rolloverState", 6);
rolloverState._visible = false;
rolloverState.topMargin = 2;
rolloverState.rightMargin = 5;
rolloverState.bottomMargin = 2;
rolloverState.leftMargin = 5;
rolloverState.innerSpace = 10;
rolloverState.borderWidth = 2;
rolloverState.bubble = new com.yahoo.maps.flash.Bubble(rolloverState, undefined, undefined, _strokeColor, _markerColor, rolloverState.borderWidth);
rolloverState.createTextField("labelText", rolloverState.getNextHighestDepth(), 0, 0, 0, 0);
rolloverState.labelText.selectable = false;
rolloverState.labelText.autoSize = "left";
rolloverState.labelText.html = true;
rolloverState.labelText.styleSheet = styleSheet;
rolloverState.labelText.htmlText = (((("<p><indexTitle><b>" + _index) + " ") + "<mr>") + _title) + "</b></mr></indexTitle></p>";
rolloverState.labelText._x = rolloverState.leftMargin + (icon ? (_iconHW + 1) : 0);
rolloverState.chevron = rolloverState.attachMovie("chevron", "chevron", rolloverState.getNextHighestDepth());
rolloverState.chevron._x = (rolloverState.labelText._x + rolloverState.labelText._width) + rolloverState.innerSpace;
rolloverState.bubble.width = (rolloverState.chevron._x + rolloverState.chevron._width) + rolloverState.rightMargin;
rolloverState.bubble.height = (Math.max(rolloverState.labelText._height, _iconHW + 3) + rolloverState.topMargin) + rolloverState.bottomMargin;
rolloverState.bubble.draw();
rolloverState.labelText._y = ((((-rolloverState.bubble.height) + rolloverState.topMargin) + 2) + 2) + (icon ? 2 : 0);
rolloverState.chevron._y = rolloverState.labelText._y + (rolloverState.chevron._height / 2);
var scope = this;
rolloverState.onRelease = function () {
scope.showOverState();
clearInterval(this._parent.dragInterval);
};
rolloverState.onRollOut = function () {
if (scope.locked) {
return(undefined);
}
if ((((this._xmouse > this._x) && (this._xmouse < (this._x + this._width))) && (this._ymouse < (this._y - this.borderWidth))) && (this._ymouse > ((this._y - this._height) + (2 * this.borderWidth)))) {
return(undefined);
}
if (this._visible) {
scope.close();
}
scope._eventController.sendEvent(this, com.yahoo.maps.AppEvents.rollOutPOI, scope._id);
this.rolloverState.swapDepths(this.up);
};
rolloverState.onPress = function () {
this._parent.overStatePressX = this._parent._xmouse;
this._parent.overStatePressY = this._parent._ymouse;
this._parent.dragInterval = setInterval(this._parent, "checkForDrag", 100);
};
isRolloverStateDrawn = true;
}
}
function drawOverState() {
icon._visible = false;
if (!isOverStateDrawn) {
over = createEmptyMovieClip("over", 4);
over._visible = false;
over.topMargin = 2;
over.rightMargin = 7;
over.bottomMargin = 11;
over.leftMargin = 7;
over.innerSpace = 10;
over.bubble = new com.yahoo.maps.flash.Bubble(over, undefined, undefined, _strokeColor, _markerColor, 2);
over.createTextField("labelText", over.getNextHighestDepth(), 0, 0, 0, 0);
over.labelText.selectable = false;
over.labelText.autoSize = "left";
over.labelText.multiline = true;
over.labelText.html = true;
over.labelText.styleSheet = styleSheet;
over.labelText.htmlText = (((("<p><indexTitle><b>" + _index) + " ") + "<mr>") + _title) + "</b></mr></indexTitle></p>";
over.labelText._x = over.leftMargin;
over.attachMovie("rating", "rating", over.getNextHighestDepth());
over.rating._visible = false;
over.rating._xscale = (over.rating._yscale = 0);
showRating(_rating);
over.labelText.styleSheet = styleSheet;
over.labelText.htmlText = ((("<p><indexTitle><b>" + _indexTitle) + "</b><mr>") + _dragDisplayText) + "</mr></indexTitle></p>";
over.createTextField("ratingText", over.getNextHighestDepth(), 0, 0, 0, 0);
over.createTextField("detailText", over.getNextHighestDepth(), 0, 0, 0, 0);
over.detailText.styleSheet = (over.ratingText.styleSheet = styleSheet);
over.detailText.html = (over.ratingText.html = true);
over.detailText.multiline = (over.ratingText.multiline = true);
over.detailText.autoSize = (over.ratingText.autoSize = "left");
var _local6 = "";
if (_rating != null) {
_local6 = ((_nrating > 0) ? (("<font color='#aaaaaa' face='tahoma,verdana,arial' size='10'>(" + _nrating) + ")</font> ") : "");
over.ratingText._x = 90;
} else {
over.ratingText._x = over.leftMargin;
}
if (getExtensibleLanguages().rateItLabel != undefined) {
var _local8 = getExtensibleLanguages().rateItLabel;
} else {
var _local8 = "";
}
if (!_icon) {
over.ratingText.htmlText = ((_local6 + "<a href='asfunction:_parent.openRateItURL'>") + _local8) + "</a>";
} else {
over.ratingText.htmlText = "";
}
if (getExtensibleLanguages().moreInfoLabel != undefined) {
var _local9 = getExtensibleLanguages().moreInfoLabel;
var _local2 = "Zoom to Point";
} else {
var _local9 = "";
var _local2 = "";
}
if ((!_icon) || (_icon && (_href != null))) {
over.detailText.htmlText = over.detailText.htmlText + (("<br><a href='asfunction:_parent.openDetailurl'>" + _local9) + "</a> ");
over.detailText.htmlText = over.detailText.htmlText + (("| <a href='asfunction:_parent.zoomOnCenter'>" + _local2) + "</a> ");
var _local11 = (_local18 || (_local18 = com.macromedia.mc.platform.Session)).getInstance().getAttribute("currentBizLocAd");
if (_local11.disableZoomToCenter) {
var _local2 = "";
} else {
var _local2 = "Zoom to Point";
}
if ((_local2 != "") && (com.yahoo.maps.Labels.ZOOM_TO_POINT != undefined)) {
over.detailText.htmlText = over.detailText.htmlText + (("| <a href='asfunction:_parent.zoomOnCenter'>" + _local2) + "</a> ");
}
}
if ((_morelink != undefined) && (_morelink._desc != undefined)) {
over.detailText.htmlText = over.detailText.htmlText + ((" | <a href='asfunction:_parent._morelink.getLink' target='_parent'>" + _morelink._desc) + "</a>");
}
over.detailText._x = (over.labelText._x = (over.rating._x = over.leftMargin));
over.detailText._y = (-over.detailText._height) - over.bottomMargin;
var _local4 = 0;
if (_rating != null) {
_local4 = 5;
over.rating._y = over.detailText._y - over.rating._height;
over.ratingText._y = over.rating._y - 2;
over.labelText._y = over.rating._y - over.labelText._height;
} else {
over.ratingText._y = over.detailText._y - 10;
over.labelText._y = over.ratingText._y - over.labelText.textHeight;
}
if (_icon) {
over.labelText._y = over.labelText._y + 10;
_local4 = _local4 + 10;
}
over.closeButton = over.attachMovie("closeButton", "closeButton", over.getNextHighestDepth());
over.closeButton._y = over.labelText._y;
var _local3 = (_local19 || (_local19 = Math)).max(over.labelText._width + 20, over.detailText._width);
_local3 = ((_local19 || (_local19 = Math)).max(_local3, over.rating._width) + over.rightMargin) + over.leftMargin;
over.bubble.width = _local3;
var _local7 = ((((over.labelText._height + over.detailText._height) + over.rating._height) + over.topMargin) + over.bottomMargin) - _local4;
over.bubble.height = _local7;
over.bubble.draw();
over.closeButton._x = _local3 - 20;
over.closeButton._y = -_local7;
var scope = this;
over.bubble.mc.onPress = function () {
var _local2 = {x:this._parent.labelText._x, y:this._parent.labelText._y};
scope.localToGlobal(_local2);
var _local3 = {htmlText:scope._dragDisplayText, address:scope._addressCityState, x:_local2.x - 22, y:_local2.y, width:this._parent.labelText._width, data:scope.getDataObj()};
scope._eventController.sendEvent(this, com.yahoo.maps.AppEvents.dragPOI, _local3);
};
over.closeButton.onRollOver = (over.closeButton.onDragOver = function () {
if (this.locked) {
return(undefined);
}
(this.gotoAndStop("over"));// not popped
});
over.closeButton.onRollOut = (over.closeButton.onDragOut = function () {
if (this.locked) {
return(undefined);
}
(this.gotoAndStop("up"));// not popped
});
over.closeButton.onPress = function () {
(this.gotoAndStop("down"));// not popped
};
over.closeButton.onRelease = function () {
this.over.closeButton.onRollOut();
scope.close();
};
isOverStateDrawn = true;
}
}
function close() {
if (locked) {
return(undefined);
}
super.close();
_eventController.sendEvent(this, com.yahoo.maps.AppEvents.rollOutPOI, _id);
rolloverState._visible = false;
over._visible = false;
up._visible = true;
icon._visible = true;
over.swapDepths(up);
}
function openDetailurl() {
(getURL(_detailurl, "_parent"));// not popped
}
function openRateItURL() {
(getURL(_rateItURL, "_parent"));// not popped
}
function zoomOnCenter() {
var _local2 = 1;
_parent._parent.setZoomLevel(_local2, __latlon);
}
function hidePOIMarker() {
close();
}
function showRating(val) {
if (val != undefined) {
val = val * 10;
over.rating._visible = true;
over.rating._xscale = (over.rating._yscale = 100);
over.rating.gotoAndStop(val);
over.rating.onPress = function () {
this._parent._parent.openDetailurl();
};
}
}
function expand() {
if (locked) {
return(undefined);
}
up.onRollOver();
}
function setIcon(o) {
_icon = o.icon;
}
function getExtensibleLanguages() {
return(_config.getMapLocale());
}
static var className = "__Resources.0785805483.ddmarker_swf";
var _iconHW = 16;
var strokeColor = 16777215;
var markerColor = 10066176;
static var symbolOwner = com.yahoo.maps.markers.ExtensiblePOIMarker;
static var symbolName = "com.yahoo.maps.markers.ExtensiblePOIMarker";
}
Symbol 274 MovieClip [__Packages.com.yahoo.maps.overlays.data.LocalSearchFilter] Frame 0
class com.yahoo.maps.overlays.data.LocalSearchFilter
{
var type, name, key, count;
function LocalSearchFilter (type, filter) {
this.type = type;
name = filter.name;
key = filter.key;
count = filter.count;
}
static var TYPE_RATING = "ratingfgc";
static var TYPE_CATEGORY = "ycat2gc";
var className = "LocalSearchFilter";
}
Symbol 275 MovieClip [__Packages.com.yahoo.maps.overlays.data.LocalSearchResults] Frame 0
class com.yahoo.maps.overlays.data.LocalSearchResults
{
var resultsCount, totalResultsCount, searchFilters;
function LocalSearchResults (search) {
resultsCount = search.numlistings;
totalResultsCount = search.searchtotal;
searchFilters = new Array();
var _local5 = 0;
while (_local5 < search.filters.length) {
var _local3 = _local7 || (_local7 = com.yahoo.maps.data.LocalSearchFilter)(search.filters[_local5]);
var _local2 = 0;
while (_local2 < _local3.items.length) {
var _local4 = _local9 || (_local9 = com.yahoo.maps.data.LocalSearchFilterItem)(_local3.items[_local2]);
searchFilters.push(new com.yahoo.maps.overlays.data.LocalSearchFilter(_local3.id, _local4));
_local2++;
}
_local5++;
}
}
var className = "LocalSearchResults";
}
Symbol 276 MovieClip [__Packages.com.yahoo.maps.overlays.LocalSearchOverlay] Frame 0
class com.yahoo.maps.overlays.LocalSearchOverlay extends com.yahoo.maps.Overlay
{
var hash, config, dataService, mcLoader, widget_container, map, addEventListener, dispatchEvent, removeEventListener, _source, removeAllMarkers, addMarkerByLatLon, localSearchResults, searchTags;
function LocalSearchOverlay () {
super();
}
function init(map) {
super.init(map);
hash = new Object();
config = com.yahoo.maps.ExtensibleConfig.getInstance();
dataService = new com.yahoo.maps.ExtensibleDataService();
dataService.addEventListener("onGetLocalSearch", this);
dataService.addEventListener("onGetLocalSearchError", this);
dataService.addEventListener("onGetSmartView", this);
}
function detach() {
dataService.removeEventListener("onGetLocalSearch", this);
dataService.removeEventListener("onGetLocalSearchError", this);
dataService.removeEventListener("onGetSmartView", this);
super.detach();
}
function update(latlon, bounds, dX, dY) {
}
function onCollapsePOI(o) {
var _local2 = hash[o.data.id];
_local2.close();
}
function onExpandPOI(o) {
var _local2 = hash[o.data.id];
_local2.expand();
}
function addLocalSearchWidget() {
var _local3 = config._localWidgetUrl;
var scope = this;
var _local2 = new Object();
System.security.allowDomain(_local3);
_local2.onLoadInit = function () {
scope.onLoadInit();
};
_local2.onLoadError = function () {
scope.onLoadError();
};
mcLoader = new MovieClipLoader();
mcLoader.addListener(_local2);
widget_container = map.widgetContainer.createEmptyMovieClip("widget_container", map.widgetContainer.getNextHighestDepth());
mcLoader.loadClip(_local3, widget_container);
}
function onLoadInit() {
widget_container.initWidget(this, map);
addEventListener((_local5 || (_local5 = com.yahoo.maps.overlays.LocalSearchOverlay)).EVENT_SEARCH_SUCCESS, (_local4 || (_local4 = mx.utils.Delegate)).create(this, widget_container.onLocalStatus));
addEventListener((_local5 || (_local5 = com.yahoo.maps.overlays.LocalSearchOverlay)).EVENT_API_SEARCH_SUCCESS, (_local4 || (_local4 = mx.utils.Delegate)).create(this, widget_container.onLocalStatus));
addEventListener((_local5 || (_local5 = com.yahoo.maps.overlays.LocalSearchOverlay)).EVENT_SEARCH_ERROR, (_local4 || (_local4 = mx.utils.Delegate)).create(this, widget_container.onLocalStatus));
widget_container.ls_widget.search_btn.onPress = (_local4 || (_local4 = mx.utils.Delegate)).create(this, widget_container.doSearch);
widget_container.ls_widget.search_for.addEventListener("enter", widget_container.doSearch);
widget_container.ls_widget.searchResults_list.addEventListener("change", widget_container.onListChange);
widget_container.ls_widget.searchResults_list.addEventListener("itemRollOver", widget_container.onListRoll);
dispatchEvent({type:(_local5 || (_local5 = com.yahoo.maps.overlays.LocalSearchOverlay)).EVENT_WIDGET_ADDED, widget:widget_container});
}
function onLoadError() {
widget_container.removeMovieClip();
}
function removeLocalSearchWidget(Void) {
removeEventListener((_local3 || (_local3 = com.yahoo.maps.overlays.LocalSearchOverlay)).EVENT_SEARCH_SUCCESS, (_local2 || (_local2 = mx.utils.Delegate)).create(this, widget_container.onLocalStatus));
removeEventListener((_local3 || (_local3 = com.yahoo.maps.overlays.LocalSearchOverlay)).EVENT_API_SEARCH_SUCCESS, (_local2 || (_local2 = mx.utils.Delegate)).create(this, widget_container.onLocalStatus));
removeEventListener((_local3 || (_local3 = com.yahoo.maps.overlays.LocalSearchOverlay)).EVENT_SEARCH_ERROR, (_local2 || (_local2 = mx.utils.Delegate)).create(this, widget_container.onLocalStatus));
delete widget_container.ls_widget.search_btn.onPress;
widget_container.ls_widget.search_for.removeEventListener("enter", widget_container.doSearch);
widget_container.ls_widget.searchResults_list.removeEventListener("change", widget_container.onListChange);
widget_container.ls_widget.searchResults_list.removeEventListener("itemRollOver", widget_container.onListRoll);
widget_container.removeMovieClip();
}
function updateWidget(Void) {
if (widget_container != undefined) {
widget_container.updateSource(_source);
}
}
function onGetLocalSearch(o) {
if (!_allowMultipleSearches) {
removeAllMarkers();
}
var _local3;
localSearchs = new Array();
if (_source == "local") {
_local3 = com.yahoo.maps.data.LocalSearch(o.data);
var _local32 = _local3.numlistings;
var _local33 = o.data.beginIndex || 1;
var _local31 = new Array();
var _local4 = 0;
while (_local4 < _local32) {
var _local2 = o.data.items[_local4];
_local2._index = _local33 + _local4;
_local2.showDirectionLinks = false;
_local2.isExtensible = false;
var _local6 = String(_local2.id);
hash[_local6] = addMarkerByLatLon(_local44 || (_local44 = com.yahoo.maps.markers.ExtensiblePOIMarker), new com.yahoo.maps.LatLon(Number(_local2.lat), Number(_local2.lon)), _local2);
_local31.push(hash[_local6]);
localSearchs.push({latLon:new com.yahoo.maps.LatLon(Number(_local2.lat), Number(_local2.lon)), address:_local2._addr, city:_local2._city, state:_local2._state, zip:_local2._zip, title:_local2._title, phone:_local2._phone, desc:_local2._desc, website:_local2._website, marker:hash[_local6]});
_local4++;
}
localSearchResults = new com.yahoo.maps.overlays.data.LocalSearchResults(_local3);
dispatchEvent({type:(_local41 || (_local41 = com.yahoo.maps.overlays.LocalSearchOverlay)).EVENT_SEARCH_SUCCESS, localSearchResults:localSearchResults, localSearchInfo:localSearchs, source:_source, markers:_local31});
} else if (_source == "traffic") {
_local3 = o;
var _local32 = _local3.numlistings;
var _local33 = o.data.beginIndex || 1;
var _local4 = 0;
while (_local4 < _local32) {
var _local2 = _local3.items[_local4];
_local2._index = _local33 + _local4;
_local2.showDirectionLinks = false;
_local2.isExtensible = false;
var _local8 = {maxWidth:225, index:_local2._title, title:" Yahoo! Traffic", description:_local2._city, markerColor:12653844, strokeColor:16777215};
var _local6 = String(_local2.id);
hash[_local6] = addMarkerByLatLon(_local43 || (_local43 = com.yahoo.maps.markers.CustomPOIMarker), new com.yahoo.maps.LatLon(Number(_local2.lat), Number(_local2.lon)), _local8);
localSearchs.push({latLon:new com.yahoo.maps.LatLon(Number(_local2.lat), Number(_local2.lon)), description:_local2._city, title:_local2._title, marker:hash[_local6]});
_local4++;
}
localSearchResults = new com.yahoo.maps.overlays.data.LocalSearchResults(_local3);
dispatchEvent({type:(_local41 || (_local41 = com.yahoo.maps.overlays.LocalSearchOverlay)).EVENT_SEARCH_SUCCESS, localSearchResults:localSearchResults, localSearchInfo:localSearchs, source:_source});
} else if (_source == "upcoming") {
_local3 = o;
var _local32 = _local3.numlistings;
var _local33 = o.data.beginIndex || 1;
var _local4 = 0;
while (_local4 < _local32) {
var _local2 = _local3.items[_local4];
_local2._index = _local33 + _local4;
_local2.showDirectionLinks = false;
_local2.isExtensible = false;
var _local7 = {maxWidth:225, index:_local2._title, title:"- Upcoming.org Event", description:(_local2._city + newline) + _local2._addr, markerColor:12653844, strokeColor:16777215};
var _local6 = String(_local2.id);
hash[_local6] = addMarkerByLatLon(_local43 || (_local43 = com.yahoo.maps.markers.CustomPOIMarker), new com.yahoo.maps.LatLon(Number(_local2.lat), Number(_local2.lon)), _local7);
localSearchs.push({latLon:new com.yahoo.maps.LatLon(Number(_local2.lat), Number(_local2.lon)), title:_local2._title, description:_local2._city, marker:hash[_local6]});
_local4++;
}
localSearchResults = new com.yahoo.maps.overlays.data.LocalSearchResults(_local3);
dispatchEvent({type:(_local41 || (_local41 = com.yahoo.maps.overlays.LocalSearchOverlay)).EVENT_SEARCH_SUCCESS, localSearchResults:localSearchResults, localSearchInfo:localSearchs, source:_source});
} else if (_source == "flickr") {
_local3 = o;
var _local32 = _local3.numlistings;
var _local33 = o.data.beginIndex || 1;
var _local4 = 0;
while (_local4 < _local32) {
var _local2 = _local3.items[_local4];
_local2._index = _local33 + _local4;
_local2.showDirectionLinks = false;
_local2.isExtensible = false;
var _local9 = ((((("<br><br><br><br><br><br><br><br><a href='http://flickr.com/photo_zoom.gne?id=" + _local2._city) + "&size=o'>view on flickr</a>\nphoto from: <a href='") + _local2._state) + "'>") + _local2._zip) + "</a>";
var _local10 = {title:_local2._title, body:_local9, imageUrl:_local2._addr, markerColor:16711812};
var _local6 = String(_local2.id);
hash[_local6] = addMarkerByLatLon(_local42 || (_local42 = com.yahoo.maps.markers.RSSMarker), new com.yahoo.maps.LatLon(Number(_local2.lat), Number(_local2.lon)), _local10);
localSearchs.push({latLon:new com.yahoo.maps.LatLon(Number(_local2.lat), Number(_local2.lon)), photoURL:_local2._addr, title:_local2._title, marker:hash[_local6]});
_local4++;
}
localSearchResults = new com.yahoo.maps.overlays.data.LocalSearchResults(_local3);
dispatchEvent({type:(_local41 || (_local41 = com.yahoo.maps.overlays.LocalSearchOverlay)).EVENT_SEARCH_SUCCESS, localSearchResults:localSearchResults, localSearchInfo:localSearchs, source:_source});
} else if (_source == "travel") {
_local3 = o;
var _local32 = _local3.numlistings;
var _local33 = o.data.beginIndex || 1;
var _local4 = 0;
while (_local4 < _local32) {
var _local2 = _local3.items[_local4];
_local2._index = _local33 + _local4;
_local2.showDirectionLinks = false;
_local2.isExtensible = false;
var _local5;
if (_local2.city == undefined) {
_local5 = "";
} else {
_local5 = _local2.city;
}
var _local10 = {maxWidth:225, index:_local2._title, title:"", description:(("<a href='" + _local2._addr) + "'>View trip on Yahoo! Travel</a><br>") + _local5, markerColor:25564, strokeColor:16777215};
var _local6 = String(_local2.id);
hash[_local6] = addMarkerByLatLon(_local43 || (_local43 = com.yahoo.maps.markers.CustomPOIMarker), new com.yahoo.maps.LatLon(Number(_local2.lat), Number(_local2.lon)), _local10);
localSearchs.push({latLon:new com.yahoo.maps.LatLon(Number(_local2.lat), Number(_local2.lon)), url:_local2._addr, title:_local2._title, marker:hash[_local6]});
_local4++;
}
localSearchResults = new com.yahoo.maps.overlays.data.LocalSearchResults(_local3);
dispatchEvent({type:(_local41 || (_local41 = com.yahoo.maps.overlays.LocalSearchOverlay)).EVENT_SEARCH_SUCCESS, localSearchResults:localSearchResults, localSearchInfo:localSearchs, source:_source});
}
}
function onGetLocalSearchError(o) {
dispatchEvent({type:EVENT_SEARCH_ERROR, source:_source});
}
function setMutipleSearches(allowMultipleSearches) {
_allowMultipleSearches = allowMultipleSearches;
return(_allowMultipleSearches);
}
function setFlickrLicense(license) {
_fLicense = license;
}
function search(searchTerms, latlon, beginningIndex, results, radius, categoryFilter, ratingFilter, source, apiKey, returnAsLocalSearch) {
if (source == undefined) {
source = "local";
}
var _local46 = latlon;
searchTags = searchTerms;
if (source == "local") {
_source = "local";
if (radius == null) {
radius = map.getMinimumRadius();
}
dataService.getLocalSearch(searchTerms, _local46.lat, _local46.lon, Number(beginningIndex), Number(results), radius, categoryFilter, ratingFilter);
} else if (source == "upcoming") {
var classRef = this;
_source = "upcoming";
if ((apiKey == undefined) || (apiKey == "")) {
}
var _local64 = config._upcomingApiURL;
var _local79 = (((((((_local64 + "?api_key=") + apiKey) + "&method=event.search&search_text=") + searchTerms) + "&location=") + _local46.lat) + ",") + _local46.lon;
var _local51 = new XML();
_local51.ignoreWhite = true;
_local51.onLoad = function (success) {
if (success && (this.firstChild.attributes.stat == "ok")) {
var _local23 = this.firstChild.childNodes;
var _local18 = new Array();
var _local2 = 0;
while (_local2 < _local23.length) {
var _local8 = _local23[_local2].attributes.name;
var _local5 = _local23[_local2].attributes.description;
var _local9 = _local23[_local2].attributes.start_time;
var _local10 = _local23[_local2].attributes.start_date;
var _local15 = _local23[_local2].attributes.end_time;
var _local16 = _local23[_local2].attributes.end_data;
var _local4 = _local23[_local2].attributes.latitude;
var _local3 = _local23[_local2].attributes.longitude;
var _local12 = _local23[_local2].attributes.metro_id;
var _local6 = _local23[_local2].attributes.venue_id;
var _local7 = _local23[_local2].attributes.user_id;
_local18.push({ref:_local2, title:_local8, description:_local5, start_time:_local9, start_date:_local10, end_time:_local15, end_date:_local16, latitude:_local4, longitude:_local3, venue:_local6, metro:_local12, user:_local7});
_local2++;
}
if ((returnAsLocalSearch == true) || (returnAsLocalSearch == undefined)) {
classRef.upcomingEventsToLocalXML(_local18);
} else {
classRef.dispatchEvent({type:(_local24 || (_local24 = com.yahoo.maps.overlays.LocalSearchOverlay)).EVENT_API_SEARCH_SUCCESS, events:_local18, source:classRef._source});
}
} else if (!success) {
classRef.dispatchEvent({type:(_local24 || (_local24 = com.yahoo.maps.overlays.LocalSearchOverlay)).EVENT_SEARCH_ERROR, source:classRef._source, reason:classRef.XML_ERROR});
} else if (this.firstChild.attributes.stat == "fail") {
classRef.dispatchEvent({type:(_local24 || (_local24 = com.yahoo.maps.overlays.LocalSearchOverlay)).EVENT_SEARCH_ERROR, source:classRef._source, reason:classRef.NO_RESULTS});
}
};
_local51.load(_local79);
} else if (source == "flickr") {
var classRef = this;
_source = "flickr";
if ((apiKey == undefined) || (apiKey == "")) {
}
var _local64 = config._flickrApiURL;
var _local62 = "?method=flickr.photos.search";
var _local72 = (((((map.getBounds().minLon + ",") + map.getBounds().maxLat) + ",") + map.getBounds().maxLon) + ",") + map.getBounds().minLat;
var _local54 = new XML();
_local54.ignoreWhite = true;
var _local44 = new Array();
var _local71 = (((((((((((_local64 + _local62) + "&api_key=") + apiKey) + "&tags=") + searchTerms) + "&bbox=") + _local72) + "&per_page=") + results) + "&license=") + _fLicense) + "&extras=geo,owner_name";
_local54.onLoad = function (success) {
if ((success && (this.firstChild.attributes.stat == "ok")) && (this.firstChild.firstChild.attributes.total != 0)) {
var _local21 = new Array();
var _local22 = "_t";
var _local27 = this.firstChild.firstChild.childNodes;
var _local2 = 0;
while (_local2 < _local27.length) {
var _local11 = _local27[_local2].attributes.secret;
var _local3 = _local27[_local2].attributes.server;
var _local17 = _local27[_local2].attributes.owner;
var _local4 = _local27[_local2].attributes.id;
var _local9 = _local27[_local2].attributes.title;
var _local7 = _local27[_local2].attributes.latitude;
var _local6 = _local27[_local2].attributes.longitude;
var _local8 = _local27[_local2].attributes.farm;
var _local14 = (((((((("http://farm" + _local8) + ".static.flickr.com/") + _local3) + "/") + _local4) + "_") + _local11) + _local22) + ".jpg";
var _local5 = {ownername:_local27[_local2].attributes.ownername, photos:"http://flickr.com/photos/" + _local27[_local2].attributes.ownername, profile:"http://flickr.com/profile/" + _local27[_local2].attributes.ownername};
if ((_local9 == undefined) || (_local9 == "")) {
_local9 = "Flickr Photo";
}
_local21.push({ref:_local2, title:_local9, id:_local4, secret:_local11, server:_local3, owner:_local17, latitude:_local7, longitude:_local6, ownerURL:_local5, photoURL:_local14});
_local2++;
}
if ((returnAsLocalSearch == true) || (returnAsLocalSearch == undefined)) {
classRef.flickrPhotosToLocalXML(_local21);
} else {
classRef.dispatchEvent({type:(_local28 || (_local28 = com.yahoo.maps.overlays.LocalSearchOverlay)).EVENT_API_SEARCH_SUCCESS, photos:_local21, source:classRef._source});
}
} else if ((this.firstChild.attributes.stat == "fail") && (this.firstChild.firstChild.attributes.total == 0)) {
classRef.dispatchEvent({type:(_local28 || (_local28 = com.yahoo.maps.overlays.LocalSearchOverlay)).EVENT_SEARCH_ERROR, source:classRef._source, reason:classRef.NO_RESULTS});
} else if (!success) {
classRef.dispatchEvent({type:(_local28 || (_local28 = com.yahoo.maps.overlays.LocalSearchOverlay)).EVENT_SEARCH_ERROR, source:classRef._source, reason:classRef.XML_ERROR});
}
};
_local54.load(_local71);
} else if (source == "travel") {
var classRef = this;
_source = "travel";
var _local64 = config._travelApiURL;
var _local56 = "tripSearch?appid=flashMapsApi";
var _local69 = ((((((_local64 + _local56) + "&query=") + searchTerms) + "&start=") + beginningIndex) + "&results=") + results;
var _local52 = new XML();
_local52.ignoreWhite = true;
var yTrips = new Array();
_local52.onLoad = function (success) {
if (success && (this.firstChild.attributes.firstResultPosition != 0)) {
var _local21 = this.firstChild.childNodes;
var _local3 = 0;
while (_local3 < _local21.length) {
var _local2 = _local21[_local3].childNodes;
var _local12 = _local21[_local3].attributes.id;
var _local8 = _local2[8].childNodes;
var _local13 = _local2[2].childNodes;
var _local14 = _local2[6].childNodes;
var _local19 = _local2[4].childNodes;
var _local17 = {url:_local2[1].firstChild.childNodes, height:_local2[1].firstChild.nextSibling.childNodes, width:_local2[1].firstChild.nextSibling.nextSibling.childNodes};
var _local5 = String(_local2[0].firstChild.childNodes);
var _local4 = String(_local2[0].firstChild.nextSibling.childNodes);
var _local7 = Number(_local5);
var _local6 = Number(_local4);
var _local16 = new com.yahoo.maps.LatLon(_local7, _local6);
var _local11 = _local2[7].childNodes;
if ((_local16.lat != 0) && (_local16.lon != 0)) {
yTrips.push({ref:_local3, tripID:_local12, title:_local13, yahooID:_local8, summary:_local14, destinations:_local19, image:_local17, latLon:_local16, tripURL:_local11});
}
_local3++;
}
if ((returnAsLocalSearch == true) || (returnAsLocalSearch == undefined)) {
classRef.travelToLocalXML(yTrips);
} else {
classRef.dispatchEvent({type:(_local26 || (_local26 = com.yahoo.maps.overlays.LocalSearchOverlay)).EVENT_API_SEARCH_SUCCESS, trips:yTrips, source:classRef._source});
}
} else if (this.firstChild.attributes.firstResultPosition == 0) {
classRef.dispatchEvent({type:(_local26 || (_local26 = com.yahoo.maps.overlays.LocalSearchOverlay)).EVENT_SEARCH_ERROR, source:classRef._source, reason:classRef.NO_RESULTS});
} else if (!success) {
classRef.dispatchEvent({type:(_local26 || (_local26 = com.yahoo.maps.overlays.LocalSearchOverlay)).EVENT_SEARCH_ERROR, source:classRef._source, reason:classRef.XML_ERROR});
}
};
_local52.load(_local69);
} else if (source == "traffic") {
var classRef = this;
_source = source;
var _local55 = map.getZoomLevel();
if (_local55 > 12) {
_local55 = 12;
}
var _local64 = config._trafficApiURL;
var _local56 = "trafficData?appid=flashMapsApi";
var _local100 = "&location=" + searchTerms;
var _local67 = "&latitude=" + _local46.lat;
var _local65 = "&longitude=" + _local46.lon;
_local55 = "&zoom=" + _local55;
radius = "&radius=" + radius;
var _local22 = "&severity=" + categoryFilter;
if (searchTerms == "") {
var _local70 = ((((_local64 + _local56) + _local67) + _local65) + _local55) + radius;
} else if (searchTerms != "") {
var _local70 = (((_local64 + _local56) + _local100) + _local55) + radius;
}
var _local53 = new XML();
_local53.ignoreWhite = true;
_local53.onLoad = function (success) {
if (success && (this.firstChild.childNodes.length > 1)) {
var _local18 = new Array();
var _local3 = this.firstChild.childNodes;
var _local2 = 1;
while (_local2 < _local3.length) {
var _local19 = _local3[_local2].attrbutes.type;
var _local9 = String(_local3[_local2].childNodes[0].childNodes);
var _local16 = String(_local3[_local2].childNodes[1].childNodes);
var _local5 = String(_local3[_local2].childNodes[2].childNodes);
var _local4 = String(_local3[_local2].childNodes[3].childNodes);
var _local7 = Number(_local5);
var _local6 = Number(_local4);
var _local13 = new com.yahoo.maps.LatLon(_local7, _local6);
var _local15 = String(_local3[_local2].childNodes[4].childNodes);
var _local10 = Number(_local3[_local2].childNodes[5].childNodes);
var _local11 = Number(_local3[_local2].childNodes[6].childNodes);
var _local8 = Number(_local3[_local2].childNodes[7].childNodes);
var _local14 = Number(_local3[_local2].childNodes[8].childNodes);
var _local17 = {reportDate:_local8, updateDate:_local8, endDate:_local14};
_local18.push({ref:_local2, type:_local19, title:_local9, description:_local16, location:_local13, severity:_local10, dates:_local17});
_local2++;
}
if ((returnAsLocalSearch == true) || (returnAsLocalSearch == undefined)) {
classRef.trafficToLocalXML(_local18);
} else {
classRef.dispatchEvent({type:(_local25 || (_local25 = com.yahoo.maps.overlays.LocalSearchOverlay)).EVENT_API_SEARCH_SUCCESS, traffic:_local18, source:classRef._source});
}
} else if (this.firstChild.childNodes.length <= 1) {
classRef.dispatchEvent({type:(_local25 || (_local25 = com.yahoo.maps.overlays.LocalSearchOverlay)).EVENT_SEARCH_ERROR, source:classRef._source, reason:classRef.NO_RESULTS});
} else if (!success) {
classRef.dispatchEvent({type:(_local25 || (_local25 = com.yahoo.maps.overlays.LocalSearchOverlay)).EVENT_SEARCH_ERROR, source:classRef._source, reason:classRef.XML_ERROR});
}
};
_local53.load(_local70);
} else if (source == "weather") {
var classRef = this;
_source = source;
if (searchTerms.substr(searchTerms.length - 2, 1) == ",") {
var _local73 = searchTerms.substr(0, searchTerms.length - 2);
var _local58 = searchTerms.substr(searchTerms.length - 1, 1);
} else {
var _local73 = searchTerms;
var _local58 = "f";
}
var _local64 = config._weatherApiURL;
var _local61 = "forecastrss?";
var _local100 = "p=" + _local73;
var _local80 = "&u=" + _local58;
var _local68 = ((((_local64 + _local61) + _local100) + _local80) + "&id=") + (_local123 || (_local123 = Math)).round((_local123 || (_local123 = Math)).random(20000));
var weatherResult = new Object();
var _local50 = new XML();
_local50.ignoreWhite = true;
_local50.onLoad = function (success) {
if (success) {
var _local2 = this.firstChild.firstChild.childNodes;
var _local3 = _local2[12].childNodes;
var _local21 = _local2[0].firstChild;
var _local35 = _local2[1].firstChild.nextSibling;
var _local7 = String(_local2[12].firstChild.nextSibling.childNodes);
var _local6 = String(_local2[12].firstChild.nextSibling.nextSibling.childNodes);
var _local10 = Number(_local7);
var _local8 = Number(_local6);
var _local9 = new com.yahoo.maps.LatLon(_local10, _local8);
var _local34 = {city:_local2[6].attributes.city, region:_local2[6].attributes.region, country:_local2[6].attributes.country, latlon:_local9};
var _local17 = _local2[7].attributes.temperature;
var _local48 = {units:_local17, type:_local3[5].attributes.text, code:_local3[5].attributes.code, temp:_local3[5].attributes.temp, date:_local3[5].attributes.date};
var _local12 = {chill:_local2[8].attributes.chill, direction:_local2[8].attributes.direction, speed:_local2[8].attributes.speed};
var _local11 = {humidity:_local2[9].attributes.humidity, visibility:_local2[9].attributes.visibility, pressure:_local2[9].attributes.pressure, rising:_local2[9].attributes.rising};
var _local26 = {sunrise:_local2[10].attributes.sunrise, sunset:_local2[10].attributes.sunset};
var _local5 = String(_local48.date);
var _local4 = Number(_local5.substr(_local5.length - 11, 1));
var _local44 = _local5.substr(_local5.length - 6, 2);
if ((_local44 == "am") && (_local4 < 6)) {
_local44 = "n";
} else if ((_local44 == "am") && (_local4 >= 6)) {
_local44 = "d";
} else if ((_local44 == "pm") && (_local4 < 6)) {
_local44 = "d";
} else if ((_local44 == "pm") && (_local4 >= 6)) {
_local44 = "n";
}
var _local20 = {day:_local3[7].attributes.day, date:_local3[7].attributes.date, low:_local3[7].attributes.low, high:_local3[7].attributes.high, text:_local3[7].attributes.text, code:_local3[7].attributes.code, imageUrl:(("http://us.i1.yimg.com/us.yimg.com/i/us/nws/weather/gr/" + _local3[7].attributes.code) + _local44) + ".png"};
var _local19 = {day:_local3[8].attributes.day, date:_local3[8].attributes.date, low:_local3[8].attributes.low, high:_local3[8].attributes.high, text:_local3[8].attributes.text, code:_local3[8].attributes.code, imageUrl:(("http://us.i1.yimg.com/us.yimg.com/i/us/nws/weather/gr/" + _local3[8].attributes.code) + _local44) + ".png"};
var _local42 = {today:_local20, tomorrow:_local19};
var _local38 = {url:(("http://us.i1.yimg.com/us.yimg.com/i/us/nws/weather/gr/" + _local48.code) + _local44) + ".png", height:_local2[11].firstChild.nextSibling.childNodes, width:_local2[11].firstChild.nextSibling.nextSibling.childNodes, link:_local2[11].firstChild.nextSibling.nextSibling.nextSibling.childNodes};
weatherResult = {title:_local21, link:_local35, image:_local38, condition:_local48, location:_local34, wind:_local12, atmosphere:_local11, sun:_local26, forecasts:_local42, dayState:_local44};
classRef.dispatchEvent({type:(_local54 || (_local54 = com.yahoo.maps.overlays.LocalSearchOverlay)).EVENT_API_SEARCH_SUCCESS, weather:weatherResult, source:classRef._source});
} else {
classRef.dispatchEvent({type:(_local54 || (_local54 = com.yahoo.maps.overlays.LocalSearchOverlay)).EVENT_SEARCH_ERROR, source:classRef._source, reason:classRef.XML_ERROR});
}
};
_local50.load(_local68);
}
updateWidget();
}
function trafficToLocalXML(trafficArray) {
var _local3 = ((("<local version='0.9'><term>" + searchTags) + "</term><resulturl>http://local.yahoo.com/results?stx=sports&lat=37.664391016755&lon=-122.08780288696&radius=4.6&csz=Hayward%2C+CA+94541</resulturl><street /><city /><state /><zip /><uzip /><searchbackend>vespa</searchbackend><searchprofile>category</searchprofile><searchradius>4.6</searchradius><searchtotal>348</searchtotal><begin>1</begin><numlistings>") + trafficArray.length) + "</numlistings>";
var _local2 = 0;
while (_local2 < trafficArray.length) {
_local3 = _local3 + "<listing>";
_local3 = _local3 + (("<title>" + trafficArray[_local2].title) + "</title>");
_local3 = _local3 + (("<addr>" + trafficArray[_local2].severity) + "</addr>");
_local3 = _local3 + (("<city>" + trafficArray[_local2].description) + "</city>");
_local3 = _local3 + (("<lat>" + trafficArray[_local2].location.lat) + "</lat>");
_local3 = _local3 + (("<lon>" + trafficArray[_local2].location.lon) + "</lon>");
_local3 = _local3 + "</listing>";
_local2++;
}
var _local5 = new XML();
_local5.parseXML(_local3);
var _local6 = new com.yahoo.maps.data.LocalSearch(_local5, 0);
onGetLocalSearch(_local6);
}
function travelToLocalXML(tripArray) {
var _local3 = ((("<local version='0.9'><term>" + searchTags) + "</term><resulturl>http://local.yahoo.com/results?stx=sports&lat=37.664391016755&lon=-122.08780288696&radius=4.6&csz=Hayward%2C+CA+94541</resulturl><street /><city /><state /><zip /><uzip /><searchbackend>vespa</searchbackend><searchprofile>category</searchprofile><searchradius>4.6</searchradius><searchtotal>348</searchtotal><begin>1</begin><numlistings>") + tripArray.length) + "</numlistings>";
var _local2 = 0;
while (_local2 < tripArray.length) {
_local3 = _local3 + "<listing>";
_local3 = _local3 + (("<title>" + tripArray[_local2].title) + "</title>");
_local3 = _local3 + (("<addr>" + tripArray[_local2].tripURL) + "</addr>");
_local3 = _local3 + (("<city>" + tripArray[_local2].summary) + "</city>");
_local3 = _local3 + (("<lat>" + tripArray[_local2].latLon.lat) + "</lat>");
_local3 = _local3 + (("<lon>" + tripArray[_local2].latLon.lon) + "</lon>");
_local3 = _local3 + "</listing>";
_local2++;
}
_local3 = _local3 + "</local>";
var _local5 = new XML();
_local5.parseXML(_local3);
var _local6 = new com.yahoo.maps.data.LocalSearch(_local5, 0);
onGetLocalSearch(_local6);
}
function upcomingEventsToLocalXML(eventArray) {
var _local2 = ((("<local version='0.9'><term>" + searchTags) + "</term><resulturl>http://local.yahoo.com/results?stx=sports&lat=37.664391016755&lon=-122.08780288696&radius=4.6&csz=Hayward%2C+CA+94541</resulturl><street /><city /><state /><zip /><uzip /><searchbackend>vespa</searchbackend><searchprofile>category</searchprofile><searchradius>4.6</searchradius><searchtotal>348</searchtotal><begin>1</begin><numlistings>") + eventArray.length) + "</numlistings>";
var _local3 = 0;
while (_local3 < eventArray.length) {
_local2 = _local2 + "<listing>";
_local2 = _local2 + (("<title>" + eventArray[_local3].title) + "</title>");
_local2 = _local2 + "<addr>";
_local2 = _local2 + (("Date: " + eventArray[_local3].start_date) + " ");
_local2 = _local2 + ("Time: " + eventArray[_local3].start_time);
_local2 = _local2 + "</addr>";
_local2 = _local2 + (("<city>" + eventArray[_local3].description) + "</city>");
_local2 = _local2 + (("<lat>" + eventArray[_local3].latitude) + "</lat>");
_local2 = _local2 + (("<lon>" + eventArray[_local3].longitude) + "</lon>");
_local2 = _local2 + "</listing>";
_local3++;
}
_local2 = _local2 + "</local>";
var _local5 = new XML();
_local5.parseXML(_local2);
var _local6 = new com.yahoo.maps.data.LocalSearch(_local5, 0);
onGetLocalSearch(_local6);
}
function flickrPhotosToLocalXML(photoArray) {
var _local3 = ((("<local version='0.9'><term>" + searchTags) + "</term><resulturl>http://local.yahoo.com/results?stx=sports&lat=37.664391016755&lon=-122.08780288696&radius=4.6&csz=Hayward%2C+CA+94541</resulturl><street /><city /><state /><zip /><uzip /><searchbackend>vespa</searchbackend><searchprofile>category</searchprofile><searchradius>4.6</searchradius><searchtotal>348</searchtotal><begin>1</begin><numlistings>") + photoArray.length) + "</numlistings>";
var _local2 = 0;
while (_local2 < photoArray.length) {
_local3 = _local3 + "<listing>";
_local3 = _local3 + (("<title>" + photoArray[_local2].title) + "</title>");
_local3 = _local3 + (("<addr>" + photoArray[_local2].photoURL) + "</addr>");
_local3 = _local3 + (("<city>" + photoArray[_local2].id) + "</city>");
_local3 = _local3 + (("<lat>" + photoArray[_local2].latitude) + "</lat>");
_local3 = _local3 + (("<lon>" + photoArray[_local2].longitude) + "</lon>");
_local3 = _local3 + (("<zip>" + photoArray[_local2].ownerURL.ownername) + "</zip>");
_local3 = _local3 + (("<state>" + photoArray[_local2].ownerURL.photos) + "</state>");
_local3 = _local3 + "</listing>";
_local2++;
}
_local3 = _local3 + "</local>";
var _local5 = new XML();
_local5.parseXML(_local3);
var _local6 = new com.yahoo.maps.data.LocalSearch(_local5, 0);
onGetLocalSearch(_local6);
}
function clear() {
localSearchResults = null;
removeAllMarkers();
}
static var EVENT_SEARCH_SUCCESS = "searchSuccess";
static var EVENT_SEARCH_ERROR = "searchError";
static var EVENT_API_SEARCH_SUCCESS = "apiSearchSuccess";
static var EVENT_WIDGET_ADDED = "widgetAdded";
static var XML_ERROR = "XMLError";
static var NO_RESULTS = "noResults";
var _allowMultipleSearches = false;
var _fLicense = "1,2,3,4,5";
var localSearchs = new Array();
var className = "LocalSearchOverlay";
}
Symbol 277 MovieClip [__Packages.com.yahoo.maps.overlays.PolylineOverlay] Frame 0
class com.yahoo.maps.overlays.PolylineOverlay extends com.yahoo.maps.Overlay
{
var _url, _inFill, _hasStyle, mc, _dataProvider, dispatchEvent, map, _xmlFeed;
function PolylineOverlay (url) {
_url = url;
super();
}
function init(map) {
super.init(map);
_inFill = false;
_hasStyle = false;
mc.curveThrough3Pts = function (startX, startY, throughX, throughY, endX, endY) {
var _local3 = (2 * throughX) - (0.5 * (startX + endX));
var _local2 = (2 * throughY) - (0.5 * (startY + endY));
this.moveTo(startX, startY);
this.curveTo(_local3, _local2, endX, endY);
};
map.addEventListener("zoomStop", (_local6 || (_local6 = mx.utils.Delegate)).create(this, plotPoints));
map.addEventListener("polyResize", (_local6 || (_local6 = mx.utils.Delegate)).create(this, plotPoints));
loadFeed();
}
function get url() {
return(_url);
}
function set url(url) {
_url = url;
loadFeed();
//return(this.url);
}
function get dataProvider() {
return(_dataProvider);
}
function set dataProvider(args) {
_dataProvider = args;
plotPoints(null);
//return(dataProvider);
}
function clear() {
mc.clear();
}
function plotPoints(e) {
var _local2;
var _local3;
mc.clear();
var _local4 = 0;
while (_local4 < _dataProvider.length) {
_local2 = _dataProvider[_local4];
switch (_local2.type) {
case (_local6 || (_local6 = com.yahoo.maps.overlays.PolylineOverlay)).STYLE :
_local3 = drawStyle(_local2);
break;
case (_local6 || (_local6 = com.yahoo.maps.overlays.PolylineOverlay)).LINE :
_local3 = drawLine(_local2);
break;
case (_local6 || (_local6 = com.yahoo.maps.overlays.PolylineOverlay)).CURVE :
_local3 = drawCurve(_local2);
break;
case (_local6 || (_local6 = com.yahoo.maps.overlays.PolylineOverlay)).MOVE :
_local3 = move(_local2);
}
if (_local3 == false) {
dispatchEvent({type:(_local6 || (_local6 = com.yahoo.maps.overlays.PolylineOverlay)).EVENT_POLYLINE_ERROR});
}
_local4++;
}
if (_inFill) {
_inFill = false;
mc.endFill();
}
dispatchEvent({type:(_local6 || (_local6 = com.yahoo.maps.overlays.PolylineOverlay)).EVENT_POLYLINE_SUCCESS});
}
function drawStyle(data) {
if (_inFill) {
_inFill = false;
mc.endFill();
}
_hasStyle = true;
mc.lineStyle(data.thickness, data.color, data.alpha);
if (data.fillstyle != (_local3 || (_local3 = com.yahoo.maps.overlays.PolylineOverlay)).NONE) {
_inFill = true;
mc.beginFill(data.fillcolor, data.fillalpha);
}
return(true);
}
function drawLine(data) {
var _local4;
var _local3;
if (!_hasStyle) {
drawStyle(getStyle(null));
}
var _local2 = 0;
while (_local2 < data.points.length) {
_local4 = data.points[_local2];
_local3 = getLocalPoint(_local4);
if (_local3 == null) {
return(false);
}
mc.lineTo(_local3.x, _local3.y);
_local2++;
}
return(true);
}
function drawCurve(data) {
var _local8;
var _local5;
var _local4;
var _local3;
if (!_hasStyle) {
drawStyle(getStyle(null));
}
if (data.points.length != 3) {
return(false);
}
_local5 = getLocalPoint({lat:data.points[0].lat, lon:data.points[0].lon});
_local4 = getLocalPoint({lat:data.points[1].lat, lon:data.points[1].lon});
_local3 = getLocalPoint({lat:data.points[2].lat, lon:data.points[2].lon});
if (((_local5 == null) || (_local4 == null)) || (_local3 == null)) {
return(false);
}
mc.curveThrough3Pts(_local5.x, _local5.y, _local4.x, _local4.y, _local3.x, _local3.y);
return(true);
}
function move(data) {
var _local2 = getLocalPoint(data);
if (_local2 == null) {
return(false);
}
mc.moveTo(_local2.x, _local2.y);
return(true);
}
function getLocalPoint(data) {
var _local2 = new com.yahoo.maps.LatLon(Number(data.lat), Number(data.lon));
if (isNaN(_local2.__get__lat()) || (isNaN(_local2.__get__lon()))) {
return(null);
}
return(map.latlon_to_local(_local2));
}
function getStyle(args) {
var _local2 = new Object();
_local2.thickness = ((args.thickness == undefined) ? 2 : (Number(args.thickness)));
_local2.color = ((args.color == undefined) ? 0 : (Number(args.color)));
_local2.alpha = ((args.alpha == undefined) ? 100 : (Number(args.alpha)));
_local2.fillstyle = ((args.fillstyle == undefined) ? ((_local3 || (_local3 = com.yahoo.maps.overlays.PolylineOverlay)).NONE) : (args.fillstyle));
_local2.fillcolor = ((args.fillcolor == undefined) ? 0 : (Number(args.fillcolor)));
_local2.fillalpha = ((args.fillalpha == undefined) ? 100 : (Number(args.fillalpha)));
return(_local2);
}
function detach() {
super.detach();
}
function loadFeed() {
_xmlFeed = new XML();
_xmlFeed.ignoreWhite = true;
_xmlFeed.onData = (_local2 || (_local2 = mx.utils.Delegate)).create(this, validateFeed);
_xmlFeed.onLoad = (_local2 || (_local2 = mx.utils.Delegate)).create(this, parseFeed);
_xmlFeed.load(_url);
}
function validateFeed(data) {
if (data == undefined) {
dispatchEvent({type:(_local6 || (_local6 = com.yahoo.maps.overlays.PolylineOverlay)).EVENT_POLYLINE_ERROR, url:_url, message:"Unable to open url."});
} else {
_xmlFeed.parseXML(data);
_xmlFeed.loaded = true;
_xmlFeed.onLoad(true);
}
}
function parseFeed(success) {
var _local4;
var _local3;
var _local2 = _xmlFeed.firstChild.firstChild;
_dataProvider = new Array();
while (_local2 != null) {
_local4 = _local2.nodeName.toLowerCase();
_local3 = parseXMLObj(new Object(), _local2);
_dataProvider.push(_local3);
_local2 = _local2.nextSibling;
}
plotPoints();
}
function parseXMLObj(retVal, args) {
var _local3;
var _local7;
var _local5 = args.nodeName.toLowerCase();
var _local2 = args.firstChild;
while (_local2 != null) {
_local3 = _local2.nodeName.toLowerCase();
if (_local2.firstChild.hasChildNodes()) {
if (_local3 == (_local8 || (_local8 = com.yahoo.maps.overlays.PolylineOverlay)).POINTS) {
retVal[(_local8 || (_local8 = com.yahoo.maps.overlays.PolylineOverlay)).POINTS] = parseXMLObj(new Array(), _local2);
} else if (_local3 == (_local8 || (_local8 = com.yahoo.maps.overlays.PolylineOverlay)).POINT) {
retVal.push(parseXMLObj(new Object(), _local2));
} else {
retVal[_local3] = parseXMLObj(new Object(), _local2.firstChild);
}
} else {
retVal[_local3] = _local2.firstChild.nodeValue;
}
_local2 = _local2.nextSibling;
}
if (_local5 == (_local8 || (_local8 = com.yahoo.maps.overlays.PolylineOverlay)).STYLE) {
retVal = getStyle(retVal);
}
retVal.type = _local5;
return(retVal);
}
static var EVENT_POLYLINE_ERROR = "polylineError";
static var EVENT_POLYLINE_SUCCESS = "polylineSuccess";
static var CURVE = "curve";
static var LAT = "lat";
static var LINE = "line";
static var LON = "lon";
static var MOVE = "move";
static var NONE = "none";
static var POINT = "point";
static var POINTS = "points";
static var SOLID = "solid";
static var STYLE = "style";
var className = "PolylineOverlay";
}
Symbol 289 MovieClip [__Packages.com.yahoo.maps.markers.SpeedMarker] Frame 0
class com.yahoo.maps.markers.SpeedMarker extends com.yahoo.maps.Marker
{
var _markerSymbols, speed, speed_txt, shadow_txt, attachMovie, __id, getNextHighestDepth, dimension;
function SpeedMarker () {
super();
_markerSymbols = new Array("trafficRedSymbol", "trafficOrangeSymbol", "trafficYellowSymbol", "trafficLtGreenSymbol", "trafficGreenSymbol");
}
function onLoad() {
speed_txt.text = "Speed: " + speed;
shadow_txt.text = "Speed: " + speed;
speed_txt._visible = false;
shadow_txt._visible = false;
var _local2;
if (speed > 65) {
_local2 = 4;
} else if (speed > 55) {
_local2 = 3;
} else if (speed > 45) {
_local2 = 2;
} else if (speed > 30) {
_local2 = 1;
} else {
_local2 = 0;
}
attachMovie(_markerSymbols[_local2], __id, getNextHighestDepth(), {_width:dimension, _height:dimension});
}
function onRollOver() {
speed_txt._visible = true;
shadow_txt._visible = true;
}
function onRollOut() {
speed_txt._visible = false;
shadow_txt._visible = false;
}
static var className = "__Resources.0785805483.speedSymbols_swf";
static var symbolOwner = com.yahoo.maps.markers.SpeedMarker;
static var symbolName = "com.yahoo.maps.markers.SpeedMarker";
}
Symbol 300 MovieClip [__Packages.com.yahoo.maps.markers.TrafficMarker] Frame 0
class com.yahoo.maps.markers.TrafficMarker extends com.yahoo.maps.Marker
{
var styleSheet, color, up, upClip, over, overClip, click, clickClip, type, upIcon, name, overIcon, overHeight, overWidth, description, updateTime, clickIcon, closeButton, attachMovie, getNextHighestDepth, clickHeight, clickWidth, rolloverEffect, swapDepths, _parent, hitTest;
function TrafficMarker () {
super();
}
function onLoad() {
init();
}
function init() {
styleSheet = new TextField.StyleSheet();
styleSheet.setStyle("name", {fontWeight:"bold", fontSize:"10", fontFamily:"tahoma", textDecoration:"none", color:"#333333", textAlign:"left"});
styleSheet.setStyle("desc", {fontWeight:"normal", fontSize:"10", fontFamily:"tahoma", textDecoration:"none", color:"#333333", textAlign:"left"});
styleSheet.setStyle("time", {fontWeight:"normal", fontSize:"10", fontFamily:"tahoma", textDecoration:"none", color:"#333333", textAlign:"left"});
if (color == undefined) {
color = 65280;
}
var scope = this;
up = new com.yahoo.maps.flash.Bubble(this, width, height, color, 16777215, 1);
upClip = up.mc;
createUp();
over = new com.yahoo.maps.flash.Bubble(this, width, height, 16777215, color, 2);
overClip = over.mc;
createOver();
overClip._visible = false;
click = new com.yahoo.maps.flash.Bubble(this, width, height, 16777215, color, 3);
clickClip = click.mc;
createClick();
clickClip._visible = false;
upClip.onRollOver = function () {
if (!scope.clickClip._visible) {
scope.closeSessionOpenPOI();
scope.swapMarker();
scope.nudge(scope.over.width, -scope.over.height);
var _local2 = new Object();
_local2.trueWidth = scope.overWidth;
_local2.trueHeight = scope.overHeight;
scope.over.width = scope.up.bubbleWidth;
scope.over.height = scope.overHeight;
scope.over.draw();
scope.overClip._visible = true;
scope.overClip.labelText._visible = false;
scope.overClip.chevron._visible = false;
scope.overIcon._visible = false;
_local2.target = scope.over;
_local2.overIcon = scope.overIcon;
_local2.onEffect = function (e) {
if (e.type == "update") {
this.target.width = Math.max(this.trueWidth * e.percentComplete, scope.up.width);
this.target.draw();
} else {
this.target.mc.labelText._visible = true;
this.target.mc.chevron._visible = true;
this.overIcon._visible = true;
this.rolloverEffect = undefined;
this.overIcon = undefined;
this.target = null;
}
};
this.rolloverEffect = new com.yahoo.maps.flash.Effect(this, 200, _local2);
}
};
overClip.onRelease = function () {
scope.nudge(scope.click.width, -scope.click.height);
var _local2 = new Object();
_local2.trueWidth = scope.clickWidth;
_local2.trueHeight = scope.clickHeight;
scope.clickClip._visible = true;
scope.clickClip.labelText._visible = false;
scope.clickClip.detailText._visible = false;
scope.closeButton._visible = false;
scope.clickIcon._visible = false;
_local2.target = scope.click;
_local2.clickIcon = scope.clickIcon;
scope.click.height = scope.overHeight;
scope.click.width = scope.overWidth;
scope.click.draw();
_local2.onEffect = function (e) {
if (e.type == "update") {
this.target.height = this.trueHeight * e.percentComplete;
this.target.draw();
} else {
this.target.mc.detailText._visible = true;
this.target.mc.labelText._visible = true;
scope.closeButton._visible = true;
this.clickIcon._visible = true;
this.rolloverEffect = undefined;
this.clickIcon = undefined;
this.target = null;
}
};
this.rolloverEffect = new com.yahoo.maps.flash.Effect(this, 200, _local2);
scope.overClip._visible = false;
scope.setSessionOpenPOI(true);
};
overClip.onRollOut = function () {
if (!scope.clickClip._visible) {
scope.close();
}
};
}
function createUp() {
up.__set__icon(((type != "caution") ? "trafficCaution" : "workerguy"));
upIcon = up.icon;
upIcon._x = smallMargin;
up.__set__width(upIcon._width + (2 * smallMargin));
up.__set__height(upIcon._height + (2 * smallMargin));
up.draw();
}
function createOver() {
with (overClip) {
createTextField("labelText", getNextHighestDepth(), 0, 0, 0, 0);
labelText.selectable = false;
labelText.autoSize = "left";
labelText.multiline = true;
labelText.wordWrap = true;
labelText.html = true;
}
overClip.labelText.styleSheet = styleSheet;
var nameArray = name.split(", at ");
var overName = "";
var i = 0;
while (i < nameArray.length) {
overName = overName + (nameArray[i] + "<br>");
i++;
}
overClip.labelText.htmlText = ("<p><name>" + ((overName == undefined) ? "" : (overName))) + "</name></p>";
var w = overClip.labelText.textWidth;
if (w > 175) {
w = 175;
}
overClip.labelText._width = w;
var iconBox = (new com.macromedia.mc.shapes.RoundRect(over.__get__mc()));
iconBox.draw(0, 0, 20, 20, 3, color, 100);
iconBox.mc.attachMovie(((type != "caution") ? "trafficCaution" : "workerguy"), "icon", iconBox.mc.getNextHighestDepth(), {_x:1, _y:19, _width:18, _height:18});
overIcon = iconBox.mc;
overIcon._x = bigBorderWidth + bigMargin;
overClip.labelText._x = (overIcon._x + overIcon._width) + bigMargin;
overClip.labelText._y = -overClip.labelText._height;
overIcon._y = (overClip.labelText._y + 2) + 1;
var chevron = overClip.attachMovie("chevron2", "chevron", overClip.getNextHighestDepth());
chevron._x = (overClip.labelText._x + overClip.labelText._width) + 6;
chevron._y = overClip.labelText._y + 3;
over.__set__height((overHeight = (overClip.labelText._height + ((bigBorderWidth + bigMargin) * 2)) - 15));
over.__set__width((overWidth = (((overClip.labelText._width + bigMargin) + overIcon._width) + ((bigBorderWidth + bigMargin) * 2)) + (overClip.chevron._width + 6)));
over.draw();
}
function createClick() {
clickClip.onRelease = function () {
};
clickClip.useHandCursor = false;
with (clickClip) {
createTextField("labelText", getNextHighestDepth(), 0, 0, 0, 0);
labelText.selectable = false;
labelText.autoSize = "left";
labelText.multiline = true;
labelText.wordWrap = true;
labelText.html = true;
createTextField("detailText", getNextHighestDepth(), 0, 0, 0, 0);
detailText.selectable = false;
detailText.autoSize = "left";
detailText.multiline = true;
detailText.wordWrap = true;
detailText.html = true;
}
clickClip.labelText.styleSheet = styleSheet;
clickClip.detailText.styleSheet = styleSheet;
var nameArray = name.split(", at ");
var clickName = "";
var i = 0;
while (i < nameArray.length) {
clickName = clickName + (nameArray[i] + "<br>");
i++;
}
var descArray = description.split(";");
var descName = "";
var i = 0;
while (i < descArray.length) {
descName = descName + (descArray[i] + "<br>");
i++;
}
clickClip.labelText.htmlText = ("<p><name>" + ((clickName == undefined) ? "" : (clickName))) + "</name></p>";
var w = clickClip.labelText.textWidth;
if (w > 175) {
w = 175;
}
clickClip.labelText._width = w;
clickClip.detailText.htmlText = ((("<p><desc>" + descName) + "</desc><time>") + ((updateTime == undefined) ? "" : (updateTime))) + "</time></p>";
w = clickClip.detailText.textWidth;
if (w > 200) {
w = 200;
}
clickClip.detailText._width = w;
var iconBox = (new com.macromedia.mc.shapes.RoundRect(click.__get__mc()));
iconBox.draw(0, 0, 20, 20, 3, color, 100);
iconBox.mc.attachMovie(((type != "caution") ? "trafficCaution" : "workerguy"), "icon", iconBox.mc.getNextHighestDepth(), {_x:1, _y:19, _width:18, _height:18});
clickIcon = iconBox.mc;
clickIcon._x = bigBorderWidth + bigMargin;
clickClip.detailText._x = bigMargin + bigBorderWidth;
clickClip.detailText._y = (((-clickClip.detailText._height) - bigMargin) - bigBorderWidth) - click.__get__stem();
clickClip.labelText._x = (clickIcon._x + clickIcon._width) + bigMargin;
clickClip.labelText._y = (-clickClip.labelText._height) + clickClip.detailText._y;
clickIcon._y = (clickClip.labelText._y + 2) + 1;
closeButton = attachMovie("closeButton3", "closeButton", getNextHighestDepth());
closeButton._visible = false;
closeButton._x = (clickClip.labelText._x + clickClip.labelText._width) + 2;
closeButton._y = clickClip.labelText._y + 4;
closeButton.onRollOver = (closeButton.onDragOver = function () {
(this.gotoAndStop("over"));// not popped
});
closeButton.onRollOut = (closeButton.onDragOut = function () {
(this.gotoAndStop("up"));// not popped
});
closeButton.onPress = function () {
(this.gotoAndStop("down"));// not popped
};
var scope = this;
closeButton.onRelease = function () {
this.onRollOut();
scope.close();
};
click.__set__height((clickHeight = (clickClip.labelText._height + clickClip.detailText._height) + ((bigBorderWidth + bigMargin) * 2)));
click.__set__width((clickWidth = Math.max(clickClip.detailText._width, (clickClip.labelText._width + bigMargin) + clickIcon._width) + ((bigBorderWidth + bigMargin) * 2)));
click.draw();
}
function close() {
super.close();
if (rolloverEffect != undefined) {
over.__set__height(overHeight);
over.__set__width(overWidth);
over.draw();
rolloverEffect.destroy();
rolloverEffect = undefined;
}
overClip._visible = false;
clickClip._visible = false;
closeButton._visible = false;
upIcon._visible = true;
}
function hidePOIMarker() {
close();
}
function expand() {
overClip._visible = true;
}
function swapMarker() {
swapDepths(_parent.getNextHighestDepth());
}
function onMouseDown() {
if ((!hitTest(_root._xmouse, _root._ymouse)) && (overClip._visible || (clickClip._visible))) {
}
}
static var className = "__Resources.0785805483.traffic_swf";
var width = 16;
var height = 16;
var _strokeColor = 16777215;
var smallMargin = 2;
var bigMargin = 5;
var smallBorderWidth = 1;
var bigBorderWidth = 2;
static var symbolOwner = com.yahoo.maps.markers.TrafficMarker;
static var symbolName = "com.yahoo.maps.markers.TrafficMarker";
}
Symbol 302 MovieClip [__Packages.com.yahoo.maps.overlays.TrafficOverlay] Frame 0
class com.yahoo.maps.overlays.TrafficOverlay extends com.yahoo.maps.Overlay
{
var dataService, map, refreshTimer, removeAllMarkers, items, addMarkerByLatLon;
function TrafficOverlay () {
super();
}
function detach() {
dataService.removeEventListener("onGetTraffic", this);
dataService.removeEventListener("onGetTrafficError", this);
super.detach();
}
function init(map) {
super.init(map);
this.map.addEventListener((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).MOVE, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapMove));
this.map.addEventListener((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).ZOOM_STOP, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapZoomStop));
this.map.addEventListener((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).ZOOM_START, (_local4 || (_local4 = mx.utils.Delegate)).create(this, onMapZoomStart));
dataService = new com.yahoo.maps.ExtensibleDataService();
dataService.addEventListener("onGetTraffic", this);
dataService.addEventListener("onGetTrafficError", this);
show();
}
function onMapMove(event) {
clearRefreshTimer();
refreshTimer = setInterval(this, "refreshTraffic", 500);
}
function onMapZoomStart() {
removeAllMarkers();
}
function onMapZoomStop() {
refreshTraffic();
}
function clearRefreshTimer() {
if (refreshTimer != null) {
clearInterval(refreshTimer);
refreshTimer = null;
}
}
function show() {
super.show();
refreshTraffic();
}
function hide() {
super.hide();
}
function refreshTraffic() {
clearRefreshTimer();
var _local2 = map.getCenter();
var _local3 = map.getZoomLevel();
dataService.getTraffic(_local2.__get__lat(), _local2.__get__lon(), _local3, map.getMinimumRadius() * 2);
}
function onGetTraffic(o) {
var _local4 = o.data;
removeAllMarkers();
items = new Array();
var _local3 = 0;
while (_local3 < _local4.itemArray.length) {
var _local2 = _local4.itemArray[_local3];
switch (_local2.severity.charAt(1)) {
case "5" :
case "4" :
_local2.color = 16711680 /* 0xFF0000 */;
break;
case "3" :
_local2.color = 16750848 /* 0xFF9900 */;
break;
case "2" :
case "1" :
_local2.color = 16776960 /* 0xFFFF00 */;
break;
default :
_local2.color = 65280;
}
_local2.type = ((_local2.severity.charAt(0) == "I") ? "incident" : "caution");
items.push(addMarkerByLatLon(_local6 || (_local6 = com.yahoo.maps.markers.TrafficMarker), new com.yahoo.maps.LatLon(_local2.geo.x, _local2.geo.y), _local2));
_local3++;
}
}
function putSpeedMarker(index, speed, lat, lon) {
var _local2 = new Object();
_local2.dimension = 10;
_local2.speed = speed;
var _local3 = map.getZoomLevel();
switch (map.getZoomLevel()) {
case 0 :
case 1 :
_local2.dimension = 11;
break;
case 2 :
_local2.dimension = 10;
break;
case 3 :
_local2.dimension = 9;
break;
case 4 :
_local2.dimension = 8;
break;
case 5 :
_local2.dimension = 7;
break;
case 6 :
_local2.dimension = 6;
break;
default :
_local2.dimension = 5;
}
items.push(addMarkerByLatLon(com.yahoo.maps.markers.SpeedMarker, new com.yahoo.maps.LatLon(lat, lon), _local2));
}
function onGetTrafficError(o) {
}
var className = "TrafficOverlay";
}
Symbol 304 MovieClip [__Packages.com.yahoo.maps.tools.CustomSWFTool] Frame 0
class com.yahoo.maps.tools.CustomSWFTool extends com.yahoo.maps.Tool
{
var loaded, url, iconUrl, useClip, mcContainer, getContainer, mcLoader, dispatchEvent;
function CustomSWFTool (url, iconUrl, useClip) {
super();
loaded = false;
this.url = url;
this.iconUrl = iconUrl;
this.useClip = useClip;
}
function initTool() {
attachSWF();
}
function attachSWF() {
var scope = this;
mcContainer = getContainer().createEmptyMovieClip("mcContainer", 1);
if ((!useClip) || (useClip == false)) {
var _local2 = new Object();
System.security.allowDomain(url);
_local2.onLoadInit = function () {
scope.onLoadInit();
};
_local2.onLoadError = function () {
scope.onLoadError();
};
mcLoader = new MovieClipLoader();
mcLoader.addListener(_local2);
mcLoader.loadClip(url, mcContainer);
} else if (useClip == true) {
var _local5;
_local5 = mcContainer.attachMovie(url, url, mcContainer.getNextHighestDepth());
if (_local5) {
dispatchEvent({type:(_local6 || (_local6 = com.yahoo.maps.tools.CustomSWFTool)).EVENT_LOADED, tool:mcContainer});
}
}
}
function onLoadInit() {
loaded = true;
mcContainer.initTool(this);
dispatchEvent({type:(_local4 || (_local4 = com.yahoo.maps.tools.CustomSWFTool)).EVENT_LOADED, tool:mcContainer});
}
function onLoadError() {
loaded = false;
}
function getIconId() {
return(iconUrl);
}
function getUseClip() {
return(useClip);
}
function onToolMouseDown(event) {
mcContainer.onToolMouseDown(event);
}
function onToolMouseUp(event) {
mcContainer.onToolMouseUp(event);
}
function onToolMouseMove(event) {
mcContainer.onToolMouseMove(event);
}
function onToolEnterFrame(event) {
mcContainer.onToolEnterFrame(event);
}
function detach() {
mcContainer.detach();
mcContainer.removeMovieClip();
}
function isLoaded() {
return(loaded);
}
function callCustomMethod(methodName, args) {
mcContainer[methodName].apply(mcContainer, args);
}
static var EVENT_LOADED = "loaded";
var className = "CustomSWFTool";
}
Symbol 308 MovieClip [__Packages.com.yahoo.maps.tools.EdgePan] Frame 0
class com.yahoo.maps.tools.EdgePan extends com.yahoo.maps.Tool
{
var mouseXY, myMapArea, map, container, scrollRightBuffer, scrollDownBuffer, scrollLeftBuffer, scrollUpBuffer, boundsRect, getContainer, _clickPoints, clickTimer, dblClick;
function EdgePan () {
super();
}
function getIconId() {
return((_local1 || (_local1 = com.yahoo.maps.tools.EdgePan)).edgePanToolIcon);
}
function onToolMouseMove(event) {
mouseXY = {x:_xmouse, y:_ymouse};
}
function onToolEnterFrame(event) {
myMapArea = {x:container._parent._parent._parent._x, y:container._parent._parent._parent._y, h:_local11 || (_local11 = com.yahoo.maps.ExtensibleYMap)(map).getHeight(), w:_local11 || (_local11 = com.yahoo.maps.ExtensibleYMap)(map).getWidth()};
scrollRightBuffer = {max:myMapArea.x + myMapArea.w, min:(myMapArea.x + myMapArea.w) - (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).buffer};
scrollDownBuffer = {max:myMapArea.y + myMapArea.h, min:(myMapArea.y + myMapArea.h) - (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).buffer};
scrollLeftBuffer = {max:myMapArea.x, min:myMapArea.x + (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).buffer};
scrollUpBuffer = {max:myMapArea.y, min:myMapArea.y + (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).buffer};
if (isEdgeActive == false) {
boundsRect = getContainer()._parent._parent._parent.createEmptyMovieClip("boundsRect", 500);
boundsRect.move(0, 0);
boundsRect.lineStyle((_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).buffer + 6, 0, 2.5);
boundsRect.moveTo((_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).bufferThree, (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).bufferThree);
boundsRect.lineTo(myMapArea.w - (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).bufferThree, (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).bufferThree);
boundsRect.lineTo(myMapArea.w - (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).bufferThree, myMapArea.h - (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).bufferThree);
boundsRect.lineTo((_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).bufferThree, myMapArea.h - (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).bufferThree);
boundsRect.lineTo((_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).bufferThree, (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).bufferThree);
isEdgeActive = true;
} else if ((isEdgeActive == true) && (_local11 || (_local11 = com.yahoo.maps.ExtensibleYMap)(map).getWidgetFocus() == false)) {
if ((mouseXY.x >= scrollRightBuffer.min) && (mouseXY.x <= scrollRightBuffer.max)) {
if ((mouseXY.x >= ((myMapArea.x + myMapArea.w) - (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).buffer)) && (mouseXY.x < ((myMapArea.x + myMapArea.w) - (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).bufferTwo))) {
var _local2 = new mx.graphics.Point(-20, 0);
map.setCenterByPointDelta(_local2);
}
if ((mouseXY.x > ((myMapArea.x + myMapArea.w) - (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).bufferTwo)) && (mouseXY.x < ((myMapArea.x + myMapArea.w) - (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).bufferThree))) {
var _local2 = new mx.graphics.Point(-35, 0);
map.setCenterByPointDelta(_local2);
}
if ((mouseXY.x > ((myMapArea.x + myMapArea.w) - (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).bufferThree)) && (mouseXY.x <= ((myMapArea.x + myMapArea.w) - (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).edgePanStop))) {
var _local2 = new mx.graphics.Point(-70, 0);
map.setCenterByPointDelta(_local2);
}
}
if ((mouseXY.x <= scrollLeftBuffer.min) && (mouseXY.x > scrollLeftBuffer.max)) {
if ((mouseXY.x >= (myMapArea.x + (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).edgePanStop)) && (mouseXY.x < (myMapArea.x + (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).bufferThree))) {
var _local2 = new mx.graphics.Point(70, 0);
map.setCenterByPointDelta(_local2);
}
if ((mouseXY.x > (myMapArea.x + (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).bufferThree)) && (mouseXY.x < (myMapArea.x + (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).bufferTwo))) {
var _local2 = new mx.graphics.Point(35, 0);
map.setCenterByPointDelta(_local2);
}
if ((mouseXY.x > (myMapArea.x + (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).bufferTwo)) && (mouseXY.x <= (myMapArea.x + (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).buffer))) {
var _local2 = new mx.graphics.Point(20, 0);
map.setCenterByPointDelta(_local2);
}
}
if ((mouseXY.y < scrollUpBuffer.min) && (mouseXY.y >= scrollUpBuffer.max)) {
if ((mouseXY.y >= (myMapArea.y + (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).edgePanStop)) && (mouseXY.y < (myMapArea.y + (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).bufferThree))) {
var _local2 = new mx.graphics.Point(0, 70);
map.setCenterByPointDelta(_local2);
}
if ((mouseXY.y > (myMapArea.y + (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).bufferThree)) && (mouseXY.y < (myMapArea.y + (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).bufferTwo))) {
var _local2 = new mx.graphics.Point(0, 35);
map.setCenterByPointDelta(_local2);
}
if ((mouseXY.y > (myMapArea.y + (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).bufferTwo)) && (mouseXY.y <= (myMapArea.y + (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).buffer))) {
var _local2 = new mx.graphics.Point(0, 20);
map.setCenterByPointDelta(_local2);
}
}
if ((mouseXY.y > scrollDownBuffer.min) && (mouseXY.y <= scrollDownBuffer.max)) {
if ((mouseXY.y <= ((myMapArea.y + myMapArea.h) - (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).bufferTwo)) && (mouseXY.y >= ((myMapArea.y + myMapArea.h) - (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).buffer))) {
var _local2 = new mx.graphics.Point(0, -20);
map.setCenterByPointDelta(_local2);
}
if ((mouseXY.y < ((myMapArea.y + myMapArea.h) - (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).bufferThree)) && (mouseXY.y > (myMapArea.h - (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).bufferTwo))) {
var _local2 = new mx.graphics.Point(0, -35);
map.setCenterByPointDelta(_local2);
}
if ((mouseXY.y < ((myMapArea.y + myMapArea.h) - (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).edgePanStop)) && (mouseXY.y >= ((myMapArea.y + myMapArea.h) - (_local10 || (_local10 = com.yahoo.maps.tools.EdgePan)).bufferThree))) {
var _local2 = new mx.graphics.Point(0, -70);
map.setCenterByPointDelta(_local2);
}
}
}
}
function onToolMouseDown(event) {
if ((((mouseXY.x >= scrollRightBuffer.min) || (mouseXY.x <= scrollLeftBuffer.min)) || (mouseXY.y <= scrollUpBuffer.min)) || (mouseXY.y >= scrollDownBuffer.min)) {
} else {
_clickPoints = event;
if (clickTimer != null) {
clearInterval(clickTimer);
clickTimer = null;
dblClick = true;
doubleClick(event);
return(undefined);
}
clickTimer = setInterval(this, "onClickTimer", (_local3 || (_local3 = com.yahoo.maps.tools.EdgePan)).DOUBLE_CLICK_SPEED);
}
}
function onClickTimer() {
clearInterval(clickTimer);
clickTimer = null;
if (!dblClick) {
singleClick(_clickPoints, "singleClick");
}
dblClick = false;
}
function doubleClick(event) {
var _local2 = new mx.graphics.Point(0, 0);
var _local3 = new mx.graphics.Point((_local6 || (_local6 = Math)).round(event.local.x), (_local6 || (_local6 = Math)).round(event.local.y));
map.setCenterByPointDelta(_local2.subtract(_local3), 500);
singleClick(event, "doubleClick");
dblClick = false;
}
function singleClick(event, action) {
var _local2 = _local9 || (_local9 = com.yahoo.maps.ExtensibleYMap)(map).getWidth();
var _local3 = _local9 || (_local9 = com.yahoo.maps.ExtensibleYMap)(map).getHeight();
var _local5 = new mx.graphics.Point((_local10 || (_local10 = Math)).round(event.local.x) + (_local2 / 2), (_local10 || (_local10 = Math)).round(event.local.y) + (_local3 / 2));
var _local6 = new mx.graphics.Point((_local10 || (_local10 = Math)).round(event.local.x) + (_local2 / 2), (_local10 || (_local10 = Math)).round(event.local.y) + (_local3 / 2));
map.getLatLon(_local5, _local6, action);
}
function detach(event) {
boundsRect.removeMovieClip();
isEdgeActive = false;
}
static var edgePanToolIcon = "__Resources.0785805483.edgePanToolIcon_png";
static var buffer = 40;
static var bufferTwo = 25;
static var bufferThree = 15;
static var DOUBLE_CLICK_SPEED = 300;
static var edgePanStop = 3.5;
var isEdgeActive = false;
var className = "EdgePan";
}
Symbol 313 MovieClip [__Packages.com.yahoo.maps.widgets.CustomSWFWidget] Frame 0
class com.yahoo.maps.widgets.CustomSWFWidget extends com.yahoo.maps.Widget
{
var _url, _position, _useClip, mcContainer, container, mcLoader, map;
function CustomSWFWidget (url, position, useClip) {
super();
_url = url;
_position = position;
_useClip = useClip;
}
function initWidget() {
var scope = this;
var _local2 = new Object();
(_local4 || (_local4 = System.security)).allowDomain(_url);
_local2.onLoadInit = function () {
scope.onLoadInit();
};
_local2.onLoadError = function () {
scope.onLoadError();
};
mcContainer = container.createEmptyMovieClip("mcContainer", container.getNextHighestDepth());
if ((!_useClip) && (_url != undefined)) {
(_local4 || (_local4 = System.security)).allowDomain(_url);
mcLoader = new MovieClipLoader();
mcLoader.addListener(_local2);
mcLoader.loadClip(_url, mcContainer);
} else if (_useClip == true) {
var _local3;
_local3 = mcContainer.attachMovie(_url, _url, mcContainer.getNextHighestDepth());
if (_local3) {
onLoadInit();
} else {
onLoadError();
}
}
if (_position == undefined) {
move(5, 5);
} else {
move(_position.x, _position.y);
}
}
function onLoadInit() {
loaded = true;
map.dispatchEvent({type:(_local4 || (_local4 = com.yahoo.maps.ExtensibleYMap)).CUSTOM_WIDGET_LOADED, widget:mcContainer});
}
function onLoadError() {
loaded = false;
}
function onMapResize() {
}
function isLoaded() {
return(loaded);
}
function move(x, y) {
mcContainer._x = (_position.x = x);
mcContainer._y = (_position.y = y);
}
function callCustomMethod(methodName, args) {
mcContainer[methodName].apply(mcContainer, args);
}
var loaded = false;
var className = "CustomSWFWidget";
}
Symbol 374 MovieClip [__Packages.com.yahoo.maps.widgets.ToolBarWidget] Frame 0
class com.yahoo.maps.widgets.ToolBarWidget extends com.yahoo.maps.Widget
{
var isOpen, buttonInstance, currentTools, toolButtons, map, getContainer, toolBar, move, openEffect, container;
function ToolBarWidget () {
super();
isOpen = false;
buttonInstance = 0;
currentTools = new Array();
toolButtons = new Array();
}
function initWidget() {
map.addEventListener((_local7 || (_local7 = com.yahoo.maps.ExtensibleYMap)).TOOL_ADDED, (_local5 || (_local5 = mx.utils.Delegate)).create(this, onToolAdded));
map.addEventListener((_local7 || (_local7 = com.yahoo.maps.ExtensibleYMap)).TOOL_CHANGE, (_local5 || (_local5 = mx.utils.Delegate)).create(this, onToolChange));
map.addEventListener((_local7 || (_local7 = com.yahoo.maps.ExtensibleYMap)).TOOL_REMOVED, (_local5 || (_local5 = mx.utils.Delegate)).create(this, onToolRemoved));
var _local4 = getContainer();
var scope = this;
toolBar = _local4.attachMovie((_local6 || (_local6 = com.yahoo.maps.widgets.ToolBarWidget)).toolBarSymbol, "toolBar", _local4.getNextHighestDepth());
toolBar.bar._width = 500;
toolBar.bar._x = toolBar.end._x - toolBar.bar._width;
toolBar.end.triangleClose._visible = false;
toolBar.end.onRollOver = function () {
scope.toolBar.end.highlight.gotoAndPlay("show");
this._parent._parent._parent._parent.widgetFocus = true;
};
toolBar.end.onRollOut = function () {
scope.toolBar.end.highlight.gotoAndPlay("hide");
this._parent._parent._parent._parent.widgetFocus = false;
};
toolBar.end.onRelease = function () {
if (!scope.isOpen) {
scope.open();
} else {
scope.close();
}
};
toolBar.bar.onRollOver = function () {
this._parent._parent._parent._parent.widgetFocus = true;
};
toolBar.bar.onRollOut = function () {
this._parent._parent._parent._parent.widgetFocus = false;
};
var _local3 = map.getTools();
var _local2 = 0;
while (_local2 < _local3.length) {
currentTools.push(_local3[_local2]);
addButton(_local3[_local2]);
_local2++;
}
move(0, 5);
}
function addButton(tool) {
buttonInstance++;
var scope = this;
var button = toolBar.createEmptyMovieClip("button_" + buttonInstance, toolBar.getNextHighestDepth());
var _local4 = button.attachMovie("toolBarIconDown", "iconDown", button.getNextHighestDepth(), {_visible:false});
var iconUp = button.attachMovie("toolBarIconUp", "iconUp", button.getNextHighestDepth(), {_visible:false});
if (tool instanceof (_local9 || (_local9 = com.yahoo.maps.tools.CustomSWFTool))) {
var icon = button.createEmptyMovieClip("icon", button.getNextHighestDepth());
var _local2 = _local9 || (_local9 = com.yahoo.maps.tools.CustomSWFTool)(tool).getUseClip();
if (_local2 == false) {
icon.loadMovie(tool.getIconId());
} else {
icon.attachMovie(tool.getIconId(), tool.getIconId(), 1);
}
} else {
var icon = button.attachMovie(tool.getIconId(), "icon", button.getNextHighestDepth(), {_visible:true, _x:1, _y:1, _alpha:75});
}
button.active = false;
if (map.getActiveTool() == tool) {
icon._x = 2;
icon._y = 2;
icon._alpha = 100;
_local4._visible = true;
iconUp._visible = false;
button.active = true;
}
var _local3 = {button:button, tool:tool};
toolButtons.push(_local3);
button.onRollOver = function () {
if (!button.active) {
icon._alpha = 100;
iconUp._visible = true;
}
this._parent._parent._parent._parent.widgetFocus = true;
};
button.onRollOut = function () {
if (!button.active) {
icon._alpha = 75;
iconUp._visible = false;
}
this._parent._parent._parent._parent.widgetFocus = false;
};
button.onPress = function () {
button.active = true;
scope.map.setActiveTool(tool);
};
updateButtonPositions();
}
function updateButtonPositions() {
var _local2 = 0;
while (_local2 < toolButtons.length) {
var _local3 = toolButtons[_local2].button;
_local3._x = (_local2 + 1) * -31;
_local3._y = 2;
_local2++;
}
toolBar.bar._width = (toolButtons.length + 2) * 32;
toolBar.bar._x = toolBar.end._x - toolBar.bar._width;
}
function open() {
isOpen = true;
toolBar.end.triangleClose._visible = true;
toolBar.end.triangleOpen._visible = false;
openEffect = new com.yahoo.maps.flash.Effect(container, 750, this, {startPosition:container._x});
}
function close() {
isOpen = false;
toolBar.end.triangleClose._visible = false;
toolBar.end.triangleOpen._visible = true;
openEffect.destroy();
openEffect = new com.yahoo.maps.flash.Effect(container, 750, this, {startPosition:container._x});
}
function onEffect(event) {
if (event.type == "update") {
if (isOpen) {
var _local3 = (toolButtons.length * 31) + 2;
} else {
var _local3 = 0;
}
if (_local3 > event.data.startPosition) {
container._x = ((_local3 - event.data.startPosition) * event.percentComplete) + event.data.startPosition;
} else {
container._x = ((event.data.startPosition - _local3) * (1 - event.percentComplete)) + _local3;
}
}
}
function onToolAdded(event) {
addButton(event.tool);
openEffect = new com.yahoo.maps.flash.Effect(container, 750, this, {startPosition:container._x});
}
function onToolChange(event) {
var _local3 = 0;
while (_local3 < toolButtons.length) {
var _local4 = toolButtons[_local3];
var _local5 = _local4.tool;
var _local2 = _local4.button;
if (_local5 == map.getActiveTool()) {
_local2.icon._alpha = 100;
_local2.icon._x = 2;
_local2.icon._y = 2;
_local2.iconDown._visible = true;
_local2.iconUp._visible = false;
_local2.active = true;
} else {
_local2.icon._x = 1;
_local2.icon._y = 1;
_local2.icon._alpha = 75;
_local2.iconDown._visible = false;
_local2.iconUp._visible = false;
_local2.active = false;
}
_local3++;
}
}
function onToolRemoved(event) {
var _local2 = 0;
while (_local2 < toolButtons.length) {
if (toolButtons[_local2].tool == event.tool) {
toolButtons[_local2].button.removeMovieClip();
toolButtons.splice(_local2, 1);
updateButtonPositions();
openEffect = new com.yahoo.maps.flash.Effect(container, 750, this, {startPosition:container._x});
break;
}
_local2++;
}
}
function draw() {
}
static var toolBarSymbol = "__Resources.0785805483.toolBar_swf";
var className = "ToolBarWidget";
}
Symbol 393 MovieClip [__Packages.com.yahoo.maps.widgets.ZoomBarWidget] Frame 0
class com.yahoo.maps.widgets.ZoomBarWidget extends com.yahoo.maps.Widget
{
var _zoomBarWidget, getContainer, map;
function ZoomBarWidget () {
super();
}
function initWidget() {
var _local2 = this;
_zoomBarWidget = getContainer().attachMovie((_local4 || (_local4 = com.yahoo.maps.widgets.ZoomBarWidget)).zoomBarShort, "_zoomBarWidget", 1);
map.addEventListener((_local5 || (_local5 = com.yahoo.maps.ExtensibleYMap)).RESIZE, (_local3 || (_local3 = mx.utils.Delegate)).create(this, onMapResize));
_zoomBarWidget.minus.useHandCursor = false;
_zoomBarWidget.plus.useHandCursor = false;
_zoomBarWidget.zoomOut.onRelease = (_local3 || (_local3 = mx.utils.Delegate)).create(this, onMinusRelease);
_zoomBarWidget.zoomIn.onRelease = (_local3 || (_local3 = mx.utils.Delegate)).create(this, onPlusRelease);
_zoomBarWidget.zoomOut.onPress = (_local3 || (_local3 = mx.utils.Delegate)).create(this, onMinusPress);
_zoomBarWidget.zoomIn.onPress = (_local3 || (_local3 = mx.utils.Delegate)).create(this, onPlusPress);
onMapResize();
}
function onMinusRelease() {
_zoomBarWidget.zoomOut.zoomOutUp._visible = true;
var _local2 = Number(Number(map.getZoomLevel()) + Number(1));
map.setZoomLevel(_local2, map.getCenter());
}
function onPlusRelease() {
_zoomBarWidget.zoomIn.zoomInUp._visible = true;
var _local2 = Number(Number(map.getZoomLevel()) - Number(1));
map.setZoomLevel(_local2, map.getCenter());
}
function onMinusPress() {
_zoomBarWidget.zoomOut.zoomOutUp._visible = false;
}
function onPlusPress() {
_zoomBarWidget.zoomIn.zoomInUp._visible = false;
}
function onMapResize() {
move(map.getWidth() - 30, 5);
}
function move(x, y) {
_zoomBarWidget._x = x;
_zoomBarWidget._y = y;
}
static var zoomBarShort = "__Resources.0785805483.zoomBarShort_swf";
var className = "ZoomBarWidget";
}
Symbol 394 MovieClip [__Packages.mx.core.ScrollView] Frame 0
class mx.core.ScrollView extends mx.core.View
{
var __width, hScroller, vScroller, __maxHPosition, propsInited, scrollAreaChanged, specialHScrollCase, createObject, viewableColumns, __height, oldRndUp, viewableRows, __viewMetrics, owner, enabled, border_mc, __get__width, __get__height, invLayout, mask_mc, _parent, dispatchEvent;
function ScrollView () {
super();
}
function getHScrollPolicy(Void) {
return(__hScrollPolicy);
}
function setHScrollPolicy(policy) {
__hScrollPolicy = policy.toLowerCase();
if (__width == undefined) {
return(undefined);
}
setScrollProperties(numberOfCols, columnWidth, rowC, rowH, heightPadding, widthPadding);
}
function get hScrollPolicy() {
return(getHScrollPolicy());
}
function set hScrollPolicy(policy) {
setHScrollPolicy(policy);
//return(hScrollPolicy);
}
function getVScrollPolicy(Void) {
return(__vScrollPolicy);
}
function setVScrollPolicy(policy) {
__vScrollPolicy = policy.toLowerCase();
if (__width == undefined) {
return(undefined);
}
setScrollProperties(numberOfCols, columnWidth, rowC, rowH, heightPadding, widthPadding);
}
function get vScrollPolicy() {
return(getVScrollPolicy());
}
function set vScrollPolicy(policy) {
setVScrollPolicy(policy);
//return(vScrollPolicy);
}
function get hPosition() {
return(getHPosition());
}
function set hPosition(pos) {
setHPosition(pos);
//return(hPosition);
}
function getHPosition(Void) {
return(__hPosition);
}
function setHPosition(pos) {
hScroller.__set__scrollPosition(pos);
__hPosition = pos;
}
function get vPosition() {
return(getVPosition());
}
function set vPosition(pos) {
setVPosition(pos);
//return(vPosition);
}
function getVPosition(Void) {
return(__vPosition);
}
function setVPosition(pos) {
vScroller.__set__scrollPosition(pos);
__vPosition = pos;
}
function get maxVPosition() {
var _local2 = vScroller.maxPos;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function get maxHPosition() {
return(getMaxHPosition());
}
function set maxHPosition(pos) {
setMaxHPosition(pos);
//return(maxHPosition);
}
function getMaxHPosition(Void) {
if (__maxHPosition != undefined) {
return(__maxHPosition);
}
var _local2 = hScroller.maxPos;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function setMaxHPosition(pos) {
__maxHPosition = pos;
}
function setScrollProperties(colCount, colWidth, rwCount, rwHeight, hPadding, wPadding) {
var _local3 = getViewMetrics();
if (hPadding == undefined) {
hPadding = 0;
}
if (wPadding == undefined) {
wPadding = 0;
}
propsInited = true;
delete scrollAreaChanged;
heightPadding = hPadding;
widthPadding = wPadding;
if (colWidth == 0) {
colWidth = 1;
}
if (rwHeight == 0) {
rwHeight = 1;
}
var _local5 = Math.ceil((((__width - _local3.left) - _local3.right) - widthPadding) / colWidth);
if ((__hScrollPolicy == "on") || ((_local5 < colCount) && (__hScrollPolicy == "auto"))) {
if ((hScroller == undefined) || (specialHScrollCase)) {
delete specialHScrollCase;
hScroller = createObject("HScrollBar", "hSB", 1001);
hScroller.__set__lineScrollSize(20);
hScroller.scrollHandler = scrollProxy;
hScroller.__set__scrollPosition(__hPosition);
scrollAreaChanged = true;
}
if ((((numberOfCols != colCount) || (columnWidth != colWidth)) || (viewableColumns != _local5)) || (scrollAreaChanged)) {
hScroller.setScrollProperties(_local5, 0, colCount - _local5);
viewableColumns = _local5;
numberOfCols = colCount;
columnWidth = colWidth;
}
} else if (((__hScrollPolicy == "auto") || (__hScrollPolicy == "off")) && (hScroller != undefined)) {
hScroller.removeMovieClip();
delete hScroller;
scrollAreaChanged = true;
}
if (heightPadding == undefined) {
heightPadding = 0;
}
var _local4 = Math.ceil((((__height - _local3.top) - _local3.bottom) - heightPadding) / rwHeight);
var _local8 = (((__height - _local3.top) - _local3.bottom) % rwHeight) != 0;
if ((__vScrollPolicy == "on") || ((_local4 < (rwCount + _local8)) && (__vScrollPolicy == "auto"))) {
if (vScroller == undefined) {
vScroller = createObject("VScrollBar", "vSB", 1002);
vScroller.scrollHandler = scrollProxy;
vScroller.__set__scrollPosition(__vPosition);
scrollAreaChanged = true;
rowH = 0;
}
if ((((rowC != rwCount) || (rowH != rwHeight)) || ((viewableRows + _local8) != (_local4 + oldRndUp))) || (scrollAreaChanged)) {
vScroller.setScrollProperties(_local4, 0, (rwCount - _local4) + _local8);
viewableRows = _local4;
rowC = rwCount;
rowH = rwHeight;
oldRndUp = _local8;
}
} else if (((__vScrollPolicy == "auto") || (__vScrollPolicy == "off")) && (vScroller != undefined)) {
vScroller.removeMovieClip();
delete vScroller;
scrollAreaChanged = true;
}
numberOfCols = colCount;
columnWidth = colWidth;
if (scrollAreaChanged) {
doLayout();
var _local2 = __viewMetrics;
var _local12 = ((owner != undefined) ? (owner) : this);
_local12.layoutContent(_local2.left, _local2.top, ((columnWidth * numberOfCols) - _local2.left) - _local2.right, rowC * rowH, (__width - _local2.left) - _local2.right, (__height - _local2.top) - _local2.bottom);
}
if (!enabled) {
setEnabled(false);
}
}
function getViewMetrics(Void) {
var _local2 = __viewMetrics;
var _local3 = border_mc.__get__borderMetrics();
_local2.left = _local3.left;
_local2.right = _local3.right;
if (vScroller != undefined) {
_local2.right = _local2.right + vScroller.minWidth;
}
_local2.top = _local3.top;
if ((hScroller == undefined) && ((__hScrollPolicy == "on") || (__hScrollPolicy == true))) {
hScroller = createObject("FHScrollBar", "hSB", 1001);
specialHScrollCase = true;
}
_local2.bottom = _local3.bottom;
if (hScroller != undefined) {
_local2.bottom = _local2.bottom + hScroller.minHeight;
}
return(_local2);
}
function doLayout(Void) {
var _local10 = __get__width();
var _local8 = __get__height();
delete invLayout;
var _local3 = (__viewMetrics = getViewMetrics());
var _local2 = _local3.left;
var _local9 = _local3.right;
var _local5 = _local3.top;
var _local11 = _local3.bottom;
var _local7 = hScroller;
var _local6 = vScroller;
_local7.setSize((_local10 - _local2) - _local9, _local7.minHeight + 0);
_local7.move(_local2, _local8 - _local11);
_local6.setSize(_local6.minWidth + 0, (_local8 - _local5) - _local11);
_local6.move(_local10 - _local9, _local5);
var _local4 = mask_mc;
_local4._width = (_local10 - _local2) - _local9;
_local4._height = (_local8 - _local5) - _local11;
_local4._x = _local2;
_local4._y = _local5;
}
function createChild(id, name, props) {
var _local2 = super.createChild(id, name, props);
return(_local2);
}
function init(Void) {
super.init();
__viewMetrics = new Object();
if (_global.__SVMouseWheelManager == undefined) {
var _local4 = (_global.__SVMouseWheelManager = new Object());
_local4.onMouseWheel = __onMouseWheel;
Mouse.addListener(_local4);
}
}
function __onMouseWheel(delta, scrollTarget) {
var _local4 = scrollTarget;
var _local1;
while (_local4 != undefined) {
if (_local4 instanceof mx.core.ScrollView) {
_local1 = _local4;
}
_local4 = _local4._parent;
}
if (_local1 != undefined) {
_local4 = ((delta <= 0) ? 1 : -1);
var _local2 = _local1.vScroller.lineScrollSize;
if (_local2 == undefined) {
_local2 = 0;
}
_local2 = Math.max(Math.abs(delta), _local2);
var _local3 = _local1.vPosition + (_local2 * _local4);
_local1.vPosition = Math.max(0, Math.min(_local3, _local1.maxVPosition));
_local1.dispatchEvent({type:"scroll", direction:"vertical", position:_local1.vPosition});
}
}
function createChildren(Void) {
super.createChildren();
if (mask_mc == undefined) {
mask_mc = createObject("BoundingBox", "mask_mc", MASK_DEPTH);
}
mask_mc._visible = false;
}
function invalidate(Void) {
super.invalidate();
}
function draw(Void) {
size();
}
function size(Void) {
super.size();
}
function scrollProxy(docObj) {
_parent.onScroll(docObj);
}
function onScroll(docObj) {
var _local3 = docObj.target;
var _local2 = _local3.scrollPosition;
if (_local3 == vScroller) {
var _local4 = "vertical";
var _local5 = "__vPosition";
} else {
var _local4 = "horizontal";
var _local5 = "__hPosition";
}
this[_local5] = _local2;
dispatchEvent({type:"scroll", direction:_local4, position:_local2});
}
function setEnabled(v) {
vScroller.enabled = (hScroller.enabled = v);
}
function childLoaded(obj) {
super.childLoaded(obj);
obj.setMask(mask_mc);
}
static var symbolName = "ScrollView";
static var symbolOwner = mx.core.ScrollView;
static var version = "2.0.2.126";
var className = "ScrollView";
var __vScrollPolicy = "auto";
var __hScrollPolicy = "off";
var __vPosition = 0;
var __hPosition = 0;
var numberOfCols = 0;
var rowC = 0;
var columnWidth = 1;
var rowH = 0;
var heightPadding = 0;
var widthPadding = 0;
var MASK_DEPTH = 10000;
}
Symbol 395 MovieClip [__Packages.mx.containers.Window] Frame 0
class mx.containers.Window extends mx.core.ScrollView
{
var destroyChildAt, __contentPath, boundingBox_mc, _parent, modalWindow, swapDepths, regX, _xmouse, regY, _ymouse, onMouseMove, move, back_mc, createClassObject, depth, titleStyleDeclaration, button_mc, validateNow, redraw, invalidate, _title, _child0, border_mc, __get__width, __get__height, size, vScroller, hScroller, closeButton, dispatchEvent;
function Window () {
super();
}
function set contentPath(scrollableContent) {
if (!initializing) {
if (scrollableContent == undefined) {
destroyChildAt(0);
} else {
if (this[mx.core.View.childNameBase + 0] != undefined) {
destroyChildAt(0);
}
createChild(scrollableContent, "content", {styleName:this});
}
}
__contentPath = scrollableContent;
//return(contentPath);
}
function get contentPath() {
return(__contentPath);
}
function init(Void) {
super.init();
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function delegateClick(obj) {
_parent.dispatchEvent({type:"click"});
}
function startDragging(Void) {
if (modalWindow == undefined) {
var _local2 = _parent.createChildAtDepth("BoundingBox", mx.managers.DepthManager.kTop, {_visible:false});
swapDepths(_local2);
_local2.removeMovieClip();
}
regX = _xmouse;
regY = _ymouse;
onMouseMove = dragTracking;
}
function stopDragging(Void) {
delete onMouseMove;
}
function dragTracking() {
var _local5 = _parent._xmouse - regX;
var _local4 = _parent._ymouse - regY;
var _local3 = 5;
var _local2 = mx.managers.SystemManager.__get__screen();
if (_local5 < ((_local2.x - regX) + _local3)) {
_local5 = (_local2.x - regX) + _local3;
}
if (_local5 > ((_local2.width + _local2.x) - (regX + _local3))) {
_local5 = (_local2.width + _local2.x) - (regX + _local3);
}
if (_local4 < ((_local2.y - regY) + _local3)) {
_local4 = (_local2.y - regY) + _local3;
}
if (_local4 > ((_local2.height + _local2.y) - (regY + _local3))) {
_local4 = (_local2.height + _local2.y) - (regY + _local3);
}
move(_local5, _local4);
updateAfterEvent();
}
function createChildren(Void) {
super.createChildren();
if (back_mc == undefined) {
createClassObject(mx.core.UIObject, "back_mc", 1);
back_mc.createObject(skinTitleBackground, "back_mc", 0);
}
back_mc.visible = false;
depth = 3;
var _local6 = new Object();
back_mc.useHandCursor = false;
back_mc.onPress = function () {
if (this._parent.enabled) {
this._parent.startDragging();
}
};
back_mc.onDragOut = (back_mc.onRollOut = (back_mc.onReleaseOutside = (back_mc.onRelease = function () {
var _local2 = this._parent;
_local2.stopDragging();
})));
back_mc.tabEnabled = false;
if (back_mc.title_mc == undefined) {
back_mc.createLabel("title_mc", 1, title);
var _local4 = back_mc.title_mc;
if (titleStyleDeclaration == undefined) {
_local4.fontSize = 10;
_local4.color = 16777215 /* 0xFFFFFF */;
_local4.fontWeight = "bold";
} else {
_local4.styleName = titleStyleDeclaration;
}
_local4.invalidateStyle();
} else {
back_mc.title_mc.text = title;
}
var _local3 = new Object();
_local3.falseUpSkin = skinCloseUp;
_local3.falseOverSkin = skinCloseOver;
_local3.falseDownSkin = skinCloseDown;
_local3.falseDisabledSkin = skinCloseDisabled;
_local3.tabEnabled = false;
createClassObject(mx.controls.SimpleButton, "button_mc", 2, _local3);
button_mc.clickHandler = delegateClick;
button_mc.__set__visible(false);
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function get title() {
return(_title);
}
function set title(s) {
_title = s;
back_mc.title_mc.text = s;
if (!initializing) {
draw();
}
//return(title);
}
function setEnabled(enable) {
super.setEnabled(enable);
button_mc.enabled = enable;
_child0.enabled = enable;
}
function getComponentCount(Void) {
return(1);
}
function getComponentRect(container) {
if (container == 1) {
var _local3 = border_mc.__get__borderMetrics();
var _local2 = new Object();
_local2.x = _local3.left;
_local2.y = _local3.top + back_mc.height;
_local2.width = (__get__width() - _local2.x) - _local3.right;
_local2.height = (__get__height() - _local2.y) - _local3.bottom;
return(_local2);
}
return(undefined);
}
function draw(Void) {
if (initializing) {
initializing = false;
if (__contentPath != undefined) {
contentPath = (__contentPath);
}
_child0.visible = true;
border_mc.__set__visible(true);
back_mc.visible = true;
}
size();
}
function getViewMetrics(Void) {
var _local3 = super.getViewMetrics();
_local3.top = _local3.top + back_mc.height;
return(_local3);
}
function doLayout(Void) {
super.doLayout();
var _local3 = border_mc.__get__borderMetrics();
_local3.right = _local3.right + ((vScroller.__get__visible() == true) ? (vScroller.__get__width()) : 0);
_local3.bottom = _local3.bottom + ((hScroller.__get__visible() == true) ? (hScroller.__get__height()) : 0);
var _local4 = _local3.left;
var _local6 = _local3.top;
back_mc.move(_local4, _local6);
back_mc.back_mc.setSize((__get__width() - _local4) - _local3.right, back_mc.height);
_child0.move(_local4, _local6 + back_mc.height);
if (_child0.size != mx.core.UIObject.prototype.size) {
_child0.setSize((__get__width() - _local4) - _local3.right, ((__get__height() - _local6) - back_mc.height) - _local3.bottom);
}
button_mc.__set__visible(closeButton == true);
button_mc.move(((__get__width() - _local4) - _local4) - button_mc.__get__width(), ((back_mc.height - button_mc.__get__height()) / 2) + _local6);
var _local7 = back_mc.title_mc.textHeight;
var _local5 = ((back_mc.height - _local7) - 4) / 2;
back_mc.title_mc.move(_local5, _local5 - 1);
back_mc.title_mc.setSize((__get__width() - _local5) - _local5, _local7 + 4);
}
function createChild(id, name, props) {
loadingChild = true;
var _local3 = super.createChild(id, name, props);
loadingChild = false;
return(_local3);
}
function childLoaded(obj) {
super.childLoaded(obj);
if (loadingChild) {
dispatchEvent({type:"complete", current:obj.getBytesLoaded(), total:obj.getBytesTotal()});
}
}
static var symbolName = "Window";
static var symbolOwner = mx.containers.Window;
static var version = "2.0.2.126";
var className = "Window";
static var skinIDBorder = 0;
static var skinIDTitleBackground = 1;
static var skinIDForm = 2;
var idNames = new Array("border_mc", "back_mc", "content");
var skinTitleBackground = "TitleBackground";
var skinCloseUp = "CloseButtonUp";
var skinCloseOver = "CloseButtonOver";
var skinCloseDown = "CloseButtonDown";
var skinCloseDisabled = "CloseButtonDisabled";
var clipParameters = {title:1, contentPath:1, closeButton:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.containers.Window.prototype.clipParameters, mx.core.ScrollView.prototype.clipParameters);
var initializing = true;
var loadingChild = false;
}
Symbol 489 MovieClip [__Packages.mx.skins.CustomBorder] Frame 0
class mx.skins.CustomBorder extends mx.skins.Border
{
var __width, __height, l_mc, setSkin, minHeight, minWidth, m_mc, r_mc;
function CustomBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function createChildren(Void) {
}
function draw(Void) {
if (l_mc == undefined) {
var _local2 = setSkin(tagL, leftSkin);
if (horizontal) {
minHeight = l_mc._height;
minWidth = l_mc._width;
} else {
minHeight = l_mc._height;
minWidth = l_mc._width;
}
}
if (m_mc == undefined) {
setSkin(tagM, middleSkin);
if (horizontal) {
minHeight = m_mc._height;
minWidth = minWidth + m_mc._width;
} else {
minHeight = minHeight + m_mc._height;
minWidth = m_mc._width;
}
}
if (r_mc == undefined) {
setSkin(tagR, rightSkin);
if (horizontal) {
minHeight = r_mc._height;
minWidth = minWidth + r_mc._width;
} else {
minHeight = minHeight + r_mc._height;
minWidth = r_mc._width;
}
}
size();
}
function size(Void) {
l_mc.move(0, 0);
if (horizontal) {
r_mc.move(width - r_mc.width, 0);
m_mc.move(l_mc.width, 0);
m_mc.setSize(r_mc.x - m_mc.x, m_mc.height);
} else {
r_mc.move(0, height - r_mc.height, 0);
m_mc.move(0, l_mc.height);
m_mc.setSize(m_mc.width, r_mc.y - m_mc.y);
}
}
static var symbolName = "CustomBorder";
static var symbolOwner = mx.skins.CustomBorder;
static var version = "2.0.2.126";
var className = "CustomBorder";
static var tagL = 0;
static var tagM = 1;
static var tagR = 2;
var idNames = new Array("l_mc", "m_mc", "r_mc");
var leftSkin = "F3PieceLeft";
var middleSkin = "F3PieceMiddle";
var rightSkin = "F3PieceRight";
var horizontal = true;
}
Symbol 490 MovieClip [__Packages.mx.controls.scrollClasses.ScrollThumb] Frame 0
class mx.controls.scrollClasses.ScrollThumb extends mx.skins.CustomBorder
{
var useHandCursor, ymin, ymax, datamin, datamax, scrollMove, lastY, _ymouse, _y, _parent, onMouseMove, grip_mc, setSkin, gripSkin, __get__width, __get__height;
function ScrollThumb () {
super();
}
function createChildren(Void) {
super.createChildren();
useHandCursor = false;
}
function setRange(_ymin, _ymax, _datamin, _datamax) {
ymin = _ymin;
ymax = _ymax;
datamin = _datamin;
datamax = _datamax;
}
function dragThumb(Void) {
scrollMove = _ymouse - lastY;
scrollMove = scrollMove + _y;
if (scrollMove < ymin) {
scrollMove = ymin;
} else if (scrollMove > ymax) {
scrollMove = ymax;
}
_parent.isScrolling = true;
_y = scrollMove;
var _local2 = Math.round(((datamax - datamin) * (_y - ymin)) / (ymax - ymin)) + datamin;
_parent.scrollPosition = _local2;
_parent.dispatchScrollEvent("ThumbTrack");
updateAfterEvent();
}
function stopDragThumb(Void) {
_parent.isScrolling = false;
_parent.dispatchScrollEvent("ThumbPosition");
_parent.dispatchScrollChangedEvent();
delete onMouseMove;
}
function onPress(Void) {
_parent.pressFocus();
lastY = _ymouse;
onMouseMove = dragThumb;
super.onPress();
}
function onRelease(Void) {
_parent.releaseFocus();
stopDragThumb();
super.onRelease();
}
function onReleaseOutside(Void) {
_parent.releaseFocus();
stopDragThumb();
super.onReleaseOutside();
}
function draw() {
super.draw();
if (grip_mc == undefined) {
setSkin(3, gripSkin);
}
}
function size() {
super.size();
grip_mc.move((__get__width() - grip_mc.width) / 2, (__get__height() - grip_mc.height) / 2);
}
static var symbolOwner = mx.skins.CustomBorder.symbolOwner;
var className = "ScrollThumb";
var btnOffset = 0;
var horizontal = false;
var idNames = new Array("l_mc", "m_mc", "r_mc", "grip_mc");
}
Symbol 491 MovieClip [__Packages.mx.controls.scrollClasses.ScrollBar] Frame 0
class mx.controls.scrollClasses.ScrollBar extends mx.core.UIComponent
{
var isScrolling, scrollTrack_mc, scrollThumb_mc, __height, tabEnabled, focusEnabled, boundingBox_mc, setSkin, upArrow_mc, _minHeight, _minWidth, downArrow_mc, createObject, createClassObject, enabled, _height, dispatchEvent, minMode, maxMode, plusMode, minusMode, _parent, getStyle, scrolling, _ymouse;
function ScrollBar () {
super();
}
function get scrollPosition() {
return(_scrollPosition);
}
function set scrollPosition(pos) {
_scrollPosition = pos;
if (isScrolling != true) {
pos = Math.min(pos, maxPos);
pos = Math.max(pos, minPos);
var _local3 = (((pos - minPos) * (scrollTrack_mc.height - scrollThumb_mc._height)) / (maxPos - minPos)) + scrollTrack_mc.top;
scrollThumb_mc.move(0, _local3);
}
//return(scrollPosition);
}
function get pageScrollSize() {
return(largeScroll);
}
function set pageScrollSize(lScroll) {
largeScroll = lScroll;
//return(pageScrollSize);
}
function set lineScrollSize(sScroll) {
smallScroll = sScroll;
//return(lineScrollSize);
}
function get lineScrollSize() {
return(smallScroll);
}
function get virtualHeight() {
return(__height);
}
function init(Void) {
super.init();
_scrollPosition = 0;
tabEnabled = false;
focusEnabled = false;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function createChildren(Void) {
if (scrollTrack_mc == undefined) {
setSkin(skinIDTrack, scrollTrackName);
}
scrollTrack_mc.visible = false;
var _local3 = new Object();
_local3.enabled = false;
_local3.preset = mx.controls.SimpleButton.falseDisabled;
_local3.initProperties = 0;
_local3.autoRepeat = true;
_local3.tabEnabled = false;
var _local2;
if (upArrow_mc == undefined) {
_local2 = createButton(upArrowName, "upArrow_mc", skinIDUpArrow, _local3);
}
_local2.buttonDownHandler = onUpArrow;
_local2.clickHandler = onScrollChanged;
_minHeight = _local2.height;
_minWidth = _local2.width;
if (downArrow_mc == undefined) {
_local2 = createButton(downArrowName, "downArrow_mc", skinIDDownArrow, _local3);
}
_local2.buttonDownHandler = onDownArrow;
_local2.clickHandler = onScrollChanged;
_minHeight = _minHeight + _local2.height;
}
function createButton(linkageName, id, skinID, o) {
if (skinID == skinIDUpArrow) {
o.falseUpSkin = upArrowUpName;
o.falseDownSkin = upArrowDownName;
o.falseOverSkin = upArrowOverName;
} else {
o.falseUpSkin = downArrowUpName;
o.falseDownSkin = downArrowDownName;
o.falseOverSkin = downArrowOverName;
}
var _local3 = createObject(linkageName, id, skinID, o);
this[id].visible = false;
this[id].useHandCursor = false;
return(_local3);
}
function createThumb(Void) {
var _local2 = new Object();
_local2.validateNow = true;
_local2.tabEnabled = false;
_local2.leftSkin = thumbTopName;
_local2.middleSkin = thumbMiddleName;
_local2.rightSkin = thumbBottomName;
_local2.gripSkin = thumbGripName;
createClassObject(mx.controls.scrollClasses.ScrollThumb, "scrollThumb_mc", skinIDThumb, _local2);
}
function setScrollProperties(pSize, mnPos, mxPos, ls) {
var _local4;
var _local2 = scrollTrack_mc;
pageSize = pSize;
largeScroll = (((ls != undefined) && (ls > 0)) ? (ls) : (pSize));
minPos = Math.max(mnPos, 0);
maxPos = Math.max(mxPos, 0);
_scrollPosition = Math.max(minPos, _scrollPosition);
_scrollPosition = Math.min(maxPos, _scrollPosition);
if (((maxPos - minPos) > 0) && (enabled)) {
var _local5 = _scrollPosition;
if (!initializing) {
upArrow_mc.enabled = true;
downArrow_mc.enabled = true;
}
_local2.onPress = (_local2.onDragOver = startTrackScroller);
_local2.onRelease = releaseScrolling;
_local2.onDragOut = (_local2.stopScrolling = stopScrolling);
_local2.onReleaseOutside = releaseScrolling;
_local2.useHandCursor = false;
if (scrollThumb_mc == undefined) {
createThumb();
}
var _local3 = scrollThumb_mc;
if (scrollTrackOverName.length > 0) {
_local2.onRollOver = trackOver;
_local2.onRollOut = trackOut;
}
_local4 = (pageSize / ((maxPos - minPos) + pageSize)) * _local2.height;
if (_local4 < _local3.minHeight) {
if (_local2.height < _local3.minHeight) {
_local3.__set__visible(false);
} else {
_local4 = _local3.minHeight;
_local3.__set__visible(true);
_local3.setSize(_minWidth, _local3.minHeight + 0);
}
} else {
_local3.__set__visible(true);
_local3.setSize(_minWidth, _local4);
}
_local3.setRange(upArrow_mc.__get__height() + 0, (virtualHeight - downArrow_mc.__get__height()) - _local3.__get__height(), minPos, maxPos);
_local5 = Math.min(_local5, maxPos);
scrollPosition = (Math.max(_local5, minPos));
} else {
scrollThumb_mc.__set__visible(false);
if (!initializing) {
upArrow_mc.enabled = false;
downArrow_mc.enabled = false;
}
delete _local2.onPress;
delete _local2.onDragOver;
delete _local2.onRelease;
delete _local2.onDragOut;
delete _local2.onRollOver;
delete _local2.onRollOut;
delete _local2.onReleaseOutside;
}
if (initializing) {
scrollThumb_mc.__set__visible(false);
}
}
function setEnabled(enabledFlag) {
super.setEnabled(enabledFlag);
setScrollProperties(pageSize, minPos, maxPos, largeScroll);
}
function draw(Void) {
if (initializing) {
initializing = false;
scrollTrack_mc.visible = true;
upArrow_mc.__set__visible(true);
downArrow_mc.__set__visible(true);
}
size();
}
function size(Void) {
if (_height == 1) {
return(undefined);
}
if (upArrow_mc == undefined) {
return(undefined);
}
var _local3 = upArrow_mc.__get__height();
var _local2 = downArrow_mc.__get__height();
upArrow_mc.move(0, 0);
var _local4 = scrollTrack_mc;
_local4._y = _local3;
_local4._height = (virtualHeight - _local3) - _local2;
downArrow_mc.move(0, virtualHeight - _local2);
setScrollProperties(pageSize, minPos, maxPos, largeScroll);
}
function dispatchScrollEvent(detail) {
dispatchEvent({type:"scroll", detail:detail});
}
function isScrollBarKey(k) {
if (k == 36) {
if (scrollPosition != 0) {
scrollPosition = (0);
dispatchScrollEvent(minMode);
}
return(true);
}
if (k == 35) {
if (scrollPosition < maxPos) {
scrollPosition = (maxPos);
dispatchScrollEvent(maxMode);
}
return(true);
}
return(false);
}
function scrollIt(inc, mode) {
var _local3 = smallScroll;
if (inc != "Line") {
_local3 = ((largeScroll == 0) ? (pageSize) : (largeScroll));
}
var _local2 = _scrollPosition + (mode * _local3);
if (_local2 > maxPos) {
_local2 = maxPos;
} else if (_local2 < minPos) {
_local2 = minPos;
}
if (scrollPosition != _local2) {
scrollPosition = (_local2);
var _local4 = ((mode < 0) ? (minusMode) : (plusMode));
dispatchScrollEvent(inc + _local4);
}
}
function startTrackScroller(Void) {
_parent.pressFocus();
if (_parent.scrollTrackDownName.length > 0) {
if (_parent.scrollTrackDown_mc == undefined) {
_parent.setSkin(skinIDTrackDown, scrollTrackDownName);
} else {
_parent.scrollTrackDown_mc.visible = true;
}
}
_parent.trackScroller();
_parent.scrolling = setInterval(_parent, "scrollInterval", getStyle("repeatDelay"), "Page", -1);
}
function scrollInterval(inc, mode) {
clearInterval(scrolling);
if (inc == "Page") {
trackScroller();
} else {
scrollIt(inc, mode);
}
scrolling = setInterval(this, "scrollInterval", getStyle("repeatInterval"), inc, mode);
}
function trackScroller(Void) {
if ((scrollThumb_mc._y + scrollThumb_mc.__get__height()) < _ymouse) {
scrollIt("Page", 1);
} else if (scrollThumb_mc._y > _ymouse) {
scrollIt("Page", -1);
}
}
function dispatchScrollChangedEvent(Void) {
dispatchEvent({type:"scrollChanged"});
}
function stopScrolling(Void) {
clearInterval(_parent.scrolling);
_parent.scrollTrackDown_mc.visible = false;
}
function releaseScrolling(Void) {
_parent.releaseFocus();
stopScrolling();
_parent.dispatchScrollChangedEvent();
}
function trackOver(Void) {
if (_parent.scrollTrackOverName.length > 0) {
if (_parent.scrollTrackOver_mc == undefined) {
_parent.setSkin(skinIDTrackOver, scrollTrackOverName);
} else {
_parent.scrollTrackOver_mc.visible = true;
}
}
}
function trackOut(Void) {
_parent.scrollTrackOver_mc.visible = false;
}
function onUpArrow(Void) {
_parent.scrollIt("Line", -1);
}
function onDownArrow(Void) {
_parent.scrollIt("Line", 1);
}
function onScrollChanged(Void) {
_parent.dispatchScrollChangedEvent();
}
static var symbolOwner = mx.core.UIComponent;
var className = "ScrollBar";
var minPos = 0;
var maxPos = 0;
var pageSize = 0;
var largeScroll = 0;
var smallScroll = 1;
var _scrollPosition = 0;
var scrollTrackName = "ScrollTrack";
var scrollTrackOverName = "";
var scrollTrackDownName = "";
var upArrowName = "BtnUpArrow";
var upArrowUpName = "ScrollUpArrowUp";
var upArrowOverName = "ScrollUpArrowOver";
var upArrowDownName = "ScrollUpArrowDown";
var downArrowName = "BtnDownArrow";
var downArrowUpName = "ScrollDownArrowUp";
var downArrowOverName = "ScrollDownArrowOver";
var downArrowDownName = "ScrollDownArrowDown";
var thumbTopName = "ScrollThumbTopUp";
var thumbMiddleName = "ScrollThumbMiddleUp";
var thumbBottomName = "ScrollThumbBottomUp";
var thumbGripName = "ScrollThumbGripUp";
static var skinIDTrack = 0;
static var skinIDTrackOver = 1;
static var skinIDTrackDown = 2;
static var skinIDUpArrow = 3;
static var skinIDDownArrow = 4;
static var skinIDThumb = 5;
var idNames = new Array("scrollTrack_mc", "scrollTrackOver_mc", "scrollTrackDown_mc", "upArrow_mc", "downArrow_mc");
var clipParameters = {minPos:1, maxPos:1, pageSize:1, scrollPosition:1, lineScrollSize:1, pageScrollSize:1, visible:1, enabled:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.scrollClasses.ScrollBar.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters);
var initializing = true;
}
Symbol 492 MovieClip [__Packages.mx.controls.HScrollBar] Frame 0
class mx.controls.HScrollBar extends mx.controls.scrollClasses.ScrollBar
{
var _minHeight, _minWidth, _xscale, _rotation, __width, scrollIt;
function HScrollBar () {
super();
}
function getMinWidth(Void) {
return(_minHeight);
}
function getMinHeight(Void) {
return(_minWidth);
}
function init(Void) {
super.init();
_xscale = -100;
_rotation = -90;
}
function get virtualHeight() {
return(__width);
}
function isScrollBarKey(k) {
if (k == 37) {
scrollIt("Line", -1);
return(true);
}
if (k == 39) {
scrollIt("Line", 1);
return(true);
}
return(super.isScrollBarKey(k));
}
static var symbolName = "HScrollBar";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.126";
var className = "HScrollBar";
var minusMode = "Left";
var plusMode = "Right";
var minMode = "AtLeft";
var maxMode = "AtRight";
}
Symbol 493 MovieClip [__Packages.mx.controls.Button] Frame 0
class mx.controls.Button extends mx.controls.SimpleButton
{
var initializing, labelPath, initIcon, getState, enabled, phase, idNames, __width, __height, setState, invalidate, iconName, refresh, createLabel, _iconLinkageName, removeIcons, hitArea_mc, createEmptyObject;
function Button () {
super();
}
function init(Void) {
super.init();
}
function draw() {
if (initializing) {
labelPath.visible = true;
}
super.draw();
if (initIcon != undefined) {
_setIcon(initIcon);
}
delete initIcon;
}
function onRelease(Void) {
super.onRelease();
}
function createChildren(Void) {
super.createChildren();
}
function setSkin(tag, linkageName, initobj) {
return(super.setSkin(tag, linkageName, initobj));
}
function viewSkin(varName) {
var _local3 = (getState() ? "true" : "false");
_local3 = _local3 + (enabled ? (phase) : "disabled");
super.viewSkin(varName, {styleName:this, borderStyle:_local3});
}
function invalidateStyle(c) {
labelPath.invalidateStyle(c);
super.invalidateStyle(c);
}
function setColor(c) {
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]].redraw(true);
_local2++;
}
}
function setEnabled(enable) {
labelPath.enabled = enable;
super.setEnabled(enable);
}
function calcSize(tag, ref) {
if ((__width == undefined) || (__height == undefined)) {
return(undefined);
}
if (tag < 7) {
ref.setSize(__width, __height, true);
}
}
function size(Void) {
setState(getState());
setHitArea(__width, __height);
var _local3 = 0;
while (_local3 < 8) {
var _local4 = idNames[_local3];
if (typeof(this[_local4]) == "movieclip") {
this[_local4].setSize(__width, __height, true);
}
_local3++;
}
super.size();
}
function set labelPlacement(val) {
__labelPlacement = val;
invalidate();
//return(labelPlacement);
}
function get labelPlacement() {
return(__labelPlacement);
}
function getLabelPlacement(Void) {
return(__labelPlacement);
}
function setLabelPlacement(val) {
__labelPlacement = val;
invalidate();
}
function getBtnOffset(Void) {
if (getState()) {
var _local2 = btnOffset;
} else if (phase == "down") {
var _local2 = btnOffset;
} else {
var _local2 = 0;
}
return(_local2);
}
function setView(offset) {
var _local16 = (offset ? (btnOffset) : 0);
var _local12 = getLabelPlacement();
var _local7 = 0;
var _local6 = 0;
var _local9 = 0;
var _local8 = 0;
var _local5 = 0;
var _local4 = 0;
var _local3 = labelPath;
var _local2 = iconName;
var _local15 = _local3.textWidth;
var _local14 = _local3.textHeight;
var _local10 = (__width - borderW) - borderW;
var _local11 = (__height - borderW) - borderW;
if (_local2 != undefined) {
_local7 = _local2._width;
_local6 = _local2._height;
}
if ((_local12 == "left") || (_local12 == "right")) {
if (_local3 != undefined) {
_local9 = Math.min(_local10 - _local7, _local15 + 5);
_local3._width = _local9;
_local8 = Math.min(_local11, _local14 + 5);
_local3._height = _local8;
}
if (_local12 == "right") {
_local5 = _local7;
if (centerContent) {
_local5 = _local5 + (((_local10 - _local9) - _local7) / 2);
}
_local2._x = _local5 - _local7;
} else {
_local5 = (_local10 - _local9) - _local7;
if (centerContent) {
_local5 = _local5 / 2;
}
_local2._x = _local5 + _local9;
}
_local4 = 0;
_local2._y = _local4;
if (centerContent) {
_local2._y = (_local11 - _local6) / 2;
_local4 = (_local11 - _local8) / 2;
}
if (!centerContent) {
_local2._y = _local2._y + Math.max(0, (_local8 - _local6) / 2);
}
} else {
if (_local3 != undefined) {
_local9 = Math.min(_local10, _local15 + 5);
_local3._width = _local9;
_local8 = Math.min(_local11 - _local6, _local14 + 5);
_local3._height = _local8;
}
_local5 = (_local10 - _local9) / 2;
_local2._x = (_local10 - _local7) / 2;
if (_local12 == "top") {
_local4 = (_local11 - _local8) - _local6;
if (centerContent) {
_local4 = _local4 / 2;
}
_local2._y = _local4 + _local8;
} else {
_local4 = _local6;
if (centerContent) {
_local4 = _local4 + (((_local11 - _local8) - _local6) / 2);
}
_local2._y = _local4 - _local6;
}
}
var _local13 = borderW + _local16;
_local3._x = _local5 + _local13;
_local3._y = _local4 + _local13;
_local2._x = _local2._x + _local13;
_local2._y = _local2._y + _local13;
}
function set label(lbl) {
setLabel(lbl);
//return(label);
}
function setLabel(label) {
if (label == "") {
labelPath.removeTextField();
refresh();
return(undefined);
}
if (labelPath == undefined) {
var _local2 = createLabel("labelPath", 200, label);
_local2._width = _local2.textWidth + 5;
_local2._height = _local2.textHeight + 5;
if (initializing) {
_local2.visible = false;
}
} else {
delete labelPath.__text;
labelPath.text = label;
refresh();
}
}
function getLabel(Void) {
return(((labelPath.__text != undefined) ? (labelPath.__text) : (labelPath.text)));
}
function get label() {
return(getLabel());
}
function _getIcon(Void) {
return(_iconLinkageName);
}
function get icon() {
if (initializing) {
return(initIcon);
}
return(_iconLinkageName);
}
function _setIcon(linkage) {
if (initializing) {
if (linkage == "") {
return(undefined);
}
initIcon = linkage;
} else {
if (linkage == "") {
removeIcons();
return(undefined);
}
super.changeIcon(0, linkage);
super.changeIcon(1, linkage);
super.changeIcon(3, linkage);
super.changeIcon(4, linkage);
super.changeIcon(5, linkage);
_iconLinkageName = linkage;
refresh();
}
}
function set icon(linkage) {
_setIcon(linkage);
//return(icon);
}
function setHitArea(w, h) {
if (hitArea_mc == undefined) {
createEmptyObject("hitArea_mc", 100);
}
var _local2 = hitArea_mc;
_local2.clear();
_local2.beginFill(16711680);
_local2.drawRect(0, 0, w, h);
_local2.endFill();
_local2.setVisible(false);
}
static var symbolName = "Button";
static var symbolOwner = mx.controls.Button;
var className = "Button";
static var version = "2.0.2.126";
var btnOffset = 0;
var _color = "buttonColor";
var __label = "default value";
var __labelPlacement = "right";
var falseUpSkin = "ButtonSkin";
var falseDownSkin = "ButtonSkin";
var falseOverSkin = "ButtonSkin";
var falseDisabledSkin = "ButtonSkin";
var trueUpSkin = "ButtonSkin";
var trueDownSkin = "ButtonSkin";
var trueOverSkin = "ButtonSkin";
var trueDisabledSkin = "ButtonSkin";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var clipParameters = {labelPlacement:1, icon:1, toggle:1, selected:1, label:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Button.prototype.clipParameters, mx.controls.SimpleButton.prototype.clipParameters);
var centerContent = true;
var borderW = 1;
}
Symbol 494 MovieClip [__Packages.mx.skins.halo.ButtonSkin] Frame 0
class mx.skins.halo.ButtonSkin extends mx.skins.RectBorder
{
var __get__width, __get__height, getStyle, _parent, clear, drawRoundRect, __get__x, __get__y;
function ButtonSkin () {
super();
}
function init() {
super.init();
}
function size() {
drawHaloRect(__get__width(), __get__height());
}
function drawHaloRect(w, h) {
var _local6 = getStyle("borderStyle");
var _local4 = getStyle("themeColor");
var _local5 = _parent.emphasized;
clear();
switch (_local6) {
case "falseup" :
if (_local5) {
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 75);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 85, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 75);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
} else {
drawRoundRect(0, 0, w, h, 5, 9542041, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, [13291985, 16250871], 100, 0, "radial");
drawRoundRect(2, 2, w - 4, h - 4, 3, [9542041, 13818586], 100, 0, "radial");
drawRoundRect(3, 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(3, 4, w - 6, h - 7, 2, 16316664, 100);
}
break;
case "falsedown" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20);
break;
case "falserollover" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 50);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
break;
case "falsedisabled" :
drawRoundRect(0, 0, w, h, 5, 13159628, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100);
drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100);
drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100);
break;
case "trueup" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16250871, 100);
break;
case "truedown" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20);
break;
case "truerollover" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 40);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
break;
case "truedisabled" :
drawRoundRect(0, 0, w, h, 5, 13159628, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100);
drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100);
drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100);
}
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
_global.skinRegistry.ButtonSkin = true;
return(true);
}
static var symbolName = "ButtonSkin";
static var symbolOwner = mx.skins.halo.ButtonSkin;
var className = "ButtonSkin";
var backgroundColorName = "buttonColor";
static var classConstructed = classConstruct();
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 495 MovieClip [__Packages.mx.controls.VScrollBar] Frame 0
class mx.controls.VScrollBar extends mx.controls.scrollClasses.ScrollBar
{
var scrollIt;
function VScrollBar () {
super();
}
function init(Void) {
super.init();
}
function isScrollBarKey(k) {
if (k == 38) {
scrollIt("Line", -1);
return(true);
}
if (k == 40) {
scrollIt("Line", 1);
return(true);
}
if (k == 33) {
scrollIt("Page", -1);
return(true);
}
if (k == 34) {
scrollIt("Page", 1);
return(true);
}
return(super.isScrollBarKey(k));
}
static var symbolName = "VScrollBar";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.126";
var className = "VScrollBar";
var minusMode = "Up";
var plusMode = "Down";
var minMode = "AtTop";
var maxMode = "AtBottom";
}
Symbol 496 MovieClip [__Packages.mx.controls.TextInput] Frame 0
class mx.controls.TextInput extends mx.core.UIComponent
{
var owner, enterListener, label, tabChildren, tabEnabled, focusTextField, _color, _parent, border_mc, createClassObject, dispatchValueChangedEvent, __get__width, __get__height, tfx, tfy, tfw, tfh, getStyle, bind, updateModel, _getTextFormat, enabled;
function TextInput () {
super();
}
function addEventListener(event, handler) {
if (event == "enter") {
addEnterEvents();
}
super.addEventListener(event, handler);
}
function enterOnKeyDown() {
if (Key.getAscii() == 13) {
owner.dispatchEvent({type:"enter"});
}
}
function addEnterEvents() {
if (enterListener == undefined) {
enterListener = new Object();
enterListener.owner = this;
enterListener.onKeyDown = enterOnKeyDown;
}
}
function init(Void) {
super.init();
label.styleName = this;
tabChildren = true;
tabEnabled = false;
focusTextField = label;
_color = mx.core.UIObject.textColorList;
label.onSetFocus = function () {
this._parent.onSetFocus();
};
label.onKillFocus = function (n) {
this._parent.onKillFocus(n);
};
label.drawFocus = function (b) {
this._parent.drawFocus(b);
};
label.onChanged = onLabelChanged;
}
function setFocus() {
Selection.setFocus(label);
}
function onLabelChanged(Void) {
_parent.dispatchEvent({type:"change"});
_parent.dispatchValueChangedEvent(text);
}
function createChildren(Void) {
super.createChildren();
if (border_mc == undefined) {
createClassObject(_global.styles.rectBorderClass, "border_mc", 0, {styleName:this});
}
border_mc.swapDepths(label);
label.autoSize = "none";
}
function get html() {
return(getHtml());
}
function set html(value) {
setHtml(value);
//return(html);
}
function getHtml() {
return(label.html);
}
function setHtml(value) {
if (value != label.html) {
label.html = value;
}
}
function get text() {
return(getText());
}
function set text(t) {
setText(t);
//return(text);
}
function getText() {
if (initializing) {
return(initText);
}
if (label.html == true) {
return(label.htmlText);
}
return(label.text);
}
function setText(t) {
if (initializing) {
initText = t;
} else {
var _local2 = label;
if (_local2.html == true) {
_local2.htmlText = t;
} else {
_local2.text = t;
}
}
dispatchValueChangedEvent(t);
}
function size(Void) {
border_mc.setSize(__get__width(), __get__height());
var _local2 = border_mc.__get__borderMetrics();
var _local6 = _local2.left + _local2.right;
var _local3 = _local2.top + _local2.bottom;
var _local5 = _local2.left;
var _local4 = _local2.top;
tfx = _local5;
tfy = _local4;
tfw = __get__width() - _local6;
tfh = __get__height() - _local3;
label.move(tfx, tfy);
label.setSize(tfw, tfh + 1);
}
function setEnabled(enable) {
label.type = (((__editable == true) || (enable == false)) ? "input" : "dynamic");
label.selectable = enable;
var _local2 = getStyle((enable ? "color" : "disabledColor"));
if (_local2 == undefined) {
_local2 = (enable ? 0 : 8947848);
}
setColor(_local2);
}
function setColor(col) {
label.textColor = col;
}
function onKillFocus(newFocus) {
if (enterListener != undefined) {
Key.removeListener(enterListener);
}
if (bind != undefined) {
updateModel(text);
}
super.onKillFocus(newFocus);
}
function onSetFocus(oldFocus) {
var f = Selection.getFocus();
var o = eval (f);
if (o != label) {
Selection.setFocus(label);
return(undefined);
}
if (enterListener != undefined) {
Key.addListener(enterListener);
}
super.onSetFocus(oldFocus);
}
function draw(Void) {
var _local2 = label;
var _local4 = getText();
if (initializing) {
initializing = false;
delete initText;
}
var _local3 = _getTextFormat();
_local2.embedFonts = _local3.embedFonts == true;
if (_local3 != undefined) {
_local2.setTextFormat(_local3);
_local2.setNewTextFormat(_local3);
}
_local2.multiline = false;
_local2.wordWrap = false;
if (_local2.html == true) {
_local2.setTextFormat(_local3);
_local2.htmlText = _local4;
} else {
_local2.text = _local4;
}
_local2.type = (((__editable == true) || (enabled == false)) ? "input" : "dynamic");
size();
}
function setEditable(s) {
__editable = s;
label.type = (s ? "input" : "dynamic");
}
function get maxChars() {
return(label.maxChars);
}
function set maxChars(w) {
label.maxChars = w;
//return(maxChars);
}
function get length() {
return(label.length);
}
function get restrict() {
return(label.restrict);
}
function set restrict(w) {
label.restrict = ((w == "") ? null : (w));
//return(restrict);
}
function get hPosition() {
return(label.hscroll);
}
function set hPosition(w) {
label.hscroll = w;
//return(hPosition);
}
function get maxHPosition() {
return(label.maxhscroll);
}
function get editable() {
return(__editable);
}
function set editable(w) {
setEditable(w);
//return(editable);
}
function get password() {
return(label.password);
}
function set password(w) {
label.password = w;
//return(password);
}
function get tabIndex() {
return(label.tabIndex);
}
function set tabIndex(w) {
label.tabIndex = w;
//return(tabIndex);
}
function set _accProps(val) {
label._accProps = val;
//return(_accProps);
}
function get _accProps() {
return(label._accProps);
}
static var symbolName = "TextInput";
static var symbolOwner = mx.controls.TextInput;
static var version = "2.0.2.126";
var className = "TextInput";
var initializing = true;
var clipParameters = {text:1, editable:1, password:1, maxChars:1, restrict:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.TextInput.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters);
var _maxWidth = mx.core.UIComponent.kStretch;
var __editable = true;
var initText = "";
}
Symbol 500 MovieClip [__Packages.mx.controls.ProgressBar] Frame 0
class mx.controls.ProgressBar extends mx.core.UIObject
{
var _xscale, _yscale, tabEnabled, boundingBox_mc, progTrackLeft_mc, setSkin, progTrackMiddle_mc, progTrackRight_mc, progBarLeft_mc, progBarMiddle_mc, progBarRight_mc, progIndBar_mc, mask_mc, createObject, labelPath, createLabel, setSize, __width, __height, invalidate, __source, __stringSource, si, dispatchEvent;
function ProgressBar () {
super();
}
function init(Void) {
super.init();
_xscale = (_yscale = 100);
tabEnabled = false;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function createChildren(Void) {
if (progTrackLeft_mc == undefined) {
setSkin(skinIDProgTrackLeft, progTrackLeftName);
}
if (progTrackMiddle_mc == undefined) {
setSkin(skinIDProgTrackMiddle, progTrackMiddleName);
}
if (progTrackRight_mc == undefined) {
setSkin(skinIDProgTrackRight, progTrackRightName);
}
if (progBarLeft_mc == undefined) {
setSkin(skinIDProgBarLeft, progBarLeftName);
}
if (progBarMiddle_mc == undefined) {
setSkin(skinIDProgBarMiddle, progBarMiddleName);
}
if (progBarRight_mc == undefined) {
setSkin(skinIDProgBarRight, progBarRightName);
}
if (progIndBar_mc == undefined) {
setSkin(skinIDProgIndBar, progIndBarName);
progIndBar_mc._visible = false;
}
if (mask_mc == undefined) {
mask_mc = createObject("BoundingBox", "mask_mc", skinIDMask);
mask_mc._visible = false;
progIndBar_mc.setMask(mask_mc);
}
if (labelPath == undefined) {
labelPath = createLabel("labelPath", skinIDLabel);
labelPath.tabEnabled = false;
labelPath.selectable = false;
labelPath.styleName = this;
}
setSize(__width, __height);
}
function size(Void) {
invalidate();
}
function draw(Void) {
if ((__source == undefined) && (__stringSource != undefined)) {
setSource(__stringSource);
__stringSource = undefined;
}
var _local14 = __width;
var _local22 = __height;
var _local5 = ((progBarLeft_mc._width > progTrackLeft_mc._width) ? (progBarLeft_mc._width) : (progTrackLeft_mc._width));
var _local6 = ((progBarLeft_mc._height > progTrackLeft_mc._height) ? (progBarLeft_mc._height) : (progTrackLeft_mc._height));
var _local15 = ((progBarRight_mc._width > progTrackRight_mc._width) ? (progBarRight_mc._width) : (progTrackRight_mc._width));
var _local7 = _local14;
var _local8 = 0;
var _local9 = 0;
if (__labelPlacement == "top") {
_local8 = _local22 - _local6;
}
if ((__label != undefined) && (__label != "")) {
labelPath._visible = false;
var _local11 = 1;
var _local20 = 1;
var _local18 = 5;
var _local26 = 4;
var _local12 = __value - __minimum;
if (_local12 < 0) {
_local12 = 0;
}
var _local13 = __maximum - __minimum;
if (_local13 < 0) {
_local13 = 0;
}
if ((__labelPlacement == "left") || (__labelPlacement == "right")) {
var _local4 = __label;
if (!__indeterminate) {
_local4 = replace(_local4, "%1", String(Math.floor(_local13 / __conversion)));
_local4 = replace(_local4, "%2", String(Math.floor(_local13 / __conversion)));
_local4 = replace(_local4, "%3", String(100));
_local4 = replace(_local4, "%%", "%");
} else {
_local4 = replace(_local4, "%1", String(Math.floor(_local12 / __conversion)));
_local4 = replace(_local4, "%2", "??");
_local4 = replace(_local4, "%3", "");
_local4 = replace(_local4, "%%", "");
}
labelPath.text = _local4;
_local7 = _local14 - ((labelPath.textWidth + _local18) + _local11);
if (_local7 < (_local5 + _local15)) {
_local7 = 0;
}
if (__labelPlacement == "left") {
_local9 = _local14 - _local7;
}
}
var _local3 = __label;
if (!__indeterminate) {
_local3 = replace(_local3, "%1", String(Math.floor(_local12 / __conversion)));
_local3 = replace(_local3, "%2", String(Math.floor(_local13 / __conversion)));
_local3 = replace(_local3, "%3", String(Math.floor(percentComplete)));
_local3 = replace(_local3, "%%", "%");
} else {
_local3 = replace(_local3, "%1", String(Math.floor(_local12 / __conversion)));
_local3 = replace(_local3, "%2", "??");
_local3 = replace(_local3, "%3", "");
_local3 = replace(_local3, "%%", "");
}
labelPath.text = _local3;
var _local10 = 0;
if ((__labelPlacement == "left") || (__labelPlacement == "right")) {
_local10 = (_local14 - _local7) - _local11;
} else {
_local10 = _local14 - _local11;
}
if (_local10 < (labelPath.textWidth + _local18)) {
labelPath._width = _local10;
} else {
labelPath._width = labelPath.textWidth + _local18;
}
if (((__labelPlacement == "left") || (__labelPlacement == "right")) || (__labelPlacement == "center")) {
_local10 = _local22;
} else {
_local10 = (_local22 - _local20) - _local6;
}
if (_local10 < (labelPath.textHeight + _local26)) {
labelPath._height = _local10;
} else {
labelPath._height = labelPath.textHeight + _local26;
}
if (__labelPlacement == "left") {
labelPath._x = _local11;
} else if (__labelPlacement == "right") {
labelPath._x = _local7 + _local11;
} else {
labelPath._x = _local11;
}
if (((__labelPlacement == "center") || (__labelPlacement == "left")) || (__labelPlacement == "right")) {
labelPath._y = (_local6 / 2) - (labelPath.height / 2);
} else if (__labelPlacement == "top") {
labelPath._y = (_local8 - _local20) - labelPath.height;
} else {
labelPath._y = _local6 + _local20;
}
labelPath._visible = true;
} else {
labelPath.text = "";
labelPath._visible = false;
}
if (_local7 >= (_local5 + _local15)) {
var _local2 = progTrackLeft_mc.getBounds(progTrackLeft_mc);
var _local42 = -_local2.xMin;
var _local41 = -_local2.yMin;
progTrackLeft_mc.move(((_local9 + _local5) - progTrackLeft_mc._width) + _local42, (_local8 + ((_local6 - progTrackLeft_mc._height) / 2)) + _local41);
_local2 = progTrackMiddle_mc.getBounds(progTrackMiddle_mc);
var _local38 = -_local2.xMin;
var _local35 = -_local2.yMin;
progTrackMiddle_mc.setSize((_local7 - _local5) - _local15, progTrackMiddle_mc._height);
progTrackMiddle_mc.move((_local9 + _local5) + _local38, (_local8 + ((_local6 - progTrackLeft_mc._height) / 2)) + _local35);
_local2 = progTrackRight_mc.getBounds(progTrackRight_mc);
var _local31 = -_local2.xMin;
var _local32 = -_local2.yMin;
progTrackRight_mc.move(((_local9 + _local5) + progTrackMiddle_mc._width) + _local31, (_local8 + ((_local6 - progTrackRight_mc._height) / 2)) + _local32);
var _local21 = (_local7 - _local5) - _local15;
var _local16 = (_local21 * percentComplete) / 100;
var _local17 = 0;
if (__indeterminate == true) {
_local16 = _local21;
mask_mc._width = _local16;
mask_mc._height = progIndBar_mc._height;
mask_mc._x = _local9 + _local5;
mask_mc._y = _local8 + ((_local6 - progIndBar_mc._height) / 2);
progIndBar_mc._width = (_local7 * 200) / 150;
var _local28 = progIndBar_mc._x;
_local2 = progIndBar_mc.getBounds(progIndBar_mc);
var _local30 = -_local2.xMin;
var _local29 = -_local2.yMin;
var _local19 = (_local9 + _local5) + _local30;
var _local23 = (progIndBar_mc._width * 50) / 200;
var _local25 = (progIndBar_mc._width * 20) / 200;
var _local24 = 3;
var _local27 = _local23;
if (__direction == "left") {
_local23 = (progIndBar_mc._width * 30) / 200;
_local25 = 0;
_local24 = -3;
_local27 = _local25;
}
if ((_local28 <= (_local19 - _local23)) || (_local28 >= (_local19 - _local25))) {
progIndBar_mc._x = (_local19 - _local27) + _local24;
} else {
progIndBar_mc._x = progIndBar_mc._x + _local24;
}
progIndBar_mc._y = (_local8 + ((_local6 - progIndBar_mc._height) / 2)) + _local29;
progIndBar_mc._visible = true;
invalidate();
} else {
progIndBar_mc._visible = false;
if (__direction == "left") {
_local17 = _local21 - _local16;
}
}
_local2 = progBarMiddle_mc.getBounds(progBarMiddle_mc);
var _local40 = -_local2.xMin;
var _local39 = -_local2.yMin;
progBarMiddle_mc.setSize(_local16, progBarMiddle_mc._height);
progBarMiddle_mc.move(((_local17 + _local9) + _local5) + _local40, (_local8 + ((_local6 - progBarLeft_mc._height) / 2)) + _local39);
_local2 = progBarLeft_mc.getBounds(progBarLeft_mc);
var _local36 = -_local2.xMin;
var _local33 = -_local2.yMin;
progBarLeft_mc.move((((_local17 + _local9) + _local5) - progBarLeft_mc._width) + _local36, (_local8 + ((_local6 - progBarLeft_mc._height) / 2)) + _local33);
_local2 = progBarRight_mc.getBounds(progBarRight_mc);
var _local34 = -_local2.xMin;
var _local37 = -_local2.yMin;
progBarRight_mc.move((((_local17 + _local9) + _local5) + progBarMiddle_mc._width) + _local34, (_local8 + ((_local6 - progBarRight_mc._height) / 2)) + _local37);
progTrackLeft_mc._visible = true;
progTrackMiddle_mc._visible = true;
progTrackRight_mc._visible = true;
progBarLeft_mc._visible = true;
progBarMiddle_mc._visible = true;
progBarRight_mc._visible = true;
} else {
progTrackLeft_mc._visible = false;
progTrackMiddle_mc._visible = false;
progTrackRight_mc._visible = false;
progBarLeft_mc._visible = false;
progBarMiddle_mc._visible = false;
progBarRight_mc._visible = false;
}
}
function replace(str, from, to) {
var _local1 = str.split(from);
var _local2 = _local1.join(to);
return(_local2);
}
function getMode(Void) {
return(__mode);
}
function setMode(val) {
if ((val == "polled") || (val == "manual")) {
__mode = val;
} else {
delete __mode;
}
invalidate();
}
function getDirection(Void) {
return(__direction);
}
function setDirection(val) {
if (val == "left") {
__direction = val;
} else {
delete __direction;
}
invalidate();
}
function getLabelPlacement(Void) {
return(__labelPlacement);
}
function setLabelPlacement(val) {
if ((((val == "top") || (val == "center")) || (val == "left")) || (val == "right")) {
__labelPlacement = val;
} else {
delete __labelPlacement;
}
invalidate();
}
function getIndeterminate(Void) {
return(__indeterminate);
}
function setIndeterminate(val) {
if (val == true) {
__indeterminate = true;
} else {
delete __indeterminate;
}
invalidate();
}
function getLabel(Void) {
return(__label);
}
function setLabel(val) {
__label = val;
invalidate();
}
function getConversion(Void) {
return(__conversion);
}
function setConversion(val) {
if ((!_global.isNaN(val)) && (Number(val) > 0)) {
__conversion = Number(val);
invalidate();
}
}
function getSource(Void) {
return(__source);
}
function setSource(val) {
if (typeof(val) == "string") {
__stringSource = val;
val = eval (val);
}
if (((val != null) && (val != undefined)) && (val != "")) {
__source = val;
if (__mode == "event") {
if (__source.addEventListener) {
__source.addEventListener("progress", this);
__source.addEventListener("complete", this);
} else {
__source = undefined;
}
}
if (__mode == "polled") {
si = setInterval(this, "update", __interval);
}
} else if (__source != null) {
delete __source;
clearInterval(si);
delete si;
}
}
function update(Void) {
var _local2 = __source;
var _local3 = _local2.getBytesLoaded();
var _local4 = _local2.getBytesTotal();
_setProgress(_local3, _local4);
if ((percentComplete >= 100) && (__value > 0)) {
clearInterval(si);
}
}
function progress(pEvent) {
var _local2 = pEvent.target;
var _local3 = _local2.bytesLoaded;
var _local4 = _local2.bytesTotal;
_setProgress(_local3, _local4);
}
function complete(pEvent) {
}
function _setProgress(completed, total) {
if ((!_global.isNaN(completed)) && (!_global.isNaN(total))) {
__value = Number(completed);
__maximum = Number(total);
dispatchEvent({type:"progress", current:completed, total:total});
if ((__value == __maximum) && (__value > 0)) {
dispatchEvent({type:"complete", current:completed, total:total});
}
invalidate();
}
}
function setProgress(completed, total) {
if (__mode == "manual") {
_setProgress(completed, total);
}
}
function getPercentComplete(Void) {
if ((__value < __minimum) || (__maximum < __minimum)) {
return(0);
}
var _local3 = (100 * (__value - __minimum)) / (__maximum - __minimum);
if (_global.isNaN(_local3) || (_local3 < 0)) {
return(0);
}
if (_local3 > 100) {
return(100);
}
return(_local3);
}
function getMaximum(Void) {
return(__maximum);
}
function setMaximum(val) {
if ((!_global.isNaN(val)) && (__mode == "manual")) {
__maximum = Number(val);
invalidate();
}
}
function getMinimum(Void) {
return(__minimum);
}
function setMinimum(val) {
if ((!_global.isNaN(val)) && (__mode == "manual")) {
__minimum = Number(val);
invalidate();
}
}
function getVal(Void) {
return(__value);
}
function get mode() {
return(getMode());
}
function set mode(x) {
setMode(x);
//return(mode);
}
function get source() {
return(getSource());
}
function set source(x) {
setSource(x);
//return(source);
}
function get direction() {
return(getDirection());
}
function set direction(x) {
setDirection(x);
//return(direction);
}
function get label() {
return(getLabel());
}
function set label(x) {
setLabel(x);
//return(label);
}
function get labelPlacement() {
return(getLabelPlacement());
}
function set labelPlacement(x) {
setLabelPlacement(x);
//return(labelPlacement);
}
function get indeterminate() {
return(getIndeterminate());
}
function set indeterminate(x) {
setIndeterminate(x);
//return(indeterminate);
}
function get conversion() {
return(getConversion());
}
function set conversion(x) {
setConversion(x);
//return(conversion);
}
function get percentComplete() {
return(getPercentComplete());
}
function get maximum() {
return(getMaximum());
}
function set maximum(x) {
setMaximum(x);
//return(maximum);
}
function get minimum() {
return(getMinimum());
}
function set minimum(x) {
setMinimum(x);
//return(minimum);
}
function get value() {
return(getVal());
}
static var symbolName = "ProgressBar";
static var symbolOwner = Object(mx.controls.ProgressBar);
var className = "ProgressBar";
static var version = "2.0.2.126";
var __mode = "event";
var __direction = "right";
var __labelPlacement = "bottom";
var __label = "LOADING %3%% ";
var __conversion = 1;
var __maximum = 0;
var __minimum = 0;
var __value = 0;
var __indeterminate = false;
var progTrackLeftName = "ProgTrackLeft";
var progTrackMiddleName = "ProgTrackMiddle";
var progTrackRightName = "ProgTrackRight";
var progBarLeftName = "ProgBarLeft";
var progBarMiddleName = "ProgBarMiddle";
var progBarRightName = "ProgBarRight";
var progIndBarName = "ProgIndBar";
var idNames = new Array("progTrackLeft_mc", "progTrackMiddle_mc", "progTrackRight_mc", "progBarLeft_mc", "progBarMiddle_mc", "progBarRight_mc", "progIndBar_mc");
var skinIDProgTrackLeft = 0;
var skinIDProgTrackMiddle = 1;
var skinIDProgTrackRight = 2;
var skinIDProgBarLeft = 3;
var skinIDProgBarMiddle = 4;
var skinIDProgBarRight = 5;
var skinIDProgIndBar = 6;
var skinIDMask = 100;
var skinIDLabel = 200;
var __interval = 30;
var __leave = 2;
var clipParameters = {mode:1, source:1, direction:1, label:1, labelPlacement:1, conversion:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.ProgressBar.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 528 MovieClip [__Packages.mx.controls.NumericStepper] Frame 0
class mx.controls.NumericStepper extends mx.core.UIComponent
{
var boundingBox_mc, _visible, tabEnabled, tabChildren, nextButton_mc, __width, prevButton_mc, __height, inputField, StepTrack_mc, focusTextField, createObject, enabled, __set__visible, setSize, createClassObject, __maxChars, dispatchEvent;
function NumericStepper () {
super();
}
function init() {
super.init();
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
_visible = false;
tabEnabled = false;
tabChildren = true;
}
function setVisible(x, noEvent) {
super.setVisible(x, noEvent);
if (initializing) {
__visible = x;
}
}
function layoutControl() {
nextButton_mc._x = __width - nextButton_mc.__width;
nextButton_mc._y = 0;
prevButton_mc._x = __width - prevButton_mc.__width;
prevButton_mc._y = __height - prevButton_mc.__height;
inputField.setSize(__width - nextButton_mc.__width, __height);
StepTrack_mc._width = Math.max(nextButton_mc.__width, prevButton_mc.__width);
StepTrack_mc._x = __width - StepTrack_mc._width;
StepTrack_mc._height = __height - (nextButton_mc._height + prevButton_mc._height);
StepTrack_mc._y = nextButton_mc.__height;
}
function createChildren() {
super.createChildren();
addAsset("nextButton_mc", skinIDUpArrow);
addAsset("prevButton_mc", skinIDDownArrow);
addAsset("inputField", skinIDInput);
focusTextField = inputField.label;
createObject("StepTrack", "StepTrack_mc", 2);
size();
}
function draw() {
prevButton_mc.enabled = enabled;
nextButton_mc.enabled = enabled;
inputField.enabled = enabled;
size();
initializing = false;
__set__visible(__visible);
}
function size() {
var _local2 = calcMinHeight();
var _local3 = calcMinWidth();
if (__height < _local2) {
setSize(__width, _local2);
}
if (__width < _local3) {
setSize(_local3, __height);
}
layoutControl();
}
function calcMinHeight() {
return(22);
}
function calcMinWidth() {
return(40);
}
function addAsset(id, skinID) {
var _local2 = new Object();
_local2.styleName = this;
if (skinID == 10) {
_local2.falseUpSkin = upArrowUp;
_local2.falseOverSkin = upArrowOver;
_local2.falseDownSkin = upArrowDown;
_local2.falseDisabledSkin = upArrowDisabled;
createClassObject(mx.controls.SimpleButton, id, skinID, _local2);
var _local5 = nextButton_mc;
_local5.tabEnabled = false;
_local5.styleName = this;
_local5._x = __width - _local5.__width;
_local5._y = 0;
_local5.owner = this;
_local5.autoRepeat = true;
_local5.clickHandler = function () {
Selection.setSelection(0, 0);
};
_local5.buttonDownHandler = function () {
this.owner.buttonPress(this);
};
} else if (skinID == 11) {
_local2.falseUpSkin = downArrowUp;
_local2.falseOverSkin = downArrowOver;
_local2.falseDownSkin = downArrowDown;
_local2.falseDisabledSkin = downArrowDisabled;
createClassObject(mx.controls.SimpleButton, id, skinID, _local2);
var _local3 = prevButton_mc;
_local3.tabEnabled = false;
_local3.styleName = this;
_local3._x = __width - _local3.__width;
_local3._y = __height - _local3.__height;
_local3.owner = this;
_local3.autoRepeat = true;
_local3.clickHandler = function () {
Selection.setSelection(0, 0);
};
_local3.buttonDownHandler = function () {
this.owner.buttonPress(this);
};
} else if (skinID == 9) {
createClassObject(mx.controls.TextInput, id, skinID);
var _local4 = inputField;
_local4.styleName = this;
_local4.setSize(__width - nextButton_mc.__width, __height);
_local4.restrict = "0-9\\-\\.\\,";
_local4.maxChars = __maxChars;
_local4.text = value;
_local4.onSetFocus = function () {
this._parent.onSetFocus();
};
_local4.onKillFocus = function () {
this._parent.onKillFocus();
};
_local4.drawFocus = function (b) {
this._parent.drawFocus(b);
};
_local4.onKeyDown = function () {
this._parent.onFieldKeyDown();
};
}
}
function setFocus() {
Selection.setFocus(inputField);
}
function onKillFocus() {
mx.managers.SystemManager.form.focusManager.defaultPushButtonEnabled = true;
super.onKillFocus();
Key.removeListener(inputField);
if (Number(inputField.text) != value) {
var _local3 = checkValidValue(Number(inputField.text));
inputField.text = _local3;
value = (_local3);
dispatchEvent({type:"change"});
}
}
function onSetFocus() {
super.onSetFocus();
Key.addListener(inputField);
mx.managers.SystemManager.form.focusManager.defaultPushButtonEnabled = false;
}
function onFieldKeyDown() {
var _local2 = value;
switch (Key.getCode()) {
case 40 :
var _local3 = value - stepSize;
value = (_local3);
if (_local2 != value) {
dispatchEvent({type:"change"});
}
break;
case 38 :
_local3 = stepSize + value;
value = (_local3);
if (_local2 != value) {
dispatchEvent({type:"change"});
}
break;
case 36 :
inputField.text = minimum;
value = (minimum);
if (_local2 != value) {
dispatchEvent({type:"change"});
}
break;
case 35 :
inputField.text = maximum;
value = (maximum);
if (_local2 != value) {
dispatchEvent({type:"change"});
}
break;
case 13 :
value = (Number(inputField.text));
if (_local2 == value) {
break;
}
dispatchEvent({type:"change"});
}
}
function get nextValue() {
if (checkRange(value + stepSize)) {
__nextValue = value + stepSize;
return(__nextValue);
}
}
function get previousValue() {
if (checkRange(__value - stepSize)) {
__previousValue = value - stepSize;
return(__previousValue);
}
}
function set maxChars(num) {
__maxChars = num;
inputField.maxChars = __maxChars;
//return(maxChars);
}
function get maxChars() {
return(__maxChars);
}
function get value() {
return(__value);
}
function set value(v) {
var _local2 = checkValidValue(v);
if (_local2 == __value) {
return;
}
inputField.text = (__value = _local2);
//return(value);
}
function get minimum() {
return(__minimum);
}
function set minimum(v) {
__minimum = v;
//return(minimum);
}
function get maximum() {
return(__maximum);
}
function set maximum(v) {
__maximum = v;
//return(maximum);
}
function get stepSize() {
return(__stepSize);
}
function set stepSize(v) {
__stepSize = v;
//return(stepSize);
}
function onFocus() {
}
function buttonPress(button) {
var _local2 = value;
if (button._name == "nextButton_mc") {
value = value + stepSize;
} else {
value = value - stepSize;
}
if (_local2 != value) {
dispatchEvent({type:"change"});
Selection.setSelection(0, 0);
}
}
function checkRange(v) {
return((v >= minimum) and (v <= maximum));
}
function checkValidValue(val) {
var _local7 = val / stepSize;
var _local9 = Math.floor(_local7);
var _local2 = stepSize;
var _local6 = minimum;
var _local5 = maximum;
if ((val > _local6) and (val < _local5)) {
if ((_local7 - _local9) == 0) {
return(val);
}
var _local8 = Math.floor(val / _local2);
var _local4 = _local8 * _local2;
if (((((val - _local4) >= (_local2 / 2)) && (_local5 >= (_local4 + _local2))) && (_local6 <= (_local4 - _local2))) || (((val + _local2) == _local5) && (((_local5 - _local4) - _local2) > 1E-14))) {
_local4 = _local4 + _local2;
}
return(_local4);
}
if (val >= _local5) {
return(_local5);
}
return(_local6);
}
function onLabelChanged(o) {
var _local2 = checkValidValue(Number(o.__get__text()));
o.__set__text(_local2);
value = (_local2);
}
function get tabIndex() {
return(inputField.tabIndex);
}
function set tabIndex(w) {
inputField.tabIndex = w;
//return(tabIndex);
}
static var symbolName = "NumericStepper";
static var symbolOwner = mx.controls.NumericStepper;
static var version = "2.0.2.126";
var className = "NumericStepper";
var upArrowUp = "StepUpArrowUp";
var upArrowDown = "StepUpArrowDown";
var upArrowOver = "StepUpArrowOver";
var upArrowDisabled = "StepUpArrowDisabled";
var downArrowUp = "StepDownArrowUp";
var downArrowDown = "StepDownArrowDown";
var downArrowOver = "StepDownArrowOver";
var downArrowDisabled = "StepDownArrowDisabled";
var skinIDUpArrow = 10;
var skinIDDownArrow = 11;
var skinIDInput = 9;
var initializing = true;
var __visible = true;
var __minimum = 0;
var __maximum = 10;
var __stepSize = 1;
var __value = 0;
var __nextValue = 0;
var __previousValue = 0;
var clipParameters = {minimum:1, maximum:1, stepSize:1, value:1, maxChars:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.NumericStepper.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters);
}
Symbol 546 MovieClip [__Packages.mx.controls.listclasses.DataSelector] Frame 0
class mx.controls.listclasses.DataSelector extends Object
{
var __vPosition, setVPosition, __dataProvider, enabled, lastSelID, lastSelected, selected, invUpdateControl, invalidate, multipleSelection, updateControl, __rowCount, rows;
function DataSelector () {
super();
}
static function Initialize(obj) {
var _local3 = mixinProps;
var _local4 = _local3.length;
obj = obj.prototype;
var _local1 = 0;
while (_local1 < _local4) {
obj[_local3[_local1]] = mixins[_local3[_local1]];
_local1++;
}
mixins.createProp(obj, "dataProvider", true);
mixins.createProp(obj, "length", false);
mixins.createProp(obj, "value", false);
mixins.createProp(obj, "selectedIndex", true);
mixins.createProp(obj, "selectedIndices", true);
mixins.createProp(obj, "selectedItems", false);
mixins.createProp(obj, "selectedItem", true);
return(true);
}
function createProp(obj, propName, setter) {
var p = (propName.charAt(0).toUpperCase() + propName.substr(1));
var _local2 = null;
var _local4 = function (Void) {
return(this["get" + p]());
};
if (setter) {
_local2 = function (val) {
this["set" + p](val);
};
}
obj.addProperty(propName, _local4, _local2);
}
function setDataProvider(dP) {
if (__vPosition != 0) {
setVPosition(0);
}
clearSelected();
__dataProvider.removeEventListener(this);
__dataProvider = dP;
dP.addEventListener("modelChanged", this);
dP.addView(this);
modelChanged({eventName:"updateAll"});
}
function getDataProvider(Void) {
return(__dataProvider);
}
function addItemAt(index, label, data) {
if ((index < 0) || (!enabled)) {
return(undefined);
}
var _local2 = __dataProvider;
if (_local2 == undefined) {
_local2 = (__dataProvider = new Array());
_local2.addEventListener("modelChanged", this);
index = 0;
}
if ((typeof(label) == "object") || (typeof(_local2.getItemAt(0)) == "string")) {
_local2.addItemAt(index, label);
} else {
_local2.addItemAt(index, {label:label, data:data});
}
}
function addItem(label, data) {
addItemAt(__dataProvider.length, label, data);
}
function removeItemAt(index) {
return(__dataProvider.removeItemAt(index));
}
function removeAll(Void) {
__dataProvider.removeAll();
}
function replaceItemAt(index, newLabel, newData) {
if (typeof(newLabel) == "object") {
__dataProvider.replaceItemAt(index, newLabel);
} else {
__dataProvider.replaceItemAt(index, {label:newLabel, data:newData});
}
}
function sortItemsBy(fieldName, order) {
lastSelID = __dataProvider.getItemID(lastSelected);
__dataProvider.sortItemsBy(fieldName, order);
}
function sortItems(compareFunc, order) {
lastSelID = __dataProvider.getItemID(lastSelected);
__dataProvider.sortItems(compareFunc, order);
}
function getLength(Void) {
return(__dataProvider.length);
}
function getItemAt(index) {
return(__dataProvider.getItemAt(index));
}
function modelChanged(eventObj) {
var _local3 = eventObj.firstItem;
var _local6 = eventObj.lastItem;
var _local7 = eventObj.eventName;
if (_local7 == undefined) {
_local7 = eventObj.event;
_local3 = eventObj.firstRow;
_local6 = eventObj.lastRow;
if (_local7 == "addRows") {
_local7 = (eventObj.eventName = "addItems");
} else if (_local7 == "deleteRows") {
_local7 = (eventObj.eventName = "removeItems");
} else if (_local7 == "updateRows") {
_local7 = (eventObj.eventName = "updateItems");
}
}
if (_local7 == "addItems") {
for (var _local2 in selected) {
var _local5 = selected[_local2];
if ((_local5 != undefined) && (_local5 >= _local3)) {
selected[_local2] = selected[_local2] + ((_local6 - _local3) + 1);
}
}
} else if (_local7 == "removeItems") {
if (__dataProvider.length == 0) {
delete selected;
} else {
var _local9 = eventObj.removedIDs;
var _local10 = _local9.length;
var _local2 = 0;
while (_local2 < _local10) {
var _local4 = _local9[_local2];
if (selected[_local4] != undefined) {
delete selected[_local4];
}
_local2++;
}
for (_local2 in selected) {
if (selected[_local2] >= _local3) {
selected[_local2] = selected[_local2] - ((_local6 - _local3) + 1);
}
}
}
} else if (_local7 == "sort") {
if (typeof(__dataProvider.getItemAt(0)) != "object") {
delete selected;
} else {
var _local10 = __dataProvider.length;
var _local2 = 0;
while (_local2 < _local10) {
if (isSelected(_local2)) {
var _local4 = __dataProvider.getItemID(_local2);
if (_local4 == lastSelID) {
lastSelected = _local2;
}
selected[_local4] = _local2;
}
_local2++;
}
}
} else if (_local7 == "filterModel") {
setVPosition(0);
}
invUpdateControl = true;
invalidate();
}
function getValue(Void) {
var _local2 = getSelectedItem();
if (typeof(_local2) != "object") {
return(_local2);
}
return(((_local2.data == undefined) ? (_local2.label) : (_local2.data)));
}
function getSelectedIndex(Void) {
for (var _local3 in selected) {
var _local2 = selected[_local3];
if (_local2 != undefined) {
return(_local2);
}
}
}
function setSelectedIndex(index) {
if (((index >= 0) && (index < __dataProvider.length)) && (enabled)) {
delete selected;
selectItem(index, true);
lastSelected = index;
invUpdateControl = true;
invalidate();
} else if (index == undefined) {
clearSelected();
}
}
function getSelectedIndices(Void) {
var _local2 = new Array();
for (var _local3 in selected) {
_local2.push(selected[_local3]);
}
_local2.reverse();
return(((_local2.length > 0) ? (_local2) : undefined));
}
function setSelectedIndices(indexArray) {
if (multipleSelection != true) {
return(undefined);
}
delete selected;
var _local3 = 0;
while (_local3 < indexArray.length) {
var _local2 = indexArray[_local3];
if ((_local2 >= 0) && (_local2 < __dataProvider.length)) {
selectItem(_local2, true);
}
_local3++;
}
invUpdateControl = true;
updateControl();
}
function getSelectedItems(Void) {
var _local3 = getSelectedIndices();
var _local4 = new Array();
var _local2 = 0;
while (_local2 < _local3.length) {
_local4.push(getItemAt(_local3[_local2]));
_local2++;
}
return(((_local4.length > 0) ? (_local4) : undefined));
}
function getSelectedItem(Void) {
return(__dataProvider.getItemAt(getSelectedIndex()));
}
function selectItem(index, selectedFlag) {
if (selected == undefined) {
selected = new Object();
}
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(undefined);
}
if (selectedFlag && (!isSelected(index))) {
selected[_local2] = index;
} else if (!selectedFlag) {
delete selected[_local2];
}
}
function isSelected(index) {
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(false);
}
return(selected[_local2] != undefined);
}
function clearSelected(transition) {
var _local3 = 0;
for (var _local4 in selected) {
var _local2 = selected[_local4];
if (((_local2 != undefined) && (__vPosition <= _local2)) && (_local2 < (__vPosition + __rowCount))) {
rows[_local2 - __vPosition].drawRow(rows[_local2 - __vPosition].item, "normal", transition && ((_local3 % 3) == 0));
}
_local3++;
}
delete selected;
}
static var mixins = new mx.controls.listclasses.DataSelector();
static var mixinProps = ["setDataProvider", "getDataProvider", "addItem", "addItemAt", "removeAll", "removeItemAt", "replaceItemAt", "sortItemsBy", "sortItems", "getLength", "getItemAt", "modelChanged", "calcPreferredWidthFromData", "calcPreferredHeightFromData", "getValue", "getSelectedIndex", "getSelectedItem", "getSelectedIndices", "getSelectedItems", "selectItem", "isSelected", "clearSelected", "setSelectedIndex", "setSelectedIndices"];
}
Symbol 547 MovieClip [__Packages.mx.controls.ComboBase] Frame 0
class mx.controls.ComboBase extends mx.core.UIComponent
{
var getValue, tabEnabled, tabChildren, boundingBox_mc, downArrow_mc, createClassObject, onDownArrow, border_mc, __border, text_mc, focusTextField, __width, __height, getFocusManager, __get__height, height, _parent;
function ComboBase () {
super();
getValue = _getValue;
}
function init() {
super.init();
tabEnabled = !_editable;
tabChildren = _editable;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function createChildren() {
var _local3 = new Object();
_local3.styleName = this;
if (downArrow_mc == undefined) {
_local3.falseUpSkin = downArrowUpName;
_local3.falseOverSkin = downArrowOverName;
_local3.falseDownSkin = downArrowDownName;
_local3.falseDisabledSkin = downArrowDisabledName;
_local3.validateNow = true;
_local3.tabEnabled = false;
createClassObject(mx.controls.SimpleButton, "downArrow_mc", 19, _local3);
downArrow_mc.buttonDownHandler = onDownArrow;
downArrow_mc.useHandCursor = false;
downArrow_mc.onPressWas = downArrow_mc.onPress;
downArrow_mc.onPress = function () {
this.trackAsMenuWas = this.trackAsMenu;
this.trackAsMenu = true;
if (!this._editable) {
this._parent.text_mc.trackAsMenu = this.trackAsMenu;
}
this.onPressWas();
};
downArrow_mc.onDragOutWas = downArrow_mc.onDragOut;
downArrow_mc.onDragOut = function () {
this.trackAsMenuWas = this.trackAsMenu;
this.trackAsMenu = false;
if (!this._editable) {
this._parent.text_mc.trackAsMenu = this.trackAsMenu;
}
this.onDragOutWas();
};
downArrow_mc.onDragOverWas = downArrow_mc.onDragOver;
downArrow_mc.onDragOver = function () {
this.trackAsMenu = this.trackAsMenuWas;
if (!this._editable) {
this._parent.text_mc.trackAsMenu = this.trackAsMenu;
}
this.onDragOverWas();
};
}
if (border_mc == undefined) {
_local3.tabEnabled = false;
createClassObject(_global.styles.rectBorderClass, "border_mc", 17, _local3);
border_mc.move(0, 0);
__border = border_mc;
}
_local3.borderStyle = "none";
_local3.readOnly = !_editable;
_local3.tabEnabled = _editable;
if (text_mc == undefined) {
createClassObject(mx.controls.TextInput, "text_mc", 18, _local3);
text_mc.move(0, 0);
text_mc.addEnterEvents();
text_mc.enterHandler = _enterHandler;
text_mc.changeHandler = _changeHandler;
text_mc.oldOnSetFocus = text_mc.onSetFocus;
text_mc.onSetFocus = function () {
this.oldOnSetFocus();
this._parent.onSetFocus();
};
text_mc.__set__restrict("^\x1B");
text_mc.oldOnKillFocus = text_mc.onKillFocus;
text_mc.onKillFocus = function (n) {
this.oldOnKillFocus(n);
this._parent.onKillFocus(n);
};
text_mc.drawFocus = function (b) {
this._parent.drawFocus(b);
};
delete text_mc.borderStyle;
}
focusTextField = text_mc;
text_mc.owner = this;
layoutChildren(__width, __height);
}
function onKillFocus() {
super.onKillFocus();
Key.removeListener(text_mc);
getFocusManager().defaultPushButtonEnabled = true;
}
function onSetFocus() {
super.onSetFocus();
getFocusManager().defaultPushButtonEnabled = false;
Key.addListener(text_mc);
}
function setFocus() {
if (_editable) {
Selection.setFocus(text_mc);
} else {
Selection.setFocus(this);
}
}
function setSize(w, h, noEvent) {
super.setSize(w, ((h == undefined) ? (__get__height()) : (h)), noEvent);
}
function setEnabled(enabledFlag) {
super.setEnabled(enabledFlag);
downArrow_mc.enabled = enabledFlag;
text_mc.enabled = enabledFlag;
}
function setEditable(e) {
_editable = e;
if (wrapDownArrowButton == false) {
if (e) {
border_mc.borderStyle = "inset";
text_mc.borderStyle = "inset";
symbolName = "ComboBox";
invalidateStyle();
} else {
border_mc.borderStyle = "comboNonEdit";
text_mc.borderStyle = "dropDown";
symbolName = "DropDown";
invalidateStyle();
}
}
tabEnabled = !e;
tabChildren = e;
text_mc.tabEnabled = e;
if (e) {
delete text_mc.onPress;
delete text_mc.onRelease;
delete text_mc.onReleaseOutside;
delete text_mc.onDragOut;
delete text_mc.onDragOver;
delete text_mc.onRollOver;
delete text_mc.onRollOut;
} else {
text_mc.onPress = function () {
this._parent.downArrow_mc.onPress();
};
text_mc.onRelease = function () {
this._parent.downArrow_mc.onRelease();
};
text_mc.onReleaseOutside = function () {
this._parent.downArrow_mc.onReleaseOutside();
};
text_mc.onDragOut = function () {
this._parent.downArrow_mc.onDragOut();
};
text_mc.onDragOver = function () {
this._parent.downArrow_mc.onDragOver();
};
text_mc.onRollOver = function () {
this._parent.downArrow_mc.onRollOver();
};
text_mc.onRollOut = function () {
this._parent.downArrow_mc.onRollOut();
};
text_mc.useHandCursor = false;
}
}
function get editable() {
return(_editable);
}
function set editable(e) {
setEditable(e);
//return(editable);
}
function _getValue() {
return((_editable ? (text_mc.getText()) : (DSgetValue())));
}
function draw() {
downArrow_mc.draw();
border_mc.draw();
}
function size() {
layoutChildren(__width, __height);
}
function setTheme(t) {
downArrowUpName = (t + "downArrow") + "Up_mc";
downArrowDownName = (t + "downArrow") + "Down_mc";
downArrowDisabledName = (t + "downArrow") + "Disabled_mc";
}
function get text() {
return(text_mc.getText());
}
function set text(t) {
setText(t);
//return(text);
}
function setText(t) {
text_mc.setText(t);
}
function get textField() {
return(text_mc);
}
function get restrict() {
return(text_mc.__get__restrict());
}
function set restrict(w) {
text_mc.__set__restrict(w);
//return(restrict);
}
function invalidateStyle() {
downArrow_mc.invalidateStyle();
text_mc.invalidateStyle();
border_mc.invalidateStyle();
}
function layoutChildren(w, h) {
if (downArrow_mc == undefined) {
return(undefined);
}
if (wrapDownArrowButton) {
var _local2 = border_mc.__get__borderMetrics();
downArrow_mc._width = (downArrow_mc._height = (h - _local2.top) - _local2.bottom);
downArrow_mc.move((w - downArrow_mc._width) - _local2.right, _local2.top);
border_mc.setSize(w, h);
text_mc.setSize(w - downArrow_mc._width, h);
} else {
downArrow_mc.move(w - downArrow_mc._width, 0);
border_mc.setSize(w - downArrow_mc.width, h);
text_mc.setSize(w - downArrow_mc._width, h);
downArrow_mc._height = height;
}
}
function _changeHandler(obj) {
}
function _enterHandler(obj) {
var _local2 = _parent;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
function get tabIndex() {
return(text_mc.__get__tabIndex());
}
function set tabIndex(w) {
text_mc.__set__tabIndex(w);
//return(tabIndex);
}
static var mixIt1 = mx.controls.listclasses.DataSelector.Initialize(mx.controls.ComboBase);
static var symbolName = "ComboBase";
static var symbolOwner = mx.controls.ComboBase;
static var version = "2.0.2.126";
var _editable = false;
var downArrowUpName = "ScrollDownArrowUp";
var downArrowDownName = "ScrollDownArrowDown";
var downArrowOverName = "ScrollDownArrowOver";
var downArrowDisabledName = "ScrollDownArrowDisabled";
var wrapDownArrowButton = true;
var DSgetValue = mx.controls.listclasses.DataSelector.prototype.getValue;
var multipleSelection = false;
}
Symbol 548 MovieClip [__Packages.mx.controls.ComboBox] Frame 0
class mx.controls.ComboBox extends mx.controls.ComboBase
{
var __set__editable, editable, __labels, data, __dropdownWidth, __width, _editable, selectedIndex, __dropdown, dataProvider, __labelFunction, createObject, border_mc, mask, text_mc, dispatchValueChangedEvent, getValue, length, selectedItem, _y, isPressed, owner, __set__visible, height, localToGlobal, __selectedIndexOnDropdown, __initialSelectedIndexOnDropdown, __get__height, getStyle, _parent, width, __dataProvider, selected, dispatchEvent;
function ComboBox () {
super();
}
function init() {
super.init();
}
function createChildren() {
super.createChildren();
__set__editable(editable);
if (__labels.length > 0) {
var _local6 = new Array();
var _local3 = 0;
while (_local3 < labels.length) {
_local6.addItem({label:labels[_local3], data:data[_local3]});
_local3++;
}
setDataProvider(_local6);
}
dropdownWidth = (((typeof(__dropdownWidth) == "number") ? (__dropdownWidth) : (__width)));
if (!_editable) {
selectedIndex = 0;
}
initializing = false;
}
function onKillFocus(n) {
if (_showingDropdown && (n != null)) {
displayDropdown(false);
}
super.onKillFocus();
}
function getDropdown() {
if (initializing) {
return(undefined);
}
if (!hasDropdown()) {
var _local3 = new Object();
_local3.styleName = this;
if (dropdownBorderStyle != undefined) {
_local3.borderStyle = dropdownBorderStyle;
}
_local3._visible = false;
__dropdown = mx.managers.PopUpManager.createPopUp(this, mx.controls.List, false, _local3, true);
__dropdown.scroller.mask.removeMovieClip();
if (dataProvider == undefined) {
dataProvider = new Array();
}
__dropdown.setDataProvider(dataProvider);
__dropdown.selectMultiple = false;
__dropdown.rowCount = __rowCount;
__dropdown.selectedIndex = selectedIndex;
__dropdown.vScrollPolicy = "auto";
__dropdown.labelField = __labelField;
__dropdown.labelFunction = __labelFunction;
__dropdown.owner = this;
__dropdown.changeHandler = _changeHandler;
__dropdown.scrollHandler = _scrollHandler;
__dropdown.itemRollOverHandler = _itemRollOverHandler;
__dropdown.itemRollOutHandler = _itemRollOutHandler;
__dropdown.resizeHandler = _resizeHandler;
__dropdown.mouseDownOutsideHandler = function (eventObj) {
var _local3 = this.owner;
var _local4 = new Object();
_local4.x = _local3._root._xmouse;
_local4.y = _local3._root._ymouse;
_local3._root.localToGlobal(_local4);
if (_local3.hitTest(_local4.x, _local4.y, false)) {
} else if ((!this.wrapDownArrowButton) && (this.owner.downArrow_mc.hitTest(_root._xmouse, _root._ymouse, false))) {
} else {
_local3.displayDropdown(false);
}
};
__dropdown.onTweenUpdate = function (v) {
this._y = v;
};
__dropdown.setSize(__dropdownWidth, __dropdown.height);
createObject("BoundingBox", "mask", 20);
mask._y = border_mc.height;
mask._width = __dropdownWidth;
mask._height = __dropdown.height;
mask._visible = false;
__dropdown.setMask(mask);
}
return(__dropdown);
}
function setSize(w, h, noEvent) {
super.setSize(w, h, noEvent);
__dropdownWidth = w;
__dropdown.rowHeight = h;
__dropdown.setSize(__dropdownWidth, __dropdown.height);
}
function setEditable(e) {
super.setEditable(e);
if (e) {
text_mc.setText("");
} else {
text_mc.setText(selectedLabel);
}
}
function get labels() {
return(__labels);
}
function set labels(lbls) {
__labels = lbls;
setDataProvider(lbls);
//return(labels);
}
function getLabelField() {
return(__labelField);
}
function get labelField() {
return(getLabelField());
}
function setLabelField(s) {
__dropdown.labelField = (__labelField = s);
text_mc.setText(selectedLabel);
}
function set labelField(s) {
setLabelField(s);
//return(labelField);
}
function getLabelFunction() {
return(__labelFunction);
}
function get labelFunction() {
return(getLabelFunction());
}
function set labelFunction(f) {
__dropdown.labelFunction = (__labelFunction = f);
text_mc.setText(selectedLabel);
//return(labelFunction);
}
function setSelectedItem(v) {
super.setSelectedItem(v);
__dropdown.selectedItem = v;
text_mc.setText(selectedLabel);
}
function setSelectedIndex(v) {
super.setSelectedIndex(v);
__dropdown.selectedIndex = v;
if (v != undefined) {
text_mc.setText(selectedLabel);
}
dispatchValueChangedEvent(getValue());
}
function setRowCount(count) {
if (isNaN(count)) {
return(undefined);
}
__rowCount = count;
__dropdown.setRowCount(count);
}
function get rowCount() {
return(Math.max(1, Math.min(length, __rowCount)));
}
function set rowCount(v) {
setRowCount(v);
//return(rowCount);
}
function setDropdownWidth(w) {
__dropdownWidth = w;
__dropdown.setSize(w, __dropdown.height);
}
function get dropdownWidth() {
return(__dropdownWidth);
}
function set dropdownWidth(v) {
setDropdownWidth(v);
//return(dropdownWidth);
}
function get dropdown() {
return(getDropdown());
}
function setDataProvider(dp) {
super.setDataProvider(dp);
__dropdown.setDataProvider(dp);
if (!_editable) {
selectedIndex = 0;
}
}
function open() {
displayDropdown(true);
}
function close() {
displayDropdown(false);
}
function get selectedLabel() {
var _local2 = selectedItem;
if (_local2 == undefined) {
return("");
}
if (labelFunction != undefined) {
return(labelFunction(_local2));
}
if (typeof(_local2) != "object") {
return(_local2);
}
if (_local2[labelField] != undefined) {
return(_local2[labelField]);
}
if (_local2.label != undefined) {
return(_local2.label);
}
var _local3 = " ";
for (var _local4 in _local2) {
if (_local4 != "__ID__") {
_local3 = (_local2[_local4] + ", ") + _local3;
}
}
_local3 = _local3.substring(0, _local3.length - 3);
return(_local3);
}
function hasDropdown() {
return((__dropdown != undefined) && (__dropdown.valueOf() != undefined));
}
function tweenEndShow(value) {
_y = value;
isPressed = true;
owner.dispatchEvent({type:"open", target:owner});
}
function tweenEndHide(value) {
_y = value;
__set__visible(false);
owner.dispatchEvent({type:"close", target:owner});
}
function displayDropdown(show) {
if (show == _showingDropdown) {
return(undefined);
}
var _local3 = new Object();
_local3.x = 0;
_local3.y = height;
localToGlobal(_local3);
if (show) {
__selectedIndexOnDropdown = selectedIndex;
__initialSelectedIndexOnDropdown = selectedIndex;
getDropdown();
var _local2 = __dropdown;
_local2.isPressed = true;
_local2.rowCount = rowCount;
_local2.visible = show;
_local2._parent.globalToLocal(_local3);
_local2.onTweenEnd = tweenEndShow;
var _local5;
var _local8;
if ((_local3.y + _local2.height) > Stage.height) {
_local5 = _local3.y - __get__height();
_local8 = _local5 - _local2.height;
mask._y = -_local2.height;
} else {
_local5 = _local3.y - _local2.height;
_local8 = _local3.y;
mask._y = border_mc.height;
}
var _local6 = _local2.selectedIndex;
if (_local6 == undefined) {
_local6 = 0;
}
var _local4 = _local2.vPosition;
_local4 = _local6 - 1;
_local4 = Math.min(Math.max(_local4, 0), _local2.length - _local2.rowCount);
_local2.vPosition = _local4;
_local2.move(_local3.x, _local5);
_local2.tween = new mx.effects.Tween(__dropdown, _local5, _local8, getStyle("openDuration"));
} else {
__dropdown._parent.globalToLocal(_local3);
delete __dropdown.dragScrolling;
__dropdown.onTweenEnd = tweenEndHide;
__dropdown.tween = new mx.effects.Tween(__dropdown, __dropdown._y, _local3.y - __dropdown.height, getStyle("openDuration"));
if (__initialSelectedIndexOnDropdown != selectedIndex) {
dispatchChangeEvent(undefined, __initialSelectedIndexOnDropdown, selectedIndex);
}
}
var _local9 = getStyle("openEasing");
if (_local9 != undefined) {
__dropdown.tween.easingEquation = _local9;
}
_showingDropdown = show;
}
function onDownArrow() {
_parent.displayDropdown(!_parent._showingDropdown);
}
function keyDown(e) {
if (e.ctrlKey && (e.code == 40)) {
displayDropdown(true);
} else if (e.ctrlKey && (e.code == 38)) {
displayDropdown(false);
dispatchChangeEvent(undefined, __selectedIndexOnDropdown, selectedIndex);
} else if (e.code == 27) {
displayDropdown(false);
} else if (e.code == 13) {
if (_showingDropdown) {
selectedIndex = __dropdown.selectedIndex;
displayDropdown(false);
}
} else if (((((!_editable) || (e.code == 38)) || (e.code == 40)) || (e.code == 33)) || (e.code == 34)) {
selectedIndex = 0 + selectedIndex;
bInKeyDown = true;
var _local3 = dropdown;
_local3.keyDown(e);
bInKeyDown = false;
selectedIndex = __dropdown.selectedIndex;
}
}
function invalidateStyle(styleProp) {
__dropdown.invalidateStyle(styleProp);
super.invalidateStyle(styleProp);
}
function changeTextStyleInChildren(styleProp) {
if (dropdown.stylecache != undefined) {
delete dropdown.stylecache[styleProp];
delete dropdown.stylecache.tf;
}
__dropdown.changeTextStyleInChildren(styleProp);
super.changeTextStyleInChildren(styleProp);
}
function changeColorStyleInChildren(sheetName, styleProp, newValue) {
if (dropdown.stylecache != undefined) {
delete dropdown.stylecache[styleProp];
delete dropdown.stylecache.tf;
}
__dropdown.changeColorStyleInChildren(sheetName, styleProp, newValue);
super.changeColorStyleInChildren(sheetName, styleProp, newValue);
}
function notifyStyleChangeInChildren(sheetName, styleProp, newValue) {
if (dropdown.stylecache != undefined) {
delete dropdown.stylecache[styleProp];
delete dropdown.stylecache.tf;
}
__dropdown.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
super.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
}
function onUnload() {
__dropdown.removeMovieClip();
}
function _resizeHandler() {
var _local2 = owner;
_local2.mask._width = width;
_local2.mask._height = height;
}
function _changeHandler(obj) {
var _local2 = owner;
var _local3 = _local2.selectedIndex;
obj.target = _local2;
if (this == owner.text_mc) {
_local2.selectedIndex = undefined;
_local2.dispatchChangeEvent(obj, -1, -2);
} else {
_local2.selectedIndex = selectedIndex;
if (!_local2._showingDropdown) {
_local2.dispatchChangeEvent(obj, _local3, _local2.selectedIndex);
} else if (!_local2.bInKeyDown) {
_local2.displayDropdown(false);
}
}
}
function _scrollHandler(obj) {
var _local2 = owner;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
function _itemRollOverHandler(obj) {
var _local2 = owner;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
function _itemRollOutHandler(obj) {
var _local2 = owner;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
function modelChanged(eventObj) {
super.modelChanged(eventObj);
if (0 == __dataProvider.length) {
text_mc.setText("");
delete selected;
} else if ((__dataProvider.length == ((eventObj.lastItem - eventObj.firstItem) + 1)) && (eventObj.eventName == "addItems")) {
selectedIndex = 0;
}
}
function dispatchChangeEvent(obj, prevValue, newValue) {
var _local2;
if (prevValue != newValue) {
if ((obj != undefined) && (obj.type == "change")) {
_local2 = obj;
} else {
_local2 = {type:"change"};
}
dispatchEvent(_local2);
}
}
static var symbolName = "ComboBox";
static var symbolOwner = mx.controls.ComboBox;
static var version = "2.0.2.126";
var clipParameters = {labels:1, data:1, editable:1, rowCount:1, dropdownWidth:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.ComboBox.prototype.clipParameters, mx.controls.ComboBase.prototype.clipParameters);
var className = "ComboBox";
var _showingDropdown = false;
var __rowCount = 5;
var dropdownBorderStyle = undefined;
var initializing = true;
var __labelField = "label";
var bInKeyDown = false;
}
Symbol 567 MovieClip [__Packages.mx.managers.PopUpManager] Frame 0
class mx.managers.PopUpManager
{
var popUp, setSize, move, modalWindow, _parent, _name, _visible, owner;
function PopUpManager () {
}
static function createModalWindow(parent, o, broadcastOutsideEvents) {
var _local2 = parent.createChildAtDepth("Modal", mx.managers.DepthManager.kTopmost);
_local2.setDepthBelow(o);
o.modalID = _local2._name;
_local2._alpha = _global.style.modalTransparency;
_local2.tabEnabled = false;
if (broadcastOutsideEvents) {
_local2.onPress = mixins.onPress;
} else {
_local2.onPress = mixins.nullFunction;
}
_local2.onRelease = mixins.nullFunction;
_local2.resize = mixins.resize;
mx.managers.SystemManager.init();
mx.managers.SystemManager.addEventListener("resize", _local2);
_local2.resize();
_local2.useHandCursor = false;
_local2.popUp = o;
o.modalWindow = _local2;
o.deletePopUp = mixins.deletePopUp;
o.setVisible = mixins.setVisible;
o.getVisible = mixins.getVisible;
o.addProperty("visible", o.getVisible, o.setVisible);
}
static function createPopUp(parent, className, modal, initobj, broadcastOutsideEvents) {
if (mixins == undefined) {
mixins = new mx.managers.PopUpManager();
}
if (broadcastOutsideEvents == undefined) {
broadcastOutsideEvents = false;
}
var _local5 = parent._root;
if (_local5 == undefined) {
_local5 = _root;
}
while (parent != _local5) {
parent = parent._parent;
}
initobj.popUp = true;
var _local4 = parent.createClassChildAtDepth(className, ((broadcastOutsideEvents || (modal)) ? (mx.managers.DepthManager.kTopmost) : (mx.managers.DepthManager.kTop)), initobj);
var _local2 = _root;
var _local6 = _local2.focusManager != undefined;
while (_local2._parent != undefined) {
_local2 = _local2._parent._root;
if (_local2.focusManager != undefined) {
_local6 = true;
break;
}
}
if (_local6) {
_local4.createObject("FocusManager", "focusManager", -1);
if (_local4._visible == false) {
mx.managers.SystemManager.deactivate(_local4);
}
}
if (modal) {
createModalWindow(parent, _local4, broadcastOutsideEvents);
} else {
if (broadcastOutsideEvents) {
_local4.mouseListener = new Object();
_local4.mouseListener.owner = _local4;
_local4.mouseListener.onMouseDown = mixins.onMouseDown;
Mouse.addListener(_local4.mouseListener);
}
_local4.deletePopUp = mixins.deletePopUp;
}
return(_local4);
}
function onPress(Void) {
var _local3 = popUp._root;
if (_local3 == undefined) {
_local3 = _root;
}
if (popUp.hitTest(_local3._xmouse, _local3._ymouse, false)) {
return(undefined);
}
popUp.dispatchEvent({type:"mouseDownOutside"});
}
function nullFunction(Void) {
}
function resize(Void) {
var _local2 = mx.managers.SystemManager.__get__screen();
setSize(_local2.width, _local2.height);
move(_local2.x, _local2.y);
}
function deletePopUp(Void) {
if (modalWindow != undefined) {
_parent.destroyObject(modalWindow._name);
}
_parent.destroyObject(_name);
}
function setVisible(v, noEvent) {
super.setVisible(v, noEvent);
modalWindow._visible = v;
}
function getVisible(Void) {
return(_visible);
}
function onMouseDown(Void) {
var _local3 = owner._root;
if (_local3 == undefined) {
_local3 = _root;
}
var _local4 = new Object();
_local4.x = _local3._xmouse;
_local4.y = _local3._ymouse;
_local3.localToGlobal(_local4);
if (owner.hitTest(_local4.x, _local4.y, false)) {
} else {
owner.mouseDownOutsideHandler(owner);
}
}
static var version = "2.0.2.126";
static var mixins = undefined;
}
Symbol 568 MovieClip [__Packages.mx.controls.listclasses.DataProvider] Frame 0
class mx.controls.listclasses.DataProvider extends Object
{
var length, splice, dispatchEvent, sortOn, reverse, sort;
function DataProvider (obj) {
super();
}
static function Initialize(obj) {
var _local4 = mixinProps;
var _local6 = _local4.length;
obj = obj.prototype;
var _local3 = 0;
while (_local3 < _local6) {
obj[_local4[_local3]] = mixins[_local4[_local3]];
_global.ASSetPropFlags(obj, _local4[_local3], 1);
_local3++;
}
mx.events.EventDispatcher.initialize(obj);
_global.ASSetPropFlags(obj, "addEventListener", 1);
_global.ASSetPropFlags(obj, "removeEventListener", 1);
_global.ASSetPropFlags(obj, "dispatchEvent", 1);
_global.ASSetPropFlags(obj, "dispatchQueue", 1);
Object.prototype.LargestID = 0;
Object.prototype.getID = function () {
if (this.__ID__ == undefined) {
this.__ID__ = Object.prototype.LargestID++;
_global.ASSetPropFlags(this, "__ID__", 1);
}
return(this.__ID__);
};
_global.ASSetPropFlags(Object.prototype, "LargestID", 1);
_global.ASSetPropFlags(Object.prototype, "getID", 1);
return(true);
}
function addItemAt(index, value) {
if (index < length) {
splice(index, 0, value);
} else if (index > length) {
trace("Cannot add an item past the end of the DataProvider");
return(undefined);
}
this[index] = value;
updateViews("addItems", index, index);
}
function addItem(value) {
addItemAt(length, value);
}
function addItemsAt(index, newItems) {
index = Math.min(length, index);
newItems.unshift(index, 0);
splice.apply(this, newItems);
newItems.splice(0, 2);
updateViews("addItems", index, (index + newItems.length) - 1);
}
function removeItemsAt(index, len) {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < len) {
_local3.push(getItemID(index + _local2));
_local2++;
}
var _local6 = splice(index, len);
dispatchEvent({type:"modelChanged", eventName:"removeItems", firstItem:index, lastItem:(index + len) - 1, removedItems:_local6, removedIDs:_local3});
}
function removeItemAt(index) {
var _local2 = this[index];
removeItemsAt(index, 1);
return(_local2);
}
function removeAll(Void) {
splice(0);
updateViews("removeItems", 0, length - 1);
}
function replaceItemAt(index, itemObj) {
if ((index < 0) || (index >= length)) {
return(undefined);
}
var _local3 = getItemID(index);
this[index] = itemObj;
this[index].__ID__ = _local3;
updateViews("updateItems", index, index);
}
function getItemAt(index) {
return(this[index]);
}
function getItemID(index) {
var _local2 = this[index];
if ((typeof(_local2) != "object") && (_local2 != undefined)) {
return(index);
}
return(_local2.getID());
}
function sortItemsBy(fieldName, order) {
if (typeof(order) == "string") {
sortOn(fieldName);
if (order.toUpperCase() == "DESC") {
reverse();
}
} else {
sortOn(fieldName, order);
}
updateViews("sort");
}
function sortItems(compareFunc, optionFlags) {
sort(compareFunc, optionFlags);
updateViews("sort");
}
function editField(index, fieldName, newData) {
this[index][fieldName] = newData;
dispatchEvent({type:"modelChanged", eventName:"updateField", firstItem:index, lastItem:index, fieldName:fieldName});
}
function getEditingData(index, fieldName) {
return(this[index][fieldName]);
}
function updateViews(event, first, last) {
dispatchEvent({type:"modelChanged", eventName:event, firstItem:first, lastItem:last});
}
static var mixinProps = ["addView", "addItem", "addItemAt", "removeAll", "removeItemAt", "replaceItemAt", "getItemAt", "getItemID", "sortItemsBy", "sortItems", "updateViews", "addItemsAt", "removeItemsAt", "getEditingData", "editField"];
static var evtDipatcher = mx.events.EventDispatcher;
static var mixins = new mx.controls.listclasses.DataProvider();
}
Symbol 569 MovieClip [__Packages.mx.controls.listclasses.ScrollSelectList] Frame 0
class mx.controls.listclasses.ScrollSelectList extends mx.core.ScrollView
{
var invLayoutContent, rows, topRowZ, listContent, __dataProvider, __vPosition, tW, layoutX, layoutY, tH, invRowHeight, invalidate, __height, invUpdateControl, __cellRenderer, __labelFunction, __iconField, __iconFunction, getLength, baseRowZ, lastPosition, propertyTable, isSelected, wasKeySelected, changeFlag, clearSelected, selectItem, lastSelected, dispatchEvent, dragScrolling, _ymouse, scrollInterval, isPressed, onMouseUp, getSelectedIndex, enabled, tabEnabled, tabChildren, createEmptyMovieClip, border_mc;
function ScrollSelectList () {
super();
}
function layoutContent(x, y, w, h) {
delete invLayoutContent;
var _local4 = Math.ceil(h / __rowHeight);
roundUp = (h % __rowHeight) != 0;
var _local12 = _local4 - __rowCount;
if (_local12 < 0) {
var _local3 = _local4;
while (_local3 < __rowCount) {
rows[_local3].removeMovieClip();
delete rows[_local3];
_local3++;
}
topRowZ = topRowZ + _local12;
} else if (_local12 > 0) {
if (rows == undefined) {
rows = new Array();
}
var _local3 = __rowCount;
while (_local3 < _local4) {
var _local2 = (rows[_local3] = listContent.createObject(__rowRenderer, "listRow" + (topRowZ++), topRowZ, {owner:this, styleName:this, rowIndex:_local3}));
_local2._x = x;
_local2._y = Math.round((_local3 * __rowHeight) + y);
_local2.setSize(w, __rowHeight);
_local2.drawRow(__dataProvider.getItemAt(__vPosition + _local3), getStateAt(__vPosition + _local3));
_local2.lastY = _local2._y;
_local3++;
}
}
if (w != tW) {
var _local11 = ((_local12 > 0) ? (__rowCount) : (_local4));
var _local3 = 0;
while (_local3 < _local11) {
rows[_local3].setSize(w, __rowHeight);
_local3++;
}
}
if ((layoutX != x) || (layoutY != y)) {
var _local3 = 0;
while (_local3 < _local4) {
rows[_local3]._x = x;
rows[_local3]._y = Math.round((_local3 * __rowHeight) + y);
_local3++;
}
}
__rowCount = _local4;
layoutX = x;
layoutY = y;
tW = w;
tH = h;
}
function getRowHeight(Void) {
return(__rowHeight);
}
function setRowHeight(v) {
__rowHeight = v;
invRowHeight = true;
invalidate();
}
function get rowHeight() {
return(getRowHeight());
}
function set rowHeight(w) {
setRowHeight(w);
//return(rowHeight);
}
function setRowCount(v) {
__rowCount = v;
}
function getRowCount(Void) {
var _local2 = ((__rowCount == 0) ? (Math.ceil(__height / __rowHeight)) : (__rowCount));
return(_local2);
}
function get rowCount() {
return(getRowCount());
}
function set rowCount(w) {
setRowCount(w);
//return(rowCount);
}
function setEnabled(v) {
super.setEnabled(v);
invUpdateControl = true;
invalidate();
}
function setCellRenderer(cR) {
__cellRenderer = cR;
var _local2 = 0;
while (_local2 < rows.length) {
rows[_local2].setCellRenderer(true);
_local2++;
}
invUpdateControl = true;
invalidate();
}
function set cellRenderer(cR) {
setCellRenderer(cR);
//return(cellRenderer);
}
function get cellRenderer() {
return(__cellRenderer);
}
function set labelField(field) {
setLabelField(field);
//return(labelField);
}
function setLabelField(field) {
__labelField = field;
invUpdateControl = true;
invalidate();
}
function get labelField() {
return(__labelField);
}
function set labelFunction(func) {
setLabelFunction(func);
//return(labelFunction);
}
function setLabelFunction(func) {
__labelFunction = func;
invUpdateControl = true;
invalidate();
}
function get labelFunction() {
return(__labelFunction);
}
function set iconField(field) {
setIconField(field);
//return(iconField);
}
function setIconField(field) {
__iconField = field;
invUpdateControl = true;
invalidate();
}
function get iconField() {
return(__iconField);
}
function set iconFunction(func) {
setIconFunction(func);
//return(iconFunction);
}
function setIconFunction(func) {
__iconFunction = func;
invUpdateControl = true;
invalidate();
}
function get iconFunction() {
return(__iconFunction);
}
function setVPosition(pos) {
if (pos < 0) {
return(undefined);
}
if ((pos > 0) && (pos > ((getLength() - __rowCount) + roundUp))) {
return(undefined);
}
var _local8 = pos - __vPosition;
if (_local8 == 0) {
return(undefined);
}
__vPosition = pos;
var _local10 = _local8 > 0;
_local8 = Math.abs(_local8);
if (_local8 >= __rowCount) {
updateControl();
} else {
var _local4 = new Array();
var _local9 = __rowCount - _local8;
var _local12 = _local8 * __rowHeight;
var _local11 = _local9 * __rowHeight;
var _local6 = (_local10 ? 1 : -1);
var _local3 = 0;
while (_local3 < __rowCount) {
if (((_local3 < _local8) && (_local10)) || ((_local3 >= _local9) && (!_local10))) {
rows[_local3]._y = rows[_local3]._y + Math.round(_local6 * _local11);
var _local5 = _local3 + (_local6 * _local9);
var _local7 = __vPosition + _local5;
_local4[_local5] = rows[_local3];
_local4[_local5].rowIndex = _local5;
_local4[_local5].drawRow(__dataProvider.getItemAt(_local7), getStateAt(_local7), false);
} else {
rows[_local3]._y = rows[_local3]._y - Math.round(_local6 * _local12);
var _local5 = _local3 - (_local6 * _local8);
_local4[_local5] = rows[_local3];
_local4[_local5].rowIndex = _local5;
}
_local3++;
}
rows = _local4;
_local3 = 0;
while (_local3 < __rowCount) {
rows[_local3].swapDepths(baseRowZ + _local3);
_local3++;
}
}
lastPosition = pos;
super.setVPosition(pos);
}
function setPropertiesAt(index, obj) {
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(undefined);
}
if (propertyTable == undefined) {
propertyTable = new Object();
}
propertyTable[_local2] = obj;
rows[index - __vPosition].drawRow(__dataProvider.getItemAt(index), getStateAt(index));
}
function getPropertiesAt(index) {
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(undefined);
}
return(propertyTable[_local2]);
}
function getPropertiesOf(obj) {
var _local2 = obj.getID();
if (_local2 == undefined) {
return(undefined);
}
return(propertyTable[_local2]);
}
function getStyle(styleProp) {
var _local2 = super.getStyle(styleProp);
var _local3 = mx.styles.StyleManager.colorNames[_local2];
if (_local3 != undefined) {
_local2 = _local3;
}
return(_local2);
}
function updateControl(Void) {
var _local2 = 0;
while (_local2 < __rowCount) {
rows[_local2].drawRow(__dataProvider.getItemAt(_local2 + __vPosition), getStateAt(_local2 + __vPosition));
_local2++;
}
delete invUpdateControl;
}
function getStateAt(index) {
return((isSelected(index) ? "selected" : "normal"));
}
function selectRow(rowIndex, transition, allowChangeEvent) {
if (!selectable) {
return(undefined);
}
var _local3 = __vPosition + rowIndex;
var _local8 = __dataProvider.getItemAt(_local3);
var _local5 = rows[rowIndex];
if (_local8 == undefined) {
return(undefined);
}
if (transition == undefined) {
transition = true;
}
if (allowChangeEvent == undefined) {
allowChangeEvent = wasKeySelected;
}
changeFlag = true;
if (((!multipleSelection) && (!Key.isDown(17))) || ((!Key.isDown(16)) && (!Key.isDown(17)))) {
clearSelected(transition);
selectItem(_local3, true);
lastSelected = _local3;
_local5.drawRow(_local5.item, getStateAt(_local3), transition);
} else if (Key.isDown(16) && (multipleSelection)) {
if (lastSelected == undefined) {
lastSelected = _local3;
}
var _local4 = ((lastSelected < _local3) ? 1 : -1);
clearSelected(false);
var _local2 = lastSelected;
while (_local2 != _local3) {
selectItem(_local2, true);
if ((_local2 >= __vPosition) && (_local2 < (__vPosition + __rowCount))) {
rows[_local2 - __vPosition].drawRow(rows[_local2 - __vPosition].item, "selected", false);
}
_local2 = _local2 + _local4;
}
selectItem(_local3, true);
_local5.drawRow(_local5.item, "selected", transition);
} else if (Key.isDown(17)) {
var _local7 = isSelected(_local3);
if ((!multipleSelection) || (wasKeySelected)) {
clearSelected(transition);
}
if (!((!multipleSelection) && (_local7))) {
selectItem(_local3, !_local7);
var _local9 = ((!_local7) ? "selected" : "normal");
_local5.drawRow(_local5.item, _local9, transition);
}
lastSelected = _local3;
}
if (allowChangeEvent) {
dispatchEvent({type:"change"});
}
delete wasKeySelected;
}
function dragScroll(Void) {
clearInterval(dragScrolling);
if (_ymouse < 0) {
setVPosition(__vPosition - 1);
selectRow(0, false);
var _local2 = Math.min((-_ymouse) - 30, 0);
scrollInterval = (((0.593 * _local2) * _local2) + 1) + minScrollInterval;
dragScrolling = setInterval(this, "dragScroll", scrollInterval);
dispatchEvent({type:"scroll", direction:"vertical", position:__vPosition});
} else if (_ymouse > __height) {
var _local3 = __vPosition;
setVPosition(__vPosition + 1);
if (_local3 != __vPosition) {
selectRow((__rowCount - 1) - roundUp, false);
}
var _local2 = Math.min((_ymouse - __height) - 30, 0);
scrollInterval = (((0.593 * _local2) * _local2) + 1) + minScrollInterval;
dragScrolling = setInterval(this, "dragScroll", scrollInterval);
dispatchEvent({type:"scroll", direction:"vertical", position:__vPosition});
} else {
dragScrolling = setInterval(this, "dragScroll", 15);
}
updateAfterEvent();
}
function __onMouseUp(Void) {
clearInterval(dragScrolling);
delete dragScrolling;
delete dragScrolling;
delete isPressed;
delete onMouseUp;
if (!selectable) {
return(undefined);
}
if (changeFlag) {
dispatchEvent({type:"change"});
}
delete changeFlag;
}
function moveSelBy(incr) {
if (!selectable) {
setVPosition(__vPosition + incr);
return(undefined);
}
var _local3 = getSelectedIndex();
if (_local3 == undefined) {
_local3 = -1;
}
var _local2 = _local3 + incr;
_local2 = Math.max(0, _local2);
_local2 = Math.min(getLength() - 1, _local2);
if (_local2 == _local3) {
return(undefined);
}
if ((_local3 < __vPosition) || (_local3 >= (__vPosition + __rowCount))) {
setVPosition(_local3);
}
if ((_local2 >= ((__vPosition + __rowCount) - roundUp)) || (_local2 < __vPosition)) {
setVPosition(__vPosition + incr);
}
wasKeySelected = true;
selectRow(_local2 - __vPosition, false);
}
function keyDown(e) {
if (selectable) {
if (findInputText()) {
return(undefined);
}
}
if (e.code == 40) {
moveSelBy(1);
} else if (e.code == 38) {
moveSelBy(-1);
} else if (e.code == 34) {
if (selectable) {
var _local3 = getSelectedIndex();
if (_local3 == undefined) {
_local3 = 0;
}
setVPosition(_local3);
}
moveSelBy((__rowCount - 1) - roundUp);
} else if (e.code == 33) {
if (selectable) {
var _local3 = getSelectedIndex();
if (_local3 == undefined) {
_local3 = 0;
}
setVPosition(_local3);
}
moveSelBy((1 - __rowCount) + roundUp);
} else if (e.code == 36) {
moveSelBy(-__dataProvider.length);
} else if (e.code == 35) {
moveSelBy(__dataProvider.length);
}
}
function findInputText(Void) {
var _local2 = Key.getAscii();
if ((_local2 >= 33) && (_local2 <= 126)) {
findString(String.fromCharCode(_local2));
return(true);
}
}
function findString(str) {
if (__dataProvider.length == 0) {
return(undefined);
}
var _local4 = getSelectedIndex();
if (_local4 == undefined) {
_local4 = 0;
}
var _local6 = 0;
var _local3 = _local4 + 1;
while (_local3 != _local4) {
var _local2 = __dataProvider.getItemAt(_local3);
if (_local2 instanceof XMLNode) {
_local2 = _local2.attributes[__labelField];
} else if (typeof(_local2) != "string") {
_local2 = String(_local2[__labelField]);
}
_local2 = _local2.substring(0, str.length);
if ((str == _local2) || (str.toUpperCase() == _local2.toUpperCase())) {
_local6 = _local3 - _local4;
break;
}
if (_local3 >= (getLength() - 1)) {
_local3 = -1;
}
_local3++;
}
if (_local6 != 0) {
moveSelBy(_local6);
}
}
function onRowPress(rowIndex) {
if (!enabled) {
return(undefined);
}
isPressed = true;
dragScrolling = setInterval(this, "dragScroll", 15);
onMouseUp = __onMouseUp;
if (!selectable) {
return(undefined);
}
selectRow(rowIndex);
}
function onRowRelease(rowIndex) {
}
function onRowRollOver(rowIndex) {
if (!enabled) {
return(undefined);
}
var _local2 = rows[rowIndex].item;
if (getStyle("useRollOver") && (_local2 != undefined)) {
rows[rowIndex].drawRow(_local2, "highlighted", false);
}
dispatchEvent({type:"itemRollOver", index:rowIndex + __vPosition});
}
function onRowRollOut(rowIndex) {
if (!enabled) {
return(undefined);
}
if (getStyle("useRollOver")) {
rows[rowIndex].drawRow(rows[rowIndex].item, getStateAt(rowIndex + __vPosition), false);
}
dispatchEvent({type:"itemRollOut", index:rowIndex + __vPosition});
}
function onRowDragOver(rowIndex) {
if (((!enabled) || (isPressed != true)) || (!selectable)) {
return(undefined);
}
if (dropEnabled) {
} else if (dragScrolling) {
selectRow(rowIndex, false);
} else {
onMouseUp = __onMouseUp;
onRowPress(rowIndex);
}
}
function onRowDragOut(rowIndex) {
if (!enabled) {
return(undefined);
}
if (dragEnabled) {
} else {
onRowRollOut(rowIndex);
}
}
function init(Void) {
super.init();
tabEnabled = true;
tabChildren = false;
if (__dataProvider == undefined) {
__dataProvider = new Array();
__dataProvider.addEventListener("modelChanged", this);
}
baseRowZ = (topRowZ = 10);
}
function createChildren(Void) {
super.createChildren();
listContent = createEmptyMovieClip("content_mc", CONTENTDEPTH);
invLayoutContent = true;
invalidate();
}
function draw(Void) {
if (invRowHeight) {
delete invRowHeight;
__rowCount = 0;
listContent.removeMovieClip();
listContent = createEmptyMovieClip("content_mc", CONTENTDEPTH);
}
if (invUpdateControl) {
updateControl();
}
border_mc.draw();
}
function invalidateStyle(propName) {
if (isRowStyle[propName]) {
invUpdateControl = true;
invalidate();
} else {
var _local3 = 0;
while (_local3 < __rowCount) {
rows[_local3].invalidateStyle(propName);
_local3++;
}
}
super.invalidateStyle(propName);
}
static var mixIt1 = mx.controls.listclasses.DataSelector.Initialize(mx.controls.listclasses.ScrollSelectList);
static var mixIt2 = mx.controls.listclasses.DataProvider.Initialize(Array);
var CONTENTDEPTH = 100;
var __hPosition = 0;
var __rowRenderer = "SelectableRow";
var __rowHeight = 22;
var __rowCount = 0;
var __labelField = "label";
var minScrollInterval = 30;
var dropEnabled = false;
var dragEnabled = false;
var className = "ScrollSelectList";
var isRowStyle = {styleName:true, backgroundColor:true, selectionColor:true, rollOverColor:true, selectionDisabledColor:true, backgroundDisabledColor:true, textColor:true, textSelectedColor:true, textRollOverColor:true, textDisabledColor:true, alternatingRowColors:true, defaultIcon:true};
var roundUp = 0;
var selectable = true;
var multipleSelection = false;
}
Symbol 570 MovieClip [__Packages.mx.controls.List] Frame 0
class mx.controls.List extends mx.controls.listclasses.ScrollSelectList
{
var border_mc, __labels, setDataProvider, roundUp, __get__rowCount, __dataProvider, __maxHPosition, invScrollProps, invalidate, __vPosition, getViewMetrics, setSize, __width, __rowHeight, totalWidth, totalHeight, displayWidth, __hScrollPolicy, vScroller, __hPosition, listContent, data, mask_mc, __height, __rowCount, invRowHeight, invLayoutContent, setScrollProperties, oldVWidth;
function List () {
super();
}
function setEnabled(v) {
super.setEnabled(v);
border_mc.backgroundColorName = (v ? "backgroundColor" : "backgroundDisabledColor");
border_mc.invalidate();
}
function get labels() {
return(__labels);
}
function set labels(lbls) {
__labels = lbls;
setDataProvider(lbls);
//return(labels);
}
function setVPosition(pos) {
pos = Math.min((__dataProvider.length - __get__rowCount()) + roundUp, pos);
pos = Math.max(0, pos);
super.setVPosition(pos);
}
function setHPosition(pos) {
pos = Math.max(Math.min(__maxHPosition, pos), 0);
super.setHPosition(pos);
hScroll(pos);
}
function setMaxHPosition(pos) {
__maxHPosition = pos;
invScrollProps = true;
invalidate();
}
function setHScrollPolicy(policy) {
if ((policy.toLowerCase() == "auto") && (!autoHScrollAble)) {
return(undefined);
}
super.setHScrollPolicy(policy);
if (policy == "off") {
setHPosition(0);
setVPosition(Math.min((__dataProvider.length - __get__rowCount()) + roundUp, __vPosition));
}
}
function setRowCount(rC) {
if (isNaN(rC)) {
return(undefined);
}
var _local2 = getViewMetrics();
setSize(__width, ((__rowHeight * rC) + _local2.top) + _local2.bottom);
}
function layoutContent(x, y, tW, tH, dW, dH) {
totalWidth = tW;
totalHeight = tH;
displayWidth = dW;
var _local4 = (((__hScrollPolicy == "on") || (__hScrollPolicy == "auto")) ? (Math.max(tW, dW)) : (dW));
super.layoutContent(x, y, _local4, dH);
}
function modelChanged(eventObj) {
super.modelChanged(eventObj);
var _local3 = eventObj.eventName;
if ((((_local3 == "addItems") || (_local3 == "removeItems")) || (_local3 == "updateAll")) || (_local3 == "filterModel")) {
invScrollProps = true;
invalidate("invScrollProps");
}
}
function onScroll(eventObj) {
var _local3 = eventObj.target;
if (_local3 == vScroller) {
setVPosition(_local3.scrollPosition);
} else {
hScroll(_local3.scrollPosition);
}
super.onScroll(eventObj);
}
function hScroll(pos) {
__hPosition = pos;
listContent._x = -pos;
}
function init(Void) {
super.init();
if (labels.length > 0) {
var _local6 = new Array();
var _local3 = 0;
while (_local3 < labels.length) {
_local6.addItem({label:labels[_local3], data:data[_local3]});
_local3++;
}
setDataProvider(_local6);
}
__maxHPosition = 0;
}
function createChildren(Void) {
super.createChildren();
listContent.setMask(mask_mc);
border_mc.move(0, 0);
border_mc.setSize(__width, __height);
}
function getRowCount(Void) {
var _local2 = getViewMetrics();
return(((__rowCount == 0) ? (Math.ceil(((__height - _local2.top) - _local2.bottom) / __rowHeight)) : (__rowCount)));
}
function size(Void) {
super.size();
configureScrolling();
var _local3 = getViewMetrics();
layoutContent(_local3.left, _local3.top, __width + __maxHPosition, totalHeight, (__width - _local3.left) - _local3.right, (__height - _local3.top) - _local3.bottom);
}
function draw(Void) {
if (invRowHeight) {
invScrollProps = true;
super.draw();
listContent.setMask(mask_mc);
invLayoutContent = true;
}
if (invScrollProps) {
configureScrolling();
delete invScrollProps;
}
if (invLayoutContent) {
var _local3 = getViewMetrics();
layoutContent(_local3.left, _local3.top, __width + __maxHPosition, totalHeight, (__width - _local3.left) - _local3.right, (__height - _local3.top) - _local3.bottom);
}
super.draw();
}
function configureScrolling(Void) {
var _local2 = __dataProvider.length;
if (__vPosition > Math.max(0, (_local2 - getRowCount()) + roundUp)) {
setVPosition(Math.max(0, Math.min((_local2 - getRowCount()) + roundUp, __vPosition)));
}
var _local3 = getViewMetrics();
var _local4 = ((__hScrollPolicy != "off") ? (((__maxHPosition + __width) - _local3.left) - _local3.right) : ((__width - _local3.left) - _local3.right));
if (_local2 == undefined) {
_local2 = 0;
}
setScrollProperties(_local4, 1, _local2, __rowHeight);
if (oldVWidth != _local4) {
invLayoutContent = true;
}
oldVWidth = _local4;
}
static var symbolOwner = mx.controls.List;
static var symbolName = "List";
var className = "List";
static var version = "2.0.2.126";
var clipParameters = {rowHeight:1, enabled:1, visible:1, labels:1};
var scrollDepth = 1;
var __vScrollPolicy = "on";
var autoHScrollAble = false;
}
Symbol 571 MovieClip [__Packages.mx.effects.Tween] Frame 0
class mx.effects.Tween extends Object
{
static var IntervalToken;
var arrayMode, listener, initVal, endVal, startTime, updateFunc, endFunc, ID;
function Tween (listenerObj, init, end, dur) {
super();
if (listenerObj == undefined) {
return;
}
if (typeof(init) != "number") {
arrayMode = true;
}
listener = listenerObj;
initVal = init;
endVal = end;
if (dur != undefined) {
duration = dur;
}
startTime = getTimer();
if (duration == 0) {
endTween();
} else {
AddTween(this);
}
}
static function AddTween(tween) {
tween.ID = ActiveTweens.length;
ActiveTweens.push(tween);
if (IntervalToken == undefined) {
Dispatcher.DispatchTweens = DispatchTweens;
IntervalToken = setInterval(Dispatcher, "DispatchTweens", Interval);
}
}
static function RemoveTweenAt(index) {
var _local2 = ActiveTweens;
if (((index >= _local2.length) || (index < 0)) || (index == undefined)) {
return(undefined);
}
_local2.splice(index, 1);
var _local4 = _local2.length;
var _local1 = index;
while (_local1 < _local4) {
_local2[_local1].ID--;
_local1++;
}
if (_local4 == 0) {
clearInterval(IntervalToken);
delete IntervalToken;
}
}
static function DispatchTweens(Void) {
var _local2 = ActiveTweens;
var _local3 = _local2.length;
var _local1 = 0;
while (_local1 < _local3) {
_local2[_local1].doInterval();
_local1++;
}
updateAfterEvent();
}
function doInterval() {
var _local2 = getTimer() - startTime;
var _local3 = getCurVal(_local2);
if (_local2 >= duration) {
endTween();
} else if (updateFunc != undefined) {
listener[updateFunc](_local3);
} else {
listener.onTweenUpdate(_local3);
}
}
function getCurVal(curTime) {
if (arrayMode) {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < initVal.length) {
_local3[_local2] = easingEquation(curTime, initVal[_local2], endVal[_local2] - initVal[_local2], duration);
_local2++;
}
return(_local3);
}
return(easingEquation(curTime, initVal, endVal - initVal, duration));
}
function endTween() {
if (endFunc != undefined) {
listener[endFunc](endVal);
} else {
listener.onTweenEnd(endVal);
}
RemoveTweenAt(ID);
}
function setTweenHandlers(update, end) {
updateFunc = update;
endFunc = end;
}
function easingEquation(t, b, c, d) {
return(((c / 2) * (Math.sin(Math.PI * ((t / d) - 0.5)) + 1)) + b);
}
static var ActiveTweens = new Array();
static var Interval = 10;
static var Dispatcher = new Object();
var duration = 3000;
}
Symbol 572 MovieClip [__Packages.mx.controls.listclasses.SelectableRow] Frame 0
class mx.controls.listclasses.SelectableRow extends mx.core.UIComponent
{
var __height, cell, owner, rowIndex, icon_mc, createObject, __width, backGround, highlight, highlightColor, createLabel, createClassObject, listOwner, tabEnabled, item, createEmptyMovieClip, drawRect, isChangedToSelected, bGTween, grandOwner;
function SelectableRow () {
super();
}
function setValue(itmObj, state) {
var _local7 = __height;
var _local2 = cell;
var _local5 = owner;
var _local8 = itemToString(itmObj);
if (_local2.getValue() != _local8) {
_local2.setValue(_local8, itmObj, state);
}
var _local4 = _local5.getPropertiesAt(rowIndex + _local5.__vPosition).icon;
if (_local4 == undefined) {
_local4 = _local5.__iconFunction(itmObj);
if (_local4 == undefined) {
_local4 = itmObj[_local5.__iconField];
if (_local4 == undefined) {
_local4 = _local5.getStyle("defaultIcon");
}
}
}
var _local3 = icon_mc;
if ((_local4 != undefined) && (itmObj != undefined)) {
_local3 = createObject(_local4, "icon_mc", 20);
_local3._x = 2;
_local3._y = (_local7 - _local3._height) / 2;
_local2._x = 4 + _local3._width;
} else {
_local3.removeMovieClip();
_local2._x = 2;
}
var _local9 = ((_local3 == undefined) ? 0 : (_local3._width));
_local2.setSize(__width - _local9, Math.min(_local7, _local2.getPreferredHeight()));
_local2._y = (_local7 - _local2._height) / 2;
}
function size(Void) {
var _local3 = backGround;
var _local2 = cell;
var _local4 = __height;
var _local5 = __width;
var _local6 = ((icon_mc == undefined) ? 0 : (icon_mc._width));
_local2.setSize(_local5 - _local6, Math.min(_local4, _local2.getPreferredHeight()));
_local2._y = (_local4 - _local2._height) / 2;
icon_mc._y = (_local4 - icon_mc._height) / 2;
_local3._x = 0;
_local3._width = _local5;
_local3._height = _local4;
drawRowFill(_local3, normalColor);
drawRowFill(highlight, highlightColor);
}
function setCellRenderer(forceSizing) {
var _local3 = owner.__cellRenderer;
var _local4;
if (cell != undefined) {
_local4 = cell._x;
cell.removeMovieClip();
cell.removeTextField();
}
var _local2;
if (_local3 == undefined) {
_local2 = (cell = createLabel("cll", 0, {styleName:this}));
_local2.styleName = owner;
_local2.selectable = false;
_local2.tabEnabled = false;
_local2.background = false;
_local2.border = false;
} else if (typeof(_local3) == "string") {
_local2 = (cell = createObject(_local3, "cll", 0, {styleName:this}));
} else {
_local2 = (cell = createClassObject(_local3, "cll", 0, {styleName:this}));
}
_local2.owner = this;
_local2.listOwner = owner;
_local2.getCellIndex = getCellIndex;
_local2.getDataLabel = getDataLabel;
if (_local4 != undefined) {
_local2._x = _local4;
}
if (forceSizing) {
size();
}
}
function getCellIndex(Void) {
return({columnIndex:0, itemIndex:owner.rowIndex + listOwner.__vPosition});
}
function getDataLabel() {
return(listOwner.labelField);
}
function init(Void) {
super.init();
tabEnabled = false;
}
function createChildren(Void) {
setCellRenderer(false);
setupBG();
setState(state, false);
}
function drawRow(itmObj, state, transition) {
item = itmObj;
setState(state, transition);
setValue(itmObj, state, transition);
}
function itemToString(itmObj) {
if (itmObj == undefined) {
return(" ");
}
var _local2 = owner.__labelFunction(itmObj);
if (_local2 == undefined) {
_local2 = ((itmObj instanceof XMLNode) ? (itmObj.attributes[owner.__labelField]) : (itmObj[owner.__labelField]));
if (_local2 == undefined) {
_local2 = " ";
if (typeof(itmObj) == "object") {
for (var _local4 in itmObj) {
if (_local4 != "__ID__") {
_local2 = (itmObj[_local4] + ", ") + _local2;
}
}
_local2 = _local2.substring(0, _local2.length - 2);
} else {
_local2 = itmObj;
}
}
}
return(_local2);
}
function setupBG(Void) {
var _local2 = (backGround = createEmptyMovieClip("bG_mc", LOWEST_DEPTH));
drawRowFill(_local2, normalColor);
highlight = createEmptyMovieClip("tran_mc", LOWEST_DEPTH + 10);
_local2.owner = this;
_local2.grandOwner = owner;
_local2.onPress = bGOnPress;
_local2.onRelease = bGOnRelease;
_local2.onRollOver = bGOnRollOver;
_local2.onRollOut = bGOnRollOut;
_local2.onDragOver = bGOnDragOver;
_local2.onDragOut = bGOnDragOut;
_local2.useHandCursor = false;
_local2.trackAsMenu = true;
_local2.drawRect = drawRect;
highlight.drawRect = drawRect;
}
function drawRowFill(mc, newClr) {
mc.clear();
mc.beginFill(newClr);
mc.drawRect(1, 0, __width, __height);
mc.endFill();
mc._width = __width;
mc._height = __height;
}
function setState(newState, transition) {
var _local2 = highlight;
var _local8 = backGround;
var _local4 = __height;
var _local3 = owner;
if (!_local3.enabled) {
if ((newState == "selected") || (state == "selected")) {
highlightColor = _local3.getStyle("selectionDisabledColor");
drawRowFill(_local2, highlightColor);
_local2._visible = true;
_local2._y = 0;
_local2._height = _local4;
} else {
_local2._visible = false;
normalColor = _local3.getStyle("backgroundDisabledColor");
drawRowFill(_local8, normalColor);
}
cell.__enabled = false;
cell.setColor(_local3.getStyle("disabledColor"));
} else {
cell.__enabled = true;
if (transition && ((newState == state) || ((newState == "highlighted") && (state == "selected")))) {
isChangedToSelected = true;
return(undefined);
}
var _local6 = _local3.getStyle("selectionDuration");
var _local7 = 0;
if (isChangedToSelected && (newState == "selected")) {
transition = false;
}
var _local10 = transition && (_local6 != 0);
if (newState == "normal") {
_local7 = _local3.getStyle("color");
normalColor = getNormalColor();
drawRowFill(_local8, normalColor);
if (_local10) {
_local6 = _local6 / 2;
_local2._height = _local4;
_local2._width = __width;
_local2._y = 0;
bGTween = new mx.effects.Tween(this, _local4 + 2, _local4 * 0.2, _local6, 5);
} else {
_local2._visible = false;
}
delete isChangedToSelected;
} else {
highlightColor = _local3.getStyle(((newState == "highlighted") ? "rollOverColor" : "selectionColor"));
drawRowFill(_local2, highlightColor);
_local2._visible = true;
_local7 = _local3.getStyle(((newState == "highlighted") ? "textRollOverColor" : "textSelectedColor"));
if (_local10) {
_local2._height = _local4 * 0.5;
_local2._y = (_local4 - _local2._height) / 2;
bGTween = new mx.effects.Tween(this, _local2._height, _local4 + 2, _local6, 5);
var _local9 = _local3.getStyle("selectionEasing");
if (_local9 != undefined) {
bGTween.easingEquation = _local9;
}
} else {
_local2._y = 0;
_local2._height = _local4;
}
}
cell.setColor(_local7);
}
state = newState;
}
function onTweenUpdate(val) {
highlight._height = val;
highlight._y = (__height - val) / 2;
}
function onTweenEnd(val) {
onTweenUpdate(val);
highlight._visible = state != "normal";
}
function getNormalColor(Void) {
var _local3;
var _local2 = owner;
if (!owner.enabled) {
_local3 = _local2.getStyle("backgroundDisabledColor");
} else {
var _local5 = rowIndex + _local2.__vPosition;
if (rowIndex == undefined) {
_local3 = _local2.getPropertiesOf(item).backgroundColor;
} else {
_local3 = _local2.getPropertiesAt(_local5).backgroundColor;
}
if (_local3 == undefined) {
var _local4 = _local2.getStyle("alternatingRowColors");
if (_local4 == undefined) {
_local3 = _local2.getStyle("backgroundColor");
} else {
_local3 = _local4[_local5 % _local4.length];
}
}
}
return(_local3);
}
function invalidateStyle(propName) {
cell.invalidateStyle(propName);
super.invalidateStyle(propName);
}
function bGOnPress(Void) {
grandOwner.pressFocus();
grandOwner.onRowPress(owner.rowIndex);
}
function bGOnRelease(Void) {
grandOwner.releaseFocus();
grandOwner.onRowRelease(owner.rowIndex);
}
function bGOnRollOver(Void) {
grandOwner.onRowRollOver(owner.rowIndex);
}
function bGOnRollOut(Void) {
grandOwner.onRowRollOut(owner.rowIndex);
}
function bGOnDragOver(Void) {
grandOwner.onRowDragOver(owner.rowIndex);
}
function bGOnDragOut(Void) {
grandOwner.onRowDragOut(owner.rowIndex);
}
static var LOWEST_DEPTH = -16384;
var state = "normal";
var disabledColor = 15263976;
var normalColor = 16777215;
}
Symbol 573 MovieClip [__Packages.mx.controls.CheckBox] Frame 0
class mx.controls.CheckBox extends mx.controls.Button
{
var _getTextFormat, labelPath, iconName;
function CheckBox () {
super();
}
function onRelease() {
super.onRelease();
}
function init() {
super.init();
}
function size() {
super.size();
}
function get emphasized() {
return(undefined);
}
function calcPreferredHeight() {
var _local5 = _getTextFormat();
var _local3 = _local5.getTextExtent2(labelPath.text).height;
var _local4 = iconName._height;
var _local2 = 0;
if ((__labelPlacement == "left") || (__labelPlacement == "right")) {
_local2 = Math.max(_local3, _local4);
} else {
_local2 = _local3 + _local4;
}
return(Math.max(14, _local2));
}
function set toggle(v) {
//return(toggle);
}
function get toggle() {
}
function set icon(v) {
//return(icon);
}
function get icon() {
}
static var symbolName = "CheckBox";
static var symbolOwner = mx.controls.CheckBox;
static var version = "2.0.2.126";
var className = "CheckBox";
var ignoreClassStyleDeclaration = {Button:1};
var btnOffset = 0;
var __toggle = true;
var __selected = false;
var __labelPlacement = "right";
var __label = "CheckBox";
var falseUpSkin = "";
var falseDownSkin = "";
var falseOverSkin = "";
var falseDisabledSkin = "";
var trueUpSkin = "";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "";
var falseUpIcon = "CheckFalseUp";
var falseDownIcon = "CheckFalseDown";
var falseOverIcon = "CheckFalseOver";
var falseDisabledIcon = "CheckFalseDisabled";
var trueUpIcon = "CheckTrueUp";
var trueDownIcon = "CheckTrueDown";
var trueOverIcon = "CheckTrueOver";
var trueDisabledIcon = "CheckTrueDisabled";
var clipParameters = {label:1, labelPlacement:1, selected:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.CheckBox.prototype.clipParameters, mx.controls.Button.prototype.clipParameters);
var centerContent = false;
var borderW = 0;
}
Symbol 590 MovieClip [__Packages.mx.controls.UIScrollBar] Frame 0
class mx.controls.UIScrollBar extends mx.controls.scrollClasses.ScrollBar
{
var textField, wasHorizontal, __width, __height, _parent, synchScroll, setScrollProperties, __set__scrollPosition, initializing, _rotation, _xscale, hScroller, vScroller, onChanged, onScroller, scrollPosition, dispatchEvent;
function UIScrollBar () {
super();
}
function init(Void) {
super.init();
textField.owner = this;
horizontal = (wasHorizontal);
if (horizontal) {
((textField != undefined) ? (super.setSize(textField._width, 16)) : (super.setSize(__width, __height)));
} else {
((textField != undefined) ? (super.setSize(16, textField._height)) : (super.setSize(__width, __height)));
}
if (horizontal) {
var _local3 = __width;
__height = __width;
width = _local3;
__width = 16;
}
textField.onScroller = function () {
this.hPosition = this.hscroll;
this.vPosition = this.scroll - 1;
};
if (_targetInstanceName != undefined) {
setScrollTarget(_targetInstanceName);
_targetInstanceName.addListener(this);
}
}
function get _targetInstanceName() {
return(textField);
}
function get height() {
if (wasHorizontal) {
return(__width);
}
return(__height);
}
function get width() {
if (wasHorizontal) {
return(__height);
}
return(__width);
}
function size(Void) {
super.size();
onTextChanged();
}
function draw() {
super.draw();
}
function set _targetInstanceName(t) {
if (t == undefined) {
textField.removeListener(this);
delete textField[(horizontal ? "hScroller" : "vScroller")];
if ((textField.hScroller != undefined) && (textField.vScroller != undefined)) {
textField.unwatch("text");
textField.unwatch("htmltext");
}
}
var _local3 = _parent[t];
textField = _parent[t];
onTextChanged();
//return(_targetInstanceName);
}
function setSize(w, h) {
if (horizontal) {
super.setSize(h, w);
} else {
super.setSize(w, h);
}
}
function onTextChanged(Void) {
if (textField == undefined) {
return(undefined);
}
clearInterval(synchScroll);
if (horizontal) {
var _local2 = textField.hscroll;
setScrollProperties(textField._width, 0, textField.maxhscroll);
__set__scrollPosition(Math.min(_local2, textField.maxhscroll));
} else {
var _local2 = textField.scroll;
var _local3 = textField.bottomScroll - textField.scroll;
setScrollProperties(_local3, 1, textField.maxscroll);
__set__scrollPosition(Math.min(_local2, textField.maxscroll));
}
}
function get horizontal() {
return(wasHorizontal);
}
function set horizontal(v) {
wasHorizontal = v;
if (v and initializing) {
if (_rotation == 90) {
return;
}
_xscale = -100;
_rotation = -90;
}
if (!initializing) {
if (v) {
if (_rotation == 0) {
_rotation = -90;
_xscale = -100;
}
} else if (_rotation == -90) {
_rotation = 0;
_xscale = 100;
}
}
//return(horizontal);
}
function callback(prop, oldval, newval) {
clearInterval(hScroller.synchScroll);
clearInterval(vScroller.synchScroll);
hScroller.synchScroll = setInterval(hScroller, "onTextChanged", 50);
vScroller.synchScroll = setInterval(vScroller, "onTextChanged", 50);
return(newval);
}
function setScrollTarget(tF) {
if (tF == undefined) {
textField.removeListener(this);
delete textField[(horizontal ? "hScroller" : "vScroller")];
if ((textField.hScroller != undefined) && (textField.vScroller != undefined)) {
textField.unwatch("text");
textField.unwatch("htmltext");
}
}
textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
textField = tF;
if (horizontal) {
textField.hScroller = this;
textField.hScroller.lineScrollSize = 5;
} else {
textField.vScroller = this;
textField.vScroller.lineScrollSize = 1;
}
onTextChanged();
onChanged = function (Void) {
this.onTextChanged();
};
onScroller = function (Void) {
if (!this.isScrolling) {
if (!this.horizontal) {
this.scrollPosition = this.textField.scroll;
} else {
this.scrollPosition = this.textField.hscroll;
}
}
};
textField.addListener(this);
textField.watch("text", callback);
textField.watch("htmlText", callback);
}
function scrollHandler(Void) {
if (horizontal) {
var _local2 = textField.background;
textField.hscroll = scrollPosition;
textField.background = _local2;
} else {
textField.scroll = scrollPosition;
}
}
function setEnabled(enable) {
super.setEnabled(enable);
if (enable) {
textField.addListener(this);
} else {
textField.removeListener();
}
}
function dispatchScrollEvent(detail) {
dispatchEvent({type:"scroll"});
}
static var symbolName = "UIScrollBar";
static var symbolOwner = mx.controls.UIScrollBar;
var className = "UIScrollBar";
var clipParameters = {_targetInstanceName:1, horizontal:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.UIScrollBar.prototype.clipParameters);
static var version = "2.0.2.126";
}
Symbol 592 MovieClip [__Packages.mx.controls.RadioButton] Frame 0
class mx.controls.RadioButton extends mx.controls.Button
{
var setToggle, __value, selected, releaseFocus, phase, dispatchEvent, _parent, __data, setState, __state, getFocusManager;
function RadioButton () {
super();
}
function init(Void) {
setToggle(__toggle);
__value = this;
super.init();
}
function size(Void) {
super.size();
}
function onRelease() {
if (selected) {
return(undefined);
}
releaseFocus();
phase = "up";
setSelected(true);
dispatchEvent({type:"click"});
_parent[__groupName].dispatchEvent({type:"click"});
}
function setData(val) {
__data = val;
}
function set data(val) {
__data = val;
//return(data);
}
function getData(val) {
return(__data);
}
function get data() {
return(__data);
}
function onUnload() {
if (_parent[__groupName].selectedRadio == this) {
_parent[__groupName].selectedRadio = undefined;
}
_parent[__groupName].radioList[indexNumber] = null;
delete _parent[__groupName].radioList[indexNumber];
}
function setSelected(val) {
var _local2 = _parent[__groupName];
var _local4 = _local2.selectedRadio.__width;
var _local5 = _local2.selectedRadio.__height;
if (val) {
_local2.selectedRadio.setState(false);
_local2.selectedRadio = this;
} else if (_local2.selectedRadio == this) {
_local2.selectedRadio.setState(false);
_local2.selectedRadio = undefined;
}
setState(val);
}
function deleteGroupObj(groupName) {
delete _parent[groupName];
}
function getGroupName() {
return(__groupName);
}
function get groupName() {
return(__groupName);
}
function setGroupName(groupName) {
if ((groupName == undefined) || (groupName == "")) {
return(undefined);
}
delete _parent[__groupName].radioList[__data];
addToGroup(groupName);
__groupName = groupName;
}
function set groupName(groupName) {
setGroupName(groupName);
//return(this.groupName);
}
function addToGroup(groupName) {
if ((groupName == "") || (groupName == undefined)) {
return(undefined);
}
var _local2 = _parent[groupName];
if (_local2 == undefined) {
_local2 = (_parent[groupName] = new mx.controls.RadioButtonGroup());
_local2.__groupName = groupName;
}
_local2.addInstance(this);
if (__state) {
_local2.selectedRadio.setState(false);
_local2.selectedRadio = this;
}
}
function get emphasized() {
return(undefined);
}
function keyDown(e) {
switch (e.code) {
case 40 :
setNext();
break;
case 38 :
setPrev();
break;
case 37 :
setPrev();
break;
case 39 :
setNext();
}
}
function setNext() {
var _local2 = _parent[groupName];
if ((_local2.selectedRadio.indexNumber + 1) == _local2.radioList.length) {
return(undefined);
}
var _local4 = (_local2.selectedRadio ? (_local2.selectedRadio.indexNumber) : -1);
var _local3 = 1;
while (_local3 < _local2.radioList.length) {
if ((_local2.radioList[_local4 + _local3] != undefined) && (_local2.radioList[_local4 + _local3].enabled)) {
var _local5 = getFocusManager();
_local2.radioList[_local4 + _local3].selected = true;
_local5.setFocus(_local2.radioList[_local2.selectedRadio.indexNumber]);
_local2.dispatchEvent({type:"click"});
break;
}
_local3++;
}
}
function setPrev() {
var _local2 = _parent[groupName];
if (_local2.selectedRadio.indexNumber == 0) {
return(undefined);
}
var _local4 = (_local2.selectedRadio ? (_local2.selectedRadio.indexNumber) : 1);
var _local3 = 1;
while (_local3 < _local2.radioList.length) {
if ((_local2.radioList[_local4 - _local3] != undefined) && (_local2.radioList[_local4 - _local3].enabled)) {
var _local5 = getFocusManager();
_local2.radioList[_local4 - _local3].selected = true;
_local5.setFocus(_local2.radioList[_local2.selectedRadio.indexNumber]);
_local2.dispatchEvent({type:"click"});
break;
}
_local3++;
}
}
function set toggle(v) {
//return(toggle);
}
function get toggle() {
}
function set icon(v) {
//return(icon);
}
function get icon() {
}
static var symbolName = "RadioButton";
static var symbolOwner = mx.controls.RadioButton;
static var version = "2.0.2.126";
var className = "RadioButton";
var btnOffset = 0;
var __toggle = true;
var __label = "Radio Button";
var __labelPlacement = "right";
var ignoreClassStyleDeclaration = {Button:1};
var __groupName = "radioGroup";
var indexNumber = 0;
var offset = false;
var falseUpSkin = "";
var falseDownSkin = "";
var falseOverSkin = "";
var falseDisabledSkin = "";
var trueUpSkin = "";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "";
var falseUpIcon = "RadioFalseUp";
var falseDownIcon = "RadioFalseDown";
var falseOverIcon = "RadioFalseOver";
var falseDisabledIcon = "RadioFalseDisabled";
var trueUpIcon = "RadioTrueUp";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "RadioTrueDisabled";
var centerContent = false;
var borderW = 0;
var clipParameters = {labelPlacement:1, data:1, label:1, groupName:1, selected:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.RadioButton.prototype.clipParameters, mx.controls.Button.prototype.clipParameters);
}
Symbol 609 MovieClip [__Packages.mx.controls.RadioButtonGroup] Frame 0
class mx.controls.RadioButtonGroup
{
var radioList, __groupName, selectedRadio;
function RadioButtonGroup () {
init();
mx.events.UIEventDispatcher.initialize(this);
}
function init(Void) {
radioList = new Array();
}
function setGroupName(groupName) {
if ((groupName == undefined) || (groupName == "")) {
return(undefined);
}
var _local6 = __groupName;
_parent[groupName] = this;
for (var _local5 in radioList) {
radioList[_local5].groupName = groupName;
var _local3 = radioList[_local5];
}
_local3.deleteGroupObj(_local6);
}
function getGroupName() {
return(__groupName);
}
function addInstance(instance) {
instance.indexNumber = indexNumber++;
radioList.push(instance);
}
function getValue() {
if (selectedRadio.data == "") {
return(selectedRadio.label);
}
return(selectedRadio.__data);
}
function getLabelPlacement() {
for (var _local3 in radioList) {
var _local2 = radioList[_local3].getLabelPlacement();
}
return(_local2);
}
function setLabelPlacement(pos) {
for (var _local3 in radioList) {
radioList[_local3].setLabelPlacement(pos);
}
}
function setEnabled(val) {
for (var _local3 in radioList) {
radioList[_local3].enabled = val;
}
}
function setSize(val, val1) {
for (var _local3 in radioList) {
radioList[_local3].setSize(val, val1);
}
}
function getEnabled() {
for (var _local4 in radioList) {
var _local2 = radioList[_local4].enabled;
var _local3 = t + (_local2 + 0);
}
if (_local3 == radioList.length) {
return(true);
}
if (_local3 == 0) {
return(false);
}
}
function setStyle(name, val) {
for (var _local4 in radioList) {
radioList[_local4].setStyle(name, val);
}
}
function setInstance(val) {
for (var _local3 in radioList) {
if (radioList[_local3] == val) {
radioList[_local3].selected = true;
}
}
}
function getInstance() {
return(selectedRadio);
}
function setValue(val) {
for (var _local4 in radioList) {
if ((radioList[_local4].__data == val) || (radioList[_local4].label == val)) {
var _local2 = _local4;
break;
}
}
if (_local2 != undefined) {
selectedRadio.setState(false);
selectedRadio.hitArea_mc._height = selectedRadio.__height;
selectedRadio.hitArea_mc._width = selectedRadio.__width;
selectedRadio = radioList[_local2];
selectedRadio.setState(true);
selectedRadio.hitArea_mc._height = (selectedRadio.hitArea_mc._width = 0);
}
}
function set groupName(groupName) {
if ((groupName == undefined) || (groupName == "")) {
return;
}
var _local6 = __groupName;
_parent[groupName] = this;
for (var _local5 in radioList) {
radioList[_local5].groupName = groupName;
var _local3 = radioList[_local5];
}
_local3.deleteGroupObj(_local6);
//return(this.groupName);
}
function get groupName() {
return(__groupName);
}
function set selectedData(val) {
for (var _local4 in radioList) {
if ((radioList[_local4].__data == val) || (radioList[_local4].label == val)) {
var _local2 = _local4;
break;
}
}
if (_local2 != undefined) {
selectedRadio.setState(false);
selectedRadio = radioList[_local2];
selectedRadio.setState(true);
}
//return(selectedData);
}
function get selectedData() {
if ((selectedRadio.data == "") || (selectedRadio.data == undefined)) {
return(selectedRadio.label);
}
return(selectedRadio.__data);
}
function get selection() {
return(selectedRadio);
}
function set selection(val) {
for (var _local3 in radioList) {
if (radioList[_local3] == val) {
radioList[_local3].selected = true;
}
}
//return(selection);
}
function set labelPlacement(pos) {
for (var _local3 in radioList) {
radioList[_local3].setLabelPlacement(pos);
}
//return(labelPlacement);
}
function get labelPlacement() {
for (var _local3 in radioList) {
var _local2 = radioList[_local3].getLabelPlacement();
}
return(_local2);
}
function set enabled(val) {
for (var _local3 in radioList) {
radioList[_local3].enabled = val;
}
//return(enabled);
}
function get enabled() {
var _local2 = 0;
for (var _local3 in radioList) {
_local2 = _local2 + radioList[_local3].enabled;
}
if (_local2 == 0) {
return(false);
}
if (_local2 == radioList.length) {
return(true);
}
}
static var symbolName = "RadioButtonGroup";
static var symbolOwner = mx.controls.RadioButtonGroup;
static var version = "2.0.2.126";
var className = "RadioButtonGroup";
var indexNumber = 0;
}
Symbol 622 MovieClip Frame 80
stopAllSounds();
Symbol 635 MovieClip Frame 79
stopAllSounds();
_root.sound.unloadMovie();
Symbol 635 MovieClip Frame 80
_root.gotoAndStop(4);
Symbol 635 MovieClip Frame 81
stopAllSounds();
Symbol 681 Button
on (release) {
_root.gotoAndStop(4);
_root.line.unloadMovie();
_root.eraser.unloadMovie();
_root.pbrush._visible = false;
Mouse.show();
_root.holder.visible = false;
_root.snap._visible = false;
_root.video_vobj.unloadMovie();
}
Symbol 687 Button
on (release) {
_root.gotoAndPlay(5);
}
Symbol 689 Button
on (release) {
gotoAndPlay (6);
}
Symbol 693 Button
on (release) {
gotoAndPlay (7);
}
Symbol 696 Button
on (release) {
gotoAndPlay (8);
}
Symbol 698 Button
on (release) {
getURL ("http://www.newgrounds.com/portal/view/434373", _blank);
}
Symbol 700 Button
on (release) {
getURL ("http://www.newgrounds.com/portal/view/425857", _blank);
}
Symbol 702 Button
on (release) {
gotoAndPlay (9);
}
Symbol 704 Button
on (release) {
gotoAndPlay (19);
}
Symbol 706 Button
on (release) {
gotoAndPlay (11);
}
Symbol 709 Button
on (release) {
gotoAndPlay (10);
}
Symbol 711 Button
on (release) {
gotoAndPlay (18);
}
Symbol 714 Button
on (release) {
gotoAndPlay (22);
}
Symbol 737 Button
on (release) {
gotoAndPlay (23);
}
Symbol 739 Button
on (release) {
getURL ("http://www.newgrounds.com/portal/view/437264", "_blank");
}
Symbol 759 MovieClip Frame 1
stop();
Symbol 759 MovieClip Frame 2
stop();
Symbol 759 MovieClip Frame 3
stop();
Symbol 759 MovieClip Frame 4
stop();
Symbol 759 MovieClip Frame 5
stop();
Symbol 759 MovieClip Frame 6
stop();
Symbol 778 MovieClip Frame 1
stop();
Symbol 778 MovieClip Frame 2
stop();
Symbol 778 MovieClip Frame 3
stop();
Symbol 794 MovieClip Frame 1
stop();
Symbol 794 MovieClip Frame 2
stop();
Symbol 794 MovieClip Frame 3
stop();
Symbol 818 Button
on (press) {
var savefile2 = SharedObject.getLocal("webgadget2");
_root.textbox = savefile2.data.textbox;
}
Symbol 820 Button
on (press) {
savefile2.data.textbox = _root.textbox;
savefile2.flush();
}
Symbol 825 Button
on (release) {
textbox = "";
}
Symbol 830 Button
on (release) {
AddDigit("1");
}
Symbol 832 Button
on (release) {
AddDigit("2");
}
Symbol 834 Button
on (release) {
AddDigit("3");
}
Symbol 836 Button
on (release) {
AddDigit("4");
}
Symbol 838 Button
on (release) {
AddDigit("5");
}
Symbol 840 Button
on (release) {
AddDigit("6");
}
Symbol 842 Button
on (release) {
AddDigit("7");
}
Symbol 844 Button
on (release) {
AddDigit("8");
}
Symbol 846 Button
on (release) {
AddDigit("9");
}
Symbol 848 Button
on (release) {
AddDigit("0");
}
Symbol 852 Button
on (release) {
if (!decimal) {
AddDigit(".");
decimal = true;
}
}
Symbol 854 Button
on (release) {
DoOperator();
}
Symbol 856 Button
on (release) {
DoOperator("/");
}
Symbol 858 Button
on (release) {
DoOperator("*");
}
Symbol 860 Button
on (release) {
DoOperator("-");
}
Symbol 862 Button
on (release) {
DoOperator("+");
}
Symbol 865 Button
on (release) {
memory = memory + Number(display);
}
Symbol 867 Button
on (release) {
display = memory;
memory = 0;
clear = true;
}
Symbol 869 Button
on (release) {
display = "0";
decimal = false;
}
Symbol 871 Button
on (release) {
operand1 = false;
display = "0";
operator = "";
clear = false;
decimal = false;
}
Symbol 877 Button
on (release) {
stopDrag();
_root.pbrush._visible = true;
_root.eraser._visible = false;
_root.pbrush.startDrag(true);
Mouse.hide();
_root.createEmptyMovieClip("line", _root.getNextHighestDepth());
movieClip.lineStyle(5, 0, 100);
line.lineStyle(5, 16777215, 100);
this.onMouseDown = function () {
drawing = true;
};
this.onMouseUp = function () {
drawing = false;
};
this.onEnterFrame = function () {
if (!drawing) {
this.line.moveTo(_xmouse, _ymouse);
}
if (drawing) {
this.line.lineTo(_xmouse, _ymouse);
}
};
}
Symbol 881 Button
on (release) {
stopDrag();
_root.pbrush._visible = false;
_root.eraser._visible = true;
_root.eraser.startDrag(true);
Mouse.hide();
_root.createEmptyMovieClip("eraser", _root.getNextHighestDepth());
movieClip.lineStyle(10, 0, 100);
line.lineStyle(10, 0, 100);
this.onMouseDown = function () {
drawing = true;
};
this.onMouseUp = function () {
drawing = false;
};
this.onEnterFrame = function () {
if (!drawing) {
this.line.moveTo(_xmouse, _ymouse);
}
if (drawing) {
this.line.lineTo(_xmouse, _ymouse);
}
};
}
Symbol 886 Button
on (release) {
stopDrag();
_root.pbrush._visible = false;
_root.eraser._visible = false;
_root.eraser.stopDrag();
_root.pbrush.stopDrag();
_root.createEmptyMovieClip("eraser", _root.getNextHighestDepth());
movieClip.lineStyle(10, 0, 0);
line.lineStyle(10, 0, 0);
this.onMouseDown = function () {
drawing = true;
};
this.onMouseUp = function () {
drawing = false;
};
this.onEnterFrame = function () {
if (!drawing) {
this.line.moveTo(_xmouse, _ymouse);
}
if (drawing) {
this.line.lineTo(_xmouse, _ymouse);
}
};
Mouse.show();
}
Symbol 914 MovieClip Frame 1
stop();
Symbol 919 Button
on (release) {
gotoAndPlay (17);
}
Symbol 921 Button
on (release) {
gotoAndPlay (16);
}
Symbol 923 Button
on (release) {
gotoAndPlay (15);
}
Symbol 925 Button
on (release) {
gotoAndPlay (14);
}
Symbol 927 Button
on (release) {
gotoAndPlay (12);
}
Symbol 929 Button
on (release) {
gotoAndPlay (13);
}
Symbol 932 Button
on (release) {
gotoAndPlay (24);
}
Symbol 982 Button
on (release) {
this._visible = eval (false)();
}
Symbol 1004 Button
on (release) {
gotoAndPlay (21);
}
Symbol 1009 Button
on (release) {
gotoAndPlay (20);
}
Symbol 1018 Button
on (press) {
stopAllSounds();
}
Symbol 1024 Button
on (press) {
stopAllSounds();
}
Symbol 1028 Button
on (release) {
getURL ("http://www.newgrounds.com/portal/view/413153", "_blank");
}
Symbol 1032 Button
on (release) {
getURL ("http://www.newgrounds.com/portal/view/412074", "_blank");
}
Symbol 1034 Button
on (release) {
getURL ("http://www.newgrounds.com/portal/view/405930", "_blank");
}
Symbol 1038 Button
on (release) {
getURL ("http://www.newgrounds.com/portal/view/413587", "_blank");
}
Symbol 1042 Button
on (release) {
getURL ("http://www.newgrounds.com/portal/view/424580", "_blank");
}
Symbol 1046 Button
on (release) {
getURL ("http://www.newgrounds.com/portal/view/425857", "_blank");
}
Symbol 1050 Button
on (release) {
getURL ("http://www.newgrounds.com/portal/view/425937", "_blank");
}
Symbol 1054 Button
on (release) {
getURL ("http://www.newgrounds.com/portal/view/413743", "_blank");
}
Symbol 1058 Button
on (release) {
getURL ("http://www.newgrounds.com/portal/view/407991", "_blank");
}
Symbol 1062 Button
on (release) {
getURL ("http://www.newgrounds.com/portal/view/437264", "_blank");
}
Symbol 1066 Button
on (release) {
getURL ("http://www.newgrounds.com/portal/view/432437", "_blank");
}
Symbol 1068 Button
on (release) {
getURL ("http://www.newgrounds.com/portal/view/406058", "_blank");
}
Symbol 1073 Button
on (release) {
getURL ("http://www.newgrounds.com/portal/view/434373", "_blank");
}
Symbol 1077 Button
on (release) {
getURL ("http://www.newgrounds.com/portal/view/431710", "_blank");
}
Symbol 1079 Button
on (release) {
getURL ("http://www.newgrounds.com/portal/view/406057", "_blank");
}
Symbol 1081 Button
on (release) {
getURL ("http://www.newgrounds.com/portal/view/410030", "_blank");
}
Symbol 1085 Button
on (release) {
getURL ("http://www.newgrounds.com/portal/view/405931", "_blank");
}
Symbol 1089 Button
on (release) {
getURL ("http://www.newgrounds.com/portal/view/437648", "_blank");
}
Symbol 1095 Button
on (release) {
getURL ("http://maps.yahooapis.com/v3.5.2/fl/components.zip", "_blank");
}
Symbol 1098 Button
on (release) {
getURL ("http://developer.yahoo.com/maps/flash/asGettingStarted.html", "_blank");
}
Symbol 1103 Button
on (release) {
getURL ("http://www.afcomponents.com/components/g_map/", "_blank");
}