Grouped Hotspots Controller v1.0

This plugin will allow you to control an entire group of hotspots from a single hotspot! Contributed by Patrick Cheatham. Easy to use and powerful!

Tired of writing repetitive, super-long functions in your Flash Panoramas XML, when you have a whole set of hotspots to show/hide, rotate, fade, or otherwise manipulate? Then this is the plugin for you! Smile

Simply add a group name to each hotspot you want to be part of the group, then add a group function on the hotspot which will be the controller. Away you go!

Demo it here, and click on either of the two hotspots at far right.
price: $10

Once purchased, Patrick will email you the Plugin and example files -- usually within 24-48 hours. Please contact Patrick with any questions. Read on for the full explanation!

This plugin works like other FPP plugins -- you put it on a layer inside the element.

See example code below for how to inform the Grouped Hotspots Controller Plugin!

* Attribute to put on each hotspot which is part of the group (required):
-- cl_hotspotGroupName
--- ex: cl_hotspotGroupName="myCoolGroup"

* Attributes to put on each hotspot which is a controller (required):
-- cl_hotspotGroupToControl
--- ex: cl_hotspotGroupToControl ="myCoolGroup"
--- note that what you put in-between the "" must be the same as one of your group names.

-- cl_hotspotGroupEvent
--- ex: cl_hotspotGroupEvent="myCoolGroup.staticY=-100;|myCoolGroup.staticY=-50;"
--- note that each function which should act on your group is preceded by your group name and ".". other functions can be written as usual (global.blah, pano.blah, anotherHotspot.blah)
--- use the "|" (pipe) to split functions, and the controller will act like a toggle switch. what is at left of | is called on the first click, and the second click calls what is at right of |. then the cycle starts again.

XML example (also provided in download):

<panorama>
<parameters>
layer_20 = files/hotspots.swf
layer_80 = files/cl_hotspotGroup_1.0.swf
</parameters>
<hotspots>
<global
pano_move="pano.pan=143,1000;pano.tilt=10,500;"
pano_move2="pano.pan=100,1000;pano.zoom=1.5,500;"
>
<pano></pano>
<spot id="hotspot_1" static="1" salign="rb" staticX="-113" staticY="-65"  url="files/nav/panright_normal.png" blockMouse="1"
cl_hotspotGroupName="myCoolGroup"
/>
<spot id="hotspot_2" static="1" salign="rb" staticX="-150" staticY="-65"  url="files/nav/panleft_normal.png" blockMouse="1"
cl_hotspotGroupName="myCoolGroup"
/>
<spot id="hotspot_2a" static="1" salign="rb" staticX="-190" staticY="-65"  url="files/nav/panleft_normal.png" blockMouse="1"
cl_hotspotGroupName="myCoolGroup"
/>
<!--
the below controller shows use of hotspot as a "toggle".
the "|" (pipe) is the delimiter for first and second sets of functions.
the first click sets the group's "staticY=-100" in 1.9 seconds AND calls on a function
in the global parameter ("pano_move2").
the second click sets the group'
s "staticY=-50" in 1.9 seconds.
-->
<spot id="hotspot_3" static="1" salign="rb" staticX="-73" staticY="-65"  url="files/nav/panleft_normal.png" blockMouse="1"
rotation="90"
cl_hotspotGroupToControl="myCoolGroup"
cl_hotspotGroupEvent="myCoolGroup.staticY=-100,1900;global.pano_move2;|myCoolGroup.staticY=-50,1900;"
/>
<!--
the below controller shows use of hotspot as a "toggle".
the "|" (pipe) is the delimiter for first and second sets of functions.
the first click sets the group's "visible=0".
the second click sets the groups'
s "visible=1", AND calls on a function
in the global parameter ("pano_move").
-->
<spot id="hotspot_4" static="1" salign="rb" staticX="-33" staticY="-65"  url="files/nav/fs_normal.png; blockMouse="1"
cl_hotspotGroupToControl="
myCoolGroup"
cl_hotspotGroupEvent="
myCoolGroup.visible=0;|myCoolGroup.visible=1;global.pano_move"
/>
</global>
</hotspots>
</panorama>

Demo, and click on either of the two hotspots at far right.
price: $10

Once purchased, Patrick will email you the Plugin and example files -- usually within 24-48 hours! Please contact Patrick with any questions.

Cheers!