Hi,
Trying to create Polygon Hot spot in Flash.
Can someone have a look at my code and explain the thrown error.
Can I write it like this?
Thanks in Advance.
Code:
//ADD HOTSPOT
krpano.call("addhotspot(RandomHot);");
var RandomHot:Object = krpano.get("hotspot[RandomHot]");
RandomHot.visible = "true";
RandomHot.enabled = "true";
RandomHot.usecontentsize = "false";
RandomHot.handcursor = "true";
RandomHot.fillcolor = "0xffffff";
//RandomHot.fillalpha="0.00";
//RandomHot.borderwidth="0.0";
RandomHot.bordercolor = "0xffffff";
//RandomHot.borderalpha="0.00";
RandomHot.fillcolorhover = "0xffffff";
RandomHot.fillalphahover = "0.10";
RandomHot.borderwidthhover = "4.0";
RandomHot.bordercolorhover = "0xffffff";
RandomHot.borderalphahover = "0.80";
RandomHot.fadeintime = "0.150";
RandomHot.fadeouttime = "0.300";
RandomHot.fadeincurve = "1.100";
RandomHot.fadeoutcurve = "0.700";
//
//problem with below?? - if commented out no error thrown
//but of course won't work.
RandomHot.point[0].ath="-6.5739";
RandomHot.point[0].atv="6.0405";
RandomHot.point[1].ath="0.6173";
RandomHot.point[1].atv="6.3040";
RandomHot.point[2].ath="0.5381";
RandomHot.point[2].atv="10.8674";
RandomHot.point[3].ath="-7.1327";
RandomHot.point[3].atv="10.7918";
RandomHot.point[4].ath="-7.1327";
RandomHot.point[4].atv="10.7918";
RandomHot.onclick = toggle_krpano_area;
___________________________________________________
Error thrown in swf/.exe:
ReferenceError: Error #1069: Property 0 not found on krpano.Kinterface.Kinterface_array and there is no default value.
at embedexampleCS5/krpano_loadcomplete_event()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at krpano::krpano_interface/call()
at Kcache/handleRequests()
at kflashpano::Kpano/enterFrameHandler()