swf_addcolor> <swf_actionwaitforframe
Last updated: Fri, 24 Feb 2012

swf_addbuttonrecord

(PHP 4)

swf_addbuttonrecordControls location, appearance and active area of the current button

Descrição

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

Allow you to define the specifics of using a button.

Parâmetros

states

Defines what states the button can have, these can be any or all of the following constants: BSHitTest, BSDown, BSOver or BSUp.

shapeid

The second parameter, the shapeid is the look of the button, this is usually the object id of the shape of the button.

depth

This parameter is the placement of the button in the current frame.

Valor Retornado

Não há valor retornado.

Exemplos

Exemplo #1 swf_addbuttonrecord() example

<?php
swf_startButton
($objidTYPE_MENUBUTTON);
swf_addButtonRecord(BSDown|BSOver$buttonImageId340);
swf_onCondition(MenuEnter);
swf_actionGetUrl("http://www.example.com""_level1");
swf_onCondition(MenuExit);
swf_actionGetUrl("""_level1");
swf_endButton();
?>



User Contributed Notes
swf_addbuttonrecord
mathe at bluemento dot de
15-Sep-2003 12:51
An easy to understand example to make a link-button:

swf_startbutton ($this->gClick, TYPE_PUSHBUTTON);
  swf_addButtonRecord (BSDown|BSOver|BSHitTest|BSUp, $this->gButton, $this->gDepth);
  swf_onCondition (OverUptoOverDown);
  swf_actionGetUrl ($this->gotoUrl, $this->target);
swf_endbutton();

This example is out of a link-object.
gClick is the ObjectId which you need for the swf_placeobject.
gButton is a defined shape which defines the clickarea.
rest is clear i think.
So, I think this is the easiest way making a button.
hotkey at hehe dot com
03-May-2001 02:09
Hi, everyone!
Just to prevent you from killing yourselves (I was close to it): Keep in mind to give a SHAPE-id as an argument. Don't try anything else...
[I wanted to create a text-button... bad luck.]

c ya!

HotKey ^ http://www.SPR.AT

swf_addcolor> <swf_actionwaitforframe
Last updated: Fri, 24 Feb 2012