如何集成Flash Professional和Flash Builder?
我是一名习惯使用 Flash Builder 的 AS3 开发人员。我正在与一位设计师合作,他使用 Flash Professional 来设计游戏的精灵和背景。我希望为我们创建一个集成的工作流程,以便他们可以在 Flash Pro 中布局关卡,而我可以在 Flash Builder 中添加事件。
除了在玩家与物品碰撞时触发事件、触发动画等之外,我还希望在玩家更改级别和游戏更改状态(开始菜单、进行中、游戏结束等)时在场景之间切换。为此,我想将所有内容加载到 Flash Builder 中并以编程方式对其进行操作 - 显示和隐藏场景、滚动、检查碰撞等。
我找到了从 Flash Pro 导出 SWC 并访问 Flash Builder 中的库的指南,但这只给了我类,而不是对象的定位实例。是否可以像我想要的那样访问舞台上的所有内容?
这似乎是一个显而易见的工作流程,但我不清楚它是如何完成的。我的方法正确吗,或者有更好的方法吗?关于一般如何设置此工作流程、该做什么或避免什么有什么建议吗?更具体地说,如何访问舞台上的实体并在场景之间切换?
I'm an AS3 developer used to working with Flash Builder. I'm working with a designer who's using Flash Professional to design sprites and backgrounds for a game. I'm looking to create an integrated workflow for us, so they can layout levels in Flash Pro and I can add events in Flash Builder.
As well as triggering events when the player collides with items, triggering animations etc., I'm also looking to switch between scenes when the player changes level and the game changes state (start menu, in-play, game over etc.). To do this I'd like to load everything into Flash Builder and manipulate it programatically - showing and hiding scenes, scrolling, checking for collisions etc.
I've found guides to exporting a swc from Flash Pro and accessing the library in Flash Builder, but this only gives me the classes, not the positioned instances of objects. Is it possible to access everything on the stage as I'm looking to do?
This seems like an obvious workflow but I'm not finding it clear how it's done. Is my approach correct, or is there a better way to do this? Any advice on how to setup this workflow generally, what to do or avoid? More specifically, how can I access the entities on the stage and switch between scenes?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将 Flash CS 中的项目编译为 swf,然后使用 Flash Builder 中的
Loader
或SWFLoader
将其添加到显示列表中。您还可以将舞台上的所有对象包装到一个 MovieClip 中,并将其编译到 swc 中,然后用作库。
You can compile your project in Flash CS into swf and then use
Loader
orSWFLoader
in Flash Builder to add it to your displaylist.Also you can wrap all your objects on the stage into one MovieClip and compile it into swc and then use as library.