HomefieldOfView | SPi-V dev

Navigation

user

Mouse-over Hotspot Info

Evening Aldo,

Not quite sure how to put this, but that's the best I can come up with. I would like to be able to set a mouse-over effect on my hotspot buttons that brings up scene info for the target (pretty much just a name). I would prefer having it display in the toolbar at the bottom, but having it just pop up over the hotspot would work, too. Is there any way to do this or something like it, or should I be posting this in the "feature requests" forum? =) Thanks in advance!

~Mike

good point

I'll come up with a good solution...

Thanks!

Haha, all right. Thank you for your effort! I look forward to seeing what you come up with.

~Mike

good idea

Yes, i'm impatient to see this too.
I just try to do this with a "setproperty"... visible=true for an other image (with text) placed in the toolbar.
But no success for the moment. Maybe in a few hours...

Eric Guichaoua
www.pixel-propaganda.com

yes

That can work.

Or you can use a 'logMessage' action to get text into the browser status bar.

And there's a third option, but that's a bit more undocumented. If you have a layer with type 'text' and add a dynamic="true" attribute, you can use a setProperty action to dynamically change the text...

gotcha

Eenteresting, I'll give all three a try and see what I can come up with. Thanks! I'll let you know if I hit a brick wall.

~Mike

Example, please?

You weren't kidding about it being undocumented... Could you please post how to use the setProperty action to dynamically change the text...or anything for that matter? I'm completely lost as to how to actually use the dynamic attribute. Even an example .xml file where the dynamic attribute is used would be incredibly helpful.

At the moment, I am using the hotspot idea from the Hirshhorn tour, and I've added another layer for some text. I'm pretty sure I don't even have the syntax right and am missing something horribly, but here it is anyway.

<image id="hs">
<layer class="base" type="matte" color="6495ed" alphatype="bitmap" alphasrc="common/hs-circle-alpha.gif"/>
<layer class="hover" type="matte" color="b22222" alphatype="bitmap" alphasrc="common/hs-circle-alpha.gif"/>
<layer class="hover" type="text" dynamic="true">
<![CDATA[<b>Sun Room</b>]]>
</layer>
</image>

Anyway...help? Thanks again.

Missed this one

An image can have only a single hover layer. And you can't change the type of a layer with setProperty. So you wont be able to have both the circle and a text in a single image/state.

So...

So this should work?

<image id="hs">
<layer class="hover" type="text" dynamic="true">
<![CDATA[<b>Sun Room</b>]]>
</layer>
</image>

Yes, but...

Yes, that's the general idea, however there are two caveats:

  • There's no way to address the layer, so you currently can not change the text
  • If you're going to use the image like above, the 'hitarea' for mouseovers and clicks will be the rectangle containing the text only