if(layer[phe_help_box].width GT 0,
tween(layer[phe_help_box].width,0);
,
tween(layer[phe_help_box].width,400);
);
font-family:Helvetica; font-size:12px; color:#ffffff; text-align:center; line-height:14px;
font-family:Helvetica; font-size:10px; color:#222222; text-align:center; line-height:10px;
font-family:Helvetica; font-size:13px; color:#222222; text-align:left; line-height:13px;
• Click the START NEW HOTSPOT button or press the 'Q' key and start drawing your polygonal hotspot.
[br][br]
• When done, press SPACEBAR!
[br][br]
* For a next/new polygonal hotspot press 'Q' or the START NEW HOTSPOT button again.
[br][br][br]
***
When fully finished press the 'P' key to print all code ready to use in the log. Copy it in your project.
inc(hs);
set(drawing, true);
txtadd(hsname, 'hs', get(hs));
addhotspot(get(hsname));
hotspot[get(hsname)].loadstyle(newpoly);
set(hotspot[get(hsname)].enabled, false);
set(pid, 0);
set(drawing, false);
MakeCode(%1);
screentosphere(mouse.x, mouse.y, toh, tov);
set(hotspot[get(hsname)],point[get(pid)].ath=get(toh),point[get(pid)].atv=get(tov));
if(_points,
set(_points, calc:_points + '
' + data[html_point].content + 'ath="' + toh + '" atv="' + tov + '"' + data[html_/exit].content);
,
set(_points, calc:' ' + data[html_point].content + 'ath="' + toh + '" atv="' + tov + '"' + data[html_/exit].content);
);
updatescreen();
mousemove();
inc(pid);
screentosphere(mouse.x, mouse.y, toh, tov);
set(hotspot[get(hsname)].point[get(pid)].ath, get(toh));
set(hotspot[get(hsname)].point[get(pid)].atv, get(tov));
updatescreen();
if(drawing == true, delayedcall(0.0, mousemove()));
set(_phestyle, calc:phe_settings.style_name);
if(_toprint,
set(_toprint, calc:_toprint + '
' + data[html_hotspot].content + ' name="%1" style="' + _phestyle + '"' + data[html_/close].content + '
' + _points + '
' + data[html_hotspotend].content);
,
set(_toprint, calc:data[html_quoteopen].content + data[html_quote].content + data[html_quoteend].content + '
' + data[html_hotspot].content + ' name="%1" style="' + _phestyle + '"' + data[html_/close].content + '
' + _points + '
' + data[html_hotspotend].content);
);
set(hotspot[%1].enabled, true);
set(_points, );
]]>
]]>
]]>
]]>
Copy this code in your scene or xml. Make sure there is a hotspot style definition. Simple and Free Polygonal Hotspot editor by Virtual Tuur
trace(_toprint);
showlog();