-

  • (13)
  • (3)
  • (1)
  • (118)
  • (28)
  • (38)
  • (19)
  • (24)
  • (193)
  •     (1)
  •     (3)
  •     (6)
  •     (2)
  •     (6)
  •     (2)
  •     (3)
  •     (3)
  • (25)
  • (16)
  • (77)
  • (139)
  •     (101)
  •     (24)
  •     (12)
  • (33)
  • (113)
  • (72)
  • (10)
  • (16)
  • (0)
  • (39)
  •     (3)
  •     (24)
  •     (4)
  • (57)
  • (43)
  • (21)
  • (76)
  • (49)
  • (53)
  • (50)
  • (63)
  • (81)
  • (3)
  • (44)
  • (82)
  • (14)
  • (194)
  • (69)
  • (54)
  • , (40)
  • (62)
  • (40)
  • (64)
  • (5)
  • (29)
  •     (3)
  •     (7)
  •     (14)
  •     (5)
  • (11)
  • (425)
  •     (82)
  •     (37)
  •     (44)
  •     (4)
  •     (23)
  •     (19)
  •     (4)
  •     (94)
  •     (26)
  •     (43)
  •     (20)
  •     (25)
  • (60)
  • (11)
  • ... (5)
  • ... (5)
  • (24)
  • (27)
  • (81)
  • (114)
  • (6)
  • (13)
  • (23)
  • (28)
  • (37)
  • (15)
  • (51)
  • (181)
  •     (112)
  •     (13)
  •     (47)
  • (3)
  • (5)
  • (113)
  • (29)
  • (46)
  • (34)
  • (8)
  • (113)
  • (7)
  • (52)
  • (20)
  • (89)
  •    8 (13)
  •    8 (7)
  •     (35)
  •     (30)
  • (1)
  • (34)
  • (17)
  • (38)
  • (80)
  • (4)
  • (6)
  • (1)
  • (2)
  • (28)
  • (9)
  • (16)
  • (157)
  •     (2)
  •     (8)
  •     (90)
  •     (5)
  •     (24)
  • (1)
  • (42)
  • (46)
  • (9)
  • (23)
  • (2)
  • (24)
  •     (10)
  • (8)
  • (8)
  • (62)
  • , , (17)
  • (5)
  • (6)
  • (44)
  • (27)
  • (88)
  • (16)
  • (16)
  • (1)
  • (2)
  • (104)
  • (50)
  • (4)

 -

   KaterinaAverian

 - e-mail

 

 -

 LiveInternet.ru:
: 16.04.2011
: 5022
: 1853
: 12860

:


. .

, 01 2013 . 17:33 +
___ . .

, .



Flash CS5. Action Script 2.0

. .

(570*570), .

#C2C1C1 #E0DFE3

570, 60 0 x, Y.

. .
:570, :420, X:0, Y:85

. , . . - . .

, base . . head

base.

head .

. . A1C90D

. :542 :37

.

. head.

- areahead

.

areahead( head) ( base), Sift.

. areahead( - ). ::542, :400, X:14,Y:95

. F8 . : body.

- areabody

.

body, - .
panel. .

- , .
, .

, - 3.

.

, .

: - .

: - .

, .

( F8 )
prev nex :


.
: #A1C90D, :

- 6

:22,5; :22,5.

F8 . : krug; : Button; : Center

. krug , .

.
.

,

.
pogod , pomes defaul .



. , . , .

::12; :12

F8

flag

flag defau".
Ctrl + F8 . : ob; : ; , Action Script Identifier obvod

, : 55; : 45; X: 5; Y: -7

. :
bliki

, bliki base

base bliki
, none.
. . 4 . . 2- 25%, 3- 20%:

.

as :


