Get point Atv Ath for dynamical Polygonal Hotspot creation.

  • Hi,


    I would like to know how to access to points ATV ATH when my file looks like :


    Code
    <krpano>	<elements name="hotspots">
    		<item name="polyspot_1"  style="my_style" >			<point ath="-4.687" atv="-5.712" />			<point ath="4.505" atv="-5.735" />			<point ath="4.417" atv="13.633" />			<point ath="-4.517" atv="13.601" />		</item><krpano>


    i can access to the name and style by :

    Code
    trace(get(elements[hotspots].item[0].name));trace(get(elements[hotspots].item[0].style));




    but how to access to point ath atv ?


    i've tried,


    Code
    trace(get(elements[hotspots].item[0].point.count));
    trace(get(elements[hotspots].item[0].point[0].atv));trace(get(elements[hotspots].item[0].point[0].ath));


    [size=10][size=10]
    [size=10][size=10]but always return "null"[size=10][size=10]

    [size=10]regards


  • *smile*

Jetzt mitmachen!

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