|
|||
|
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 |
|
|||
|
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"); ... |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|