Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-13-2007, 01:38 PM
Junior Member
 
Join Date: Jun 2007
Posts: 9
Default External XML - SOLVED

Hy ,

I have created a flash installer that it is going to be an .exe file.

This flash has some customizable text retrived from some xml files, it will also start some aplications by links provided from xml.

The problem appears if i make the file packed. because it will embed all the xml's and can't be customizabele no more ( i want to be able to give the intro.exe file and the directory with the xml for someone lese to modify it)

If i do not pack it all the files i used for the intro will appear listed in the main directory.

Is there a way to solve this, maybe by identifying the directory from where the "intro. exe" is located and get the files from there?

any ideea is appreciated

Thanks

Reply With Quote
  #2 (permalink)  
Old 06-13-2007, 02:52 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:External XML

Yes, but you will have to load the XML files in actionscript by using their absolute path name. For example, say the xml files are in the "XML" sub-folder, without being packed into the "intro.exe". The following actionscript 2 can be used to load them (Flash 8 )

Code:
import SWFKit.*;

var basePath = Global.getAppDir() + "\\";

var xml = new XML();
xml.load(basePath + "XML\\my_a.xml");
...
Reply With Quote
  #3 (permalink)  
Old 06-18-2007, 02:41 PM
Junior Member
 
Join Date: Jun 2007
Posts: 9
Default Re:External XML

thanks , that was it
Reply With Quote
  #4 (permalink)  
Old 06-19-2007, 11:20 AM
Junior Member
 
Join Date: Jun 2007
Posts: 9
Default Re:External XML

you'we got a new custommer
Reply With Quote
  #5 (permalink)  
Old 06-19-2007, 12:10 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:External XML

Thank you very much
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 04:21 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.