Adobe Flash CS3: The Professional Portfolio- P72

Adobe Flash CS3: The Professional Portfolio- P72:Now you can easily create web-ready images and animations within the familiar Adobe environment. With the recent acquisition of Macromedia, Adobe has added Flash to its suite of creative products, thus solidifying its position as the world's leading developer of graphic and visual communications tools. The Against The Clock Portfolio Series Flash title ensures that you'll learn everything you need to complete any job that requires Flash skills. | 4. Select Frame 1 of the Date Bar layer. Place the insertion point on line 1 of the Actions panel script pane. 5. Define a new variable using the following code uar myDate new Dated d Navigation Date Bar a s w a 5 30 35 -s so ss so yiWjfcpassffcglan attra grou fcaboigfcguesfifcjoin jfccontjfccaieqfospecjfcnew In ActionScript 3 the Date class is an object class that includes very specific methods for retrieving and storing date elements day date month and year . getDateQ is a number that represents the day of the month. getDayQ is a number from 0 to 6 that represents the days of the week beginning with Sunday Sunday 0 Monday 1 etc. . getMonth is a number from 0 to 11 that represents the month beginning with January January 0 February 1 March 2 etc. . getFullYear is a number that represents the four-digit year such as 2008 . 6- On line 3 define an array variable named weekday that stores the text equivalent of the weekday names uar weekday new Array Sunday Monday Tuesday Wednesday Thursday Friday Saturday var myDate new Date var weekday new Array Sunday Monday Tuesday Wednesday Thursday Friday Saturday The getDayO function returns a number from 0 to 6 which corresponds to the positions in the array you just defined. Note The Date object uses the date information retrievedfrom the user s computer. 7 On line 4 define an array variable named month that stores the text equivalent of the month names uar month new ArrayC January February March April May June July August September October Nouember December var myDate new Date var weekday new Array Sunday Monday Tuesday Wednesday Thursday Friday Saturday var month new Array January February March A. June July August September October Ntverher December The getMonthQ function returns a number from 0 to 11 which corresponds to the array positions in this second array. Note If you remember from Project 5 you can access the different array positions using the syntax array N where array is the name of the variable and N is a .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.