Siêu thị PDFTải ngay đi em, trời tối mất

Thư viện tri thức trực tuyến

Kho tài liệu với 50,000+ tài liệu học thuật

© 2023 Siêu thị PDF - Kho tài liệu học thuật hàng đầu Việt Nam

Tài liệu Defining a Boundary ppt
MIỄN PHÍ
Số trang
5
Kích thước
22.5 KB
Định dạng
PDF
Lượt xem
1147

Tài liệu Defining a Boundary ppt

Nội dung xem thử

Mô tả chi tiết

< Day Day Up >

Defining a Boundary

We contend with boundaries every day. Although boundaries can take many forms—

physical, financial, mental—in the end they're nothing more than an indication of a limit.

To make a boundary work, you define its limits and take appropriate action when (or just

before) those limits are exceeded. Think of driving a car: lines on the road define the

boundaries within which the car is supposed to remain. If you're approaching the line on

the left (the left boundary), you move the steering wheel to adjust; if you're approaching

the line on the right, you adjust in the opposite direction—conditional logic in action!

Written in ActionScript, those actions might look like this:

if (car_mc._x < leftOfRoad) {

turnWheel ("right");

} else if (car_mc._x > rightOfRoad) {

turnWheel ("left");

}

Tải ngay đi em, còn do dự, trời tối mất!