2002-04-15 00:12:54 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2003-12-02 14:11:35 +00:00
|
|
|
<!-- $Revision: 1.4 $ -->
|
2002-04-15 00:12:54 +00:00
|
|
|
<!-- 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>
|
2003-07-16 17:25:02 +00:00
|
|
|
<function>swf_addbuttonrecord</function> example
|
2002-04-15 00:12:54 +00:00
|
|
|
</title>
|
|
|
|
<programlisting role="php">
|
|
|
|
<![CDATA[
|
2003-07-16 17:25:02 +00:00
|
|
|
<?php
|
|
|
|
swf_startButton($objid, TYPE_MENUBUTTON);
|
|
|
|
swf_addButtonRecord(BSDown|BSOver, $buttonImageId, 340);
|
|
|
|
swf_onCondition(MenuEnter);
|
2003-12-02 14:11:35 +00:00
|
|
|
swf_actionGetUrl("http://www.example.com", "_level1");
|
2003-07-16 17:25:02 +00:00
|
|
|
swf_onCondition(MenuExit);
|
|
|
|
swf_actionGetUrl("", "_level1");
|
|
|
|
swf_endButton();
|
|
|
|
?>
|
2002-04-15 00:12:54 +00:00
|
|
|
]]>
|
|
|
|
</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
|
|
|
|
-->
|