flash on 2011-10-15
/**
* Copyright siebe.jongebloed ( http://wonderfl.net/user/siebe.jongebloed )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/7Y9g
*/
package embedPano_fla {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class MainTimeline extends movieclip {
public var tooltipOffsetIndex:number;
public var setMovieclips:boolean;
public var xml_1:xml;
public var loader:Loader;
public var alphaPlus:number;
public var alphaMin:number;
public var animationTimer:Timer;
public var documentHeight:number;
public var addObjectMapHs:array;
public var border:movieclip;
public var panoId:number;
public var mySHeight;
public var loadObj:array;
public var addMessage:boolean;
public var yOff:number;
public var Px:number;
public var Py:number;
public var flashVars:object;
public var fov_mc;
public var speed:number;
public var videoLoaded:boolean;
public var useMap:boolean;
public var txt:textfield;
public var panorama:movieclip;
public var useFormat:array;
public var zoomOut:string;
public var useVolumeMenu:boolean;
public var fovPan:number;
public var tooltipOffset:array;
public var panoYOffset:number;
public var checkPano:number;
public var useFullscreen:boolean;
public var currentYoffset:number;
public var showSpots:string;
public var addObjectMapBtn:array;
public var menuIsSet:boolean;
public var useMenuFS:boolean;
public var compassIsSet:boolean;
public var popupId:number;
public var mapIsSet:boolean;
public var autopathIsSet:boolean;
public var videoId:string;
public var videoUrl:array;
public var useTitle:boolean;
public var alphaMax:number;
public var loadVideo:boolean;
public var panoHeight:number;
public var useVideo:boolean;
public var addMask:boolean;
public var radarOffset;
public var mapHs_mc:array;
public var currentXoffset:number;
public var loadXML:boolean;
public var documentWidth:number;
public var addObjectFov:array;
public var useAutopath:boolean;
public var radar_mc;
public var panoXOffset:number;
public var titleIsSet:boolean;
public var myWidth;
public var panoWidth:number;
public var useVolume:boolean;
public var fill:movieclip;
public var showVideo:string;
public var useCompass:boolean;
public var addObjectMapBtnH:array;
public var map_mc:array;
public var useMenu:boolean;
public var mapId:number;
public var borderCT:ColorTransform;
public var useTitleFS:boolean;
public var fillCT:ColorTransform;
public var addObjectRadar:array;
public var alphaMinus:number;
public var maskTimer:Timer;
public var fullscreen:boolean;
public var fovOffset:number;
public var no:number;
public var mask_mc;
public var xOff:number;
public var fullscreenIsSet:boolean;
public var obj_mc:array;
public var mySWidth;
public var volumeIsSet:boolean;
public var useWindowResize:boolean;
public var messageUrl:string;
public var myHeight;
public var useMultipleMaps:boolean;
public var addObjectMaps:array;
public var format:textformat;
public function MainTimeline(){
addFrameScript(0, frame1);
}
public function resizeHandler(_arg1:Event):void{
if ((((stage.displayState == "fullScreen")) && (!(fullscreen)))){
Px = -(((stage.stageWidth - documentWidth) / 2));
Py = -(((stage.stageHeight - documentHeight) / 2));
panorama.setArea(Px, Py, stage.stageWidth, stage.stageHeight);
hideMovieClips();
fullscreen = true;
};
if ((((stage.displayState == "normal")) && (fullscreen))){
panorama.setArea(0, 0, panoWidth, panoHeight);
showMovieClips();
fullscreen = false;
};
}
public function loadComplete(_arg1:Event){
trace("\n\n\n\n");
trace("=====================================");
trace("[embedPano][loadComplete]");
panorama = loader.content;
if (useWindowResize){
stage.scalemode = StageScaleMode.NO_SCALE;
Px = -(((myWidth - documentWidth) / 2));
Py = -(((myHeight - documentHeight) / 2));
panorama.setArea(Px, Py, myWidth, myHeight);
} else {
panorama.setArea(panoXOffset, panoYOffset, panoWidth, panoHeight);
};
loader.alpha = 1;
if (useMap){
addObjects();
};
addFormats();
addEventListener(Event.ENTER_FRAME, updateCode);
stage.addEventListener(Event.RESIZE, resizeHandler);
}
function frame1(){
trace("\n\n\n\n\n\n\n\n\n\n\n\n\n\n");
documentWidth = 700;
documentHeight = 450;
panoWidth = 700;
panoHeight = 450;
panoXOffset = 0;
panoYOffset = 0;
useCompass = false;
useMap = false;
useMultipleMaps = false;
useTitle = false;
useTitleFS = false;
useMenu = true;
useMenuFS = false;
useAutopath = false;
useFullscreen = true;
useWindowResize = false;
useVolume = false;
useVolumeMenu = false;
useVideo = false;
videoUrl = new array();
if (useWindowResize){
flashVars = root.loaderInfo.parameters;
myWidth = flashVars.availW;
myHeight = flashVars.availH;
mySWidth = flashVars.screenW;
mySHeight = flashVars.screenH;
};
useFormat = new array();
useFormat[0] = {
type:"hs",
font:"Trebuchet MS",
size:12,
color:0,
fill:13948374,
alpha:0.8,
border:0,
xoffset:-8,
yoffset:20
};
loader = new Loader();
loader.load(new URLRequest("panorama/files/pano.swf"));
addChild(loader);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
map_mc = new array();
mapHs_mc = new array();
setMovieclips = true;
obj_mc = new array();
no = 0;
loadObj = new array();
panoId = 1;
mapId = 1;
popupId = 0;
showVideo = "default";
addMessage = true;
loadVideo = true;
checkPano = panoId;
format = null;
format = new textformat();
fillCT = fill.transform.colorTransform;
borderCT = border.transform.colorTransform;
alphaMax = 1;
alphaMin = -1.4;
alphaPlus = 0.2;
alphaMinus = -0.08;
xOff = 0;
yOff = 0;
txt.visible = false;
fill.visible = false;
border.visible = false;
txt.alpha = alphaMin;
fill.alpha = alphaMin;
border.alpha = alphaMin;
fill.scale9Grid = (border.scale9Grid = new Rectangle(5, 5, (fill.width - 10), (fill.height - 10)));
txt.autosize = TextFieldAutoSize.left;
addMask = true;
loadXML = true;
fullscreen = false;
compassIsSet = false;
mapIsSet = false;
titleIsSet = false;
menuIsSet = false;
autopathIsSet = false;
fullscreenIsSet = false;
volumeIsSet = false;
videoLoaded = false;
tooltipOffset = new array();
tooltipOffsetIndex = 0;
currentXoffset = useFormat[0].xoffset;
currentYoffset = useFormat[0].yoffset;
if (stage.hasOwnProperty("displayState")){
stage.scalemode = StageScaleMode.NO_SCALE;
};
xml_1 = <panorama>
<parameters>
disableLoading=1;
disableKeys=0;
disableWheel=1;
panoName = pano1
layer_20 = panorama/files/hotspots.swf
layer_30 = panorama/files/tooltipsEXT2.swf
layer_40 = panorama/files/panoTitlebar.swf
layer_50 = panorama/files/glassMeter.swf
panHome=0;
tiltHome=5;
zoomHome=0.7;
zoom=0.7;
zoomMax=3;
zoomMin=0.7;
loaderBackColor =
loaderText=
qualityMotion=low
qualityStatic=low
behaviour=2
friction=0.88
keySensitivity=10
segments=25
sensitivity=150
threshold=0.0000001
</parameters>
<tooltips>
altFont = Trebuchet MS;
altSize = 14;
altColor = 0x23913D;
altFill = 0xFFFFFF;
altStroke = 0x23913D;
altAlpha = 0.9;
altXOffset = -20;
altYOffset = 28;
</tooltips>
<panotitlebar>
titleFont = Verdana;
titleSize = 14;
titleColor = 0x000000;
titleFill = 0xFFFFFF;
titleStroke = 0xFF0000;
titleAlpha = 0.9;
titleStrokeAlpha = 0;
titleAlign = center;
titleXOffset = 0;
titleYOffset = 0;
titleWeight = true;
</panotitlebar>
<hotspots>
<global onload="timer+=1,500,, onLoadDone;" onStart="loadPano(360foto1.swf?pan=0,0,visible);" onLoadDone="pano.behaviour=2; start.autoplay=no; start.play(); showMessage(); hotspots.show;" onLoadDone2="pano.behaviour=2; start.autoplay=yes; start.play(); showMessage(); hotspots.show;" showMessage="loader.addMessage=true;" onpress="pano.behaviour=2;" onrelease="pano.behaviour=2;" onClick="pano.behaviour=2;" onEnterFullscreen="close.visible=1; tour.start; play.start;" onExitFullscreen="close.visible=0; tour.start; play.start;" position="timer+=1,500,,zoomBack;" zoomBack="pano.zoom=1,500,smooth;" position2="timer+=1,500,,zoomBack2;" zoomBack2="pano.zoom=1,500,smooth, autoplay.start2;">
<!--
onEnterFullscreen="loadPano(panoName=images/snow,0,none);"
onExitFullscreen="loadPano(panoName=images/nature,0,none);"
-->
<pano leash="free"/>
<!-- load SETTINGS -->
<spot id="loader" addMessage="false" zoom="false"/>
<spot id="start" autoplay="no" play=""/>
<!--
pano1 fs => pano4
pano2 fs => pano5
pano3 fs => pano6
-->
<spot id="firstload" pano1="no" pano2="yes" pano3="yes" pano4="yes"/>
<!-- default SETTINGS -->
<spot id="goto" panoId="0"/>
<spot id="hotspots" hide="hotspot1.visible=0; hotspot2.visible=0; hotspot3.visible=0; hotspot4.visible=0; hotspot5.visible=0; hotspot6.visible=0; hotspot7.visible=0;" show="hotspot1.visible=1; hotspot2.visible=1; hotspot3.visible=1; hotspot4.visible=1; hotspot5.visible=1; hotspot6.visible=1; hotspot7.visible=1; autoplay.stopAutoplay;"/>
<spot id="fullscreen" open="fs1;" fs1="javascript:openFullscreen(1);" fs2="javascript:openFullscreen(2);" fs3="javascript:openFullscreen(3);" fs4="javascript:openFullscreen(4);"/>
<spot id="settings" panoId="1" mapId="1" maskId="0" popupId="0" showHotspots="false" useCompass="true" useVideo="true" useAudio="true" disable="video1.url=;" show="video1.visible=1;" hide="video1.visible=0;"/>
<!-- AUTOPLAY [start = inside pano, start2 = between panos ] -->
<spot id="autoplay" start="point1;" point1="pano.pan=120,700,regular, point1a, stopAutoplay; pano.tilt=-3,500,regular; autoStart=path1;" point1a="pano.pan=220,1000,regular, point2, stopAutoplay; pano.tilt=-20,1000,regular; autoStart=path2;" point2="pano.pan=270,1000,regular, point3, stopAutoplay; pano.tilt=-14,1000,regular; autoStart=path3;" point3="pano.pan=0,1250,regular, point4, stopAutoplay; autoStart=path4;" point4="pano.pan=90,1500,regular, point1, stopAutoplay; pano.tilt=0,1500,regular; autoStart=path5;" autoClear="pano.pan+=0.1; pano.tilt+=0.1; pano.zoom+=0.0001;" autoStart="" path1="pano.pan=120,500,regular, point1a; pano.tilt=-3,500,regular;" path2="pano.pan=220,500,regular, point2; pano.tilt=-20,500,regular;" path3="pano.pan=270,500,regular, point3; pano.tilt=-14,500,regular;" path4="pano.pan=0,500,regular, point4;" path5="pano.pan=90,750,regular, point1; pano.tilt=0,750,regular;" start2="play1;" setAutoplay="play1;" play1="pano.pan=20,1500,smooth; pano.tilt=0,1500,smooth, play1a;" play1a="pano.zoom=3,1500,smooth, play1b;" play1b="autoplay.start2=play2; hotspot2.changePano();" play2="pano.pan=70,1500,smooth; pano.tilt=0,1500,smooth, play2a;" play2a="pano.zoom=3,1500,smooth, play2b;" play2b="autoplay.start2=play3; hotspot3.changePano();" play3="pano.pan=340,1500,smooth; pano.tilt=0,1500,smooth, play3a;" play3a="pano.zoom=3,1500,smooth, play3b;" play3b="autoplay.start2=play1; hotspot1.changePano();" stopAutoplay="pano.pan+=0.0001; pano.tilt+=0.0001; pano.zoom+=0.0001;"/>
<!-- HOTSPOT AUTOPATHS -->
<!-- POPUP SPOT AUTOPATHS -->
<!-- FOV ROTATION -->
<spot id="deltarotation" rotation="0"/>
<!-- RADAR SETTINGS -->
<spot id="radar" offset="220"/>
<!-- HOTSPOTS -->
<!-- POPUP SPOTS
note: menu.staticY-=1; = pano.qualityStatic FIX
PS1.autopath();
-->
<!--
WARPED SPOTS
-->
<box id="videos" pano1="vid2a;" pano2="" pano3="" pano4="" vid2a="" refreshRate="30"/>
<!-- video HOTSPOTS -->
<!-- video MASK -->
<box id="vid_mask" url="panorama/images/mask.png" alpha="0" linked="appartement" pan="7.05" tilt="-30.87" rotationX="-13.00" rotationY="-1.00" scaleX="0.45" scaleY="0.60" onClick="vid_in;" vid_in="VID1.autopath; onClick=vid_out;" vid_out="pano.zoom=1,500,smooth; pano.tilt=-15,500,smooth; onClick=vid_in;"/>
<!-- video AUTOPATHS -->
<!-- AUDIO FILES -->
<!-- AUDIO 360 HOTSPOTS -->
<!-- menu -->
<!-- note: menu.staticY-=1; = pano.qualityStatic FIX -->
<spot id="menu" url="panorama/images/menu/menubalk-bg.png" static="1" salign="MB" staticY="-4" mouseButton="0" blockMouse="1" buttonMode="0" scaleX="6" scaleY="2"/>
<spot id="left_over" url="panorama/images/menu/menubalk-links-over.png" static="1" salign="MB" staticY="-11" alpha="0" staticX="-60" smoothing="1"/>
<spot id="left" url="panorama/images/menu/menubalk-links.png" static="1" salign="MB" staticY="-11" usehandcursor="1" staticX="-60" smoothing="1" onOver="pano.behaviour=2; left.alpha=0; left_over.alpha=1;" onOut="pano.behaviour=2; left.alpha=1; left_over.alpha=0;" onClick="pano.behaviour=1;" onpress="pano.behaviour=2; pano.panKey-=2,100;" onrelease="pano.behaviour=2; pano.panKey=0;"/>
<spot id="right_over" url="panorama/images/menu/menubalk-rechts-over.png" static="1" salign="MB" staticY="-11" staticX="-40" alpha="0"/>
<spot id="right" url="panorama/images/menu/menubalk-rechts.png" static="1" salign="MB" staticY="-11" staticX="-40" usehandcursor="1" onOver="pano.behaviour=2; right.alpha=0; right_over.alpha=1;" onOut="pano.behaviour=2; right.alpha=1; right_over.alpha=0;" onClick="pano.behaviour=1;" onpress="pano.behaviour=2; pano.panKey+=2,100;" onrelease="pano.behaviour=2; pano.panKey=0;"/>
<spot id="up_over" url="panorama/images/menu/menubalk-boven-over.png" static="1" salign="MB" staticY="-11" staticX="-10" alpha="0"/>
<spot id="up" url="panorama/images/menu/menubalk-boven.png" static="1" salign="MB" staticY="-11" staticX="-10" usehandcursor="1" onOver="pano.behaviour=2; up.alpha=0; up_over.alpha=1;" onOut="pano.behaviour=2; up.alpha=1; up_over.alpha=0;" onClick="pano.behaviour=1;" onpress="pano.behaviour=2; pano.tiltKey+=2,100;" onrelease="pano.behaviour=2; pano.tiltKey=0;"/>
<spot id="down_over" url="panorama/images/menu/menubalk-onder-over.png" static="1" salign="MB" staticY="-11" staticX="10" alpha="0"/>
<spot id="down" url="panorama/images/menu/menubalk-onder.png" static="1" salign="MB" staticY="-11" staticX="10" usehandcursor="1" onOver="pano.behaviour=2; down.alpha=0; down_over.alpha=1;" onOut="pano.behaviour=2; down.alpha=1; down_over.alpha=0;" onClick="pano.behaviour=1;" onpress="pano.behaviour=2; pano.tiltKey-=2,100;" onrelease="pano.behaviour=2; pano.tiltKey=0;"/>
<spot id="in_over" url="panorama/images/menu/menubalk-zoomin-over.png" static="1" salign="MB" staticY="-11" staticX="40" alpha="0"/>
<spot id="in" url="panorama/images/menu/menubalk-zoomin.png" static="1" salign="MB" staticY="-11" staticX="40" usehandcursor="1" onOver="pano.behaviour=2; in.alpha=0; in_over.alpha=1;" onOut="pano.behaviour=2; in.alpha=1; in_over.alpha=0;" onClick="pano.behaviour=1;" onpress="pano.behaviour=2; pano.zoomKey+=2,100;" onrelease="pano.behaviour=2; pano.zoomKey=0;"/>
<spot id="out_over" url="panorama/images/menu/menubalk-zoomout-over.png" static="1" salign="MB" staticY="-11" staticX="60" alpha="0"/>
<spot id="out" url="panorama/images/menu/menubalk-zoomout.png" static="1" salign="MB" staticY="-11" staticX="60" usehandcursor="1" onOver="pano.behaviour=2; out.alpha=0; out_over.alpha=1;" onOut="pano.behaviour=2; out.alpha=1; out_over.alpha=0;" onClick="pano.behaviour=1;" onpress="pano.behaviour=2; pano.zoomKey-=2,100;" onrelease="pano.behaviour=2; pano.zoomKey=0;"/>
<!-- menu end -->
<!--
AUTOPLAY menu KNOP
stopAutoplay="autoplay.autoClear; start(); onClick=startAutoplay();"
-->
<!--
AUTOTOUR menu KNOP
stopAutoplay="autoplay.autoClear; start(); onClick=startAutoplay(); global.onNewPano=;"
-->
<spot id="auto" resetPlay="play.start(); play.onClick=play.startAutoplay(); tour.onClick=tour.stopAutoplay(); mask.visible=1;" resetTour="tour.start(); tour.onClick=tour.startAutoplay(); play.onClick=play.stopAutoplay(); global.onNewPano=; mask.visible=1;"/>
<!-- FULLSCREEN KNOP -->
<!-- VOLUME control KNOPPEN -->
<!-- FIX TO MAKE SURE THE LAST button HOVER WORKS (url must be set) -->
<spot id="menu hover fix" url="panorama/images/menu/menubalk-mute-off-over.png" static="1" salign="LB" staticY="-15" staticX="587" alpha="0" blockMouse="1" usehandcursor="0"/>
<!-- TITLEBAR -->
<spot id="t" title="Middenplein" static="1" salign="MT" align="MT" staticY="-15" blockMouse="1" buttonMode="0" visible="1" scaleX="4"/>
<!-- POPUPS -->
<!-- PANO 1 -->
<spot id="hotspot1" linked="360foto1" alt="Werkplek ergotherapie" pan="17" tilt="-8" url="panorama/images/hotspot-info.png" depth="1" onClick="pano.behaviour=2; openLink();" openLink="javascript:openPage(1);"/>
<spot id="hotspot2" linked="360foto1" alt="Kast met hulpmiddelen" pan="40" tilt="0" url="panorama/images/hotspot-info.png" depth="1" onClick="pano.behaviour=2; openLink();" openLink="javascript:openPage(2);"/>
<spot id="hotspot3" linked="360foto1" alt="Diverse voorzieningen" pan="85" tilt="-35" url="panorama/images/hotspot-info.png" depth="1" onClick="pano.behaviour=2; openLink();" openLink="javascript:openPage(3);"/>
<spot id="hotspot4" linked="360foto1" alt="Wandbeugels" pan="85" tilt="-5" url="panorama/images/hotspot-info.png" depth="1" onClick="pano.behaviour=2; openLink();" openLink="javascript:openPage(4);"/>
<spot id="hotspot5" linked="360foto1" alt="Toilet voorzieningen" pan="120" tilt="-25" url="panorama/images/hotspot-info.png" depth="1" onClick="pano.behaviour=2; openLink();" openLink="javascript:openPage(5);"/>
<spot id="hotspot6" linked="360foto1" alt="Wandtoilet" pan="140" tilt="-10" url="panorama/images/hotspot-info.png" depth="1" onClick="pano.behaviour=2; openLink();" openLink="javascript:openPage(6);"/>
<spot id="hotspot7" linked="360foto1" alt="Pakpaal met beugel" pan="160" tilt="0" url="panorama/images/hotspot-info.png" depth="1" onClick="pano.behaviour=2; openLink();" openLink="javascript:openPage(7);"/>
<spot id="hotspot8" linked="360foto1" alt="Verstelbare douchezitjes" pan="178" tilt="-12" url="panorama/images/hotspot-info.png" depth="1" onClick="pano.behaviour=2; openLink();" openLink="javascript:openPage(8);"/>
<spot id="hotspot9" linked="360foto1" alt="Douchehoek" pan="205" tilt="-5" url="panorama/images/hotspot-info.png" depth="1" onClick="pano.behaviour=2; openLink();" openLink="javascript:openPage(9);"/>
<spot id="hotspot10" linked="360foto1" alt="Douche en bad voorzieningen" pan="212" tilt="-15" url="panorama/images/hotspot-info.png" depth="1" onClick="pano.behaviour=2; openLink();" openLink="javascript:openPage(10);"/>
<spot id="hotspot11" linked="360foto1" alt="Wastafels verstelbaar" pan="235" tilt="-12" url="panorama/images/hotspot-info.png" depth="1" onClick="pano.behaviour=2; openLink();" openLink="javascript:openPage(11);"/>
<spot id="hotspot12" linked="360foto1" alt="Pasunit voor toilet en douche" pan="275" tilt="-18" url="panorama/images/hotspot-info.png" depth="1" onClick="pano.behaviour=2; openLink();" openLink="javascript:openPage(12);"/>
<spot id="hotspot13" linked="360foto1" alt="Domotica" pan="319" tilt="8" url="panorama/images/hotspot-info.png" depth="1" onClick="pano.behaviour=2; openLink();" openLink="javascript:openPage(13);"/>
<spot id="hotspot14" linked="360foto1" alt="Verstelbare keuken" pan="330" tilt="8" url="panorama/images/hotspot-info.png" depth="1" onClick="pano.behaviour=2; openLink();" openLink="javascript:openPage(14);"/>
<spot id="hotspot15" linked="360foto1" alt="Adviesruimtes voorzieningen" pan="210" tilt="-50" url="panorama/images/hotspot-info.png" depth="1" onClick="pano.behaviour=2; openLink();" openLink="javascript:openPage(15);"/>
<spot id="hotspot16" linked="360foto1" alt="Wandrail systeem" pan="225" tilt="-5" url="panorama/images/hotspot-info.png" depth="1" onClick="pano.behaviour=2; openLink();" openLink="javascript:openPage(16);"/>
<!-- message -->
<box id="message" url="" static="1" salign="MC" refreshRate="30"/>
<spot id="close" alt="Sluiten" static="1" salign="RT" align="RT" url="panorama/images/close.png" visible="0" onClick="fullscreen()" blockMouse="1"/>
<!-- MASK -->
<spot id="mask" url="panorama/images/mask.png" alpha="0" visible="0" static="1" salign="MC" align="MC" staticY="-31" depth="50" onClick="stopPlay(); stopTour(); mask.visible=0;" stopPlay="play.stopAutoplay();" stopTour="tour.stopAutoplay();"/>
</global>
</hotspots>
</panorama>
;
}
public function updateCode(_arg1:Event){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
if (useMap){
if (no < loadObj.length){
if ((loadObj[no].loaded == "false")){
loadObject(no, loadObj[no].name, loadObj[no].path, loadObj[no].alpha, loadObj[no].x, loadObj[no].y, loadObj[no].pano, loadObj[no].link, loadObj[no].map, loadObj[no].tooltip);
loadObj[no].loaded = "true";
};
if ((loadObj[no].loaded == "true")){
no++;
if (no < loadObj.length){
loadObj[no].loaded = "false";
};
};
} else {
if (no == loadObj.length){
if (loadXML){
panorama.loadPanorama(("xml_text=<?xml version = '1.0'?>" + xml_1));
trace();
loadXML = false;
};
};
};
} else {
if (loadXML){
panorama.loadPanorama(("xml_text=<?xml version = '1.0'?>" + xml_1));
loadXML = false;
};
};
if (useMap){
if (obj_mc.length == loadObj.length){
if (setMovieclips){
_local2 = 0;
while (_local2 < obj_mc.length) {
if (obj_mc[_local2].name == "fov"){
fov_mc = obj_mc[_local2].obj;
};
if (obj_mc[_local2].name == "radar"){
radar_mc = obj_mc[_local2].obj;
};
if (obj_mc[_local2].name == "map"){
map_mc[map_mc.length] = obj_mc[_local2];
};
if (obj_mc[_local2].name == "mapHs"){
mapHs_mc[mapHs_mc.length] = obj_mc[_local2];
};
_local2++;
};
setMovieclips = false;
};
};
};
if ((((fov_mc is object)) || (!(useMap)))){
if (panorama.externals.hotspots != null){
if (panorama.externals.hotspots.ready){
if (((useVolume) && (useVolumeMenu))){
if (!fullscreen){
panorama.externals.hotspots.execute("min.visible=1;");
panorama.externals.hotspots.execute("min_over.visible=1;");
panorama.externals.hotspots.execute("volume.visible=1;");
panorama.externals.hotspots.execute("volume_over.visible=1;");
panorama.externals.hotspots.execute("plus.visible=1;");
panorama.externals.hotspots.execute("plus_over.visible=1;");
panorama.externals.hotspots.execute("mute.visible=1;");
panorama.externals.hotspots.execute("mute_over.visible=1;");
};
} else {
if (!volumeIsSet){
panorama.externals.hotspots.execute("min.visible=0;");
panorama.externals.hotspots.execute("min_over.visible=0;");
panorama.externals.hotspots.execute("volume.visible=0;");
panorama.externals.hotspots.execute("volume_over.visible=0;");
panorama.externals.hotspots.execute("plus.visible=0;");
panorama.externals.hotspots.execute("plus_over.visible=0;");
panorama.externals.hotspots.execute("mute.visible=0;");
panorama.externals.hotspots.execute("mute_over.visible=0;");
volumeIsSet = true;
};
};
if (useFullscreen){
if (!fullscreen){
if (!fullscreenIsSet){
panorama.externals.hotspots.execute("fs.visible=1;");
panorama.externals.hotspots.execute("fs_over.visible=1;");
fullscreenIsSet = true;
};
};
} else {
if (!fullscreenIsSet){
panorama.externals.hotspots.execute("fs.visible=0;");
panorama.externals.hotspots.execute("fs_over.visible=0;");
fullscreenIsSet = true;
};
};
if (useAutopath){
if (useMenu){
if (!fullscreen){
if (!autopathIsSet){
panorama.externals.hotspots.execute("tour.visible=1;");
panorama.externals.hotspots.execute("tour_over.visible=1;");
panorama.externals.hotspots.execute("play.visible=1;");
panorama.externals.hotspots.execute("play_over.visible=1;");
autopathIsSet = true;
};
};
};
} else {
if (!autopathIsSet){
panorama.externals.hotspots.execute("tour.visible=0;");
panorama.externals.hotspots.execute("tour_over.visible=0;");
panorama.externals.hotspots.execute("play.visible=0;");
panorama.externals.hotspots.execute("play_over.visible=0;");
autopathIsSet = true;
};
};
if (useTitle){
if (!fullscreen){
if (!titleIsSet){
panorama.externals.hotspots.execute("t.visible=1;");
titleIsSet = true;
};
};
} else {
if (!titleIsSet){
panorama.externals.hotspots.execute("t.visible=0;");
};
};
if (useMenu){
if (!fullscreen){
if (!menuIsSet){
panorama.externals.hotspots.execute("left.visible=1;");
panorama.externals.hotspots.execute("left_over.visible=1;");
panorama.externals.hotspots.execute("right.visible=1;");
panorama.externals.hotspots.execute("right_over.visible=1;");
panorama.externals.hotspots.execute("up.visible=1;");
panorama.externals.hotspots.execute("up_over.visible=1;");
panorama.externals.hotspots.execute("down.visible=1;");
panorama.externals.hotspots.execute("down_over.visible=1;");
panorama.externals.hotspots.execute("in.visible=1;");
panorama.externals.hotspots.execute("in_over.visible=1;");
panorama.externals.hotspots.execute("out.visible=1;");
panorama.externals.hotspots.execute("out_over.visible=1;");
menuIsSet = true;
};
};
} else {
if (!menuIsSet){
panorama.externals.hotspots.execute("menu.visible=0;");
panorama.externals.hotspots.execute("left.visible=0;");
panorama.externals.hotspots.execute("left_over.visible=0;");
panorama.externals.hotspots.execute("right.visible=0;");
panorama.externals.hotspots.execute("right_over.visible=0;");
panorama.externals.hotspots.execute("up.visible=0;");
panorama.externals.hotspots.execute("up_over.visible=0;");
panorama.externals.hotspots.execute("down.visible=0;");
panorama.externals.hotspots.execute("down_over.visible=0;");
panorama.externals.hotspots.execute("in.visible=0;");
panorama.externals.hotspots.execute("in_over.visible=0;");
panorama.externals.hotspots.execute("out.visible=0;");
panorama.externals.hotspots.execute("out_over.visible=0;");
panorama.externals.hotspots.execute("play.visible=0;");
panorama.externals.hotspots.execute("play_over.visible=0;");
panorama.externals.hotspots.execute("tour.visible=0;");
panorama.externals.hotspots.execute("tour_over.visible=0;");
panorama.externals.hotspots.execute("fs.visible=0;");
panorama.externals.hotspots.execute("fs_over.visible=0;");
if (useVolumeMenu){
panorama.externals.hotspots.execute("min.visible=0;");
panorama.externals.hotspots.execute("min_over.visible=0;");
panorama.externals.hotspots.execute("volume.visible=0;");
panorama.externals.hotspots.execute("volume_over.visible=0;");
panorama.externals.hotspots.execute("plus.visible=0;");
panorama.externals.hotspots.execute("plus_over.visible=0;");
panorama.externals.hotspots.execute("mute.visible=0;");
panorama.externals.hotspots.execute("mute_over.visible=0;");
};
menuIsSet = true;
};
};
panoId = panorama.externals.hotspots.getSpot("settings").getParam("panoId");
mapId = panorama.externals.hotspots.getSpot("settings").getParam("mapId");
maskId = number(panorama.externals.hotspots.getSpot("settings").getParam("maskId"));
popupId = number(panorama.externals.hotspots.getSpot("settings").getParam("popupId"));
if (useVideo){
videoId = panorama.externals.hotspots.getSpot("videos").getParam((("pano" + panoId) + ""));
if (panorama.externals.hotspots != null){
if (panorama.externals.hotspots.ready){
if (!videoLoaded){
_local3 = 0;
while (_local3 < videoUrl.length) {
if (panoId == videoUrl[_local3].panoId){
panorama.externals.hotspots.execute(videoUrl[_local3].path);
};
_local3++;
};
panorama.externals.hotspots.execute((("videos.pano" + panoId) + "();"));
videoLoaded = true;
};
};
};
};
showSpots = panorama.externals.hotspots.getSpot("settings").getParam("showHotspots");
messageUrl = panorama.externals.hotspots.getSpot("loader").getParam("addMessage");
zoomOut = panorama.externals.hotspots.getSpot("loader").getParam("zoom");
if (loadVideo){
if (panorama.externals.hotspots != null){
if (useVideo){
if (messageUrl == "true"){
panorama.externals.hotspots.execute("settings.showHotspots=true;");
} else {
if (addMessage){
panorama.externals.hotspots.execute(videoId);
addMessage = false;
};
};
if (showSpots == "true"){
panorama.externals.hotspots.execute("pano.qualityStatic=low;");
panorama.externals.hotspots.execute("pano.qualityMotion=low;");
panorama.externals.hotspots.execute("settings.show();");
loadVideo = false;
};
};
};
};
if (checkPano != panoId){
if (panorama.externals.hotspots != null){
panorama.externals.hotspots.execute("settings.hide();");
panorama.externals.hotspots.execute("settings.disable();");
panorama.externals.hotspots.execute("loader.zoom=true;");
loadVideo = true;
addMessage = true;
panorama.externals.hotspots.execute("settings.showHotspots=false");
panorama.externals.hotspots.execute("loader.addMessage=false");
panorama.externals.hotspots.execute("music1.url=;");
panorama.externals.hotspots.execute("music2.url=;");
panorama.externals.hotspots.execute("music3.url=;");
videoLoaded = false;
};
};
checkPano = panoId;
if (maskId == 1){
if (addMask){
setmask();
};
} else {
if (!addMask){
removeMask();
};
};
if (useMap){
positionFov();
};
if (useCompass){
fovPan = panorama.pano.pan;
fovOffset = panorama.externals.hotspots.getSpot("radar").getParam("offset");
radarOffset = number((fovPan + fovOffset));
if (!fullscreen){
if (isnan(fovOffset)){
fov_mc.visible = false;
} else {
fov_mc.visible = true;
};
if (radarOffset != null){
fov_mc.rotation = radarOffset;
};
} else {
fov_mc.visible = false;
};
};
};
};
};
if (fullscreen){
if (useCompass){
if (radar_mc != undefined){
radar_mc.visible = false;
};
};
if (useMap){
if (obj_mc.length == loadObj.length){
_local4 = 0;
while (_local4 < obj_mc.length) {
if (obj_mc[_local4].name == "mapBtn"){
obj_mc[_local4].obj.visible = false;
};
_local4++;
};
};
};
} else {
if (useCompass){
if (radar_mc != undefined){
radar_mc.visible = true;
};
};
if (useMap){
if (obj_mc.length == loadObj.length){
_local5 = 0;
while (_local5 < obj_mc.length) {
if (obj_mc[_local5].name == "mapBtn"){
obj_mc[_local5].obj.visible = true;
};
_local5++;
};
};
};
};
}
public function setmask(){
var loader:* = null;
var info:* = null;
var request:* = null;
var mc:* = null;
var catchIOError:* = undefined;
var init:* = undefined;
catchIOError = function (_arg1:IOErrorEvent){
trace(("Error caught: " + _arg1.type));
};
init = function (_arg1:Event):void{
var closeMask:* = undefined;
var e:* = _arg1;
closeMask = function (_arg1:MouseEvent){
removeMask();
};
info.removeEventListener(Event.INIT, init);
mc.alpha = 0;
mc.buttonMode = true;
mc.usehandcursor = true;
if ((stage.displayState == "fullScreen")){
mc.x = Px;
mc.y = Py;
} else {
if (useWindowResize){
Px = -(((myWidth - documentWidth) / 2));
Py = -(((myHeight - documentHeight) / 2));
} else {
Px = 0;
Py = 0;
};
mc.x = (mc.x + Px);
mc.y = (mc.y + Py);
};
mc.width = stage.stageWidth;
mc.height = stage.stageHeight;
mc.addEventListener(MouseEvent.CLICK, closeMask);
mask_mc = addChild(mc);
};
trace("\n\n\n\n");
trace("=====================================");
trace("[embedPano][setMask]");
addMask = false;
loader = new Loader();
request = new URLRequest("panorama/images/mask.png");
mc = new movieclip();
info = loader.contentLoaderInfo;
mc.addChild(loader);
info.addEventListener(Event.INIT, init);
loader.addEventListener(IOErrorEvent.IO_ERROR, catchIOError);
loader.load(request);
}
public function openVirro(){
var _local1:string;
var _local2:string;
var _local3:URLRequest;
_local1 = "http://www.virro.nl/";
_local2 = (("window.open('" + _local1) + "','PopUpWindow','height=600,width=980,toolbar=yes,scrollbars=yes,resizable=yes,status=yes, menubar=yes, location=yes, directories=yes');");
_local3 = new URLRequest((("javascript:" + _local2) + " void(0);"));
navigateToURL(_local3, "_self");
}
public function showMovieClips(){
panorama.externals.hotspots.execute("hotspots.show;");
if (useMenu){
panorama.externals.hotspots.execute("t.visible=1;");
panorama.externals.hotspots.execute("menu.visible=1;");
panorama.externals.hotspots.execute("menu.scaleX=6;");
panorama.externals.hotspots.execute("left.visible=1;");
panorama.externals.hotspots.execute("left_over.visible=1;");
panorama.externals.hotspots.execute("right.visible=1;");
panorama.externals.hotspots.execute("right_over.visible=1;");
panorama.externals.hotspots.execute("up.visible=1;");
panorama.externals.hotspots.execute("up_over.visible=1;");
panorama.externals.hotspots.execute("down.visible=1;");
panorama.externals.hotspots.execute("down_over.visible=1;");
panorama.externals.hotspots.execute("in.visible=1;");
panorama.externals.hotspots.execute("in_over.visible=1;");
panorama.externals.hotspots.execute("out.visible=1;");
panorama.externals.hotspots.execute("out_over.visible=1;");
};
if (useAutopath){
panorama.externals.hotspots.execute("play.visible=1;");
panorama.externals.hotspots.execute("play_over.visible=1;");
panorama.externals.hotspots.execute("tour.visible=1;");
panorama.externals.hotspots.execute("tour_over.visible=1;");
};
if (useFullscreen){
panorama.externals.hotspots.execute("fs.visible=1;");
panorama.externals.hotspots.execute("fs_over.visible=1;");
};
if (((useVolume) && (useVolumeMenu))){
panorama.externals.hotspots.execute("min.visible=1;");
panorama.externals.hotspots.execute("min_over.visible=1;");
panorama.externals.hotspots.execute("volume.visible=1;");
panorama.externals.hotspots.execute("volume_over.visible=1;");
panorama.externals.hotspots.execute("plus.visible=1;");
panorama.externals.hotspots.execute("plus_over.visible=1;");
panorama.externals.hotspots.execute("mute.visible=1;");
panorama.externals.hotspots.execute("mute_over.visible=1;");
};
}
public function hideMovieClips(){
panorama.externals.hotspots.execute("hotspots.hide;");
if (useTitleFS){
panorama.externals.hotspots.execute("close.url=;");
} else {
panorama.externals.hotspots.execute("t.visible=0;");
};
if (useMenuFS){
panorama.externals.hotspots.execute("menu.scaleX=3;");
} else {
panorama.externals.hotspots.execute("menu.scaleX=1;");
panorama.externals.hotspots.execute("menu.visible=0;");
panorama.externals.hotspots.execute("left.visible=0;");
panorama.externals.hotspots.execute("left_over.visible=0;");
panorama.externals.hotspots.execute("right.visible=0;");
panorama.externals.hotspots.execute("right_over.visible=0;");
panorama.externals.hotspots.execute("up.visible=0;");
panorama.externals.hotspots.execute("up_over.visible=0;");
panorama.externals.hotspots.execute("down.visible=0;");
panorama.externals.hotspots.execute("down_over.visible=0;");
panorama.externals.hotspots.execute("in.visible=0;");
panorama.externals.hotspots.execute("in_over.visible=0;");
panorama.externals.hotspots.execute("out.visible=0;");
panorama.externals.hotspots.execute("out_over.visible=0;");
panorama.externals.hotspots.execute("play.visible=0;");
panorama.externals.hotspots.execute("play_over.visible=0;");
panorama.externals.hotspots.execute("tour.visible=0;");
panorama.externals.hotspots.execute("tour_over.visible=0;");
panorama.externals.hotspots.execute("fs.visible=0;");
panorama.externals.hotspots.execute("fs_over.visible=0;");
if (useVolumeMenu){
panorama.externals.hotspots.execute("min.visible=0;");
panorama.externals.hotspots.execute("min_over.visible=0;");
panorama.externals.hotspots.execute("volume.visible=0;");
panorama.externals.hotspots.execute("volume_over.visible=0;");
panorama.externals.hotspots.execute("plus.visible=0;");
panorama.externals.hotspots.execute("plus_over.visible=0;");
panorama.externals.hotspots.execute("mute.visible=0;");
panorama.externals.hotspots.execute("mute_over.visible=0;");
};
};
}
public function goFullscreen(_arg1:MouseEvent){
switch (stage.displayState){
case StageDisplayState.NORMAL:
stage.displayState = StageDisplayState.FULL_SCREEN;
break;
case StageDisplayState.FULL_SCREEN:
default:
stage.displayState = StageDisplayState.NORMAL;
};
}
public function positionFov(){
var _local1:*;
var _local2:*;
var _local3:*;
_local1 = 0;
while (_local1 < mapHs_mc.length) {
if (useMap){
if (useMultipleMaps){
if (mapHs_mc[_local1].pano == panoId){
if (mapHs_mc[_local1].map == panoId){
fov_mc.x = (mapHs_mc[_local1].obj.x + (mapHs_mc[_local1].obj.width / 2));
fov_mc.y = (mapHs_mc[_local1].obj.y + (mapHs_mc[_local1].obj.height / 2));
radar_mc.x = ((mapHs_mc[_local1].obj.x + (mapHs_mc[_local1].obj.width / 2)) - (radar_mc.width / 2));
radar_mc.y = ((mapHs_mc[_local1].obj.y + (mapHs_mc[_local1].obj.height / 2)) - (radar_mc.height / 2));
};
};
} else {
if (mapHs_mc[_local1].map == panoId){
fov_mc.x = (mapHs_mc[_local1].obj.x + (mapHs_mc[_local1].obj.width / 2));
fov_mc.y = (mapHs_mc[_local1].obj.y + (mapHs_mc[_local1].obj.height / 2));
radar_mc.x = ((mapHs_mc[_local1].obj.x + (mapHs_mc[_local1].obj.width / 2)) - (radar_mc.width / 2));
radar_mc.y = ((mapHs_mc[_local1].obj.y + (mapHs_mc[_local1].obj.height / 2)) - (radar_mc.height / 2));
};
};
if (useMultipleMaps){
if (mapHs_mc[_local1].pano == mapId){
if (!fullscreen){
mapHs_mc[_local1].obj.visible = true;
} else {
mapHs_mc[_local1].obj.visible = false;
};
} else {
mapHs_mc[_local1].obj.visible = false;
};
} else {
if (!fullscreen){
mapHs_mc[_local1].obj.visible = true;
} else {
mapHs_mc[_local1].obj.visible = false;
};
};
} else {
mapHs_mc[_local1].obj.visible = false;
};
_local1++;
};
if (useCompass){
if (!fullscreen){
fov_mc.visible = true;
radar_mc.visible = true;
} else {
fov_mc.visible = false;
radar_mc.visible = false;
};
} else {
fov_mc.visible = false;
radar_mc.visible = false;
};
if (useMultipleMaps){
_local3 = 0;
while (_local3 < map_mc.length) {
if (useMap){
if (map_mc[_local3].pano == panoId){
if (!fullscreen){
map_mc[_local3].obj.visible = true;
} else {
map_mc[_local3].obj.visible = false;
};
} else {
map_mc[_local3].obj.visible = false;
};
} else {
map_mc[_local3].obj.visible = false;
};
_local3++;
};
} else {
if (!fullscreen){
map_mc[0].obj.visible = true;
} else {
map_mc[0].obj.visible = false;
};
};
_local2 = 0;
while (_local2 < obj_mc.length) {
if (useMap){
if (obj_mc[_local2].name == "mapBtnH"){
if (obj_mc[_local2].pano == mapId){
if (!fullscreen){
obj_mc[_local2].obj.visible = true;
} else {
obj_mc[_local2].obj.visible = false;
};
} else {
obj_mc[_local2].obj.visible = false;
};
};
} else {
obj_mc[_local2].obj.visible = false;
};
_local2++;
};
}
public function addObjects(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
addObjectMaps = new array();
addObjectMaps[0] = {
name:"map",
path:"panorama/images/map/plattegrond.gif",
alpha:1,
x:644,
y:2,
pano:1,
map:0,
link:0,
loaded:"false",
tooltip:"",
xoffset:0,
yoffset:0
};
addObjectRadar = new array();
addObjectRadar[0] = {
name:"radar",
path:"panorama/images/map/radar.png",
alpha:1,
x:-1000,
y:-1000,
pano:0,
map:0,
link:0,
loaded:"false",
tooltip:"",
xoffset:0,
yoffset:0
};
addObjectMapBtn = new array();
addObjectMapBtnH = new array();
addObjectFov = new array();
addObjectFov[0] = {
name:"fov",
path:"panorama/images/map/fov.png",
alpha:1,
x:-1000,
y:-1000,
pano:0,
map:0,
link:0,
loaded:"false",
tooltip:"",
xoffset:0,
yoffset:0
};
addObjectMapHs = new array();
addObjectMapHs[0] = {
name:"mapHs",
path:"panorama/images/map/plattegrond-hotspot.gif",
alpha:1,
x:810,
y:35,
pano:1,
map:3,
link:3,
loaded:"none",
tooltip:" ga naar de tegelafdeling ",
xoffset:-30,
yoffset:-35
};
addObjectMapHs[1] = {
name:"mapHs",
path:"panorama/images/map/plattegrond-hotspot.gif",
alpha:1,
x:735,
y:50,
pano:1,
map:2,
link:2,
loaded:"none",
tooltip:" ga naar de keuken- en badkameropstellingen ",
xoffset:-70,
yoffset:-35
};
addObjectMapHs[2] = {
name:"mapHs",
path:"panorama/images/map/plattegrond-hotspot.gif",
alpha:1,
x:735,
y:110,
pano:1,
map:1,
link:1,
loaded:"none",
tooltip:" ga naar het middenplein ",
xoffset:-30,
yoffset:-35
};
_local1 = 0;
while (_local1 < addObjectMaps.length) {
loadObj[loadObj.length] = addObjectMaps[_local1];
_local1++;
};
_local2 = 0;
while (_local2 < addObjectMapBtn.length) {
loadObj[loadObj.length] = addObjectMapBtn[_local2];
_local2++;
};
_local3 = 0;
while (_local3 < addObjectMapBtn.length) {
loadObj[loadObj.length] = addObjectMapBtn[_local3];
_local3++;
};
_local4 = 0;
while (_local4 < addObjectFov.length) {
loadObj[loadObj.length] = addObjectFov[_local4];
_local4++;
};
_local5 = 0;
while (_local5 < addObjectMapHs.length) {
loadObj[loadObj.length] = addObjectMapHs[_local5];
_local5++;
};
_local6 = 0;
while (_local6 < addObjectRadar.length) {
loadObj[loadObj.length] = addObjectRadar[_local6];
_local6++;
};
_local7 = 0;
while (_local7 < addObjectFov.length) {
loadObj[loadObj.length] = addObjectFov[_local7];
_local7++;
};
}
public function animation(_arg1:Event){
if (speed > 0){
fill.visible = true;
border.visible = true;
if (fill.alpha > (alphaMax / 2)){
txt.visible = true;
};
if ((fill.alpha + (speed / 4)) < alphaMax){
fill.alpha = (fill.alpha + speed);
border.alpha = (border.alpha + speed);
txt.alpha = (txt.alpha + speed);
} else {
fill.alpha = alphaMax;
border.alpha = alphaMax;
txt.alpha = alphaMax;
};
fill.x = (mouseX + currentXoffset);
border.x = (mouseX + currentXoffset);
txt.x = (mouseX + currentXoffset);
fill.y = (mouseY + currentYoffset);
border.y = (mouseY + currentYoffset);
txt.y = (mouseY + currentYoffset);
if (fill.x < 0){
fill.x = 0;
border.x = 0;
txt.x = 0;
};
} else {
if (fill.alpha > alphaMin){
fill.alpha = (fill.alpha + speed);
border.alpha = (border.alpha + speed);
txt.alpha = (txt.alpha + speed);
if (fill.alpha < (alphaMax / 2)){
txt.visible = false;
fill.visible = false;
border.visible = false;
};
} else {
txt.alpha = alphaMin;
fill.alpha = alphaMin;
border.alpha = alphaMin;
txt.visible = false;
fill.visible = false;
border.visible = false;
fill.x = -100;
border.x = -100;
txt.x = -100;
fill.y = -100;
border.y = -100;
txt.y = -100;
animationTimer.stop();
animationTimer = null;
};
};
}
public function addFormats(){
var _local1:*;
trace("\n\n\n\n");
trace("=====================================");
trace("[embedPano][addFormats]");
if (useFormat[0].type == "map"){
format.font = string(useFormat[0].font);
format.size = number(useFormat[0].size);
format.color = uint(useFormat[0].color);
fillCT.color = uint(useFormat[0].fill);
fill.transform.colorTransform = fillCT;
alphaMax = number(useFormat[0].alpha);
borderCT.color = uint(useFormat[0].border);
border.transform.colorTransform = borderCT;
currentYoffset = number(useFormat[0].xoffset);
currentYoffset = number(useFormat[0].yoffset);
};
if (useFormat[0].type == "hs"){
format.font = string(useFormat[0].font);
format.size = number(useFormat[0].size);
format.color = uint(useFormat[0].color);
fillCT.color = uint(useFormat[0].fill);
fill.transform.colorTransform = fillCT;
alphaMax = number(useFormat[0].alpha);
borderCT.color = uint(useFormat[0].border);
border.transform.colorTransform = borderCT;
_local1 = 0;
while (_local1 < loadObj.length) {
if (loadObj[_local1].name == "mapHs"){
tooltipOffset[tooltipOffsetIndex] = {
id:_local1,
xOff:loadObj[_local1].xoffset,
yOff:loadObj[_local1].yoffset
};
tooltipOffsetIndex++;
};
_local1++;
};
};
txt.settextformat(format);
format.font = null;
format.size = nan;
format.color = nan;
}
public function removeMask(){
trace("\n\n\n\n");
trace("=====================================");
trace("[embedPano][removeMask]");
panorama.externals.hotspots.execute((("popup" + popupId) + ".visible=0;"));
panorama.externals.hotspots.execute("settings.maskId=0; pano.zoom=1,500,smooth;");
panorama.externals.hotspots.execute("pano.qualityStatic=low;");
panorama.externals.hotspots.execute("pano.qualityMotion=low;");
addMask = true;
removeChild(mask_mc);
}
public function openRsm(){
var _local1:string;
var _local2:string;
var _local3:URLRequest;
_local1 = "http://www.rsm.nl/";
_local2 = (("window.open('" + _local1) + "','PopUpWindow','height=600,width=980,toolbar=yes,scrollbars=yes,resizable=yes,status=yes, menubar=yes, location=yes, directories=yes');");
_local3 = new URLRequest((("javascript:" + _local2) + " void(0);"));
navigateToURL(_local3, "_self");
}
public function loadObject(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10){
var loader:* = null;
var info:* = null;
var request:* = null;
var mc:* = null;
var catchIOError:* = undefined;
var init:* = undefined;
var changePano:* = undefined;
var changeMap:* = undefined;
var doOver:* = undefined;
var doOut:* = undefined;
var id:* = _arg1;
var instance:* = _arg2;
var path:* = _arg3;
var alpha:* = _arg4;
var x:* = _arg5;
var y:* = _arg6;
var pano:* = _arg7;
var link:* = _arg8;
var map:* = _arg9;
var tooltip:* = _arg10;
catchIOError = function (_arg1:IOErrorEvent){
trace(("Error caught: " + _arg1.type));
};
init = function (_arg1:Event):void{
mc.alpha = alpha;
mc.x = x;
mc.y = y;
obj_mc[id] = {
name:instance,
pano:pano,
map:map,
obj:addChild(mc)
};
if (instance == "mapHs"){
mc.addEventListener(MouseEvent.CLICK, changePano);
mc.addEventListener(MouseEvent.MOUSE_OVER, doOver);
mc.addEventListener(MouseEvent.MOUSE_OUT, doOut);
mc.buttonMode = true;
mc.usehandcursor = true;
};
if (instance == "mapBtn"){
mc.addEventListener(MouseEvent.CLICK, changeMap);
mc.buttonMode = true;
mc.usehandcursor = true;
};
mc.visible = false;
info.removeEventListener(Event.INIT, init);
};
changePano = function (_arg1:MouseEvent){
if (panorama.pano.loadCompleted){
if (panorama.externals.hotspots != null){
trace();
if (panorama.externals.hotspots.getSpot("firstload").getParam((("pano" + link) + "")) == "yes"){
panorama.externals.hotspots.execute((("hotspot" + link) + ".changePano;"));
} else {
panorama.externals.hotspots.execute((("hotspot" + link) + ".changePano2;"));
};
};
};
};
changeMap = function (_arg1:MouseEvent){
if (panorama.pano.loadCompleted){
if (panorama.externals.hotspots != null){
trace();
panorama.externals.hotspots.execute((("hotspot" + link) + ".changePano;"));
};
};
};
doOver = function (_arg1:MouseEvent){
var _local2:*;
if (useFormat[0].type == "hs"){
_local2 = 0;
while (_local2 < tooltipOffset.length) {
if (id == tooltipOffset[_local2].id){
currentXoffset = tooltipOffset[_local2].xOff;
currentYoffset = tooltipOffset[_local2].yOff;
};
_local2++;
};
};
setChildIndex(fill, (numChildren - 1));
setChildIndex(border, (numChildren - 1));
setChildIndex(txt, (numChildren - 1));
txt.text = tooltip;
txt.visible = false;
addFormats();
border.alpha = 0;
fill.alpha = 0;
txt.alpha = 0;
fill.width = (border.width = (txt.width + 2));
fill.height = (border.height = (txt.height + 2));
speed = alphaPlus;
if (animationTimer != null){
animationTimer.stop();
};
animationTimer = new Timer(30);
animationTimer.addEventListener(TimerEvent.TIMER, animation, false, 0, true);
animationTimer.start();
};
doOut = function (_arg1:MouseEvent){
speed = alphaMinus;
};
trace("\n\n\n\n");
trace("=====================================");
trace(("[embedPano][loadObject] name = " + instance));
loader = new Loader();
request = new URLRequest(path);
mc = new movieclip();
info = loader.contentLoaderInfo;
mc.addChild(loader);
info.addEventListener(Event.INIT, init);
loader.addEventListener(IOErrorEvent.IO_ERROR, catchIOError);
loader.load(request);
}
}
}//package embedPano_fla