Fuse Listener Event


/ Published in: ActionScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. //Fuse listener
  2. import com.mosesSupposes.fuse.*;
  3. ZigoEngine.simpleSetup(Shortcuts,PennerEasing,Fuse,FuseFMP);
  4.  
  5. var myListenerObj:Object = new Object();
  6. myListenerObj.onComplete = function(theFuse:Object) {
  7. trace(theFuse.target.label);
  8. //this.removeMovieClip();
  9.  
  10. }
  11.  
  12. var f:Fuse = Fuse.open();
  13. f.addEventListener("onComplete", myListenerObj);
  14. f.label="foo";
  15. f.autoClear=false;
  16.  
  17. box.alphaTo(0,1,"linear");
  18.  
  19. Fuse.closeAndStart();
  20.  
  21. //var myFoo:Fuse = Fuse.getInstance("foo");
  22. //myFoo.start();

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.