Hi,
(i'm back with one more bug )
Here my problem,
i got an interface plugin (derivated from the interface example "flashcs3exampleplugin11"),
i got a map with markers and i'm trying to update the info of the pano (xml driven) when i'm clicking the map markers,
then in my interface plugin i got this :
Code
// add a function to krpano, which is callable from xml
krpano.set("update_infos", update_Pano_infos);
// function called when click on map marker or hotspot within pano To Update infos Board
function update_Pano_infos(xml_id:int):void
{
// test to know if function triggered or no = it works fine
testing.visible = false;
//
// i've tried the 4 followings lines but fail
//var xml_id:int = krpano.get("xml_id");
//var xml_id:Number = event.currentTarget.id; // variable in xml to know the ID number
//xml_gallery_List[event.currentTarget.id] = xml_gallery_List["xml_id"];
event.currentTarget.id = "xml_id";
// Update infos textfields from my panogallery.xml - when i change [event.currentTarget.id] by a number : [4] : the info update is correctly done
pano_description.text = xml_gallery_List[event.currentTarget.id].description;
//
}
Alles anzeigen
in my krpano.xml , i got this :
Code
<action name="loadpano01"> // this corresponding to id:00 of the panogallery.xml
loadpano(panos/01/krpano.xml,null,KEEPBASE|KEEPPLUGINS,BLEND(1));
set(xml_id,int(0));<!-- recup this value currentID as string to update xml strings -->
update_infos(%1);<!-- call function update_Pano_infos in interface plugin -->
</action>
well, the callback works fine,
and the info updating work fine too when i replace [event.currentTarget.id] by a number,
i think problem is that [event.currentTarget.id] must be a number,
how i retrieve/convert my xml_id to use as [event.currentTarget.id] ???
don't know if i'm clear enough yet
thanks
z