使用"进出口QUOT; AS3 [英] Using "Import" AS3

查看:127
本文介绍了使用"进出口QUOT; AS3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我倒是很想知道。

究竟是'进口'?

I'm思考使用闪光灯组件与此'进口':

I´m thinking about to use a flash component with this 'import':

 //import the required data class
import fl.data.DataProvider;
//import the AutoComplete class
import com.yahoo.astra.fl.controls.AutoComplete;

我的意思是,我不具备这些文件夹在我的应用程序主文件夹中。

I mean, I don´t have those folders in my app main folder.

时从网页导入?

如果是的话,它的安全?如果服务器关闭,将应用程序,使用这些类,崩溃了?

If yes, is it safe? If server is shut down, will the app, that uses those classes, crash?

感谢。

推荐答案

通过import语句,你可以在应用程序中,然后将您的SWF文件进行编译某些ActionScript类。如果你使用严格的语法,并尝试使用未导入的类成员,编译器会告诉你这件事。否则,你的应用程序仍然可以工作。

With the import statement you can include certain ActionScript classes in your application, which then will be compiled in your SWF file. If you use strict syntax and you try to use a Class member that is not imported, the compiler will tell you about it. Otherwise your app will still work.

进口AS类必须在ActionScript项目时,应注意添加到您的库路径,或SRC路径。您无法导入的在线文件。

The imported AS classes must be added to your library path, or src path when working on an ActionScript project. You can't import online files.

这篇关于使用"进出口QUOT; AS3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