Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (8.24 KB, 2 trang )
< Day Day Up >
Similarities Between Actionscript 1.0 and 2.0
Okay, up to this point we've only talked about everything that's different between the two
versions of ActionScript. But what about them is the same? What hard-earned knowledge
of ActionScript 1.0 that you currently have is still applicable to ActionScript 2.0?
Fortunately, plenty!
You still control movie clips with this syntax:
myMovieClip_mc.gotoAndPlay(15);
You still create conditional statements the same way:
if (myNumber1 + myNumber2 == 20 && enabled != true){
//actions;
}
or looping statements this way:
for (i = 0; i <= myVariable; ++i){
//actions;
}