File formats

From MegaZine3
Jump to navigation Jump to search

{{#switch: | left =

{{#switch:{{#if: | {{{smallimage}}} | }} | none =

| #default =

}} {{#if:{{#if: | {{{smallimageright}}} | }} | {{#ifeq:{{#if: | {{{smallimageright}}} | }}|none | | }} }}

| #default =

{{#switch: | none =

| #default =

}}

{{#if: | {{#ifeq:|none

 | 
| }} }}

}}

This article might be improved with some relevant screenshot(s) or image(s).

This is a list of file formats that MegaZine3 supports along with examples of how to include them.

Images

JPG

<page>
    <img src="data/background.jpg"/>
</page>

PNG

<page>
    <img src="data/image.png"/>
</page>

GIF

Using the image element, GIFs loaded will not be animated.

<page>
    <img src="data/image.gif"/>
</page>

Using the GIF element to load animated GIFs.

<page>
    <gif src="data/animated.gif"/>
</page>

SWF

<page>
    <img src="data/form.swf"/>
</page>

Scripts/Elements

HTML

Note that Flash only supports rudimentary HTML tags, such as and .

<txt>
    <content lang="en"><![CDATA[My <b>HTML</b> <i>Formatted</i> text.]]></content>
</txt>

JavaScript

<page>
    <img src="data/image.jpg" url="javascript:alert('Hello World!');"/>
</page>

Links

Can be applied to any element, using area and image in this example. The second link only works if the anchors plugin is loaded.

<page>
    <area width="200" height="100" url="http://www.example.com/" target="_top"/>
    <img src="data/image.jpg" url="anchor:my_anchor_name"/>
</page>
<!-- ... -->
<page anchor="my_anchor_name">
    <!-- ... -->
</page>

Video

FLV

<page>
    <vid src="data/video.flv" onlywhenactive="true" gui="elements/vidgui.swf"/>
</page>

F4V

<page>
    <vid src="data/video.f4v" onlywhenactive="true" gui="elements/vidgui.swf"/>
</page>

MP4

<page>
    <vid src="data/video.mp4" onlywhenactive="true" gui="elements/vidgui.swf"/>
</page>

M4A

<page>
    <vid src="data/video.m4a" onlywhenactive="true" gui="elements/vidgui.swf"/>
</page>

MOV

<page>
    <vid src="data/video.mov" onlywhenactive="true" gui="elements/vidgui.swf"/>
</page>

MP4V

<page>
    <vid src="data/video.mp4v" onlywhenactive="true" gui="elements/vidgui.swf"/>
</page>

3GP

<page>
    <vid src="data/video.3gp" onlywhenactive="true" gui="elements/vidgui.swf"/>
</page>

3G2

<page>
    <vid src="data/video.3g2" onlywhenactive="true" gui="elements/vidgui.swf"/>
</page>

Sound

MP3

<page>
    <snd src="data/sound.mp3" onlywhenactive="true"/>
</page>

Document types

PDF

  • not directly embeddable, converted via PDF2SWF

DOC

  • not directly embeddable, converted via PDF and PDF2SWF

PPT

  • not directly embeddable, converted via PDF and PDF2SWF

XLS

  • not directly embeddable, converted via PDF and PDF2SWF