Re: [問題] 看的懂的幫忙修改一下 我不知道該如何改
※ 引述《catmouse520 (跟時間賽跑)》之銘言:
: 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;
: }
: }
: }
用文字說明好了 我沒有空間可以放原始檔
如何用語法 在按鈕中 呼叫出一個元件在 場景裡
還有位子要如何設定呢?
例如我希望按下按鈕 場景的(0,0) 會出現 影片元件A 要怎麼寫呢??
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 124.8.50.96
※ 編輯: catmouse520 來自: 124.8.50.96 (05/21 19:51)
討論串 (同標題文章)
Flash 近期熱門文章
PTT數位生活區 即時熱門文章