是否可以仅使用开源开发 Flash 应用程序?

发布于 2024-10-04 21:35:59 字数 1436 浏览 3 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

日裸衫吸 2024-10-11 21:35:59

好问题!

我在 Inkscape Wiki 上看到了替代方案列表,但我还没有评估过它们。

正如 @LordCover 提到的,您可以使用类似 as3swf 的内容作为 timeline,但我想,除非你构建一个工具来复制 Flash 时间轴,否则会相当麻烦。

我知道您提到了一些免费的并且希望开源的东西,我也期待看到一个好的答案。但是,我在想的是,也许,取决于使用适合工作的工具与破解在一起的工具可以节省你多少时间,如果没有更好的东西,也许你可以购买旧版本的Flash,例如 Flash MX,应该比现在的版本便宜很多。这种方式可以创建补间(运动/形状)和逐帧动画。然后,您可以命名包含动画的 movieClip,以便从 FlashDevelop 控制它们(加载它们或使用 [Embed] 元数据标记)。由于Flash MX太老了,它也应该通过Wine在Linux上运行。

另外重要的一点是,您的FlashDevelop项目需要使用什么样的动画?如果它只是补间动画(alpha、x、y、旋转等),我认为嵌入式资产(swf、png、svg)使用像 TweenLite 它还有一个 TimelineLite 类,可以很好地对补间进行排序,效果很好。

如果它是漂亮的逐帧动画手绘图,也许是一个插图工具,可以从 swftools 获取 swf。

这是我的2便士,
期待看到最好的解决方案。

Good question!

I've seen a list of alternatives on the Inkscape Wiki, but I haven't evaluated them yet.

As @LordCover mentions, you could use something like as3swf for the timeline, but I imagine, unless you build a tool to replicate the Flash timeline, it would be pretty cumbersome.

I know you mentioned something free and hopefully open source, I'm looking forward to see a good answer too. But, what I was thinking is, maybe, depending on how much time it would save you by using a tool meant for the job vs. something hacked together, in case there isn't anything better, maybe you could buy an older version of Flash, like Flash MX, which should be a lot cheaper than the current version. This way could create both tweens(motion/shape) and frame by frame animations. Then you could name your movieClips containing animations to control them from FlashDevelop (either loading them or using the [Embed] metadata tag). Since Flash MX is so old, it should also run on Linux through Wine.

Another important point is, what kind of animations do you need to use in your FlashDevelop project ? If it's just motion tweens(alpha, x,y,rotation, etc.) I think embedded assets(swf, png, svg) animated with a tweening library like TweenLite which also has a TimelineLite class for nicely sequencing tweens would work well.

If it's nice hand drawings animated frame by frame, maybe an illustration tool that could export individual drawings as pdf pages and PDF2SWF from swftools to get a swf.

These are my 2 pence,
Looking forward to see the best solution.

彻夜缠绵 2024-10-11 21:35:59

您是对的,您需要Flash Develop。您将使用免费的 Flex SDK 对其进行编译(请参阅配置教程此处)。至于图形,没有 Flash 本身,没有真正的选项可以创建动画并将其导入到 Flash Develop 中。 AFAIK,你会被困在使用精灵表中。

You are right in that you need Flash Develop. You'll compile it with the free Flex SDK (See the configuration tutorial here). As for graphics, there's no real option to create animation and import them into Flash Develop without Flash itself. You're going to be stuck using sprite sheets AFAIK.

红墙和绿瓦 2024-10-11 21:35:59

@DMan,我同意他不能在 FlashDevelop 中创建它们,但如果他在 Pencil 或 Synfig 中创建它们,他肯定可以将它们导入 FlashDevelop。

这里的故事是,这些动画/影片剪辑是 SWF 文件而不是 FLA,因此它们具有开放格式,可以通过 FlashDevelop 轻松处理。

如果您有胆量和勇气,您确实可以通过修改纯 SWF 文件字节代码来手动创建动画。执行此操作的格式有些复杂,但这是可能的,此过程提供了一种简单的方法:

  1. DefineShape(在这里您可以使用其 ID、边界和精确描述形状的结构来定义形状)。
  2. PlaceObject:这会将角色添加到显示列表中。
  3. ShowFrame:这里我们告诉 Flash Player 是时候在屏幕上渲染显示列表内容了,这是我们的第一帧。

但当然,随着添加更多效果/动画,它会变得越来越复杂,这就是为什么您可能想要创建一个开源设计器来与 FlashDevelop 结合来完成您的开发框架。

@DMan, I agree that he can't create them in FlashDevelop but sure he can import them into FlashDevelop if he done them in Pencil or Synfig.

The story here is that those animations/movieclips are SWF files not FLA and so they have an open format which can be dealt with easily by FlashDevelop.

If you have the gut and courage to do it, you can really create animations manually by modifying a plain SWF file byte codes. The format to do it is somehow complex but it is possible, this procedure gives a simple approach:

  1. DefineShape (here you define your shape with its ID, bounds and a structure describes the shape precisely).
  2. PlaceObject: this adds the character to the display list.
  3. ShowFrame: here we tell Flash Player that its time to render the display list contents on the screen and that is our 1st frame.

But of course, it gets more and more complicated with adding more effects/animations, that's why you may want to create an open source designer to be combined with FlashDevelop to complete your development framework.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文