Tài liệu Similarities Between Actionscript 1.0 and 2.0 pptx

2 351 1
Tài liệu Similarities Between Actionscript 1.0 and 2.0 pptx

Đang tải... (xem toàn văn)

Thông tin tài liệu

< 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; } Expressions are still created the same way: myVariable = (myNumber1 / 2) + (myNumber2 + 15); And scripts can still be assigned to button and movie clip instances using the on() and onClipEvent() event handlers. < Day Day Up > . 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. (myNumber1 / 2) + (myNumber2 + 15 ); And scripts can still be assigned to button and movie clip instances using the on() and onClipEvent() event handlers.

Ngày đăng: 26/01/2014, 11:20

Tài liệu cùng người dùng

Tài liệu liên quan