在 as3 中声明几个对象?
myTween = new Tween(t1, "alpha",None.easeNone,1,0,2,true);
如何在不添加更多行的情况下更改 5 个对象的 t1?
也有办法使用数组,如 myobjects[a] = "object1", myobject[b] = "object2" ... 等。 所以我可以检查活动对象
event.target
并从数组中减去此对象,并使此推文适用于除单击的对象之外的所有对象。
myTween = new Tween(t1, "alpha",None.easeNone,1,0,2,true);
how can i change t1 for 5 objects without adding more lines?
also is there way to use array like myobjects[a] = "object1", myobject[b] = "object2" ... etc.
so i can just check for active object with
event.target
and substract this one from array and make this tweet apply to all except one thats clicked.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
迄今为止最好的 Tween 框架是 greensock。要执行您所要求的操作,只需执行以下操作:
http://www.greensock.com/as/docs/tween/com/greensock/TweenMax.html#allTo%28%29
您必须下载该框架,它非常轻量级。 Greensock 以其超小的尺寸来宣传自己。
至于第二个问题,只需这样做
By far the best Tween framework is greensock. To do what you are asking, simply do the following:
http://www.greensock.com/as/docs/tween/com/greensock/TweenMax.html#allTo%28%29
You'll have to download the framework, which is very lightweight. Greensock promote themselves on their ultra small size.
As for the second question, simply do this