1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
set(plugin[showinfo].url,%SWFPATH%/plugins/textfield.swf);
set(plugin[showinfo].width, 400);
set(plugin[showinfo].autoheight,true);
set(plugin[showinfo].align, lefttop);
set(plugin[showinfo].x, get(showinfo_x));
set(plugin[showinfo].y, get(showinfo_y));
set(plugin[showinfo].alpha, 0);
set(plugin[showinfo].html,data:%1);
set(plugin[showinfo].onloaded,set(html,data:%1));
set(plugin[showinfo].visible,true);
set(plugin[showinfo].selectable,false);
tween(plugin[showinfo].alpha,1,1.0);
set(plugin[showinfo].dragging,
if(pressed,
sub(dx,mouse.stagex,drag_stagex);
sub(dy,mouse.stagey,drag_stagey);
mul(dx,dragsx);
mul(dy,dragsy);
add(x,drag_currentx,dx);
add(y,drag_currenty,dy);
if(onDrag!==null,
onDrag()
);
delayedcall(0,dragging());,
if(onDragEnd!==null,
onDragEnd();
);
);
);
set(plugin[showinfo].ondown,
copy(drag_currentx,x);
copy(drag_currenty,y);
copy(drag_stagex,mouse.stagex);
copy(drag_stagey,mouse.stagey);
set(dragsx,+1);
set(dragsy,+1);
if(align==righttop,set(dragsx,-1));
if(align==right,set(dragsx,-1));
if(align==rightbottom,set(dragsx,-1);set(dragsy,-1));
if(align==bottom,set(dragsy,-1));
if(align==leftbottom,set(dragsy,-1));
if(onDragStart!==null, onDragStart() );
dragging();
);
set(plugin[showinfo].onup,
copy(showinfo_x, x);
copy(showinfo_y, y);
if(drag_currentx == plugin[showinfo].x,
hide_data();
);
);
|