Recent Posts

Pages: 1 ... 8 9 [10]
91
Technical Support (AS3 / JS / ASUL) / Re: Problem to include the SWF for a AS3 Slideshow
« Last post by Tipo on February 14, 2013, 11:35:28 am »
Ok that is confused!!! :o :o :o

As I thought it couldn't be so difficult so
my structure was nearly the same like yours.
Code: [Select]
<img left="120" top="100" src='de/swf/loadermaxslideshow.swf'/> 

I only put these files into another folder:
/de/swf/loadermaxslideshow.swf
/de/swf/images.xml

But that didn't work.
I also tried to put the images into the same directory, but also no success.

So when I put these two files into the root folder ... it works.
But I don't understand it why it only works in the root folder.
92
It works in my test environment.
I guess you might have missed one of these points:
  • the images, the images.xml and the loadermaxslideshow.swf files must all reside in the same folder; unless you adjust the images.xml path info. But then still images.xml and loadermaxslideshow.swf must be located in the same folder
  • you must add the loadermaxslideshow.swf as 'image' to the page where you want to include that slideshow/animation. You can position it as if you would position an image.
  • Do not use width or height or keepar; obviously the loadermaxslideshow.swf does not support that (or I am missing something else ;-)
  • Set the 'src' to the path and name of the loadermaxslideshow.swf. Easiest would be to copy all (.jpg, 2.jpg, 3.jpg, 4.jpg, loadermaxslideshow.swf and images.xml) into the megazine/ folder
  • Do all that in the final megazine.mz3 file, e.g. located in export_online_std/book_version/book/version/
  • If you created an Online version, you should use a local server (e.g. XAMPP), otherwise it most probably will not work. Alternatively you can upload to a real server or build an offline version (projector, Flash program) instead

I placed the files into the megazine/folder and added this to page 3 of the MZ3-Tool3 Beginners manual (I had that 'at hand' ;-):
Code: [Select]
  <img top="50" left="50">
<src lang='de'>loadermaxslideshow.swf</src>
<src scale='1.1' lang='de'>loadermaxslideshow.swf</src>
  </img>

And the slideshop opened up and presented the 4 images.
You probably will not need the language and scale definitions, so it can be as simple as this
Code: [Select]
<img top="50" left="50" src='loadermaxslideshow.swf'/>

93
Technical Support (AS3 / JS / ASUL) / Problem to include the SWF for a AS3 Slideshow
« Last post by Tipo on February 13, 2013, 06:54:29 pm »
Hi,

I found an AS3 + XML slideshow and tried to include it into my book.
But unfortunately I get nothing to see.

This is the link to slideshow including the code: http://adamcoulombe.info/lab/as3/loadermaxslideshow/
You need only the swf and xml file.

The SWF work without problem if you put it directly into the browser.
So why did it not work in the book?
Does the book interpret a swf file in an other way?
94
Technical Support (AS3 / JS / ASUL) / Re: How to layout?
« Last post by Tipo on February 12, 2013, 01:08:44 pm »
Ok, I don't understand it.

I can't find any way how to use the styles from the megazine.asul in the megazine.mz3.

In the Asul is a style called "text.title".
What have I to do to see this style in my megazine.mz3???

I've tried so far:
Code: [Select]
    <page>
      <txt rasterize="false" id="title" style="title">
        <content id="title" style="title"><![CDATA[
          <text id="title" style="title">Some <a href="http://www.example.com/">link</a></text>.
        ]]></content>
      </txt>
    </page>

But there is no text with a bold font when I start the megazine-fat.exe
95
Technical Support (AS3 / JS / ASUL) / Re: How to layout?
« Last post by Tipo on February 12, 2013, 11:45:53 am »
Ok, after many many conversion fails I see now my new blank book in the folder "export_offline_fat/".

Can I work in this folder or in the "my_mz3_titles/" folder?
Because in the export_offline_fat/ I have some more folders like "gui_c", "langs_c".

In addition I have now a folder named "software/myAsulConfigs" with the Asul files you mentioned. But when I look into my export_offline_fat/ folder I can find these Asul files again in the gui_c/ folder.
And I think I had to use this folder for my book instead that one in the software/ folder.

Sorry for my confusion I try to familiarize with that system.  :D

So next I think I have to read your wiki carefully to understand how to get this Asul files to work with my book.
96
Technical Support (AS3 / JS / ASUL) / Re: How to layout?
« Last post by Hans Nücke on February 12, 2013, 12:52:39 am »
What you will want to read are the details about ASUL (ActionScript User difinition language).
A good start will be the category:ASUL in the Wiki

At the bottom you'll find a summary of all relevant links with more detailed information.
For every pluing there is an ASUL definition file, like navigationbar.asul
Those files are located in the folder megazine/gui/

Using MZ3-Tool3 helps you in managing changes and getting access to the source versions of those ASUL files:
The "binaries" of the ASUL files are located in: software/MZ3/megazine/gui/

You should have MZ3-Tool3 create a customization path for you. You can configure that in setting the parameter <customizationpath> in the 'make' configuration file to  such folder path.
We suggest to locate that folder in the software/ path, so one possible option could is:
<customizationpath>software/myAsulConfigs</customizationpath>

