Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Sử dụng Event Handler Phương pháp xử lý sự kiện Tất cả các tiêu chuẩn có phương pháp xử lý sự kiện tương đương (còn gọi là chức năng gọi lại hoặc hàm callbacks). Ví dụ: trên (báo chí) là buttonName_btn.onPress hoặc movieClipName_mc.onPress | Using Event Handler Methods All standard event handlers have equivalent event handler methods also called callback functions or function callbacks . For example on press is buttonName_btn.onPress or movieClipName_mc.onPress on release is buttonName_btn.onRelease or movieClipName_mc.onRelease on enterFrame is movieClipName_mc.onEnterFrame In addition these event handler methods exist but have no standard event equivalents Buttons Movie Clips nameOfClipOrButton.onKillFocus nameOfClipOrButton.onSetFocus Sound Objects nameOfSoundObject.onLoad nameOfSoundObject.onSoundComplete nameOfSoundObject.onID3 Text Fields nameOfTextField. onChanged nameOfTextField.onKillFocus nameOfTextField.onS croller nameOfTextField. onS etFocus Stage Objects Stage.onLoad StyleSheet Objects nameOfStyleSheet.onResize ContextMenu Objects nameOfContextMenu.onSelect ContextMenuItem Objects nameOfContextMenuItem.onSelect LoadVars Objects nameOfLoadVarsObject.onLoad SharedObject Objects nameOfSharedObject.onStatus LocalConnection Objects nameOfLocalConnection.allowDomain nameOfLocalConnection.onStatus NetConnection Objects nameOfNetConnection.onStatus NetStream Objects nameOfNetStream.onStatus XML Objects nameOfXMLObject.onData .