how to align text on a distored hotspot?

  • or how to track a distored hotspot position on the screen?


    Code
    <hotspot name="hotspot04" style="hotspot_1" url="hotspot04.png"  			/>
    <style name="hotspot_1"  edge="bottom" distorted="true" inverserotation="true" 			/>


    and onviewchange event set hotspot ath atv rx ty ry scale and ox oy

    and i want a textfield layer always align the image center

  • Than use something like:

  • i want to align text to airhotspot


    if i made the textfield as airhotspot,the textfield hotspot acts like a 3D object,it would roll 。

    U

    Edited once, last by tmhok (June 12, 2015 at 1:06 AM).

  • Code
    <hotspot name="bubble2"  scale="0.5" style="skin_base" crop="128|192|80|80" ath="10" atv="10" distorted="true" />
    			<layer name="bubble2_inner3" url="%SWFPATH%/plugins/textfield.swf"	parent="hotspot[bubble2]"	 align="center" css="font-family:myFont; font-size:16px;" html="Test text..." />

    Works for me.
    The nested parent architecture for hotspot parents does not work for some odd reason. I think it was a fringe case Klaus never got around to thinking about.. so you have to set the parent manually.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!