|
|||
|
I created an exe file using "SwfKit Pro 3.5".
I attached some files into this EXE file with Replacer 1.0 API, and when I open the file I get the following error: "An Unnamed File Contains an Invalid Path." My project codes are Code:
ReplacerLib.ReplaceClass replacer = new ReplacerLib.ReplaceClass();
string path = context.Server.MapPath("~/sunumatik") + "\\";
string template = path + "_res\\" + "Presentation.exe";
replacer.AddMovie(path + "_res\\" + "Presentation.swf");
replacer.AddFile("Data", path + "_res\\Data\\presentation.xml");
replacer.AddFile("Pictures", path + "_res\\Pictures\\ford-mustang.jpg");
replacer.AddFile("Sounds", path + "_res\\Sounds\\2_Pac_-_Changes.mp3");
output = replacer.BuildStream(template, 2);
context.Response.Clear();
context.Response.ContentType = "application/octet-stream";
context.Response.AddHeader("content-disposition", "attachment; filename=output.exe");
context.Response.BinaryWrite((byte[])output);
context.Response.End();
When i use "SWFKit Pro 2.2 r2" its working well. But I have to use "SwfKit Pro 3.5", because i used Action Script 3. Im using this statement in as3 : basePath = ExternalInterface.call("FFish_Eval", "getAdditionalFile();"); ------------------------------ if is it not possible can you do that for SWFKit Pro 2.2 r2 when i try to call an ffish script like that (using: SWFKit Pro 2.2 r2): ExternalInterface.call("FFish_Eval", "getAdditionalFile();"); its not working can you set a method ExternalInterface.call for SWFKit Pro 2.2 Last edited by hakaneren; 12-31-2009 at 10:22 AM. |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|