<?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.2 $ --> <!-- splitted from ./en/functions/swf.xml, last change in rev 1.8 --> <refentry id="function.swf-addbuttonrecord"> <refnamediv> <refname>swf_addbuttonrecord</refname> <refpurpose> Controls location, appearance and active area of the current button </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>swf_addbuttonrecord</methodname> <methodparam><type>int</type><parameter>states</parameter></methodparam> <methodparam><type>int</type><parameter>shapeid</parameter></methodparam> <methodparam><type>int</type><parameter>depth</parameter></methodparam> </methodsynopsis> <para> The <function>swf_addbuttonrecord</function> function allows you to define the specifics of using a button. The first parameter, <parameter>states</parameter>, 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 <parameter>shapeid</parameter> is the look of the button, this is usually the object id of the shape of the button. The <parameter>depth</parameter> parameter is the placement of the button in the current frame. <example> <title> <function>swf_addbuttonrecord</function> function example </title> <programlisting role="php"> <![CDATA[ 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 (); ]]> </programlisting> </example> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->