Author Topic: config file megazine.xml  (Read 3251 times)

pirx

  • Newbie
  • *
  • Posts: 5
config file megazine.xml
« on: February 21, 2009, 07:43:20 am »
Hi,

great job, first book works perfectly.

But what happens now to my second one? Pathes are relative to megazine.swf, but there is already one config file 'megazine.xml'. Can I choose another filename or does this mean that i have to use a different location with another megazine.swf?

 ciao pirx

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1989
  • MegaZine3 Developer
    • MegaZine3
Re: config file megazine.xml
« Reply #1 on: February 21, 2009, 12:17:57 pm »
You can use another filename or path for the xml file. Have a look at the JavaScript that loads the swf in the HTML that comes with the releases.
Among the FlashVars there is one named xmlFile which is the path to the xml file to be loaded.
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.

muffinchen

  • Newbie
  • *
  • Posts: 1
Re: config file megazine.xml
« Reply #2 on: August 05, 2009, 10:58:16 am »
You can use another filename or path for the xml file. Have a look at the JavaScript that loads the swf in the HTML that comes with the releases.
Among the FlashVars there is one named xmlFile which is the path to the xml file to be loaded.


I also would like to create several books using another filename or path for the megazine.xml file.
I checked the JavaScript that loads the swf in index.html but there is no FlashVar xmlFile !
This is witten there: swfobject.embedSWF"megazine/megazine.swf", "megazine", "1000", "850", "9.0.115", "swfobject/expressInstall.swf", null, {bgcolor : "#333333", allowFullscreen : "true"}, {id : "megazine"});

Do I have to change the id to use a different name for the megazine.xml file ?
Thank you for this great application !

phyton2706

  • Translator
  • Newbie
  • *
  • Posts: 24
Re: config file megazine.xml
« Reply #3 on: August 05, 2009, 12:47:22 pm »
At the javascript part of the html-file is a line like:

xmlFile : "megazine.xml",  /* Flashvars, used to pass the name of the xml file to use. Path is relative to the swf! */

That can you cange like:

xmlFile : "book_2.xml",  /* Flashvars, used to pass the name of the xml file to use. Path is relative to the swf! */

phyton2706

GregorH

  • Newbie
  • *
  • Posts: 4
Re: config file megazine.xml
« Reply #4 on: August 06, 2009, 09:26:20 am »
Hello muffinchen,

I think there is a confusion between the DEMO book -which does not have this variable- and the official release version.