View Full Version : Jumping hotspots Batman!
Does anyone have a clue what might be causing this. When you click inside the Flash object (e.g. to drag the viewpoint) the hotspot jumps up by a couple of pixels. When you let go, it returns to its original position.
Here's the xml
<?xml version="1.0" ?>
<panorama>
<parameters>
panHome=0
tiltHome=-10
zoomHome=0.75
zoomMax=1
loaderBackColor=79797A
layer_1 = flashplayer/autorotator.swf
layer_2 = flashplayer/hotspots.swf
</parameters>
<autorotator>
speed = -0.1
interval = 10
pause = 2000
quality = medium
</autorotator>
<hotspots>
<global>
<spot id="spot_id" url="flashplayer/trebah_title.png" static="1" salign="TL" staticX="200" staticY="50" onClick="openUrl(panos/trebah_bridge.htm,_self)" />
</global>
</hotspots>
</panorama>
One other question. For my first attempt at this I made the hotspot the same size as the movie because I didn't know how to position. Now, I've positioned a smaller hotspot top left, but I still want the entire thing to be linked, not just the hotspot area. Any ideas?
Cheers
Ken
Sorry, The page I'm referring to is the sig link
fotocubo
06-29-2007, 01:56 PM
When you click inside the Flash object (e.g. to drag the viewpoint) the hotspot jumps up by a couple of pixels. When you let go, it returns to its original position.
I guess it is because the image update while switching between low and medium/high quality. Player has to redraw pixels for each quality level of display.
Thanks fotocubo but don't think that's it. Changed autorotate quality to high and no difference.
fotocubo
06-29-2007, 02:38 PM
Ok. Maybe it is imposible to avoid. There are two layers and the lower one has to be redrawn while panning, so the same for displaying both when it stop. This process requires a change in pixels display and produces that offset effect.
One other question. For my first attempt at this I made the hotspot the same size as the movie because I didn't know how to position. Now, I've positioned a smaller hotspot top left, but I still want the entire thing to be linked, not just the hotspot area. Any ideas?
I think it is not posible to have the same area for two diferent interaction modes at the same time. If you set it for responsing to navigation dragging it makes that area incompatible with an onClick event. Anyway do consider how confusing it would be for the user. But I am not a really an expert and perhaps some "guru" can find the solution. Just trying to help ;) Regards.
fotocubo
06-29-2007, 04:52 PM
Hi again Ken, I have noticed that if you use png files always will have this problem. A solution is to convert the PNG archive to swf file. It will solve that pixel "jumping" . I made it for you. Please try this:
http://img518.imageshack.us/img518/9859/trebahtitletx2.swf
It is you PNG converted to swf. Only have to be renamed to "trebah_title.swf"
Hope this helps ;)
That sorted it. Thanks! I guess it wasn't happening before as the previous hotspot file was the same size as the window, so couldn't jump around. I don't normally use png, but assumed that was the only way to preserve the drop shadow and transparency, important on a title over moving background that's trees one second and sky the next. swf seems to work just as well. How did you make the swf? I don't think I can save a swf from photoshop. Will I have to import it into flash and save?
Thanks again.
Ken
fotocubo
06-29-2007, 08:43 PM
Glad to have helped you :). It is easy to convert if you have Flash program. Yes, you have to import every image and export the swf. Anyway if you do not have Flash you can try a program which convert images to flash (bmp, .gif, .jpg, .pic, .png, .psd, .tga, .tiff) Image2SWF (http://verticalmoon.com/products/image2swf/image2swf.htm#features) it is only $9.95.
An alternative would be that Denis would provide us with a swf file that open any png just naming both with the same prefix, in the same way pano.swf anda pano0.swf work. It is just a sugestion. Regards.
Denis
07-07-2007, 03:00 PM
An alternative would be that Denis would provide us with a swf file that open any png just naming both with the same prefix, in the same way pano.swf anda pano0.swf work. It is just a sugestion. Regards.
I though about it! :)
It is possible to create a loader that will convert pictures to swf on the fly (also this will give a possibility to load any type of image: gif, tif, png, ico, bmp). One day I will make it (when will find a time for it). :)
Thanks Denis, that would be cool. In the meantime it's no problem to make swfs. In fact, given that I'll be using these nav controls on every panorama I produce it makes more sense to use swfs than to convert on the fly.
BTW any ideas about this
One other question. For my first attempt at this I made the hotspot the same size as the movie because I didn't know how to position. Now, I've positioned a smaller hotspot top left, but I still want the entire thing to be linked, not just the hotspot area. Any ideas?
Ken
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.