swf_definebitmap
(PHP 4)
swf_definebitmap — Define a bitmap
Описание
void swf_definebitmap
( int $objid
, string $image_name
)
The swf_definebitmap() function defines a bitmap given an image.
Список параметров
- objid
-
An SWF object id.
- image_name
-
A GIF, JPEG, RGB or FI image. The image will be converted into a Flash JPEG or Flash color map format.
Возвращаемые значения
Эта функция не возвращает значения после выполнения.
- 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
Коментарии
Hi!
I'm currently developing a HTML2SWF php, and I had serious problems displaying images...
swf_definebitmap() does not seem to work for "just displaying" a picture, e.g.
--------
swf_definebitmap(1,"myfile.gif");
swf_placeobject(1,10);
--------
(The image won't show up as expected)
...BUT...
everything worX fine when filling a shape with a picture, e.g.:
---------
swf_definebitmap(1,"myfile.gif");
swf_startshape(2);
swf_shapelinesolid(0.1,0.1,0.1,1,0.2);
swf_shapefillbitmapclip(1);
swf_shapearc(50,50,100,0,360);
swf_endshape(2);
swf_placeobject(2,10);
---------
Hope, I could help some guys out there!
regards
HotKey
P.S. php rulez!