2010-03-28 22:10:10 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 09:13:17 +00:00
|
|
|
<!-- $Revision$ -->
|
2007-06-20 22:25:43 +00:00
|
|
|
<refentry xml:id="function.swf-addbuttonrecord" xmlns="http://docbook.org/ns/docbook">
|
2007-02-03 18:54:54 +00:00
|
|
|
<refnamediv>
|
|
|
|
<refname>swf_addbuttonrecord</refname>
|
|
|
|
<refpurpose>Controls location, appearance and active area of the current button</refpurpose>
|
|
|
|
</refnamediv>
|
2007-02-03 18:55:13 +00:00
|
|
|
|
|
|
|
<refsect1 role="description">
|
|
|
|
&reftitle.description;
|
2007-02-03 18:54:54 +00:00
|
|
|
<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>
|
2007-02-03 18:55:13 +00:00
|
|
|
Allow you to define the specifics of using a button.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="parameters">
|
|
|
|
&reftitle.parameters;
|
|
|
|
<para>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>states</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Defines what states the button can have, these can be any or all of
|
|
|
|
the following constants: <constant>BSHitTest</constant>,
|
|
|
|
<constant>BSDown</constant>, <constant>BSOver</constant> or
|
|
|
|
<constant>BSUp</constant>.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>shapeid</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
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.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>depth</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
This parameter is the placement of the button in the current frame.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="returnvalues">
|
|
|
|
&reftitle.returnvalues;
|
|
|
|
<para>
|
|
|
|
&return.void;
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="examples">
|
|
|
|
&reftitle.examples;
|
|
|
|
<para>
|
2007-02-03 18:54:54 +00:00
|
|
|
<example>
|
2007-02-03 18:55:13 +00:00
|
|
|
<title><function>swf_addbuttonrecord</function> example</title>
|
2007-02-03 18:54:54 +00:00
|
|
|
<programlisting role="php">
|
2002-04-15 00:12:54 +00:00
|
|
|
<![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
|
|
|
]]>
|
2007-02-03 18:54:54 +00:00
|
|
|
</programlisting>
|
|
|
|
</example>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
2007-02-03 18:55:13 +00:00
|
|
|
|
2007-02-03 18:54:54 +00:00
|
|
|
</refentry>
|
2002-04-15 00:12:54 +00:00
|
|
|
|
|
|
|
<!-- 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
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2002-04-15 00:12:54 +00:00
|
|
|
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
|
|
|
|
-->
|