Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-11-2005, 01:44 AM
Member
 
Join Date: May 2004
Posts: 78
Default Saving attached files

Related to my other 'folder' query, I also want to save attached files to a user's PC. These files have all been attached within SWFKit.

I can get the files by - getAdditionalFile - but there seems to be no option to 'saveAdditionalFile' or anything like that.

I've tried fidding around with:
Code:
f = getAdditionalFile("test.swf");
f.copy("c:\test.swf");
But nothing. :-[ - SWFKit produces the following in a trace window: Warning: unknown method "copy"

Any ideas?
__________________
:)
Reply With Quote
  #2 (permalink)  
Old 10-11-2005, 10:11 AM
Member
 
Join Date: May 2004
Posts: 78
Default Re:Saving attached files

Ok - I've been able to di it now ;D

The user has already saved one file, so I just use the following to transfer the unchanged files into their current directory:

Code:
var file = new File(getAdditionalFile("setup.js"));
file.copy("setup.js");
It works! 8)
__________________
:)
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 02:00 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.