Posted By

otakurzo on 01/28/11


Tagged

loader as3 unloadandstop


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

kure69


eliminarLoader Correctamente


 / Published in: ActionScript 3
 

  1. function eliminarLoader()
  2. {
  3. while(visor.numChildren) visor.removeChildAt(0);
  4.  
  5. if( loader )
  6. {
  7. if( loader.contentLoaderInfo )
  8. {
  9. loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, verSWF);
  10.  
  11. if( loader.contentLoaderInfo.content )
  12. {
  13. if( loader.contentLoaderInfo.content['rdcmndMute'] != undefined )
  14. {
  15. loader.contentLoaderInfo.content['rdcmndMute'] = true; // Captivate 3 y 4
  16. }
  17. }
  18. }
  19.  
  20. try
  21. {
  22. loader['unloadAndStop'](); // Flash Player 10
  23. }
  24. catch (e:Error)
  25. {
  26. loader.unload(); // Flash Player 9
  27. }
  28.  
  29. loader = null;
  30. }
  31.  
  32. trace('Loader Vacio');
  33. }

Report this snippet  

You need to login to post a comment.