align textfield with cursor

  • How do I align the textfield with the cursor?

    I've tried align="cursor" and original="cursor" with no luck.. any ideas?

    I want the html text effect in the textstyles document, in a graphic (speech bubble) that moves with the cursor.

  • Hi viewinz,

    Why to not use the showtext action in combination with a <textstyle> ?
    <textstyle> have the attribute origin to set textposition to mouse cursor :

    origin
    "cursor" - set textposition to mouse cursor (=default)
    for a fixed positon on screen use one of these values:
    "lefttop", "left", "leftbottom", "top", "center", "bottom", "righttop", "right", "rightbottom"


    A possible code would be something like this:

    Perhaps this can do the job. *smile*

    A new tag for the showtext action as something like [img src=""] would be great to do something like what you are looking for... *rolleyes*
    Or a new attribute for the <plugin> node like origin="cursor"...
    Klaus, perhaps this can be implemented on future version. *smile*

    Salut.

  • A new tag for the showtext action as something like [img src=""] would be great to do something like what you are looking for... *rolleyes*

    that will work
    the '[' and ']' are will be just replaced by '<' and '>'
    but the HTML Renderer of the Flashplayer is really buggy, especially the <img> tag,
    I found the following solution - a [br] is needed before and after the

    best regards,
    Klaus

  • Brilliant. Got that working great!

    Next question - how do I lay text over the image? i.e. speech bubble background, with text in the bubble?

    I've had a look at the livedocs regarding this and it seems it might be difficult.

    Would a better way to be maybe make the graphic (speech bubble) into an swf and get the text into there? Not sure how I would do that as it needs to be generated from the xml datasource. Would I do something like create a dynamic textfield over the image with the variable 'hstext' in the new swf and in the xml on the onover set the variable 'hstext' as the relevant data content? My flash knowledge isn't great so before I embark on this and spend days over it I would like to know it's possible! *confused*

    The other thought I had was in the onover make the cursor the graphic, would that work?

    Thanks lots for your help! *cool*

    2 Mal editiert, zuletzt von viewinz (22. September 2009 um 08:49)

  • Hi viewinz,

    I have tried to call 2 showtext action (one with the bubble background, the other with the text foreground) in different way but it seems that showtext action can be called only 1 time... the last call is the one it is displayed... *sad*
    Do not see a way to do... *confused*

    Salut.

  • I've had limited success by changing the cursor. I can get the cursor to change to the graphic, and hopefully show text should overlay it.

    BUT.. when you roll over a hotspot, the cursor disappears.

    And before you ask, handcursor="false"!

    Code
    <hotspot name="pier2ferry" ath="-150" atv="0"         keep="false"         visible="true" enabled="true" handcursor="false" capture="false" children="false" zorder="10"         fillcolor     ="0xffffff" fillalpha     ="0.00" borderwidth     ="0.0" bordercolor     ="0xffffff" borderalpha     ="0.00"         fillcolorhover="0xffffff" fillalphahover="0.30" borderwidthhover="0.0" bordercolorhover="0xffffff" borderalphahover="0.00"         onover="set(cursors.url, %SWFPATH%/hs.png)"         onhover=""         onout=""         ondown="hs(ferry,ferry2pier)"         onup=""         onclick="" onloaded=""         flying="0"><point ath="178.2174" atv=" -1.4540" /><point ath="-125.5751" atv="  0.1901" /><point ath="-126.1102" atv=" 11.4175" /><point ath="-151.2046" atv=" 21.4357" /><point ath="177.8108" atv="  2.4959" /><point ath="173.8779" atv="  1.6940" /><point ath="174.0857" atv=" -0.0742" /><point ath="177.6207" atv="  0.1228" /></hotspot>


    Anyone know how to change the cursor and keep the cursor changed while over a hotspot and with showtext appearing over the new cursor?

  • Hi,

    Next question - how do I lay text over the image? i.e. speech bubble background, with text in the bubble?

    I think that will not be possible with only xml at the moment...
    (showtext() can only show one text at one time at the moment)

    Would a better way to be maybe make the graphic (speech bubble) into an swf and get the text into there? Not sure how I would do that as it needs to be generated from the xml datasource. Would I do something like create a dynamic textfield over the image with the variable 'hstext' in the new swf and in the xml on the onover set the variable 'hstext' as the relevant data content? My flash knowledge isn't great so before I embark on this and spend days over it I would like to know it's possible! *confused*

    doing it via AS3 would be possible of course,
    but it will require some as3 knowledge...

    I will try to post an example here:
    http://www.krpano.com/forum/wbb/inde…D=7971#post7971


    The other thought I had was in the onover make the cursor the graphic, would that work?

    no, on hover the cursor will change again...
    but in the case it would work, you had also only a graphic, without text...

    best regards,
    Klaus

Jetzt mitmachen!

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