空气参数错误:错误#2004:-Android

空气参数错误:错误#2004:-Android,android,air,flash-cs6,Android,Air,Flash Cs6,获取此错误: ArgumentError: Error #2004: One of the parameters is invalid. at Error$/throwError() at flash.filesystem::File/set nativePath() at flash.filesystem::File() at TestingRandomSound_fla::MainTimeline/GetContents()[TestingRandomSoun

获取此错误:

ArgumentError: Error #2004: One of the parameters is invalid.
    at Error$/throwError()
    at flash.filesystem::File/set nativePath()
    at flash.filesystem::File()
    at TestingRandomSound_fla::MainTimeline/GetContents()[TestingRandomSound_fla.MainTimeline::frame1:22]
    at TestingRandomSound_fla::MainTimeline/frame1()[TestingRandomSound_fla.MainTimeline::frame1:47]
    at runtime::ContentPlayer/loadInitialContent()
    at runtime::ContentPlayer/playRawContent()
    at runtime::ContentPlayer/playContent()
    at runtime::AppRunner/run()
    at AppEntryCommon/run()
    at global/runtime::AndroidMobileDeviceAppEntry()
根据该代码:

import flash.desktop.NativeApplication;
import flash.events.Event;
import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.filesystem.File;
import flash.ui.Multitouch;
import flash.ui.MultitouchInputMode;

    var myDocuments:File = new File(File.applicationDirectory.nativePath+"\\sample");
它可以在我的Air桌面上使用,但不能在Android设备上使用。 我包括了文件夹示例,但它仍然不起作用。
有什么想法吗?

这很有效。但显然,应用程序目录中的文件是只读的

var prefsFile:File = File.applicationDirectory;
prefsFile = prefsFile.resolvePath("assets/xml/preferences.xml"); 
我创建了一个xml首选项文件。但是如果我想在上面写,我必须把它复制到文档目录中