使用"进出口QUOT; AS3进出口、QUOT

2023-09-09 21:55:25 作者:妈与塔皆失.

我倒是很想知道。

究竟是'进口'?

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.

 
精彩推荐