Some AIR for TV native extensions require resources, such
as image files. If your extension uses resources, do the following:
-
Extract the files from the ZIP file that the make
utility created, preserving the directory structure.
-
Add resource directories and files that the extension requires
to the directory structure.
-
Rezip the updated directory structure into a ZIP file with
the same name as the ZIP file that the make utility created.
-
Extract the files from the ANE file that the make utility
created, preserving the directory structure. You can use the same
tool you use to handle ZIP files.
-
Add resource directories and files that the extension requires
to the directory structure.
-
Rezip the updated directory structure into a ZIP file. Rename
the file to the same name as the ANE file that the make utility
created. Make sure that you change the filename extension to .ane.
The exact subdirectory structure for your resources within the
extension’s directory structure depends on where your extension
looks for the resources. The ActionScript side of the extension
can use
ExtensionContext.getExtensionDirectory()
to
locate the extension’s directory. For more information, see
Access the native extension’s directory
.
|
|
|