ActionScript 3 - 安装库
我想知道如何将库包安装到 Flash 项目中。 我正在使用 Adobe Flash CS4,我尝试包含的库位于 AS3 中。
I would like to know how can I install a library packages to a Flash project.
I am using Adobe Flash CS4 and the library I'm trying to include is in AS3.
The library can be found on http://code.google.com/p/as3ansi/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从您提供的链接中我看不到库文件在哪里;看起来更像是一个现成的 SWF 或其他东西。不过,一般来说,要“安装”库(安装是一种误导性的思考方式),您可以输入以下行:
..并将包含库文件的文件夹放入项目目录中(当然还要更改“文件夹”) ' 在上面的代码中更改为无论文件夹名称是什么)。例如,如果代码位于名为 math > 的文件夹内几何,你会这样做:
一旦完成,你将能够访问新库附带的所有类和函数。希望一切有帮助。
I can't see from the link you've given where the library files are; it seems more like that thing is a ready-built SWF or something. In general though, to 'install' a library (install is a misleading way to think about it), you put the line:
..and you put the folders which contain the library files into your project directory (and of course change 'folder' in the above code to whatever the folder names are). For example, if the code is located inside a folder called math > geometry, you'd do:
Once done, you'll be able to access all the classes and functions that come with your new library. Hope that all helps.