I'm currently working on moving hotspots after mousedown. I'm using code from the dragabl-hotspots example.
Once HS is moved I'd like to save new position in xml config file from "action" script level. Is it possible ?
I'm adding new line like this:
|
Source code
|
1
|
"set(hotspot[get(name)].atv, atv);"
|
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
|
<action name="draghotspot">
spheretoscreen(ath, atv, hotspotcenterx, hotspotcentery, 'l');
sub(drag_adjustx, mouse.stagex, hotspotcenterx);
sub(drag_adjusty, mouse.stagey, hotspotcentery);
asyncloop(pressed,
sub(dx, mouse.stagex, drag_adjustx);
sub(dy, mouse.stagey, drag_adjusty);
screentosphere(dx, dy, ath, atv);
print_hotspot_pos();
);
set(hotspot[get(name)].atv, atv);
</action>
|
but that doesn't change xml content and after reload HS is in old place.
If it's not posisble, what is the best way to save latest changes in xml ? From JS external calls level i'm using jquery call to php and then storing on server.
Is it doable in similar way in here ? How I could call php from there ?
thanks