AS2:在附加的影片剪辑上翻转
以下是我的代码块,它附加了一个影片剪辑(来自时间线),跟踪 thisDot 有效,因此它不是有问题的变量,但没有对附加的影片剪辑应用翻转。
var dot_name:String = new String(Graphs[s]._name+"_dot"+i);
var dotObj:Object = new Object();
if (prevX != undefined) {
dotObj._x = newX;
} else {
dotObj._x = 0;
}
dotObj._y = Slide_y;
Graphs[s].chart.attachMovie("graph_dot",dot_name,Graphs[s].chart.getNextHighestDepth(),dotObj);
eval(thisDot=Graphs[s]+".chart."+dot_name);
Graphs_dots[s].push(thisDot);
thisDot.onRollOver = function () {
trace(this);
The following is the chunk of my code that is attaching a movieclip (from timeline), tracing thisDot works so it is not the variable which is a problem but there is no rollover applied to the attached movieclip.
var dot_name:String = new String(Graphs[s]._name+"_dot"+i);
var dotObj:Object = new Object();
if (prevX != undefined) {
dotObj._x = newX;
} else {
dotObj._x = 0;
}
dotObj._y = Slide_y;
Graphs[s].chart.attachMovie("graph_dot",dot_name,Graphs[s].chart.getNextHighestDepth(),dotObj);
eval(thisDot=Graphs[s]+".chart."+dot_name);
Graphs_dots[s].push(thisDot);
thisDot.onRollOver = function () {
trace(this);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在我看来,这一行:
应该是这个?
Looks to me that this row:
should be this instead?