Flash CS4 Professional in 24 Hours- P14

Flash CS4 Professional in 24 Hours- P14: The creation of this book could not have happened without the skill and patience of many, many people at Sams Publishing. Most of all, I want to thank Mark Taber for offering me this opportunity and Philip Kerman for writing such a great book. I also greatly appreciate the efforts of Songlin Qiu for keeping me on track and organized, not an easy task. | What Other Web Tasks Can Flash Do 381 Targeting Windows You probably noticed that when you clicked the button you created in the second task this hour Use navigateToURL to Create a Hyperlink not only were you hyperlinked to another page but the new page appeared in a new browser window. When you made text hyperlinks in the subsequent two tasks the new pages would replace the current browser window. To take control of this behavior you can specify the optional window parameter with one of the standard HTML values _self _blank _parent _top. In HTML window refers to the rectangular frame into which the user views a web page. Some pages have one big window whereas others are made up of an arrangement of several windows. Windows can be given names so you can specify into which window particular content should go. There are also some generic window names. Compare this to how you refer to houses in your neighborhood specifically by using addresses or by using generic terms such as next door and across the street. To specify a window when using navigateToURL simply provide a second parameter containing the window name as a string. For example in step 4 of the task Use navigateToURL to Create a Hyperlink you can replace the second to the last line of code with navigateToURL new URLRequest url _self . That is the first parameter is always the URLRequest and the second parameter which is optional can be any built-in window name _self _blank _parent _top or any window you ve previously named as in HTML frames. To specify a target window when using text hyperlinks like you did in the task Create a Text Hyperlink you can use the Target drop-down menu in the Properties panel to select from the built-in window names or enter the window name manually as shown in Figure . Finally if you re creating hyperlinks using dynamic text you can use the standard HTML attribute called target. That is you can use the following code in place of the code you entered in step 3 of the task Use

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.