PDA

View Full Version : create an invisible hotspot for a Flyup image .


imagem360
05-26-2009, 09:57 PM
Dear friends ..
We are having a problem , trying to create an invisible hotspot for a
Flyup image .
When we click in the image ...it flys up ...but then when clicking it
again , instead of returning normally it disappears suddenly and if
one tries to click on it again it does not open anymore.

Anyone with a clue ? Many thanks in advance.

http://www.imagem360.net/projetos/tuti/tuti.html

here is the used code

<?xml version='1.0'?>
<panorama meta='Made with http://www.flashificator.com'>
<parameters>
panoName = tuti_files/visualFiles/tutimi
panoType = cube0
segments = 20
qualityMotion2 = high
qualityStatic2 = best
zoom = 0.89
pan = 64.59
tilt = -12.31
zoomHome = 0.89
panHome = 64.08
tiltHome = -12.53
layer_1 = tuti_files/plugins/hotspots.swf
layer_2 = tuti_files/plugins/ffc_tooltips.swf
</parameters>
<hotspots>
<global
goUp="
static=1;
staticX=0,900,smooth;
staticY=0,900,smooth;
rotationX=0,900,smooth;
rotationY=0,900,smooth;
rotationZ=0,900,smooth;
scaleX=1,900,smooth;
scaleY=1,900,smooth;
alignX=-0.5,900,smooth;
alignY=-0.5,900,smooth;
salignX=0,900,smooth;
salignY=0,900,smooth;
distance=1,900;
depth=16;
"
loadPano1="
loadPano(panoName=tuti_files/visualFiles/tutim&pan=0&tilt=0&zoom=1&panoType=cube0,1000,fade);
"
loadPano2="
loadPano(panoName=tuti_files/visualFiles/tutimi&pan=0&tilt=0&zoom=1&panoType=cube0,1000,fade);
"
>
<pano
/>

