cvs: phpdoc-fr /reference/ming examples.xml
| From: | Yannick Torres | Date: | Tue, 03 Jun 2008 07:25:54 +0000 |
| Subject: | cvs: phpdoc-fr /reference/ming examples.xml | ||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-5974@lists.php.net to get a copy of this message | ||
yannick Tue Jun 3 07:25:54 2008 UTC
Modified files:
/phpdoc-fr/reference/ming examples.xml
Log:
remove comment
http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/ming/examples.xml?r1=1.1&r2=1.2&diff_format=u
Index: phpdoc-fr/reference/ming/examples.xml
diff -u phpdoc-fr/reference/ming/examples.xml:1.1 phpdoc-fr/reference/ming/examples.xml:1.2
--- phpdoc-fr/reference/ming/examples.xml:1.1 Sat Mar 29 15:04:06 2008
+++ phpdoc-fr/reference/ming/examples.xml Tue Jun 3 07:25:54 2008
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready -->
<!-- Reviewed: yes -->
@@ -298,82 +298,8 @@
</programlisting>
</example>
</para>
- <!-- FIXME: Serious syntax errors in example
- <para>
- This simple example will handles keyboard actions.
- (You'll probably have to click in the window to give it focus.
- And you'll probably have to leave your mouse in the frame, too.
- If you know how to give buttons focus programatically, feel free
- to share, won't you?)
- <example>
- <title><function>swfaction</function> example</title>
- <programlisting role="php">
-<![CDATA[
-<?php
-
- /* sprite has one letter per frame */
-
- $p = new SWFSprite();
- $p->add(new SWFAction("stop();"));
-
- $chars = 'abcdefghijklmnopqrstuvwxyz'.
- 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.
- '1234567890!@#$%^&/*()_+-=/[]{}|;:,.<>?`~';
-
- $f = new SWFFont("_sans");
-
- for ($n=0; $nremove($i);
- $t = new SWFTextField();
- $t->setFont($f);
- $t->setHeight(240);
- $t->setBounds(600,240);
- $t->align(SWFTEXTFIELD_ALIGN_CENTER);
- $t->addString($c);
- $i = $p->add($t);
- $p->labelFrame($c);
- $p->nextFrame();
- }
-
- /* hit region for button - the entire frame */
-
- $s = new SWFShape();
- $s->setFillStyle0($s->addSolidFill(0, 0, 0, 0));
- $s->drawLine(600, 0);
- $s->drawLine(0, 400);
- $s->drawLine(-600, 0);
- $s->drawLine(0, -400);
-
- /* button checks for pressed key, sends sprite to the right frame */
-
- $b = new SWFButton();
- $b->addShape($s, SWFBUTTON_HIT);
-
- for($n=0; $naddAction(new SWFAction("
-
-setTarget('/char');
-gotoFrame('$c');
-
- "), SWFBUTTON_KEYPRESS($c));
- }
-
- $m = new SWFMovie();
- $m->setDimension(600,400);
- $i = $m->add($p);
- $i->setName('char');
- $i->moveTo(0,80);
-
- $m->add($b);
-
- header('Content-type: application/x-shockwave-flash');
- $m->output();
-
-?>
-]]>
- </programlisting>
- </example>
- </para>
- -->
</section>
+
<section xml:id="ming.examples.swfsprite-basic">
<title>Exemple avec SWFSPrite</title>
<para>