PDA

View Full Version : smartscale bug on scaledhot spots ?


www.bodensee360.de
04-27-2009, 03:38 PM
Hello

i got a strange behavior of the smartscale plugin on a scaled hotspot.

Take a look here:

http://www.zooming.de/demo/siemens/demo-1/test.html

At "WA I-Punkt" theres a clickable image.
Click on it a image gets scaled in from
scale="0.00" to scale="1"

<box
id="Image_button"
url="hotspotFiles/images/point_jpg.png"
linked="visualFiles/L1"
orientation="sphere"
distorted="1"
depth="1"
pan="-145.00"
tilt="-3.00"
scale="0.50"
alt="Image"
onClick="Image_2.scale=1,1200,bounce;"
/>
<spot
id="Image_2"
url="hotspotFiles/images/popups/8422.jpg"
linked="visualFiles/L1"
static="1"
depth="1000"
visible="1"
smartScale="1"
scale="0.00"
onClick="Image_2.scale=0,500;"
/>



Works without problems, but when you downscale the windows browser to lets say 800x600 pixels,

1. the image doesnt get "smartscaled" and stays on the bigger size.

2. when Im resize the window, the image gets totally lost.


Any Idea ?


Tried the fcc_smartscale.swf from Trausti
and the smartscale.swf from the FPP Blog.



I was proud to get my navigation smartscaled working, no problems here
http://www.zooming.de/demo/siemens/demo-1/Project_2009_04_27_v02.html




Michael

siesfor
04-27-2009, 07:08 PM
hey Michael, change your "smartScale" to all lower case lettering, "smartscale", like you have for the navigation buttons, and that should take care of the problem. Really like the navigation set-up you got, btw, it looks really good.

www.bodensee360.de
04-28-2009, 10:47 PM
Thanks for help, Siesfor !

"lower case lettering" didnt help, but i got a code working


<box
id="Image_button_2"
url="hotspotFiles/images/point_jpg.png"
linked="visualFiles/L1"
orientation="sphere"
distorted="1"
depth="1"
pan="-145.00"
tilt="-3.00"
scale="0.50"
alt="Image"
onClick="Image_2.scale=0.8,1200,bounce;"
/>
<spot
id="Image_2"
url="hotspotFiles/images/popups/8422.jpg"
linked="visualFiles/L1"
static="1"
depth="110"
visible="1"
smartscale="1"
onClick="Image_2.scale=0,500;"
onLoad="Image_2.scale=0;"
/>


I believe it is a bug in smartscale plugin.

What i also mentioned is:
Dont change the size of the window!
If you do this, all "hidden" (scale 0.00) will be showed....WTF ?
Maybe i should also add a visisble=0

But my autotour is getting pretty.

http://www.zooming.de/demo/siemens/demo-1/Project_2009_04_27_v02.html
(open Navigation -> Autotour)

Next problem is to add serveral autotour-functions to several panos
(Every Pano has its own autotour)

Is it possible within one XML File ? Or only with differend XML's ?
Any ideas ?


Michael

siesfor
04-30-2009, 05:37 PM
Hey Michael, I got a chance to play around with it today and sure enough, there does seem to be a glitch w/ the smartscale plugin, take smartscale out of the spot's parameters, and it doesn't appear on window resize, put it back in and it does, that is so weird. I guess either Denis or Trausti's guys will need to get on that.

Your client should love that autotour, it's looking really good. And yeah, you can use one xml for all your autotours. You could use onTransitionEnd to assign a new function to the autotour button for each tour. Check out this thread with some good info about cancelling out the old tour and starting a new one using this method.

http://flashpanoramas.com/forum/showthread.php?t=2046

Trausti Hraunfjord
04-30-2009, 05:43 PM
Yes, the smartscale plugin is faulty. It had my main programmer to rip out his nasal hairs in frustration when implementing it. Quite honestly, I don't think I dare ask him to have a look at the structure of it (in fear of a violent outburst).

siesfor
04-30-2009, 05:52 PM
LOL, but on the plus side, with all those nasal hairs gone, he's breathing freer than ever.

Trausti Hraunfjord
04-30-2009, 06:54 PM
:) Yes... and it's always good to look on the bright side of life (Monty Python)