swf_pushmatrix
(PHP 4)
swf_pushmatrix — Push the current transformation matrix back onto the stack
Описание
void swf_pushmatrix
( void
)
Pushes the current transformation matrix back onto the stack.
Возвращаемые значения
Эта функция не возвращает значения после выполнения.
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Генерация нетекстовых MIME форматов
- Shockwave Flash
- swf_actiongeturl
- swf_actiongotoframe
- swf_actiongotolabel
- swf_actionnextframe
- swf_actionplay
- swf_actionprevframe
- swf_actionsettarget
- swf_actionstop
- swf_actiontogglequality
- swf_actionwaitforframe
- swf_addbuttonrecord
- swf_addcolor
- swf_closefile
- swf_definebitmap
- swf_definefont
- swf_defineline
- swf_definepoly
- swf_definerect
- swf_definetext
- swf_endbutton
- swf_enddoaction
- swf_endshape
- swf_endsymbol
- swf_fontsize
- swf_fontslant
- swf_fonttracking
- swf_getbitmapinfo
- swf_getfontinfo
- swf_getframe
- swf_labelframe
- swf_lookat
- swf_modifyobject
- swf_mulcolor
- swf_nextid
- swf_oncondition
- swf_openfile
- swf_ortho2
- swf_ortho
- swf_perspective
- swf_placeobject
- swf_polarview
- swf_popmatrix
- swf_posround
- swf_pushmatrix
- swf_removeobject
- swf_rotate
- swf_scale
- swf_setfont
- swf_setframe
- swf_shapearc
- swf_shapecurveto3
- swf_shapecurveto
- swf_shapefillbitmapclip
- swf_shapefillbitmaptile
- swf_shapefilloff
- swf_shapefillsolid
- swf_shapelinesolid
- swf_shapelineto
- swf_shapemoveto
- swf_showframe
- swf_startbutton
- swf_startdoaction
- swf_startshape
- swf_startsymbol
- swf_textwidth
- swf_translate
- swf_viewport
Коментарии
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.