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, 20 May 2011

view this page in

SWFButton->addAction

(PHP 4 >= 4.0.5)

SWFButton->addActionAñade una acción

Descripción

void SWFButton::addAction ( SWFAction $action , int $flags )
Warning

Esta función ha sido declarada EXPERIMENTAL. Su comportamiento, su nombre y la documentación que le acompaña puede cambiar sin previo aviso en futuras versiones de PHP. Use esta función bajo su propio riesgo.

Añade la acción dada por action al botón para las condiciones dadas.

Parámetros

action

Un objeto SWFAction, devuelto por SWFAction->__construct.

flags

Son válidas las siguientes banderas (flags): SWFBUTTON_MOUSEOVER, SWFBUTTON_MOUSEOUT, SWFBUTTON_MOUSEUP, SWFBUTTON_MOUSEUPOUTSIDE, SWFBUTTON_MOUSEDOWN, SWFBUTTON_DRAGOUT y SWFBUTTON_DRAGOVER.

Valores devueltos

No devuelve ningún valor.



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();

 
show source | credits | stats | sitemap | contact | advertising | mirror sites