With the next run MZ3-Tool3 will create the folder software/myAsulConfigs/ and place more folders with data in that folder.
The one of interest will be software/myAsulConfigs/megazine/gui/, where you will find the 'source' versions of all ASUL files.

Open the navigationbar.asul file in a text editor like notepad++, and you'll see there are a lot of comments explaining what can be done.
If you configure notepad++ the way that .asul extensions are interpreted as XML files, those ASUL files become again much more readable. To do so I think to remember correctly ou should do these two steps:
1. In settings-options-links-customize  add 'mz3' and 'asul' as supported extensions.
2. In settings-styles select XML as language, and then add 'mz3 asul' as custom extensions (in the bottom)
Save all, and you should see different elements now color coded.

<styles> are like CSS definitions.  And you'll find similarities to HTML also. A <box> tag wraps content similar to a <div> tag. And then there are <button>, <text>, <togglebutton> tags and more.
Once you studied some of the ASUL files and read the WIKI, you'll get the concept.
More examples can be found in the _examples/ folder (open the zip files).
What you also will realize is that those ASUL files contain AS3 snippets, i.e. you even can include code within ASUL files. And nothing has to be compiled (no Adobe tools necessary).

All changes made to files in the <customizationfolder> will not be overwritten. The modified files will substitute those in the software/MZ3/ folder.
With this you can safely install a new version of MZ3-Tool3/MegaZine3.

Tips for doing such an update (just to to make a note here in the forum ;-):
The prefered approach is to create a new directory and start with the new MZ3-Tool3 version from scratch.
This minimizes risks of loosing modified files and having an inconsistent system. If you e.g. did not rename the 'make' and 'details' files, those will be overwritten with those provided with the new version.

If on the other hand you want to keep everything in one directory, you should
  • Rename your config files, if not already done
  • Delete the 'do-not-restore' file, so the new files can be installed
  • Delete the software/MZ3 folder (it will be deleted by MZ3-Tool3, but sometimes due to timing issues the folder then is locked and the new files cannot be installed. And you had to run MZ3-Tool3 again.
  • Start mz3_tool3.exe in dragging your 'make' config file over mz3_tool3.exe. This will build your MZ3 title with the new version during the first run; and not the Beginners manual
  • Once mz3_tool3 finished, you can delete everything you do not need (like the default config files and the Beginners manuals)
  • check the documentation in the _documentation/ folder; especially the version history. To be aware of potential changes, new features, incompatibilities, ...

Only if the conversion completed successfully, the file 'do-not-restore.txt' will be created, which then stops MZ3-Tool3 in future to again copy all files into your directories.
Watch the messages output by MZ3-Tool3. There might be hints that your config files are no more compatible or similar "problems".




97
Technical Support (AS3 / JS / ASUL) / How to layout?
« Last post by Tipo on February 11, 2013, 03:16:58 pm »
I'm looking for a way to position and style TXT elements and navigation.
My book is a local offline variant with no browser support. It shall run as a standalone version.

I've read some times ago here about CSS but I think it won't affect the .mz3 file but rather the HTML version.
So is there any possibility to style elements without writing everything into the code?

For example to say my headline font size shall be 48 pixel, bold, centered and appear in the middle of the page.
I think this way isn't tidy.
Code: [Select]
<txt position='center middle'>
  <content lang="de">
    <![CDATA[<font size="48"><b>Mein Kochbuch</b></font>]]>
  </content>
  <content lang="en">
    <![CDATA[<font size="48"><b>My Cookbook</b></font>]]>
  </content>       
</txt>

Something that I can use like CSS to style my elements.
In my content there will be some listings and when I will style them I have to write everything into the code and so it will be unreadable at some point.
98
General Discussion / Re: What is ROBOT.txt ?
« Last post by Hans Nücke on February 10, 2013, 01:18:46 am »
I do not know how you think this relates to megazine3, but you'll probably find answers in Wikipedia
99
General Discussion / What is ROBOT.txt ?
« Last post by sukumar923 on February 09, 2013, 04:32:12 pm »
Anybody can tell me what is ROBOT.txt, and what are the uses of ROBOT.txt ?
100
Technical Support (AS3 / JS / ASUL) / Re: Chapter pages in mz3.xml
« Last post by Hans Nücke on February 05, 2013, 03:26:47 pm »
You are right, the Main.as and MainFat.as provided in the fla.zip are a bit outdated. Hopefully that's the reason for your problem.
I exchanged those two files in the fla.zip, which comes with the mz3_tool3 package.
You can download your version with the link you know. I did not give it a new version number (yet), since it is only related to those two helper files.

Please either start fresh in a new folder (the safest) or delete the "do-not-restore.txt" file (which tells MZ3-Tool3 to restore files); and best is you delete the software/MZ3 folder also.

Then after the next run of MZ3-Tool3 you should see the new software/MZ3/fla.zip with the updates Main*.as files

Please let me know how you are doing! We'll solve that ;-)
Pages: 1 ... 8 9 [10]