Movie Clip ( ).
play() ;
stop() ;
gotoAndStop() ;
gotoAndPlay() ;
trace() output;
nextFrame() ;
prevFrame() ;
stopAllSounds() ;
getTimer() ;
updateAfterEvent() , .
Math, :
abs () - () ;
ceil () , ;
floor () - , ;
m in (1, 2) - ;
max (1, 2) - ;
s qrt () - ;
s in () . ;
cos () - . .
, ( ). 0. , , ..
: myArray = new Array().
, : myArray = new Array(1,2,3).
: a= myArray[1].
:
toString() ( ) ;
join() toString(), ;
push() ;
unshift() ;
pop() ( );
shift() ( );
delete ( );
splice(startIndex, delNumber, what) .
reverse() - ;
sort() - ( ) ( .
|
|
length .
:
array. splice(2) . array. splice(2, 3) 3 .
array. splice(2, 3, new) 3 new.
array. splice(2, 0, new) new 2 , .
, .
delete, , delete myArray[1]. , .
_ root. createTextField(name, depth, x, y, width, height) .
name ActionScript, depth , x y , width height .
text .
:
_root.createTextField("t2",0,200,200,200,200);
t2.text = "dsd";
border , true false;
borderColor ;
background , true false;
backgroundColor ;
textColor .
.
: var str: String = test.
0.
:
concat() , +;
length () .
indexOf ()-
lastIndexOf() indexOf(), ;
substring () - .
substr () - .
charAt () - , ;
split() , .
Date. C Date: var ND: Date = new Date(). :
getDate () 1 31, ;
getDay () 0 6, (0 , 1 , 2 , 3 , 4 , 5 , 6 );
getMonth () 0 11, (0 , 1 , 2 ..);
getYear () - ;
getFullYear () (4 ) ;
getHours () 0 23, ;
|
|
getMinutes () 0 59 ;
getSecond s() 0 59, .