با سلام
من ميخوام که يکسري فايل ها از داخل پوشه برنامه اجرا بشه و اين کد ها رو استفاده مي کنم (مثلا فايل test1.doc )
import flash.filesystem.File;
var file:File = File.applicationDirectory;
file = file.resolvePath("test1.doc");
file.openWithDefaultApplication();
اما اين خطا مياد
[SWF] open.swf - 2134 bytes after decompression
Error: Error #3000: Illegal path name.
at Error$/throwError()
at flash.filesystem::File/openWithDefaultApplication()
at open_fla::MainTimeline/frame1()[open_fla.MainTimeline::frame1:7]
at runtime::ContentPlayer/loadInitialContent()
at runtime::ContentPlayer/playRawContent()
at runtime::ContentPlayer/playContent()
at runtime::AppRunner/run()
at ADLAppEntry/run()
at global/runtime::ADLEntry()
براي رفع اين مشکل چکار بايد بکنم؟
من ميخوام که يکسري فايل ها از داخل پوشه برنامه اجرا بشه و اين کد ها رو استفاده مي کنم (مثلا فايل test1.doc )
import flash.filesystem.File;
var file:File = File.applicationDirectory;
file = file.resolvePath("test1.doc");
file.openWithDefaultApplication();
اما اين خطا مياد
[SWF] open.swf - 2134 bytes after decompression
Error: Error #3000: Illegal path name.
at Error$/throwError()
at flash.filesystem::File/openWithDefaultApplication()
at open_fla::MainTimeline/frame1()[open_fla.MainTimeline::frame1:7]
at runtime::ContentPlayer/loadInitialContent()
at runtime::ContentPlayer/playRawContent()
at runtime::ContentPlayer/playContent()
at runtime::AppRunner/run()
at ADLAppEntry/run()
at global/runtime::ADLEntry()
براي رفع اين مشکل چکار بايد بکنم؟