Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-27-2003, 07:38 AM
Junior Member
 
Join Date: Dec 2002
Posts: 3
Default Trying to load a xml file

Hi
I have a movie that loads an xml file.
It works fine when I don't pack the movie in swfkit, but fails when I pack it.

żIs there any way to load the xml file in a packed distribution?

Thanks
Reply With Quote
  #2 (permalink)  
Old 03-28-2003, 01:49 AM
Senior Member
 
Join Date: Jan 2001
Posts: 413
Default Re: Trying to load a xml file

Have a try:

1. In the "Step 1", check the "Pack additional files", then in the "step 2", add your xml file in the "Application"

2. Add the below code to your Initialize FFish code:

Code:
mySWFs = getMovies();

tmpfile = new File(mySWFs[0]);
destpath = tmpfile.parentPath;

var xmlfile = getAdditionalFile("your.xml");
fxml = new File(xmlfile);
fxml.copy(destpath + "\\your.xml");
hope it can help,
Reply With Quote
  #3 (permalink)  
Old 03-28-2003, 08:37 AM
Junior Member
 
Join Date: Dec 2002
Posts: 3
Default Re: Trying to load a xml file

:-/ I think I don't express myself well. The swf file have to be inside the packed exe but the xml must be outside.
Reply With Quote
  #4 (permalink)  
Old 03-29-2003, 05:59 AM
Senior Member
 
Join Date: Jan 2001
Posts: 413
Default Re: Trying to load a xml file

Could you send me an example to make it clear how's your situation, support@swfkit.com
Reply With Quote
  #5 (permalink)  
Old 03-29-2003, 10:54 AM
Junior Member
 
Join Date: Dec 2002
Posts: 3
Default Re: Trying to load a xml file

Ok. I'll try it again

It is a vb app that forms an xml file from a database. The app burns into a CD the xml file and the movie that loads the file.

The movie must be a projector, so I have transformed it into an exe file with swfkit.

And here is the problem: If I don´t check "Pack movies" the movie loads the xml correctly, but it doesn't work when I check it. żIs there any way to keep the movie packed and load the xml that is not packed?

Thanks
Reply With Quote
  #6 (permalink)  
Old 03-30-2003, 06:23 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Trying to load a xml file

Hi,

The packed swf file will be extracted to a temporary folder, you can copy the xml file to the temporary folder that contains the extracted swf file, then the situation is the same as without checking "Pack movies".

Daniel Jiang's code shows how to do this, please have a try
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:57 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.