用于交互式路径绘制的actionscript库(或任何其他用于方程的库)
我正在制作一个 Flash 应用程序,我希望有一个用户定义的视口,例如 Flash IDE 中的舞台,用户可以使用它来定义对象,这些对象的起始位置位于舞台上或舞台上的某处,结束位置为打开或关闭的位置带有对象的舞台,然后在两点之间进行补间。 我的问题是这样的:我希望用户能够为要补间的对象定义一条曲线路径。是否有一个代码库可用于定义应用程序的弯曲路径?
理想情况下,我想要类似于 Flash 中可用的功能的东西,因此贝塞尔曲线路径被细分为可以拖动以定义补间路径的手柄。
如果没有现有的库,那么您知道我需要定义的函数(与绘制曲线等相关的数学方程)吗?
非常感谢
I am making a flash app where I want to have a user defined viewport like the stage in the flash IDE which the user can use to define objects that have a starting postition somerwhere off or on the stage and an ending position either or on or off the stage with the object then tweening between the two points.
My question is this: I want the user to be able to define a curved path for the object to tween along. Is there a library of code that I can use to define curved paths for the app?
Ideally I would like something similar to the functionality available in Flash, so a bezier curve sort of path that is subdivided into handles that can be dragged to define the path of the tween.
If there isn't an existing library, then do you know of the functions that I would need to define (mathematical equations related to drawing curves etc)?
Many thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将 TweenMax 与 BezierPlugin
或者在其他地方定义路径并使用 LinePath2D
You could use TweenMax with the BezierPlugin
Or define the path elsewhere and use LinePath2D