note 14837 deleted from function.swf-pushmatrix by sobak
| From: | sobak@php.net | Date: | Tue, 22 Nov 2016 03:29:11 +0000 |
| Subject: | note 14837 deleted from function.swf-pushmatrix by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-207326@lists.php.net to get a copy of this message | ||
Note Submitter: greg at newtechy dot com
----
This function saves the current transformation settings on the stack so that you can restore it
later if you need to. You can restore it with the popmatrix function. For example, if you run this
code:
// save the current transformation matrix
swf_pushmatrix();
// translate this object
swf_definefont(3, "Mod");
swf_fontsize(5);
swf_definetext(3, "Hello", 1);
swf_translate(50, 50, 0);
swf_placeobject(3, 50);
// reload the last saved transformation matrix
swf_popmatrix();
swf_showframe();
Only the text "Hello" will be transformed to that location on the animation. At first
when I started using this library I didn't know what this did, but this is what I've found
so far. It can be very useful in animation.