M t movie khng th ph n ng v i mouse click khng th s d

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: chú ý. Gi s b n có m t movie khác bên trong movie, t c là b n có level 2. N u b n mu n t level 1 g i n level 2, b n ph i dùng _parent. Parent dùng gi ng như root, nhưng khác ch , nó ư c g i t level trên. Còn root ư c g i t level 0 (t c là level g c). Thu n l i t vi c s d ng root, this là b n có th gán bi n cho movie clips ActionScript var whichClipToUse = "gears"; this[whichClipToUse].stop(); Thu n l i c a v c s d ng this nhi u hơn root ch , ko ph i lúc nào m i th cũng x y ra time line chính, ô i khi ta ch mu n nó x y ra m t level nh t nh. B i v y this là cách t t nh t goi level c a m t movie. Tuy nhiên trong nh ng trương h p ơn gi n, hay nh t là c t tên cho movies. 4) Mã cho movie clip Chúng ta ã bàn v button ó là trên, v y v cơ b n movie clip script cũng gi ng button, ActionScript onClipEvent (load) { trace("This clip has been loaded."); } onClipEvent : key word g i s ki n (gi ng on c a button) load : s ki n này x y r...
View Full Document

This note was uploaded on 01/16/2013 for the course BANKING 111 taught by Professor Johnsmith during the Spring '13 term at University of Economics and Technology.

Ask a homework question - tutors are online