看板 Flash 關於我們 聯絡資訊
on (release) { if (_root.delay<>1) { gotoAndStop(_root.right[_name]); if (_root.stack.length == 1) { if (_root.stack[0] == _root.right[_name]) { B= new Sound(); B.setVolume(100); B.attachSound("success"); B.start(0); tellTarget ("_root.cool") { setProperty("", _x, _root.lastx); setProperty("", _y, _root.lasty); gotoAndPlay(2); } _root.stack.pop(); _root.yes = _root.yes+1; if (_root.yes == 10) { setProperty("/zzz", _x, _root.lastx); setProperty("/zzz", _y, _root.lastx); /* 這邊好像有問題 我的zzz影片元件 不會出現在場景 可是上面那段的cool卻可以 } } else { _root.stack.pop(); _root.name2 = _name; tellTarget ("/delay") { gotoAndPlay(2); } } } else { _root.stack[0] = _root.right[_name]; _root.name = _name; } } } -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 124.8.50.96
aquarianboy:你把程式碼寫在物件上,有原始檔參考會比較容易幫忙:) 05/20 00:15