// monmas,
var monmas:Array = new Array([""], [""], [""], [""], [""], [""], [""], [""], [""], [""], [""], [""]);
// daymas, 8 - 1 , 7 -
var daymas:Array = new Array([""], [""], [""], [""], [""], [""], [""]);
// cold,
var cold:Array = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
// Date - my_date
var my_date:Date = new Date();
/*date_default = true,
, .
true, .*/
date_default = true;
/* TextFormat - my_txt.
.*/
var my_txt:TextFormat = new TextFormat();
/* align - , size - , font - .
.*/
my_txt.align = "center";
my_txt.size = 27;
my_txt.font = "Times New Roman";
/*
den - , dned - , ye - , mon -
perem - , flag */
if (date_default) {
var den = _root.my_date.getDate();
var dned = _root.my_date.getDay();
var ye = _root.my_date.getFullYear();
var mon = _root.my_date.getMonth();
var perem = 3;
}
/* , 1-
*/
function dn1vm(dvm, dnvm) {
//dvm - , dnvm -
var dn = 0;
dn = 8-((dvm-dnvm)%7);
if (dn>7) {
dn -= 7;
}
return (dn);
//
}
/* , ... */
function vis(ye) {
//ye -
if (ye%4 == 0) {
return (true);
} else {
return (false);
}
}
//, 1 .
function dns1(mon, mmm) {
//mon - mmm -
var xq = 0;
var xw = 0;
for (xq; xq/^
if ((vis) and (mon>=2)) {
xw++;
}
//^ , 1
xw += mmm;
//^ v .
return (xw);
}
/* ,
*/
function dn1sm(dned, mon) {
//dned - mon -
var er = _root.cold[mon];
//^ er -
if (_root.vis(_root.ye) and _root.mon == 1) {
er++;
}
//^
if (mon == 11) {
_root.ye++;
_root.mon = -1;
}
/*^ - ,
ye ,
, mon - (-1)
*/
er = er%7+dned;
/*^ er 7
.
v ,
*/
if (er>7) {
er -= 7;
}
return (er);
//^
}
/*,

*/
function dn1pm(dned, mon) {
//dned - , mon -
if (mon-1 == -1 || mon-1 == 1) {
//v - .
if (mon == 0) {
_root.ye--;
_root.mon = 11;
//v 1- ...
dned = _root.dn1vm(_root.den, dned);
//v dend,
if (dned-1<0) {
dned += 6;
} else {
dned--;
}
//v dned( )
_root.dned = _root.dn1vm(31, dned);
//v den()
_root.den = 1;
}
//v - .
if (mon-1 == 1) {
if (_root.vis(_root.ye)) {
// .
if (dned-1<0) {
dned += 6;
} else {
dned--;
}
_root.mon--;
_root.dned = _root.dn1vm(29, dned);
} else {
if (dned-1<0) {
dned += 6;
} else {
dned--;
}
_root.mon--;
_root.dned = _root.dn1vm(28, dned);
}
}
} else {
if (dned-1<0) {
dned += 6;
} else {
dned--;
}
_root.dned = _root.dn1vm(_root.cold[mon-1], dned);
_root.mon--;
}
}
/*
*/
function postr(mon, ye, den, dned) {
//v 2
_root.areahead.createEmptyMovieClip("area2", 1);
_root.areabody.createEmptyMovieClip("area1", 1);
//v ,
_root.areahead.area2.createTextField("textm", 1, 0, 0, _root.areahead._width, _root.areahead._height);
//v my_txt
_root.areahead.area2.textm.setNewTextFormat(_root.my_txt);
//v
_root.areahead.area2.textm.text = _root.monmas[mon]+", "+ye;
//v
_root.areahead.area2.textm.selectable = false;
var nam:Array = [];
var por = 0;
var nnn = 0;
for (nx=1; nx<=7; nx++) {
for (ny=1; ny<=8; ny++) {
nam[nx, ny] = "ned"+nx+ny;
por++;
//
_root.areabody.area1.createTextField(nam[nx, ny], por, _root.areabody._width/8*(ny-1), _root.areabody._height/7*(nx-1), _root.areabody._width/8, _root.areabody._height/7);
//v my_txt
_root.areabody.area1[nam[nx, ny]].setNewTextFormat(_root.my_txt);
//v
_root.areabody.area1[nam[nx, ny]].selectable = false;
//v
if ((ny != 1) and (nx == 1)) {
_root.areabody.area1[nam[nx, ny]].text = _root.daymas[por-2];
}
//v
if ((ny != 1) and (nx != 1)) {
nnn++;
prov = _root.cold[_root.mon];
if (_root.vis(_root.ye) and _root.mon == 1) {
prov++;
}
if (nnn-(dn1vm(den, dned)-1)>0) {
//v -
if (((vis) and (mon == 1)) and (nnn-(dn1vm(den, dned)-1)<=29)) {
_root.areabody.area1[nam[nx, ny]].text = nnn-(dn1vm(den, dned)-1);
}
// .
if (nnn-(dn1vm(den, dned)-1)<=prov) {
_root.areabody.area1[nam[nx, ny]].text = nnn-(dn1vm(den, dned)-1);
} else {
_root.areabody.area1[nam[nx, ny]].text = "";
}
}
}
//v .
if ((_root.perem == 3 and ny>1) || (_root.ye == _root.my_date.getFullYear() and _root.mon == _root.my_date.getMonth() and ny>1)) {
// , "obvod" .
if ((nnn-(dn1vm(den, dned)-1) == _root.my_date.getDate()) and (_root.my_date.getMonth() == mon) and (_root.my_date.getFullYear() == ye)) {
this.attachMovie("obvod", "ob", 1, {_x:(_root.areabody._width/8*(ny-1))+_root.areabody._x, _y:(_root.areabody._height/7*(nx-1))+_root.areabody._y});
}
} else if (ny != 1) {
removeMovieClip("ob");
}
prov = _root.cold[_root.mon];

if (_root.vis(_root.ye) and _root.mon == 1) {
prov++;

}
if (nnn-(dn1vm(den, dned)-1)7)-3;
}
}
}
}
}
//v , _root.postr .
if (date_default) {
_root.postr(_root.my_date.getMonth(), _root.my_date.getFullYear(), _root.my_date.getDate(), _root.my_date.getDay());
}
//v .
pogod.onRelease = function() {
date_default = false;
_root.perem = 1;
_root.flag._x = _root.pogod._x;
};
//v .
pomes.onRelease = function() {
date_default = false;
_root.perem = 2;
_root.flag._x = _root.pomes._x;
};
//v .
function def() {
date_default = true;
_root.perem = 3;
_root.den = _root.my_date.getDate();
_root.dned = _root.my_date.getDay();
_root.ye = _root.my_date.getFullYear();
_root.mon = _root.my_date.getMonth();
_root.flag._x = _root.defaul._x;
_root.postr(_root.my_date.getMonth(), _root.my_date.getFullYear(), _root.my_date.getDate(), _root.my_date.getDay());
}
//, , nex
function nextsh() {
if (_root.perem == 2) {
var q = dn1sm(dn1vm(_root.den, _root.dned), _root.mon);
_root.mon++;
_root.dned = q;
_root.den = 1;
_root.postr(_root.mon, _root.ye, 1, q);
}
if (_root.perem == 1) {
if ((_root.vis(_root.ye) and _root.mon<=1) || (_root.vis(_root.ye+1) and _root.mon>1)) {
_root.dned += 2;
} else {
_root.dned++;
}
if (_root.dned>6) {
_root.dned -= 7;
}
_root.ye++;
_root.postr(_root.mon, _root.ye, _root.den, _root.dned);
}
}
//, , prev
function prevsh() {
if (_root.perem == 2) {
dn1pm(_root.dned, _root.mon);
_root.postr(_root.mon, _root.ye, _root.den, _root.dned);
}
if (_root.perem == 1) {
if ((_root.vis(_root.ye) and _root.mon>1) || (_root.vis(_root.ye-1) and _root.mon<=1)) {
_root.dned -= 2;
} else {
_root.dned--;
}
_root.ye--;
if (_root.dned<0) {
_root.dned += 7;
}
_root.postr(_root.mon, _root.ye, _root.den, _root.dned);
}
}
//v
defaul.onRelease = function() {
def();
};
nex.onRelease = function() {
nextsh();
};
prev.onRelease = function() {
prevsh();
};

. swf.



: http://demiart.ru/forum/index.php?showtopic=66677&st=0
/

: [1] []
 

:
: 

: ( )

:

  URL