Forums  

Go Back   Forums > Talk > General FPP Discussion

Reply
 
Thread Tools Display Modes
  #11  
Old 11-21-2007, 06:28 PM
3rw1n 3rw1n is offline
Member
 
Join Date: Nov 2007
Posts: 60
Downloads: 0
Uploads: 0
Default

I managed to place tooltips.

Quote:
And, you could pull up the little photos within a tooltip, so that they would be more connected to the mouse over the pano.
What should I add to the xml to do it your way?

Code:
<?xml version="1.0"?>

<panorama>

<parameters>
	
panoName = pano_small
layer_1 = hotspots.swf
layer_4 = loadMeter.swf
layer_2 = autorotator.swf
layer_3 = editor.swf
layer_5 = tooltips.swf
loaderTextColor = #FFFFFF
loaderBackColor = #000000
loaderText = 
zoomMax = 1.7
zoomMin = 0.3

</parameters>


<tooltips>
altFont=Century Gothic
altSize=30
altColor=0x000000
altFill=0xFFFFFF
altStroke=0x999999
altAlpha=0.6
</tooltips>


<hotspots>
	
<global LocalConnectionID="lc_test" onStart="loadPreview();" loadPreview="   loadPano(?panoName=pano_small);   onTransitionEnd=loadMain();  " loadMain="pano.leash=lock;   loadPano(?panoName=pano,400);   onTransitionEnd=  " goUp="   pano.qualityStatic=low; saturation=0,1000;  contrast=0,1000; blendMode=normal; depth=15; static=1; scaleable=0; staticX=0,1000; staticY=0,1000; scale=1,600; distance=1,800; rotationX=0,1000,elastic; rotationY=0,1000,elastic; rotationZ=0,100; global.timer=1,500; pano.qualityStatic=medium; "  goDown="   pano.qualityStatic=low; saturation=-0.5,1000; contrast=-0.22,1000;  depth=10; static=0;   scaleable=1; scale=0.5,500; distance=1,600; rotationX=0,600; rotationY=0,600; global.timer=1,700; pano.qualityStatic=medium;   "  restoreQuality="pano.qualityStatic = medium;" hideInfo="   infoscreen.visible = 0;   ">

//panneau d'entr?e
<spot id="prefs" url="images2/prefs.png" smoothing="1" static="1" visible="1" onClick="visible=0;fullscreen(-);fs.visible=1" depth="5"/>

//bouton plein-?cran	
<spot id="fs" alt="plein-?cran" static="1" salign="RB" align="RB" smoothing="1" staticX="-15" staticY="-15" url="images2/fs.png" blendMode="lighten" onOver="scale=1.1,600,elastic;depth+=20" onOut="scale=1,300;depth-=20" onClick="fullscreen(-)" visible="0"/>

//chemin gallo-romain
<box id="GR1" alt="chemin gallo-romain" url="images2/spot.png" pan="-149.00" tilt=" -31.00" rotationX="44.00" align="RB" depth="1" scaleX="1000.00" scaleY="40.00" 																					onOver="gallosmall.visible+=1" onOut="gallosmall.visible=0" onClick="gallo.openMe" alpha="0"/>
<box id="GR2" alt="chemin gallo-romain" url="images2/spot.png" pan="-127.00" tilt=" -18.25" distance="1.12" rotationX="67.00" rotationY="-52.00" align="RB" depth="2" scaleX="500.00" scaleY="25.00" scaleable="0" 									onOver="gallosmall.visible+=1" onOut="gallosmall.visible=0" onClick="gallo.openMe" alpha="0"/>
<box id="gallo" saturation="-0.5" contrast="-0.25" static="1" sAlign="LT" align="LT" staticX="5" staticY="5" visible="0" depth="250" scaleX="0.4" scaleY="0.4" url="images2/gallo.jpg" openMe="hidePic(); global.hidePic=gallo.closeMe; goUp(); sAlign=CM ; align=CM ; staticX=0; staticY=0;  gallo.visible+=1; gallosmall.visible=0 ; onClick=closeMe" closeMe="global.hidePic=; goDown(); visible=0; onClick=;"/>
<box id="gallosmall" static="1" sAlign="LT" align="LT" staticX="5" staticY="5" visible="0" depth="250" scaleX="0.4" scaleY="0.4" url="images2/gallo.jpg"/>

