File formats

From MegaZine3
Jump to: navigation, search
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.

Contents

[edit] Images

[edit] JPG

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

[edit] PNG

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

[edit] 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>

[edit] SWF

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

[edit] Scripts/Elements

[edit] HTML

Note that Flash only supports rudimentary HTML tags, such as <b/> and <font/>.

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

[edit] JavaScript

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

[edit] 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>

[edit] Video

[edit] FLV

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

[edit] F4V

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

[edit] MP4

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

[edit] M4A

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

[edit] MOV

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

[edit] MP4V

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

[edit] 3GP

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

[edit] 3G2

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

[edit] Sound

[edit] MP3

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

[edit] Document types

[edit] PDF

[edit] DOC

[edit] PPT

[edit] XLS

Personal tools
Namespaces
Variants
Actions
Navigation
documentation
miscellaneous
Toolbox