Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-31-2009, 10:01 AM
Junior Member
 
Join Date: Dec 2009
Posts: 1
Default Replacer 1.0, An Unnamed File Contains an Invalid Path

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.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:04 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.