0

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.

4

2 に答える 2

0

このようなことを順を追って説明できる人を見つけることができるかどうかはわかりません。それはちょっと複雑です。

ここから始めるのが良いかもしれません: http://gotoandlearn.com/play.php?id=106 Lee は、Collada ファイルを Flash にインポートして、それを操作する方法を説明しています。Papervision や Away 3D などのサードパーティの 3D ライブラリが必要になります。要件によっては、新しい Molehill API を試してみることをお勧めします。これはまだベータ版ですが、ハードウェア アクセラレーションによる 3D と、現在出回っているどの API よりもはるかに優れたパフォーマンスをフラッシュで提供します。

申し訳ありませんが、必ずしもあなたが聞きたいことではないことは承知していますが、これは非常に複雑なテーマであり、目標を達成する方法はいくつもあり、目標を完全に台無しにする方法も数多くあります。

ここでは、特定の質問にお答えしたり、私が試みたように一般的な方向性を示したりすることができますが、このような質問に役立つように回答することは非常に困難です.

私はあなたに飛び込むのに十分なものを与えたことを願っています. 幸運を!

于 2011-03-28T17:31:46.917 に答える
0

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.addEventListener(MouseEvent.CLICK, onMouseClick);

This means when you click the mouse the function "onMouseClick" will be called.

private function onMouseClick(e:MouseEvent):void
{
   theNameOfYourAnimationMovieClipInstance.gotoAndPlay("theNameOfTheLabelToPlay");
}

That might not be much but I think you need to specify your question if you want complete solutions. Hope it helps a bit.

于 2011-03-28T12:54:38.277 に答える