Menu

[r9]: / trunk / samples / Flash8.pas  Maximize  Restore  History

Download this file

75 lines (64 with data), 2.1 kB

 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
unit Flash8;
interface
type
TMethod=procedure of object;
MovieClip=external class
constructor Create(Parent:MovieClip; Name:string; Depth:integer) as Parent.createEmptyMovieClip;
procedure removeMovieClip();
procedure getURL(url,window:string);
procedure clear;
procedure lineStyle(width,color:integer);
procedure beginGradientFill(fillType:string; colors,alphas,ratios:array of integer; matrix:TObject);
procedure beginFill(color:integer);
procedure moveTo(x,y:double);
procedure lineTo(x,y:double);
procedure curveTo(x1,y1,x2,y2:double);
procedure endFill();
procedure swapDepths(target:double);
function getDepth:integer;
property _x:integer;
property _y:integer;
property _width:integer;
property _height:integer;
property _xscale:double;
property _yscale:double;
procedure startDrag(lockCentre:boolean; Left,Right,Top,Bottom:integer);
procedure stopDrag();
property _parent:MovieClip;
property onPress:TMethod;
property onRelease:TMethod;
property onReleaseOutside:TMethod;
property onEnterFrame:TMethod;
end;
TextFormat=external class
constructor Create(const FontName:string; Size:integer);
property align:string;
property color:integer;
property size:integer;
property bold:boolean;
end;
TextField=external class
constructor Create(Parent:MovieClip; Name:string; depth,left,top,width,height:integer) as Parent.createTextField;
procedure setTextFormat(Format:TextFormat);
procedure removeTextField;
property text:string;
property background:boolean;
property backgroundColor:integer;
end;
TMath=external class(Math)
// function cos(a:double):double;
// function sin(a:double):double;
property PI:double;
end;
function cos(a:double):double external Math.cos;
function sin(a:double):double external Math.sin;
function random:double external Math.random;
function floor(a:double):integer external Math.floor;
function KeyDown(key:integer):boolean external Key.isDown;
const
SHIFT=16;
var
_root:MovieClip; // static...
Math :TMath;
implementation
end.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.