★ wanayoo — archive 1999 http://www.php.net/manual/function.swf-addbuttonrecord.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to SWF
Quick Reference
German version of this pageJapanese version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
SWF
* swf_openfile
* swf_closefile
* swf_labelframe
* swf_showframe
* swf_setframe
* swf_getframe
* swf_mulcolor
* swf_addcolor
* swf_placeobject
* swf_modifyobject
* swf_removeobject
* swf_nextid
* swf_startdoaction
* swf_actiongotoframe
* swf_actiongeturl
* swf_actionnextframe
* swf_actionprevframe
* swf_actionplay
* swf_actionstop
* swf_actiontogglequality
* swf_actionwaitforframe
* swf_actionsettarget
* swf_actiongotolabel
* swf_enddoaction
* swf_defineline
* swf_definerect
* swf_definepoly
* swf_startshape
* swf_shapelinesolid
* swf_shapefilloff
* swf_shapefillsolid
* swf_shapefillbitmapclip
* swf_shapefillbitmaptile
* swf_shapemoveto
* swf_shapelineto
* swf_shapecurveto
* swf_shapecurveto3
* swf_shapearc
* swf_endshape
* swf_definefont
* swf_setfont
* swf_fontsize
* swf_fontslant
* swf_fonttracking
* swf_getfontinfo
* swf_definetext
* swf_textwidth
* swf_definebitmap
* swf_getbitmapinfo
* swf_startsymbol
* swf_endsymbol
* swf_startbutton
* swf_addbuttonrecord
* swf_oncondition
* swf_endbutton
* swf_viewport
* swf_ortho
* swf_ortho2
* swf_perspective
* swf_polarview
* swf_lookat
* swf_pushmatrix
* swf_popmatrix
* swf_scale
* swf_translate
* swf_rotate
* swf_posround
Manual: swf_addbuttonrecord
View the source code for this pageSearch the site



Previous page
 swf_startbutton
 Updated
Mon, 14 Aug 2000
swf_oncondition 
Next page


swf_addbuttonrecord

(PHP4 >= 4.0RC2)

swf_addbuttonrecord --  Controls location, appearance and active area of the current button

Description

void swf_addbuttonrecord (int states, int shapeid, int depth)

The swf_addbuttonrecord() function allows you to define the specifics of using a button. The first parameter, states, defines what states the button can have, these can be any or all of the following constants: BSHitTest, BSDown, BSOver or BSUp. The second parameter, the shapeid is the look of the button, this is usually the object id of the shape of the button. The depth parameter is the placement of the button in the current frame.

Example 1. Swf_addbuttonrecord() function example


swf_startButton ($objid, TYPE_MENUBUTTON);
    swf_addButtonRecord (BSDown|BSOver, $buttonImageId, 340);
    swf_onCondition (MenuEnter);
        swf_actionGetUrl ("http://www.designmultimedia.com", "_level1");
    swf_onCondition (MenuExit);
        swf_actionGetUrl ("", "_level1");
swf_endButton ();
      


 About Notes


Previous page
 swf_startbutton
 Updated
Mon, 14 Aug 2000
swf_oncondition 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.