作者catmouse520 (跟时间赛跑)
看板Flash
标题Re: [问题] 看的懂的帮忙修改一下 我不知道该如何改
时间Mon May 21 19:50:59 2007
※ 引述《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)