irc-html Sat Jan 19 19:42:36 2002 EDT Modified files: /phpdoc/en/functions ming.xml Log: whitespace correction
Index: phpdoc/en/functions/ming.xml diff -u phpdoc/en/functions/ming.xml:1.31 phpdoc/en/functions/ming.xml:1.32 --- phpdoc/en/functions/ming.xml:1.31 Wed Jan 2 06:51:18 2002 +++ phpdoc/en/functions/ming.xml Sat Jan 19 19:42:36 2002 @@ -1,19 +1,19 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.31 $ --> +<!-- $Revision: 1.32 $ --> <reference id="ref.ming"> <title>Ming functions for Flash</title> <titleabbrev>Ming (flash)</titleabbrev> <partintro> - &warn.experimental; + &warn.experimental; <sect1 id="ming.intro"> <title>Introduction</title> <simpara> - 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. + 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. </simpara> <simpara> Ming is not an acronym. @@ -25,13 +25,13 @@ or the entire frame if not embedded. </simpara> <simpara> - Ming offers a number of advantages over the existing PHP/libswf module. - 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 <ulink url="mailto:&email.ming;">&email.ming;</ulink>. + Ming offers a number of advantages over the existing PHP/libswf module. + 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 <ulink url="mailto:&email.ming;">&email.ming;</ulink>. </simpara> <simpara> Ming was added in PHP 4.0.5. @@ -41,10 +41,10 @@ <sect1 id="ming.install"> <title>Installation</title> <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 : <ulink url="&url.ming;">&url.ming;</ulink> - along with examples, a small tutorial, and the latest news. + 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 : <ulink url="&url.ming;">&url.ming;</ulink> + along with examples, a small tutorial, and the latest news. </para> <para> Download the ming archive. Unpack the archive. Go in the @@ -98,71 +98,71 @@ </simpara> <itemizedlist> <listitem> - <simpara> - <function>swfmovie</function>. + <simpara> + <function>swfmovie</function>. </simpara> - </listitem> + </listitem> <listitem> - <simpara> - <function>swfshape</function>. + <simpara> + <function>swfshape</function>. </simpara> - </listitem> + </listitem> <listitem> - <simpara> - <function>swfdisplayitem</function>. + <simpara> + <function>swfdisplayitem</function>. </simpara> - </listitem> + </listitem> <listitem> - <simpara> - <function>swfgradient</function>. + <simpara> + <function>swfgradient</function>. </simpara> - </listitem> + </listitem> <listitem> - <simpara> - <function>swfbitmap</function>. + <simpara> + <function>swfbitmap</function>. </simpara> - </listitem> + </listitem> <listitem> - <simpara> - <function>swffill</function>. + <simpara> + <function>swffill</function>. </simpara> - </listitem> + </listitem> <listitem> - <simpara> - <function>swfmorph</function>. + <simpara> + <function>swfmorph</function>. </simpara> - </listitem> + </listitem> <listitem> - <simpara> - <function>swftext</function>. + <simpara> + <function>swftext</function>. </simpara> - </listitem> + </listitem> <listitem> - <simpara> - <function>swffont</function>. + <simpara> + <function>swffont</function>. </simpara> - </listitem> + </listitem> <listitem> - <simpara> - <function>swftextfield</function>. + <simpara> + <function>swftextfield</function>. </simpara> - </listitem> + </listitem> <listitem> - <simpara> - <function>swfsprite</function>. + <simpara> + <function>swfsprite</function>. </simpara> - </listitem> + </listitem> <listitem> - <simpara> - <function>swfbutton</function>. + <simpara> + <function>swfbutton</function>. </simpara> - </listitem> + </listitem> <listitem> - <simpara> - <function>swfaction</function>. + <simpara> + <function>swfaction</function>. </simpara> - </listitem> + </listitem> </itemizedlist> </sect1> </partintro> @@ -266,7 +266,7 @@ <void/> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfmovie</function> creates a new movie object, representing an SWF version 4 movie. @@ -300,7 +300,7 @@ <void/> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfmovie->output</function> dumps your lovingly prepared movie out. In PHP, preceding this with the command @@ -310,7 +310,7 @@ header('Content-type: application/x-shockwave-flash'); ?> ]]> - </programlisting> + </programlisting> convinces the browser to display this as a flash movie. </para> <simpara> @@ -340,7 +340,7 @@ <paramdef>string <parameter>filename</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfmovie->save</function> saves your movie to the file named <parameter>filename</parameter>. @@ -365,7 +365,7 @@ <paramdef>ressource <parameter>instance</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfmovie->add</function> adds <parameter>instance</parameter> to the current movie. <parameter>instance</parameter> is any type of data : @@ -403,7 +403,7 @@ <paramdef>resource <parameter>instance</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfmovie->remove</function> removes the object instance <parameter>instance</parameter> from the display list. @@ -430,7 +430,7 @@ <paramdef>int <parameter>blue</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfmovie->setbackground</function> sets the background color. Why is there no rgba version? Think about it. (Actually, that's not such a dumb @@ -455,7 +455,7 @@ <paramdef>int <parameter>rate</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfmovie->setrate</function> sets the frame rate to <parameter>rate</parameter>, in frame per seconds. @@ -480,7 +480,7 @@ <paramdef>int <parameter>height</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfmovie->setdimension</function> sets the movie's width to <parameter>width</parameter> and height to <parameter>height</parameter>. @@ -501,7 +501,7 @@ <paramdef>string <parameter>numberofframes</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfmovie->setframes</function> sets the total number of frames in the animation to <parameter>numberofframes</parameter>. @@ -519,10 +519,10 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>swfmovie->nextframe</function></funcdef> - <void/> + <void/> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfmovie->setframes</function> moves to the next frame of the animation. @@ -544,7 +544,7 @@ <paramdef>string <parameter>mp3FileName</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfmovie->streammp3</function> streams the mp3 file <parameter>mp3FileName</parameter>. Not very robust in dealing with @@ -598,7 +598,7 @@ <void/> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfdisplayitem</function> creates a new swfdisplayitem object. </para> @@ -635,7 +635,7 @@ <paramdef>int <parameter>y</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfdisplayitem->moveto</function> moves the current object to (<parameter>x</parameter>,<parameter>y</parameter>) in global coordinates. @@ -667,7 +667,7 @@ <paramdef>int <parameter>dy</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfdisplayitem->move</function> moves the current object by (<parameter>dx</parameter>,<parameter>dy</parameter>) from its @@ -700,7 +700,7 @@ <paramdef>int <parameter>y</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfdisplayitem->scaleto</function> scales the current object to (<parameter>x</parameter>,<parameter>y</parameter>) in global coordinates. @@ -732,7 +732,7 @@ <paramdef>int <parameter>dy</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfdisplayitem->scale</function> scales the current object by (<parameter>dx</parameter>,<parameter>dy</parameter>) from its @@ -764,7 +764,7 @@ <paramdef>float <parameter>degrees</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfdisplayitem->rotateto</function> set the current object rotation to <parameter>degrees</parameter> degrees in global coordinates. @@ -881,7 +881,7 @@ <paramdef>float <parameter>ddegrees</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfdisplayitem->rotate</function> rotates the current object by <parameter>ddegrees</parameter> degrees from its current rotation. @@ -912,7 +912,7 @@ <paramdef>float <parameter>degrees</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfdisplayitem->skewxto</function> sets the x-skew to <parameter>degrees</parameter>. For <parameter>degrees</parameter> @@ -947,7 +947,7 @@ <paramdef>float <parameter>ddegrees</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfdisplayitem->skewx</function> adds <parameter>ddegrees</parameter> to current x-skew. @@ -980,7 +980,7 @@ <paramdef>float <parameter>degrees</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfdisplayitem->skewyto</function> sets the y-skew to <parameter>degrees</parameter>. For <parameter>degrees</parameter> @@ -1015,7 +1015,7 @@ <paramdef>float <parameter>ddegrees</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfdisplayitem->skewy</function> adds <parameter>ddegrees</parameter> to current y-skew. @@ -1048,7 +1048,7 @@ <paramdef>float <parameter>depth</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfdisplayitem->rotate</function> sets the object's z-order to <parameter>depth</parameter>. Depth defaults to the @@ -1078,7 +1078,7 @@ <void/> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfdisplayitem->remove</function> removes this object from the movie's display list. @@ -1109,7 +1109,7 @@ <paramdef>string <parameter>name</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfdisplayitem->setname</function> sets the object's name to <parameter>name</parameter>, for targetting with action script. @@ -1137,7 +1137,7 @@ <paramdef>float <parameter>ratio</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfdisplayitem->setratio</function> sets the object's ratio to <parameter>ratio</parameter>. Obviously only useful for morphs. @@ -1234,7 +1234,7 @@ <paramdef>int <parameter><optional>a</optional></parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfdisplayitem->addcolor</function> adds the color to this item's color transform. The color is given in its RGB form. @@ -1264,7 +1264,7 @@ <paramdef>int <parameter><optional>a</optional></parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfdisplayitem->multcolor</function> multiplies the item's color transform by the given values. @@ -1330,7 +1330,7 @@ <void/> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfshape</function> creates a new shape object. </para> @@ -1390,7 +1390,7 @@ <paramdef>int <parameter><optional>a</optional></parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfshape->setline</function> sets the shape's line style. <parameter>width</parameter> is the line's width. If <parameter>width</parameter> @@ -1486,7 +1486,7 @@ <paramdef>int <parameter><optional>a</optional></parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <funcsynopsis> <funcprototype> <funcdef>void <function>swfshape->addfill</function></funcdef> @@ -1494,7 +1494,7 @@ <paramdef>int <parameter><optional>flags</optional></parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <funcsynopsis> <funcprototype> <funcdef>void <function>swfshape->addfill</function></funcdef> @@ -1502,7 +1502,7 @@ <paramdef>int <parameter><optional>flags</optional></parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfshape->addfill</function> adds a solid fill to the shape's list of fill styles. <function>swfshape->addfill</function> accepts three different @@ -1612,7 +1612,7 @@ <paramdef>swfgradient <parameter>fill</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <funcsynopsis> <funcprototype> <funcdef>void <function>swfshape->setleftfill</function></funcdef> @@ -1622,7 +1622,7 @@ <paramdef>int <parameter><optional>a</optional></parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> What this nonsense is about is, every edge segment borders at most two fills. When rasterizing the object, it's pretty handy to know what those fills are @@ -1661,7 +1661,7 @@ <paramdef>swfgradient <parameter>fill</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <funcsynopsis> <funcprototype> <funcdef>void <function>swfshape->setrightfill</function></funcdef> @@ -1671,7 +1671,7 @@ <paramdef>int <parameter><optional>a</optional></parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <simpara> See also <function>swfshape->setleftfill</function>. @@ -1696,7 +1696,7 @@ <paramdef>int <parameter>y</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <simpara> <function>swfshape->setrightfill</function> move the shape's pen to (<parameter>x</parameter>,<parameter>y</parameter>) in the shape's @@ -1726,7 +1726,7 @@ <paramdef>int <parameter>dy</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <simpara> <function>swfshape->setrightfill</function> move the shape's pen from coordinates (current x,current y) to (current x + <parameter>dx</parameter>, @@ -1756,7 +1756,7 @@ <paramdef>int <parameter>y</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <simpara> <function>swfshape->setrightfill</function> draws a line (using the current line style, set by <function>swfshape->setline</function>) from the current @@ -1787,7 +1787,7 @@ <paramdef>int <parameter>dy</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <simpara> <function>swfshape->drawline</function> draws a line (using the current line style set by <function>swfshape->setline</function>) from the current pen position to @@ -1819,7 +1819,7 @@ <paramdef>int <parameter>anchory</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <simpara> <function>swfshape->drawcurveto</function> draws a quadratic curve (using the current line style, set by <function>swfshape->setline</function>) @@ -1855,7 +1855,7 @@ <paramdef>int <parameter>anchordy</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <simpara> <function>swfshape->drawcurve</function> draws a quadratic curve (using the current line style,set by <function>swfshape->setline</function>) @@ -1891,7 +1891,7 @@ <void/> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfgradient</function> creates a new SWFGradient object. </para> @@ -1977,7 +1977,7 @@ <paramdef>int <parameter><optional>a</optional></parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfgradient->addentry</function> adds an entry to the gradient list. <parameter>ratio</parameter> is a number between 0 and 1 indicating where in @@ -2006,7 +2006,7 @@ <paramdef>int <parameter><optional>alphafilename</optional></parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfbitmap</function> creates a new SWFBitmap object from the Jpeg or DBL file named <parameter>filename</parameter>. @@ -2126,7 +2126,7 @@ <void/> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfbitmap->getwidth</function> returns the bitmap's width in pixels. </para> @@ -2150,7 +2150,7 @@ <void/> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfbitmap->getheight</function> returns the bitmap's height in pixels. </para> @@ -2197,7 +2197,7 @@ <paramdef>int <parameter>y</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swffill->moveto</function> moves fill's origin to (<parameter>x</parameter>,<parameter>y</parameter>) in global coordinates. @@ -2219,7 +2219,7 @@ <paramdef>int <parameter>y</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swffill->scaleto</function> sets fill's scale to <parameter>x</parameter> in the x-direction, @@ -2241,7 +2241,7 @@ <paramdef>float <parameter>degrees</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swffill->rotateto</function> sets fill's rotation to <parameter>degrees</parameter> degrees. @@ -2262,7 +2262,7 @@ <paramdef>float <parameter>x</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swffill->skewxto</function> sets fill x-skew to <parameter>x</parameter>. For <parameter>x</parameter> is 1.0, it is a is a 45-degree @@ -2284,7 +2284,7 @@ <paramdef>float <parameter>y</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swffill->skewyto</function> sets fill y-skew to <parameter>y</parameter>. For <parameter>y</parameter> is 1.0, it is a is a 45-degree @@ -2308,7 +2308,7 @@ <void/> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfmorph</function> creates a new SWFMorph object. </para> @@ -2396,7 +2396,7 @@ <void/> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfmorph->getshape1</function> gets a handle to the morph's starting shape. <function>swfmorph->getshape1</function> returns an @@ -2418,7 +2418,7 @@ <void/> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfmorph->getshape2</function> gets a handle to the morph's ending shape. <function>swfmorph->getshape2</function> returns an @@ -2442,7 +2442,7 @@ <void/> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swftext</function> creates a new SWFText object, fresh for manipulating. @@ -2497,7 +2497,7 @@ <paramdef>string <parameter>font</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swftext->setfont</function> sets the current font to <parameter>font</parameter>. @@ -2518,7 +2518,7 @@ <paramdef>int <parameter>height</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swftext->setheight</function> sets the current font height to <parameter>height</parameter>. Default is 240. @@ -2539,7 +2539,7 @@ <paramdef>float <parameter>spacing</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swftext->setspacing</function> sets the current font spacing to <parameter>spacing</parameter><parameter>spacing</parameter>. Default is 1.0. @@ -2569,7 +2569,7 @@ <paramdef>int <parameter><optional>a</optional></parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swftext->setspacing</function> changes the current text color. Default is black. I think. Color is represented using the RGB system. @@ -2591,7 +2591,7 @@ <paramdef>int <parameter>y</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swftext->moveto</function> moves the pen (or cursor, if that makes more sense) to (<parameter>x</parameter>,<parameter>y</parameter>) @@ -2614,7 +2614,7 @@ <paramdef>string <parameter>string</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swftext->addstring</function> draws the string <parameter>string</parameter> at the current pen (cursor) location. Pen is at the baseline of the text; @@ -2636,7 +2636,7 @@ <paramdef>string <parameter>string</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swftext->addstring</function> returns the rendered width of the <parameter>string</parameter> string at the text object's current font, @@ -2660,7 +2660,7 @@ <paramdef>string <parameter>filename</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> If <parameter>filename</parameter> is the name of an FDB file (i.e., it ends in ".fdb"), load the font definition found in said @@ -2683,14 +2683,14 @@ $f = newSWFFont("_sans"); ?> ]]> - </programlisting> - will give you the standard sans-serif font, probably the same as what you'd get - with <literal><font name="sans-serif"></literal> in HTML. - </para> - <para> - <function>swffont</function> returns a reference to the font - definition, for use in the <function>SWFText->setFont</function> - and the <function>SWFTextField->setFont</function> methods. + </programlisting> + will give you the standard sans-serif font, probably the same as what you'd get + with <literal><font name="sans-serif"></literal> in HTML. + </para> + <para> + <function>swffont</function> returns a reference to the font + definition, for use in the <function>SWFText->setFont</function> + and the <function>SWFTextField->setFont</function> methods. </para> <simpara> SWFFont has the following methods : <function>swffont->getwidth</function>. @@ -2711,7 +2711,7 @@ <paramdef>string <parameter>string</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swffont->getwidth</function> returns the string <parameter>string</parameter>'s width, using font's default scaling. @@ -2736,51 +2736,51 @@ <paramdef>int <parameter><optional>flags</optional></parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> - <function>swftextfield</function> creates a new text field object. - Text Fields are less flexible than <function>swftext</function> objects- - they can't be rotated, scaled non-proportionally, or skewed, but they can - be used as form entries, and they can use browser-defined fonts. - </para> - <para> - The optional flags change the text field's behavior. It has the following - possibles values : - <itemizedlist> - <listitem> - <simpara> - SWFTEXTFIELD_NOEDIT indicates that the field shouldn't be user-editable - </simpara> - </listitem> - <listitem> - <simpara> - SWFTEXTFIELD_PASSWORD obscures the data entry - </simpara> - </listitem> - <listitem> - <simpara> - SWFTEXTFIELD_DRAWBOX draws the outline of the textfield - </simpara> - </listitem> - <listitem> - <simpara> - SWFTEXTFIELD_MULTILINE allows multiple lines - </simpara> - </listitem> - <listitem> - <simpara> - SWFTEXTFIELD_WORDWRAP allows text to wrap - </simpara> - </listitem> - <listitem> - <simpara> - SWFTEXTFIELD_NOSELECT makes the field non-selectable - </simpara> - </listitem> - </itemizedlist> - Flags are combined with the bitwise - <link linkend="language.operators.bitwise">OR</link> operation. For example, - <programlisting role="php"> + <function>swftextfield</function> creates a new text field object. + Text Fields are less flexible than <function>swftext</function> objects- + they can't be rotated, scaled non-proportionally, or skewed, but they can + be used as form entries, and they can use browser-defined fonts. + </para> + <para> + The optional flags change the text field's behavior. It has the following + possibles values : + <itemizedlist> + <listitem> + <simpara> + SWFTEXTFIELD_NOEDIT indicates that the field shouldn't be user-editable + </simpara> + </listitem> + <listitem> + <simpara> + SWFTEXTFIELD_PASSWORD obscures the data entry + </simpara> + </listitem> + <listitem> + <simpara> + SWFTEXTFIELD_DRAWBOX draws the outline of the textfield + </simpara> + </listitem> + <listitem> + <simpara> + SWFTEXTFIELD_MULTILINE allows multiple lines + </simpara> + </listitem> + <listitem> + <simpara> + SWFTEXTFIELD_WORDWRAP allows text to wrap + </simpara> + </listitem> + <listitem> + <simpara> + SWFTEXTFIELD_NOSELECT makes the field non-selectable + </simpara> + </listitem> + </itemizedlist> + Flags are combined with the bitwise + <link linkend="language.operators.bitwise">OR</link> operation. For example, + <programlisting role="php"> <![CDATA[ <?php $t = newSWFTextField(SWFTEXTFIELD_PASSWORD | SWFTEXTFIELD_NOEDIT); @@ -2814,7 +2814,7 @@ <paramdef>string <parameter>font</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swftextfield->setfont</function> sets the text field font to the [browser-defined?] <parameter>font</parameter> font. @@ -2836,7 +2836,7 @@ <paramdef>int <parameter>height</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swftextfield->setbounds</function> sets the text field width to <parameter>width</parameter> and height to <parameter>height</parameter>. @@ -2859,7 +2859,7 @@ <paramdef>int <parameter>alignement</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swftextfield->align</function> sets the text field alignment to <parameter>alignement</parameter>. Valid values for @@ -2883,7 +2883,7 @@ <paramdef>int <parameter>height</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swftextfield->setheight</function> sets the font height of this text field font to the given height <parameter>height</parameter>. Default is 240. @@ -2904,7 +2904,7 @@ <paramdef>int <parameter>width</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swftextfield->setleftmargin</function> sets the left margin width of the text field to <parameter>width</parameter>. Default is 0. @@ -2925,7 +2925,7 @@ <paramdef>int <parameter>width</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swftextfield->setrightmargin</function> sets the right margin width of the text field to <parameter>width</parameter>. Default is 0. @@ -2947,7 +2947,7 @@ <paramdef>int <parameter>right</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swftextfield->setmargins</function> set both margins at once, for the man on the go. @@ -2968,7 +2968,7 @@ <paramdef>int <parameter>width</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swftextfield->setindentation</function> sets the indentation of the first line in the text field, to <parameter>width</parameter>. @@ -2989,7 +2989,7 @@ <paramdef>int <parameter>height</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swftextfield->setlinespacing</function> sets the line spacing of the text field to the height of <parameter>height</parameter>. Default is 40. @@ -3013,7 +3013,7 @@ <paramdef>int <parameter><optional>a</optional></parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swftextfield->setcolor</function> sets the color of the text field. Default is fully opaque black. Color is represented using RGB system. @@ -3034,7 +3034,7 @@ <paramdef>string <parameter>name</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swftextfield->setname</function> sets the variable name of this text field to <parameter>name</parameter>, for form posting and action @@ -3056,7 +3056,7 @@ <paramdef>string <parameter>string</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swftextfield->setname</function> concatenates the string <parameter>string</parameter> to the text field. @@ -3079,7 +3079,7 @@ <void/> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfsprite</function> are also known as a "movie clip", this allows one to create objects which are animated in their own @@ -3151,7 +3151,7 @@ <paramdef>ressource <parameter>object</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfsprite->add</function> adds a <function>swfshape</function>, a <function>swfbutton</function>, a <function>swftext</function>, @@ -3179,7 +3179,7 @@ <paramdef>ressource <parameter>object</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfsprite->remove</function> remove a <function>swfshape</function>, a <function>swfbutton</function>, a <function>swftext</function>, @@ -3202,7 +3202,7 @@ <paramdef>int <parameter>numberofframes</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfsprite->setframes</function> sets the total number of frames in the animation to <parameter>numberofframes</parameter>. @@ -3220,10 +3220,10 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>swfsprite->nextframe</function></funcdef> - <void/> + <void/> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfsprite->setframes</function> moves to the next frame of the animation. @@ -3246,7 +3246,7 @@ <void/> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfbutton</function> creates a new Button. Roll over it, click it, see it call action code. Swank. @@ -3319,25 +3319,25 @@ $b->addShape(rect(0, 0, 0xff), SWFBUTTON_DOWN); $b->addAction(new SWFAction("setTarget('/label'); gotoFrame(1);"), - SWFBUTTON_MOUSEUP); + SWFBUTTON_MOUSEUP); $b->addAction(new SWFAction("setTarget('/label'); gotoFrame(2);"), - SWFBUTTON_MOUSEDOWN); + SWFBUTTON_MOUSEDOWN); $b->addAction(new SWFAction("setTarget('/label'); gotoFrame(3);"), - SWFBUTTON_MOUSEOVER); + SWFBUTTON_MOUSEOVER); $b->addAction(new SWFAction("setTarget('/label'); gotoFrame(4);"), - SWFBUTTON_MOUSEOUT); + SWFBUTTON_MOUSEOUT); $b->addAction(new SWFAction("setTarget('/label'); gotoFrame(5);"), - SWFBUTTON_MOUSEUPOUTSIDE); + SWFBUTTON_MOUSEUPOUTSIDE); $b->addAction(new SWFAction("setTarget('/label'); gotoFrame(6);"), - SWFBUTTON_DRAGOVER); + SWFBUTTON_DRAGOVER); $b->addAction(new SWFAction("setTarget('/label'); gotoFrame(7);"), - SWFBUTTON_DRAGOUT); + SWFBUTTON_DRAGOUT); $m = new SWFMovie(); $m->setDimension(4000,3000); @@ -3376,10 +3376,10 @@ $b->addShape($s, SWFBUTTON_HIT | SWFBUTTON_UP | SWFBUTTON_DOWN | SWFBUTTON_OVER); $b->addAction(new SWFAction("startDrag('/test', 0);"), // '0' means don't lock to mouse - SWFBUTTON_MOUSEDOWN); + SWFBUTTON_MOUSEDOWN); $b->addAction(new SWFAction("stopDrag();"), - SWFBUTTON_MOUSEUP | SWFBUTTON_MOUSEUPOUTSIDE); + SWFBUTTON_MOUSEUP | SWFBUTTON_MOUSEUPOUTSIDE); $p = new SWFSprite(); $p->add($b); @@ -3414,7 +3414,7 @@ <paramdef>int <parameter>flags</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfbutton->addshape</function> adds the shape <parameter>shape</parameter> to this button. The following @@ -3440,7 +3440,7 @@ <paramdef>ressource <parameter>shape</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfbutton->setup</function> alias for addShape(shape, SWFBUTTON_UP). </para> @@ -3465,7 +3465,7 @@ <paramdef>ressource <parameter>shape</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfbutton->setover</function> alias for addShape(shape, SWFBUTTON_OVER). </para> @@ -3490,7 +3490,7 @@ <paramdef>ressource <parameter>shape</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfbutton->setdown</function> alias for addShape(shape, SWFBUTTON_DOWN). </para> @@ -3515,7 +3515,7 @@ <paramdef>ressource <parameter>shape</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfbutton->sethit</function> alias for addShape(shape, SWFBUTTON_HIT). </para> @@ -3541,7 +3541,7 @@ <paramdef>int <parameter>flags</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfbutton->addaction</function> adds the action <parameter>action</parameter> to this button for the given conditions. @@ -3571,7 +3571,7 @@ <paramdef>ressource <parameter>action</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfbutton->setaction</function> sets the action to be performed when the button is clicked. Alias for addAction(shape, SWFBUTTON_MOUSEUP). @@ -3600,7 +3600,7 @@ <paramdef>string <parameter>script</parameter></paramdef> </funcprototype> </funcsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> <function>swfaction</function> creates a new Action, and compiles the given script into an SWFAction object. @@ -3660,66 +3660,66 @@ <varlistentry> <term>time()</term> <listitem> - <simpara> - Returns the number of milliseconds (?) elapsed since the movie started. - </simpara> + <simpara> + Returns the number of milliseconds (?) elapsed since the movie started. + </simpara> </listitem> </varlistentry> <varlistentry> <term>random(seed)</term> <listitem> - <simpara> - Returns a pseudo-random number in the range 0-seed. - </simpara> + <simpara> + Returns a pseudo-random number in the range 0-seed. + </simpara> </listitem> </varlistentry> <varlistentry> <term>length(expr)</term> <listitem> - <simpara> - Returns the length of the given expression. - </simpara> + <simpara> + Returns the length of the given expression. + </simpara> </listitem> </varlistentry> <varlistentry> <term>int(number)</term> <listitem> - <simpara> - Returns the given number rounded down to the nearest integer. - </simpara> + <simpara> + Returns the given number rounded down to the nearest integer. + </simpara> </listitem> </varlistentry> <varlistentry> <term>concat(expr, expr)</term> <listitem> - <simpara> - Returns the concatenation of the given expressions. - </simpara> + <simpara> + Returns the concatenation of the given expressions. + </simpara> </listitem> </varlistentry> <varlistentry> <term>ord(expr)</term> <listitem> - <simpara> - Returns the ASCII code for the given character - </simpara> + <simpara> + Returns the ASCII code for the given character + </simpara> </listitem> </varlistentry> <varlistentry> <term>chr(num)</term> <listitem> - <simpara> - Returns the character for the given ASCII code - </simpara> + <simpara> + Returns the character for the given ASCII code + </simpara> </listitem> </varlistentry> <varlistentry> <term>substr(string, location, length)</term> <listitem> - <simpara> - Returns the substring of length length at location location of - the given string string. - </simpara> + <simpara> + Returns the substring of length length at location location of + the given string string. + </simpara> </listitem> </varlistentry> </variablelist> @@ -3730,53 +3730,53 @@ <varlistentry> <term>duplicateClip(clip, name, depth)</term> <listitem> - <simpara> - Duplicate the named movie clip (aka sprite). The new movie clip has name name - and is at depth depth. - </simpara> + <simpara> + Duplicate the named movie clip (aka sprite). The new movie clip has name +name + and is at depth depth. + </simpara> </listitem> </varlistentry> <varlistentry> <term>removeClip(expr)</term> <listitem> - <simpara> - Removes the named movie clip. - </simpara> + <simpara> + Removes the named movie clip. + </simpara> </listitem> </varlistentry> <varlistentry> <term>trace(expr)</term> <listitem> - <simpara> - Write the given expression to the trace log. Doubtful that the browser - plugin does anything with this. - </simpara> + <simpara> + Write the given expression to the trace log. Doubtful that the browser + plugin does anything with this. + </simpara> </listitem> </varlistentry> <varlistentry> <term>startDrag(target, lock, [left, top, right, bottom])</term> <listitem> - <simpara> - Start dragging the movie clip target. The lock argument indicates whether - to lock the mouse (?)- use 0 (&false;) or 1 (&true;). Optional parameters - define a bounding area for the dragging. - </simpara> + <simpara> + Start dragging the movie clip target. The lock argument indicates whether + to lock the mouse (?)- use 0 (&false;) or 1 (&true;). Optional parameters + define a bounding area for the dragging. + </simpara> </listitem> </varlistentry> <varlistentry> <term>stopDrag()</term> <listitem> - <simpara> - Stop dragging my heart around. And this movie clip, too. - </simpara> + <simpara> + Stop dragging my heart around. And this movie clip, too. + </simpara> </listitem> </varlistentry> <varlistentry> <term>callFrame(expr)</term> <listitem> - <simpara> - Call the named frame as a function. - </simpara> + <simpara> + Call the named frame as a function. + </simpara> </listitem> </varlistentry> <varlistentry> @@ -3803,75 +3803,75 @@ <varlistentry> <term>nextFrame()</term> <listitem> - <simpara> - Go to the next frame. - </simpara> + <simpara> + Go to the next frame. + </simpara> </listitem> </varlistentry> <varlistentry> <term>prevFrame()</term> <listitem> - <simpara> - Go to the last (or, rather, previous) frame. - </simpara> + <simpara> + Go to the last (or, rather, previous) frame. + </simpara> </listitem> </varlistentry> <varlistentry> <term>play()</term> <listitem> - <simpara> - Start playing the movie. - </simpara> + <simpara> + Start playing the movie. + </simpara> </listitem> </varlistentry> <varlistentry> <term>stop()</term> <listitem> - <simpara> - Stop playing the movie. - </simpara> + <simpara> + Stop playing the movie. + </simpara> </listitem> </varlistentry> <varlistentry> <term>toggleQuality()</term> <listitem> - <simpara> - Toggle between high and low quality. - </simpara> + <simpara> + Toggle between high and low quality. + </simpara> </listitem> </varlistentry> <varlistentry> <term>stopSounds()</term> <listitem> - <simpara> - Stop playing all sounds. - </simpara> + <simpara> + Stop playing all sounds. + </simpara> </listitem> </varlistentry> <varlistentry> <term>gotoFrame(num)</term> <listitem> - <simpara> - Go to frame number num. Frame numbers start at 0. - </simpara> + <simpara> + Go to frame number num. Frame numbers start at 0. + </simpara> </listitem> </varlistentry> <varlistentry> <term>gotoFrame(name)</term> <listitem> - <simpara> - Go to the frame named name. Which does a lot of good, since I - haven't added frame labels yet. - </simpara> + <simpara> + Go to the frame named name. Which does a lot of good, since I + haven't added frame labels yet. + </simpara> </listitem> </varlistentry> <varlistentry> <term>setTarget(expr)</term> <listitem> - <simpara> - Sets the context for action. Or so they say- I really have no - idea what this does. - </simpara> + <simpara> + Sets the context for action. Or so they say- I really have no + idea what this does. + </simpara> </listitem> </varlistentry> </variablelist> @@ -4308,7 +4308,7 @@ $p->add(new SWFAction("stop();")); $chars = "abcdefghijklmnopqrstuvwxyz". - "ABCDEFGHIJKLMNOPQRSTUVWXYZ". + "ABCDEFGHIJKLMNOPQRSTUVWXYZ". "1234567890!@#$%^&/*()_+-=/[]{}|;:,.<>?`~"; $f = new SWFFont("_sans");