note 44262 added to function.swfdisplayitem.addcolor
| From: | "JulienS�journ�" at rn2 dot php dot net | Date: | Mon, 19 Jul 2004 22:12:05 +0000 |
| Subject: | note 44262 added to function.swfdisplayitem.addcolor | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-73634@lists.php.net to get a copy of this message | ||
There is a mistake, the swfdisplayitem object is not $i but $i1, and $i is the counter...
So, please replace this note :
"This function works in an absolute way. It means that it always add colors to the original
ones.
For example, if $i is an swfdisplayitem, this FOR loop do a "fade in" :
<?php
for ($i=255;$i>=0;$i=$i-10)
{
$i1->addcolor(0,0,0,-$i);
$m->nextFrame();
}
?>"
by
"This function works in an absolute way. It means that it always add colors to the original
ones.
For example, if $i1 is an swfdisplayitem, this FOR loop do a "fade in" :
<?php
for ($i=255;$i>=0;$i=$i-10)
{
$i1->addcolor(0,0,0,-$i);
$m->nextFrame();
}
?>"
Thanks.
----
Manual Page -- http://www.php.net/manual/en/function.swfdisplayitem.addcolor.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+44262
Delete -- http://master.php.net/manage/user-notes.php?action=delete+44262&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+44262&report=yes
Search -- http://master.php.net/manage/user-notes.php