{"id":98,"date":"2007-03-17T09:43:33","date_gmt":"2007-03-17T16:43:33","guid":{"rendered":"http:\/\/labs.zeh.com.br\/blog\/?p=98"},"modified":"2007-10-09T08:11:06","modified_gmt":"2007-10-09T15:11:06","slug":"new-imageloader-and-loadingqueue-classes","status":"publish","type":"post","link":"https:\/\/labs.zeh.com.br\/blog\/?p=98","title":{"rendered":"New ImageLoader and LoadingQueue classes"},"content":{"rendered":"<p>I&#8217;ve finally found the time to add content to the <a href=\"https:\/\/labs.zeh.com.br\/blog\/?page_id=97\">Projects<\/a> page of this website, and I&#8217;m gonna do it by introducing the <a href=\"https:\/\/labs.zeh.com.br\/blog\/?page_id=97#imageloader\"><code>ImageLoader<\/code><\/a> class (actionscript 2 only). Simply put,<\/p>\n<pre>import zeh.loading.ImageLoader;\r\nvar myImgLoader:ImageLoader = new ImageLoader(whateverMC);\r\nmyImgLoader.loadImage(\"whatever.jpg\");<\/pre>\n<p>What does make it different? Well, it uses <code>BitmapData<\/code> caching, handles its own loading queue with variable priority control, and works by attaching the image (with <code>smooth<\/code> on) instead of actually loading the content on the container. Because of this, simultaneous downloads of the same content can occur seamlessly on two different locations, and additional loadings are attached from the image cache instead of reloaded from the web or the browser cache.<\/p>\n<p>And since <code>ImageLoader<\/code> depends on it, the <a href=\"https:\/\/labs.zeh.com.br\/blog\/?page_id=97#loadingqueue\"><code>LoadingQueue<\/code><\/a> class is also available for download. It simplifies the loading of <code>MovieClip<\/code> content with internal queuing, priority control, and the ability to use different queue groups.<\/p>\n<p>The classes are not really new and I&#8217;ve been using them for a while on my own work, but I guess someone can find them useful so I&#8217;m putting them on my public subversion server. Anyhow, more information and download of both of them <a href=\"https:\/\/labs.zeh.com.br\/blog\/?page_id=97\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve finally found the time to add content to the Projects page of this website, and I&#8217;m gonna do it by introducing the ImageLoader class (actionscript 2 only). Simply put, import zeh.loading.ImageLoader; var myImgLoader:ImageLoader = new ImageLoader(whateverMC); myImgLoader.loadImage(&#8220;whatever.jpg&#8221;); What does make it different? Well, it uses BitmapData caching, handles its own loading queue with variable [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[17,10,20],"tags":[],"_links":{"self":[{"href":"https:\/\/labs.zeh.com.br\/blog\/index.php?rest_route=\/wp\/v2\/posts\/98"}],"collection":[{"href":"https:\/\/labs.zeh.com.br\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labs.zeh.com.br\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labs.zeh.com.br\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/labs.zeh.com.br\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=98"}],"version-history":[{"count":0,"href":"https:\/\/labs.zeh.com.br\/blog\/index.php?rest_route=\/wp\/v2\/posts\/98\/revisions"}],"wp:attachment":[{"href":"https:\/\/labs.zeh.com.br\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=98"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labs.zeh.com.br\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=98"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labs.zeh.com.br\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=98"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}