Hm mathsin157 s tr v gi tr g n b ng 1 ch g n b ng ch

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ring.indexOf("l",0)); //output: 9 trace(myString.lastIndexOf("l")); i chu i t vi t thư ng sang vi t hoa và 3. toUpperCase/toLowerCase: dùng ngư c l i ActionScript var myString = "Hello World."; //output: HELLO WORLD trace(myString.toUpperCase()); //output: hello world trace(myString.toLowerCase()); 4. length: là c t ính c a Sring dùng tính chi u dài c a chu i. ActionScript var myString = "Hello World."; //output: 12 trace(myString.length); Bài t p: 1. m file 09form-noscripts.fla 2. ki m tra tên c a variable c a m i input text field qua property panel 3. Thêm o n mã sau vào nút CLEAR ActionScript on (release) { clearForm(); } 4. thêm o n mã sau vào nút SUBMIT ActionScript on (release) { submitForm(); } 5. Thêm o n code sau vào frame ActionScript function clearForm() { firstName = ""; middleInitial = ""; lastName = ""; address = ""; city = ""; state = ""; zip = ""; phone = ""; comm...
View Full Document

Ask a homework question - tutors are online