showlog(); set(hsp_name,%1); set(hsp_type,%2); txtadd(iconUrl,'',%4); txtreplace(iconUrl,'|',','); if(%2 LE 1, set(hotspot[get(hsp_name)].type,'image'); set(hotspot[get(hsp_name)].url,get(iconUrl)); ); ifnot(%2 LE 1, set(hotspot[get(hsp_name)].type, 'text')); if(%2 LT 2, set(hotspot[get(hsp_name)].height,%8); set(hotspot[get(hsp_name)].width,'prop'); txtadd(hotspot[get(hsp_name)].onloaded,"add_tooltip_label();"); ); ifnot(%2 LT 2, trace('tags::',%3); set(hotspot[get(hsp_name)].height,80); set(hotspot[get(hsp_name)].width,1); txtadd(hotspot[get(hsp_name)].onloaded,"add_tooltip_label();add_tooltip_dot();"); set(hotspot[get(hsp_name)].rotate,35); ); set(hotspot[get(hsp_name)].name,%1); set(hotspot[get(hsp_name)].hotspottype,%2); set(hotspot[get(hsp_name)].hotspottitle,%3); set(hotspot[get(hsp_name)].hotspotStyle,%10); set(hotspot[get(hsp_name)].ath,%5); set(hotspot[get(hsp_name)].atv,%6); set(hotspot[get(hsp_name)].visible,true); set(hotspot[get(hsp_name)].alpha,1); set(hotspot[get(hsp_name)].scale,1); set(hotspot[get(hsp_name)].autoalpha,false); set(hotspot[get(hsp_name)].distorted,false); addhotspot(get(hsp_name)); set(hotspot[get(hsp_name)].ondown,dragJQhotspot();); showlog(); set(hsp_name,%1); set(hsp_type,%2); trace('edit'); set(schp_name,%1); set(hotspot[get(schp_name)].type,'text'); set(hotspot[get(schp_name)].ath,%4); set(hotspot[get(schp_name)].atv,%5); set(hotspot[get(schp_name)].hotspottitle,%3); set(hotspot[get(schp_name)].wordcontent,%9); set(hotspot[get(schp_name)].hotspotlink,%8); set(hotspot[get(schp_name)].alpha,1); set(hotspot[get(schp_name)].scale,1); set(hotspot[get(schp_name)].autoalpha,false); set(hotspot[get(schp_name)].distorted,false); set(hotspot[get(schp_name)].width, 1); set(hotspot[get(schp_name)].height,70); set(hotspot[get(schp_name)].visible,true); addhotspot(get(schp_name)); set(hotspot[get(schp_name)].onclick,'js(__krfn.utils.linkopen(%8,%2));'); if(%7 == false, , set(hotspot[get(schp_name)].ondown,draghotspot1();); ); txtadd(hotspot[get(schp_name)].onloaded,"add_all_2_tooltip();"); set(hotspot[get(schp_name)].onhover,null); set(hotspot[get(schp_name)].onout,null); set(hotspot[get(schp_name)].onover,null); txtadd(tooltipname2, 'tooltip2_', get(name)); txtsplit(hotspotStyle,'|',fontSize,pos,isHover,borderColor,isShowLine,isTextWrap,lineDirection,textColor,textDirection,textNumPerLine,duration,frameNumber); trace('hotspotStyle::',lineDirection); addlayer(get(tooltipname2)); txtadd(layer[get(tooltipname2)].parent, 'hotspot[', get(name), ']'); set(layer[get(tooltipname2)].autowidth, true); set(layer[get(tooltipname2)].width,'prop'); set(layer[get(tooltipname2)].height,30); set(layer[get(tooltipname2)].edge,center); set(layer[get(tooltipname2)].background,false); set(layer[get(tooltipname2)].x,0); set(layer[get(tooltipname2)].y,-45); set(layer[get(tooltipname2)].padding,0); set(layer[get(tooltipname2)].type,'html'); set(layer[get(tooltipname2)].url,'%SWFPATH%/plugins/textfield.swf'); set(layer[get(tooltipname2)].border,false); set(layer[get(tooltipname2)].align,center); set(layer[get(tooltipname2)].ondown,'dragJQlayer();'); ifnot(get(hotspottype) LT 2, set(layer[get(tooltipname2)].y,-60); set(layer[get(tooltipname2)].rotate,-35); ); txtadd(labelCode, '
','
',get(hotspottitle),'
'); copy(layer[get(tooltipname2)].html, labelCode);
txtadd(tooldot, 'tooldot_', get(name)); trace('hey::',get(tooldot)); addlayer(get(tooldot)); txtadd(layer[get(tooldot)].parent, 'hotspot[', get(name), ']'); set(layer[get(tooldot)].width,10); set(layer[get(tooldot)].height,10); set(layer[get(tooldot)].padding,0); set(layer[get(tooldot)].x,0); set(layer[get(tooldot)].y,40); set(layer[get(tooldot)].align,center); set(layer[get(tooldot)].type,'text'); set(layer[get(tooldot)].background,true); set(layer[get(tooldot)].backgroundcolor,0xFFFFFF); set(layer[get(tooldot)].backgroundalpha,0.9); set(layer[get(tooldot)].bgroundedge,5); set(layer[get(tooldot)].ondown,'dragJQlayer();'); txtadd(hsName, '', get(name)); txtreplace(hsName, 'tooltip2_', ''); txtreplace(hsName, 'tooldot_', ''); trace('drag::',hsName); copy(hath, hotspot[get(hsName)].ath); copy(hatv, hotspot[get(hsName)].atv); spheretoscreen(hath, hatv, 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, vath, vatv); copy(hotspot[get(hsName)].ath, vath); copy(hotspot[get(hsName)].atv, vatv); ); 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); );