我需要实现一些鼠标/Flash 动画对象交互性,有人可以帮忙吗?
抱歉,如果这有点啰嗦。我需要在单独的 3d 应用程序中对几个 3d 对象进行建模,然后对它们进行动画处理,将这些动画导入到 flash cs3 中,然后用鼠标触发这些动画。例如,当鼠标经过一个盒子对象时,它就会打开(动画将由鼠标触发)。
另外,更复杂的是,我需要另一个对象按照鼠标在其上滑动的方向旋转。我想我会在 3d 应用程序中创建大约 16 个不同的循环动画,并且根据光标在 Flash 中在对象上移动的方向,它将触发特定的动画。
正如你可能知道的那样,我是一名动画师,对动作脚本一无所知,如果有人有任何建议,我将非常感激。
谢谢。
Sorry if this is a bit longwinded. I need to model a couple of 3d objects in a separate 3d application, then animate them, import these animations into flash cs3 and then trigger these animations with a mouse. So, for example, a box object will open up when the mouse goes over it (the animation will be triggered by the mouse).
Also, and more complicatedly, I need another object to rotate in the direction the mouse is swiped over it. I figured I'd create about 16 different looping animations in the 3d application, and depending on what direction the cursor moves over the object in flash, it would trigger that particular animation.
As you can probably tell, I'm an animator and don't have a clue about actionscript, if anyone has any advice, I'd hugely appreciate it.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好吧,我不确定这个问题是否有捷径,我猜你需要查找鼠标事件和函数调用。我不确定你对actionscript 3了解多少,但是对于点击部分,你将需要这样的东西:
这意味着当你点击鼠标时,函数“onMouseClick”将被调用。
这可能不多,但我认为如果您想要完整的解决方案,您需要指定您的问题。希望它能有所帮助。
Well, I'm not sure if there is a shortcut to this question, I guess you need to lookup mouse events and function calls. I'm not sure how much you know about actionscript 3 but for the clicking part you will need something like this:
This means when you click the mouse the function "onMouseClick" will be called.
That might not be much but I think you need to specify your question if you want complete solutions. Hope it helps a bit.
我不知道你会找到任何人能够引导你完成这样的事情,这有点复杂。
一个好的起点可能是这里:http://gotoandlearn.com/play.php?id= 106Lee 将引导您将 Collada 文件导入 Flash 并使用它。您将需要第三方 3D 库,例如 Papervision 或 Away 3D。根据您的要求,您可能想要深入了解新的 Molehill API - 它仍处于测试阶段,但它将为您提供硬件加速的 3D 以及比现有任何产品更好的闪存性能。
抱歉,我知道这不一定是您想听到的 - 但这是一个非常复杂的主题,有多种方法可以实现您的目标,也有多种方法可以彻底搞砸。
在这里,我们可以帮助解决具体问题,或者像我尝试做的那样,我们可以为您指出一般方向 - 但很难帮助回答这样的问题。
我希望我已经给了你足够的内容来深入研究。祝你好运!
I don't know that you're going to find anyone able to step you through something like this, it's kind of complex.
A good place to start might be here: http://gotoandlearn.com/play.php?id=106 Lee walks you through importing a Collada file into Flash and playing with it. You're going to need a third-party 3D library like Papervision or Away 3D. Depending on your requirements, you may want to dive into the new Molehill APIs - it's still in beta, but it'll give you hardware accelerated 3D and much better performance in flash than anything that's out there now.
Sorry, I know that's not necessarily what you're looking to hear - but this is a really complex subject with any number of ways to achieve your goals, and any number of ways to completely screw it up.
Here, we can help with specific questions or like I've tried to do we can point you into general directions - but it's very difficult to helpfully answer a question like this.
I hope I've given you enough to dive into. Good luck!