Posted By

adrianparr on 04/14/10


Tagged

loader as3 loaderInfo


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

socialflasher
Nikolai
tspitzr


AS3 Trace LoaderInfo Properties


 / Published in: ActionScript 3
 

  1. loaderInfo.addEventListener(Event.INIT, onLoaderInfo_INIT);
  2.  
  3. function onLoaderInfo_INIT(event:Event):void
  4. {
  5. loaderInfo.removeEventListener(Event.INIT, onLoaderInfo_INIT);
  6.  
  7. trace("loaderInfo.actionScriptVersion: "+loaderInfo.actionScriptVersion);
  8. trace("loaderInfo.applicationDomain: "+loaderInfo.applicationDomain);
  9. //trace("loaderInfo.bytes: "+loaderInfo.bytes);
  10. trace("loaderInfo.bytesLoaded: "+loaderInfo.bytesLoaded);
  11. trace("loaderInfo.bytesTotal: "+loaderInfo.bytesTotal);
  12. trace("loaderInfo.childAllowsParent: "+loaderInfo.childAllowsParent);
  13. //trace("loaderInfo.constructor: "+loaderInfo.constructor);
  14. trace("loaderInfo.content: "+loaderInfo.content);
  15. trace("loaderInfo.contentType: "+loaderInfo.contentType);
  16. trace("loaderInfo.frameRate: "+loaderInfo.frameRate);
  17. trace("loaderInfo.height: "+loaderInfo.height);
  18. trace("loaderInfo.loader: "+loaderInfo.loader);
  19. trace("loaderInfo.loaderURL: "+loaderInfo.loaderURL);
  20. trace("loaderInfo.parameters: "+loaderInfo.parameters);
  21. trace("loaderInfo.parentAllowsChild: "+loaderInfo.parentAllowsChild);
  22. //trace("loaderInfo.prototype: "+loaderInfo.prototype);
  23. trace("loaderInfo.sameDomain: "+loaderInfo.sameDomain);
  24. trace("loaderInfo.sharedEvents: "+loaderInfo.sharedEvents);
  25. trace("loaderInfo.swfVersion: "+loaderInfo.swfVersion);
  26. trace("loaderInfo.url: "+loaderInfo.url);
  27. trace("loaderInfo.width: "+loaderInfo.width);
  28. }

Report this snippet  

You need to login to post a comment.