downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

SWFButton->addASound> <SWFButton
Last updated: Fri, 13 Nov 2009

view this page in

SWFButton->addAction

(PHP 4 >= 4.0.5)

SWFButton->addActionアクションを追加する

説明

void addAction ( SWFAction $action , int $flags )
警告

この関数は、 実験的 なものです。この関数の動作・ 名前・その他ドキュメントに書かれている事項は、予告なく、将来的な PHP のリリースにおいて変更される可能性があります。 この関数は自己責任で使用してください。

指定した action を、 条件を指定してボタンに追加します。

パラメータ

action

SWFAction->__construct が返す SWFAction

flags

以下のいずれかを指定します。 SWFBUTTON_MOUSEOVERSWFBUTTON_MOUSEOUTSWFBUTTON_MOUSEUPSWFBUTTON_MOUSEUPOUTSIDESWFBUTTON_MOUSEDOWNSWFBUTTON_DRAGOUT および SWFBUTTON_DRAGOVER

返り値

値を返しません。



add a note add a note User Contributed Notes
SWFButton->addAction
T_wigg
22-Sep-2003 04:41
I had a hard time finding a way to stop a sprite, so I figured I would post it.

     $button = new SWFButton();
     $button->addShape($box, SWFBUTTON_UP | SWFBUTTON_HIT | SWFBUTTON_OVER | SWFBUTTON_DOWN);
     $button->addAction(new SWFAction("
          setTarget('box');
          stop();
      "), SWFBUTTON_MOUSEUP);
    
     $item = $movie->add($button);

This works the same way with play();

SWFButton->addASound> <SWFButton
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites