SWF_ADDBUTTONRECORD(3) 1 SWF_ADDBUTTONRECORD(3)
swf_addbuttonrecord - Controls location, appearance and active area of the current button
SYNOPSIS
void swf_addbuttonrecord (int $states, int $shapeid, int $depth)
DESCRIPTION
Allow you to define the specifics of using a button.
PARAMETERS
o $states
- Defines what states the button can have, these can be any or all of the following constants: BSHitTest, BSDown, BSOver or BSUp.
o $shapeid
- The second parameter, the $shapeid is the look of the button, this is usually the object id of the shape of the button.
o $depth
- This parameter is the placement of the button in the current frame.
RETURN VALUES
No value is returned.
EXAMPLES
Example #1
swf_addbuttonrecord(3) example
<?php
swf_startButton($objid, TYPE_MENUBUTTON);
swf_addButtonRecord(BSDown|BSOver, $buttonImageId, 340);
swf_onCondition(MenuEnter);
swf_actionGetUrl("http://www.example.com", "_level1");
swf_onCondition(MenuExit);
swf_actionGetUrl("", "_level1");
swf_endButton();
?>
PHP Documentation Group SWF_ADDBUTTONRECORD(3)