php-doc-en/reference/ming/reference.xml
2007-12-10 17:06:11 +00:00

154 lines
5.8 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.13 $ -->
<!-- Purpose: utilspec.nontext -->
<!-- Membership: bundled, external -->
<!-- State: experimental -->
<reference xml:id="ref.ming" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Ming functions for Flash</title>
<titleabbrev>Ming (flash)</titleabbrev>
<partintro>
&warn.experimental;
<section xml:id="ming.intro">
&reftitle.intro;
<para>
First of all: Ming is not an acronym. Ming is an open-source (LGPL)
library which allows you to create SWF ("Flash") format movies. Ming
supports almost all of Flash 4's features, including: shapes, gradients,
bitmaps (pngs and jpegs), morphs ("shape tweens"), text, buttons,
actions, sprites ("movie clips"), streaming mp3, and color transforms
--the only thing that's missing is sound events.
</para>
<para>
Note that all values specifying length, distance, size, etc. are in "twips",
twenty units per pixel. That's pretty much arbitrary, though, since the player
scales the movie to whatever pixel size is specified in the embed/object tag,
or the entire frame if not embedded.
</para>
<para>
Ming offers a number of advantages over the existing
<link linkend="ref.swf">PHP/libswf module</link>.
You can use Ming anywhere you can compile the code, whereas libswf is
closed-source and only available for a few platforms, Windows not one of
them. Ming provides some insulation from the mundane details of the SWF
file format, wrapping the movie elements in PHP objects. Also, Ming is
still being maintained; if there's a feature that you want to see, just
let us know at <link xlink:href="&url.ming;">&url.ming;</link>.
</para>
<para>
Ming was added in PHP 4.0.5.
</para>
</section>
<section xml:id="ming.requirements">
&reftitle.required;
<para>
To use Ming with PHP, you first need to build and install the Ming
library. Source code and installation instructions are available at the
Ming home page: <link xlink:href="&url.ming;">&url.ming;</link>
along with examples, a small tutorial, and the latest news.
</para>
<para>
Download the ming archive. Unpack the archive. Go in the
Ming directory. make. make install.
</para>
<para>
This will build <filename>libming.so</filename> and install it
into <filename>/usr/lib/</filename>, and copy
<filename>ming.h</filename> into <filename>/usr/include/</filename>.
Edit the <literal>PREFIX=</literal> line in the
<filename>Makefile</filename> to change the installation directory.
</para>
</section>
&reference.ming.configure;
<section xml:id="ming.configuration">
&reftitle.runtime;
&no.config;
</section>
<section xml:id="ming.resources">
&reftitle.resources;
<para>
</para>
</section>
&reference.ming.constants;
<section xml:id="ming.classes">
&reftitle.classes;
&extension.classes;
<para>
</para>
<section>
<title>Classes</title>
<simplelist>
<member><link linkend="ming.swfaction"><classname>SWFAction</classname></link></member>
<member><link linkend="ming.swfbitmap"><classname>SWFBitmap</classname></link></member>
<member><link linkend="ming.swfbutton"><classname>SWFButton</classname></link></member>
<member><link linkend="ming.swfdisplayitem"><classname>SWFDisplayItem</classname></link></member>
<member><link linkend="ming.swffill"><classname>SWFFill</classname></link></member>
<member><link linkend="ming.swffont"><classname>SWFFont</classname></link></member>
<member><link linkend="ming.swffontchar"><classname>SWFFontChar</classname></link></member>
<member><link linkend="ming.swfgradient"><classname>SWFGradient</classname></link></member>
<member><link linkend="ming.swfmorph"><classname>SWFMorph</classname></link></member>
<member><link linkend="ming.swfmovie"><classname>SWFMovie</classname></link></member>
<member><link linkend="ming.swfprebuiltclip"><classname>SWFPrebuiltClip</classname></link></member>
<member><link linkend="ming.swfshape"><classname>SWFShape</classname></link></member>
<member><link linkend="ming.swfsound"><classname>SWFSound</classname></link></member>
<member><link linkend="ming.swfsoundinstance"><classname>SWFSoundInstance</classname></link></member>
<member><link linkend="ming.swfsprite"><classname>SWFSprite</classname></link></member>
<member><link linkend="ming.swftext"><classname>SWFText</classname></link></member>
<member><link linkend="ming.swftextfield"><classname>SWFTextField</classname></link></member>
<member><link linkend="ming.swfvideostream"><classname>SWFVideoStream</classname></link></member>
</simplelist>
</section>
</section>
</partintro>
&reference.ming.swfaction;
&reference.ming.swfbitmap;
&reference.ming.swfbutton;
&reference.ming.swfdisplayitem;
&reference.ming.swffill;
&reference.ming.swffont;
&reference.ming.swffontchar;
&reference.ming.swfgradient;
&reference.ming.swfmorph;
&reference.ming.swfmovie;
&reference.ming.swfprebuiltclip;
&reference.ming.swfshape;
&reference.ming.swfsound;
&reference.ming.swfsoundinstance;
&reference.ming.swfsprite;
&reference.ming.swftext;
&reference.ming.swftextfield;
&reference.ming.swfvideostream;
&reference.ming.entities.functions;
</reference>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->