Actionscript to Start/Stop

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello List,

I’d like to start resp. stop my animation with an onclick on the animation.
So far I do this in a python object with no error: (from gazbming)

self._actionscript = """\
 if(!init){
   init=true;
     stopped=false;

       controls = {
         onMouseDown: function () {
         if(!stopped){
           stop();
           stopped=true;
         }else{
          play();
          stopped=false;
     }
   }
 };
 Mouse.addListener(controls);
}"""

self._anim.add(ming.SWFAction(self._actionscript))

But this does not work.
Thx for any help.
bye
C.M.

------------------------------------------------------------------------------

_______________________________________________
Ming-users mailing list
Ming-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/ming-users



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux