View Full Version : Make hotspot.swf draggable ?
Is there a property to allow a spot to be draggable over the pano :confused:
Jason Villmer
10-18-2007, 03:05 PM
I don't think that this functionality exists yet but I agree that this would be a fantastic edition to the application.
zleifr
10-19-2007, 12:48 AM
To what end would you want to drag a hotspot? I ask because usually hotspots are for clicking, to do something, and so if you have to click it to drag it, what else would it do?
I might be able to tell you how to do it, if you tell me more of what you want....
popunonkok
10-19-2007, 11:03 AM
Say you have a map that is static and you would want the user to be able to move the map around. If you know how to do it, is it possible to move many hotspots with just dragin one? (If you have different hotspots on the map and want them to move with the map)
I don't know if my example here is that useable but it could give a pano a slightly more sophisticated feel to it...
//Pete r
@zleifr
I might be able to tell you how to do it, if you tell me more of what you want....
Are you Harry Poter ? :)
ok, i explain, i have an infos windows semi-transparent , this is a .swf file, placed over the pano as spot, in right-bottom corner, i want the user can drag this one over the pano in place he prefer, top left by example, to free the view when he explore the pano...
i just want assign this swf make.this.draggable=true, this swf stay over the pano, in the window frame, but we can move it if needed...
(please note : this is not a spot in the pano)
but i think the property draggable have to be implemented in FFP itself ,
right ?
zleifr
10-19-2007, 08:40 PM
No I am not Harry Potter.
I can think of one very complicated way to do approximate that with the fpp api. But the xml would be enormous.
However, it is do-able in actionscript as a plugin, popunonkok's design would be more complicated, but it could interface with the fpp api, and wouldn't require pano authors to use flash, and davx's design is simpler.
These may not be the best solutions, but they'd work:
Davx: say you want to drag the "spot" by the title bar (like a window). make something like a window in flash with the content below it and on the bar, put a mouse press event that make the position of the position of the swf track mouseX and mouseY, and an on release event that remove the mouse press event. You could subvert the tool tip plugin I wrote to do this without tooo much time invested.
popunonkok: implentation is similar, but the plugin would only display the title bar, which would be positioned appropriately next to the spot containing the map with the load pano spots on top. the plugin would have to be told which spots it drags at the beginning (via onStart event in xml for example), and then the on press event would make the plugin track the mouse and relay the relative new staticX and staticY positions of the the map and load pano spots to hotspots.swf via localConnection or direct calls so that hotspots.swf could move them.
Hope this helps. If not try Mundungus Fletcher.
hi,
No I am not Harry Potter.
Sorry.;)
yes, title bar dragging is what i'm looking for,
but my action script knowledge are limited, i 'll take a look into your example, any live example ?
Hope this helps. If not try Mundungus Fletcher
Unreachable this time..:)
@popunonkok
(simpler is better)
see you
zleifr
10-20-2007, 04:47 PM
Here is a modified glassMeter.swf which is draggable.
Load it as a plugin:
layer_x = path/2/DraggableGlassMeter.swf
Set loaderBandwidth=10 if your pano loads to quickly to play with it.
You should be able to use it as a template for a draggable item. Just change out the glassmeter parts and replace with your map parts.
Zephyr
thanks,:)
i try it and feedback you later...
so, your example works as expected (thanks and good job) apart the little jump to the center of the swf on press mouse...
but, unfortunately when i pasted in externaltest.fla , it doesn't works because AS2 coding, and your code is AS3...
looking now for AS3 version of externaltest.fla... anyone here ?
(sorry , but my brain is design oriented and have hard job with programming :-( )
i can modify existant code but start from scratch is over my head.
zleifr
10-23-2007, 05:29 AM
I do believe that Jason Vilmer has outlined and given the AS3 required to make your map with hotspots:
http://flashpanoramas.com/forum/showthread.php?t=511
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.