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

search for in the

SWFButton->addASound()> <SWFButton
Last updated: Fri, 29 Aug 2008

view this page in

SWFButton->addAction()

(No version information available, might be only in CVS)

SWFButton->addAction()Ajoute une action

Description

SWFButton
void addAction ( SWFAction $action , int $flags )
Avertissement

Cette fonction est EXPERIMENTALE. Cela signifie que le comportement de cette fonction, son nom et, concrètement, TOUT ce qui est documenté ici peut changer dans un futur proche, SANS PREAVIS ! Soyez-en conscient, et utilisez cette fonction à vos risques et périls.

Ajout l'action fournie au bouton dans les conditions données.

Liste de paramètres

action

Un objet SWFAction, retourné par SWFAction->__construct().

flags

Les drapeaux flags suivants sont valides : SWFBUTTON_MOUSEOVER, SWFBUTTON_MOUSEOUT, SWFBUTTON_MOUSEUP, SWFBUTTON_MOUSEUPOUTSIDE, SWFBUTTON_MOUSEDOWN, SWFBUTTON_DRAGOUT et SWFBUTTON_DRAGOVER.

Valeurs de retour

Aucune valeur n'est retournée.



add a note add a note User Contributed Notes
SWFButton->addAction()
T_wigg
21-Sep-2003 09: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, 29 Aug 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites