textfield instead of graphic on a hotspot

  • I want a polygonal hotspot to have a textfield next to it.

    I know how I would set this up as a plugin, with a new plugin for each hotspot.

    What I want is to create it dynamically though an action for each hotspot, i.e. one plugin and many hotpspots.

    Anyone any ideas?

  • Hi viewinz,

    I think doing something like this:

    Code
    <plugin name="YourtextfielPlugin" .....  />
    
    
    <hotspot name="hotspot1" ..........
      onclick="set(plugin[YourtextfielPlugin].html,some txt for hotspot1)";   />
    
    
    <hotspot name="hotspot2" ..........
      onclick="set(plugin[YourtextfielPlugin].html,some txt for hotspot2)";   />

    I have not tried but I think it will do the job.

    Have you tried to use a textfield as distorted hotspot?
    I have just made some tries ... but strange results ... *wacko*

    Salut.

  • I've tried that method but still can't work out how to place the textfield in the pano, rather than on the interface if you get what I mean.

    How are you trying to use textfield as distorted hotspot? can I see your code?

    Cheers for having a look.

  • Hi viewinz,

    I just tried with textfield as hotspot... like this:

    This way you have only 1 "hotspot textfield".
    for each hotspot, onover makes the action to give the right html text , the position with ath and atv, and makes visible the "hotspot textfield".....
    and onout makes the "hotspot textfield" invisible....

    I think it is correct...

    About ath and atv:

    • ath
      point at horizontal position in spherical coordinates (0 .. 360°)
    • atv
      point at vertical position in spherical coordinates (-90 .. +90°)

    I hope this can make the job... tell me.. *wink*

    Salut.

  • Hi Michel:
    do you have any method add a text to hotspot without using textfield plguin?
    i want a use this run in mobile, and it do not support flashplayer,

    could help me? thank you

  • hi klaus:
    the hotspot attribute css does not support class and id selector, just support element selector.

    my xml file as below:
    <hotspot name="textfieldhotspot"
    url="textfield.swf"
    width="150"
    height="150"
    ath="0.7747"
    atv="-11.2726"
    distorted="true" rx="0.0" ry="0.5" rz="0.2"
    html="[p id='texthotspotCls']Hello World[/p]"
    css="p.texthotspotCls {
    color:#00ff00;
    font-family:Arial;
    font-weight:bold;
    font-size:14;
    margin-left:5;
    margin-right:5;
    text-align:center;
    }"
    backgroundcolor="0xFFFFFF"
    backgroundalpha="1.0"
    roundedge="5"
    shadow="1"
    borderwidth="0"
    glow="4"
    glowcolor="0xFFFFFF"
    autosize="center"
    ondown="draghotspot();"/>

    the id selector did not work

    <hotspot name="textfieldhotspot"
    url="textfield.swf"
    width="150"
    height="150"
    ath="0.7747"
    atv="-11.2726"
    distorted="true" rx="0.0" ry="0.5" rz="0.2"
    html="[p id='texthotspotCls']Hello World[/p]"
    css="p{
    color:#00ff00;
    font-family:Arial;
    font-weight:bold;
    font-size:14;
    margin-left:5;
    margin-right:5;
    text-align:center;
    }"
    backgroundcolor="0xFFFFFF"
    backgroundalpha="1.0"
    roundedge="5"
    shadow="1"
    borderwidth="0"
    glow="4"
    glowcolor="0xFFFFFF"
    autosize="center"
    ondown="draghotspot();"/>

    the element work ok
    could you give me some advice? thank you

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!