<pano segments="25" qualityMotion="medium" qualityStatic="best" sensitivity="70" friction="0.8" />
<box
id="transicao01"
url="tuti_files/hotspotFiles/images/seta.png"
linked="tuti_files/visualFiles/tutimi"
orientation="sphere"
cacheAsBitmap="0"
depth="7"
pan="-151.62565976709058"
tilt="-28.09933094931333"
rotationX="24"
rotationY="-37"
rotationZ="-8"
alpha="0.85"
alt="Sala 01"
altFont="Arial Narrow"
altSize="13"
altFill="16777215"
altStroke="16777215"
onClick="
loadPano1();
"
/>
<box
id="transicao02"
url="tuti_files/hotspotFiles/images/seta.png"
linked="tuti_files/visualFiles/tutim"
orientation="sphere"
cacheAsBitmap="0"
depth="8"
pan="-179.30799757287923"
tilt="-34.18338400913755"
rotationX="25"
rotationY="-52"
rotationZ="69"
alpha="0.86"
alt="Sala 02"
altFont="Arial Narrow"
altSize="13"
altFill="16777215"
altStroke="16777215"
onClick="
loadPano2();
"
/>
<box
id="cea"
url="tuti_files/hotspotFiles/images/cea.jpg"
linked="tuti_files/visualFiles/tutimi"
orientation="sphere"
cacheAsBitmap="0"
depth="10"
pan="-113.80418597857386"
tilt="2.4179678887740645"
distance="14"
rotationX="32"
rotationZ="-2"
alt="CLICK"
altFont="Arial Narrow"
altSize="13"
altFill="16777215"
altStroke="16777215"
alpha="0"
openMe="hidePic();global.hidePic=cea.closeMe;goUp();onClic k=closeMe;"
closeMe="global.hidePic=;static=0;alpha=0;depth=10;orientat ion=sphere;staticX=0,900,smooth;staticY=0,900,smoo th;rotationX=32,900,smooth;rotationY=0,900,smooth; rotationZ=-2,900,smooth;scaleX=1,900,smooth;scaleY=1,900,smoo th;alignX=-0.5,900,smooth;alignY=-0.5,900,smooth;salignX=0,900,smooth;salignY=0,900, smooth;pan=-113.80418597857386,900,smooth;tilt=2.4179678887740 645,900,smooth;distance=14,900,smooth;onClick=open Me;"
onClick="
openMe(); alpha=1
"
/>
<box
id="cabide"
url="tuti_files/hotspotFiles/images/cabide.jpg"
linked="tuti_files/visualFiles/tutimi"
orientation="sphere"
depth="11"
pan="-113.54913555143474"
tilt="-2.538824159295118"
distance="13.43"
rotationX="27"
rotationZ="-2"
alt="CLICK"
altFont="Arial Narrow"
altSize="13"
altFill="16777215"
altStroke="16777215"
alpha="0"
openMe="hidePic();global.hidePic=cabide.closeMe;goUp();onC lick=closeMe;"
closeMe="global.hidePic=;static=0;alpha=0;depth=11;orientat ion=sphere;staticX=0,900,smooth;staticY=0,900,smoo th;rotationX=27,900,smooth;rotationY=0,900,smooth; rotationZ=-2,900,smooth;scaleX=1,900,smooth;scaleY=1,900,smoo th;alignX=-0.5,900,smooth;alignY=-0.5,900,smooth;salignX=0,900,smooth;salignY=0,900, smooth;pan=-113.54913555143474,900,smooth;tilt=-2.538824159295118,900,smooth;distance=13.43,900,sm ooth;onClick=openMe;"
onClick="
openMe();alpha=1
"
/>
<box
id="nuca"
url="tuti_files/hotspotFiles/images/nuca.jpg"
linked="tuti_files/visualFiles/tutimi"
orientation="sphere"
cacheAsBitmap="0"
depth="12"
pan="-113.10739872787114"
tilt="-7.49073391632474"
distance="13"
rotationX="27"
alt="CLICK"
altFont="Arial Narrow"
altSize="13"
altFill="16777215"
altStroke="16777215"
alpha="0"
openMe="hidePic();global.hidePic=nuca.closeMe;goUp();onCli ck=closeMe;"
closeMe="global.hidePic=;static=0;alpha=0;depth=12;orientat ion=sphere;staticX=0,900,smooth;staticY=0,900,smoo th;rotationX=27,900,smooth;rotationY=0,900,smooth; rotationZ=0,900,smooth;scaleX=1,900,smooth;scaleY= 1,900,smooth;alignX=-0.5,900,smooth;alignY=-0.5,900,smooth;salignX=0,900,smooth;salignY=0,900, smooth;pan=-113.10739872787114,900,smooth;tilt=-7.49073391632474,900,smooth;distance=13,900,smooth ;onClick=openMe;"
onClick="
openMe();alpha=1
"
/>
<box
id="churrasco"
url="tuti_files/hotspotFiles/images/churrasco.jpg"
linked="tuti_files/visualFiles/tutimi"
orientation="sphere"
cacheAsBitmap="0"
depth="13"
pan="-28.75488133196879"
tilt="-3.6353442188554834"
distance="2"
rotationX="-33"
rotationY="4"
rotationZ="1"
alt="CLICK"
altFont="Arial Narrow"
altSize="13"
altFill="16777215"
altStroke="16777215"
alpha="0"
openMe="hidePic();global.hidePic=churrasco.closeMe;goUp(); onClick=closeMe;"
closeMe="global.hidePic=;static=0;alpha=0;depth=13;orientat ion=sphere;staticX=0,900,smooth;staticY=0,900,smoo th;rotationX=-33,900,smooth;rotationY=4,900,smooth;rotationZ=1,9 00,smooth;scaleX=1,900,smooth;scaleY=1,900,smooth; alignX=-0.5,900,smooth;alignY=-0.5,900,smooth;salignX=0,900,smooth;salignY=0,900, smooth;pan=-28.75488133196879,900,smooth;tilt=-3.6353442188554834,900,smooth;distance=2,900,smoot h;onClick=openMe;"
onClick="
openMe();alpha=1
"
/>
<box
id="revelacoes"
url="tuti_files/hotspotFiles/images/revelacoes.jpg"
linked="tuti_files/visualFiles/tutimi"
orientation="sphere"
cacheAsBitmap="0"
depth="14"
pan="5.920557471041346"
tilt="-4.708973750357946"
distance="3"
rotationX="-6"
rotationY="4"
saturation="0.03"
brightness="0.07"
alt="CLICK"
altFont="Arial Narrow"
altSize="13"
altFill="16777215"
altStroke="16777215"
alpha="0"
openMe="hidePic();global.hidePic=revelacoes.closeMe;goUp() ;onClick=closeMe;"
closeMe="global.hidePic=;static=0;alpha=0;depth=14;orientat ion=sphere;staticX=0,900,smooth;staticY=0,900,smoo th;rotationX=-6,900,smooth;rotationY=4,900,smooth;rotationZ=0,90 0,smooth;scaleX=1,900,smooth;scaleY=1,900,smooth;a lignX=-0.5,900,smooth;alignY=-0.5,900,smooth;salignX=0,900,smooth;salignY=0,900, smooth;pan=5.920557471041346,900,smooth;tilt=-4.708973750357946,900,smooth;distance=3,900,smooth ;onClick=openMe;"
onClick="
openMe();alpha=1
"
/>
<box
id="neta"
url="tuti_files/hotspotFiles/images/netananet.jpg"
linked="tuti_files/visualFiles/tutimi"
orientation="sphere"
cacheAsBitmap="0"
depth="15"
pan="102.37768435543396"
tilt="-5.6367771983051"
distance="1.41"
alt="CLICK"
altFont="Arial Narrow"
altSize="13"
altFill="16777215"
altStroke="16777215"
alpha="0"
openMe="hidePic();global.hidePic=neta.closeMe;goUp();onCli ck=closeMe;"
closeMe="global.hidePic=;static=0;alpha=0;depth=15;orientat ion=sphere;staticX=0,900,smooth;staticY=0,900,smoo th;rotationX=0,900,smooth;rotationY=0,900,smooth;r otationZ=0,900,smooth;scaleX=1,900,smooth;scaleY=1 ,900,smooth;alignX=-0.5,900,smooth;alignY=-0.5,900,smooth;salignX=0,900,smooth;salignY=0,900, smooth;pan=102.37768435543396,900,smooth;tilt=-5.6367771983051,900,smooth;distance=1.41,900,smoot h;onClick=openMe;"
onClick="
openMe();alpha=1
"
/>
</global>
</hotspots>
</panorama>

siesfor
05-27-2009, 02:56 AM
the problem is with your "alpha"s in your "closeMe"s.
When you click on the picture and closeMe is activated. the alpha goes straight to "0" before any of the motion tweens have a chance to finish firing.

you could either add a timer to the alpha "alpha=0,1000"
or, you could create a global function like...
disappear="alpha=0"
...and add a call for it onto one of closeMe's actions, like...
staticX=0,900,smooth,disappear();


Secondly, why it won't come back up.
The original "onClick" for the image includes an "alpha=1", but when the "onClick" is reset in "closeMe", it doesn't include an alpha setting.
since "openMe" also triggers "goUp", you could add "alpha=1" to "goUp" in global and I think that should make the images visible again.

I believe that should do it, post if you have any trouble.

imagem360
05-27-2009, 03:14 PM
Good day my dears

The problem is solved ..many thanks

http://www.imagem360.net/projetos/tuti/tuti.html

( i needed to clean the cache to see it working ok, after making the changes )