View Full Version : block settings
Ricardo
12-02-2007, 11:02 PM
Hi Denis,
I would like if I could group objects to do some settings.
For example: to group all hotspots than set hotspotsGroup.visible=0.
Ricardo
Scott Witte
12-03-2007, 07:30 PM
I would like if I could group objects to do some settings.
For example: to group all hotspots than set hotspotsGroup.visible=0.
Ricardo,
It isn't quite as clean but you can just group those commands into a function and call the function. For instance:
hotSpotHide="
Ent_Recep.alpha=0
Ent_L_Level.alpha=0
Ent_Sm_Gall.alpha=0
"
>
Of course you have to repeat all that to toggle them visible again. If you have more than a couple parameters you would like to change independently on the same group it could really start stacking up some sizable functions so it isn't as convenient. But I found this an effective way to achieve what you seem to be asking for.
Ricardo
12-05-2007, 10:02 AM
Hi Scott,
In fact I was thinking in something like:
<navhospots>
.. hotspots here
<navhotspots/>
<linkhotspots>
.. hotspots here
<linkhotspots/>
<boxes>
.. boxes here
<boxes/>
than
hideToolbar()
navhotspots.visible="1" (and all navigation buttons would be suffer this action)
and so one
cheathamlane
12-06-2007, 03:25 PM
Ricardo & Scott:
I was needing to work out this issue myself! I was able to create a lightweight plugin which lets you handle groups of hotspots. Feel free to check out a demo over at flashpanos.com.
Scott Witte
12-06-2007, 04:06 PM
Feel free to check out a demo over at flashpanos.com.
:D A little monetary incentive and you become a fountain of creativity!
Hang on! Could that be extended to solve one of the greatest weaknesses of standard XML, lack of a conditional (if...else...then)? Very interesting.
cheathamlane
12-06-2007, 04:27 PM
Fountain: Well, maybe the creativity part. The money isn't exactly pouring in in a fountain-like manner. ;)
Argh, yes -- lacking conditionals in FPP's XML was driving me batty. Once I got my head around the Plugin structure, though, I'm Mr. Conditional. ;)
vBulletin® v3.7.1, Copyright ©2000-2010, Jelsoft Enterprises Ltd.