|
|
Grouped Hotspots Controller v1.0This 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! 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. 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): * Attributes to put on each hotspot which is a controller (required): -- cl_hotspotGroupEvent 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. Cheers! |
New forum topicsRecent comments
Who's onlineThere are currently 0 users and 6 guests online.
|