AS3 Trace LoaderInfo Properties


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



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.