...
...
...


</global>

    </hotspots>
	
</panorama>

Last edited by 3rw1n; 11-21-2007 at 07:08 PM.
Reply With Quote
  #12  
Old 11-21-2007, 08:56 PM
zleifr's Avatar
zleifr zleifr is offline
Senior Member
 
Join Date: May 2007
Posts: 609
Downloads: 0
Uploads: 0
Default

Well, changing one word in the tooltips code will allow you to put html tags in the tooltips, including the <img> tag, and thereby you can put images in the tooltips by passing an alt value like this:
alt="&lt;img src='path/2/image'&gt;"

The only thing you have to remember is the use
&lt; in place of <
&gt; in place of >

And the one change that needs to be made to tooltips is the line that say tip_txt.text = ...
needs to say
tip_txt.htmlText = ...

If you have Flash you could do it, or I can do it later.

Zephyr
__________________
Zephyr Renner - AdvancedVirtualTours.com - zleifr @t yahoo

Improving the panoramic one mighty fine plug-in at a time: http://www.flashpanos.com
Reply With Quote
  #13  
Old 11-21-2007, 09:30 PM
zleifr's Avatar
zleifr zleifr is offline
Senior Member
 
Join Date: May 2007
Posts: 609
Downloads: 0
Uploads: 0
Default

Here is the updated file. I haven't had a chance to test it. So you are the guinea pig!
Attached Files
File Type: zip tooltips_1-1ZhtmlText.zip (15.7 KB, 14 views)
__________________
Zephyr Renner - AdvancedVirtualTours.com - zleifr @t yahoo

Improving the panoramic one mighty fine plug-in at a time: http://www.flashpanos.com
Reply With Quote
  #14  
Old 11-21-2007, 11:20 PM
3rw1n 3rw1n is offline
Member
 
Join Date: Nov 2007
Posts: 60
Downloads: 0
Uploads: 0
Default

Hi,

Thanks for updating your plugin so fast.
I uploaded the updated tooltips.swf and did modify my xml

Quote:
//chemin gallo-romain
<box id="GR1" alt="&lt;img src='images2/camp.jpg'&gt;" url="images2/spot.png" pan="-149.00" tilt=" -31.00" rotationX="44.00" align="RB" depth="1" scaleX="1000.00" scaleY="40.00" onOver="gallosmall.visible+=1" onOut="gallosmall.visible=0" onClick="gallo.openMe" alpha="0"/>
<box id="GR2" alt="chemin gallo-romain" url="images2/spot.png" pan="-127.00" tilt=" -18.25" distance="1.12" rotationX="67.00" rotationY="-52.00" align="RB" depth="2" scaleX="500.00" scaleY="25.00" scaleable="0" onOver="gallosmall.visible+=1" onOut="gallosmall.visible=0" onClick="gallo.openMe" alpha="0"/>
<box id="gallo" saturation="-0.5" contrast="-0.25" static="1" sAlign="LT" align="LT" staticX="5" staticY="5" visible="0" depth="250" scaleX="0.4" scaleY="0.4" url="images2/gallo.jpg" openMe="hidePic(); global.hidePic=gallo.closeMe; goUp(); sAlign=CM ; align=CM ; staticX=0; staticY=0; gallo.visible+=1; gallosmall.visible=0 ; onClick=closeMe" closeMe="global.hidePic=; goDown(); visible=0; onClick=;"/>
<box id="gallosmall" static="1" sAlign="LT" align="LT" staticX="5" staticY="5" visible="0" depth="250" scaleX="0.4" scaleY="0.4" url="images2/gallo.jpg"/>
It does'nt seem to work, I'm probably doing something wrong again.

result is here (left part of the gallo-roman path) http://visitimo.fr/clients/francmayne/FPP/bibi.html

I guess that if I manage to use it, I won't be able to use the text tooltip simultaneously, will I?

Thanks again for spending your time on this.

++
Erwin

Last edited by 3rw1n; 11-22-2007 at 12:37 AM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 06:44 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.