<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>*drawlogic - Latest Comments in HOWTO: Using Loaders in AS3</title><link>http://drawlogic.disqus.com/</link><description>None</description><atom:link href="https://drawlogic.disqus.com/howto_using_loaders_in_as3/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 14 Sep 2009 20:23:10 -0000</lastBuildDate><item><title>Re: HOWTO: Using Loaders in AS3</title><link>http://drawlogic.com/2007/09/20/howto-using-loaders-in-as3/#comment-16602458</link><description>&lt;p&gt;Guys, those that needed to re-use e.i. make a copy of a loader after load - grab my LoaderUtil class &lt;br&gt;the class archived: &lt;a href="http://chargedweb.com/labs/files/LoaderUtil.zip" rel="nofollow noopener" target="_blank" title="http://chargedweb.com/labs/files/LoaderUtil.zip"&gt;http://chargedweb.com/labs/...&lt;/a&gt;&lt;br&gt;find more useful stuff at my labs.&lt;/p&gt;&lt;p&gt;Cheers&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jloa</dc:creator><pubDate>Mon, 14 Sep 2009 20:23:10 -0000</pubDate></item><item><title>Re: HOWTO: Using Loaders in AS3</title><link>http://drawlogic.com/2007/09/20/howto-using-loaders-in-as3/#comment-14500319</link><description>&lt;p&gt;Добавил в свои закладки. Теперь буду вас намного почаще читать!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">wechate</dc:creator><pubDate>Thu, 14 May 2009 20:31:26 -0000</pubDate></item><item><title>Re: HOWTO: Using Loaders in AS3</title><link>http://drawlogic.com/2007/09/20/howto-using-loaders-in-as3/#comment-14500318</link><description>&lt;p&gt;Блог в ридер однозначно&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">kefasot</dc:creator><pubDate>Thu, 14 May 2009 18:40:59 -0000</pubDate></item><item><title>Re: HOWTO: Using Loaders in AS3</title><link>http://drawlogic.com/2007/09/20/howto-using-loaders-in-as3/#comment-14500317</link><description>&lt;p&gt;Вот решил вам немного помочь и послал этот пост в социальные закладки. Очень надеюсь ваш рейтинг возрастет.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">hebygaf</dc:creator><pubDate>Wed, 13 May 2009 13:43:15 -0000</pubDate></item><item><title>Re: HOWTO: Using Loaders in AS3</title><link>http://drawlogic.com/2007/09/20/howto-using-loaders-in-as3/#comment-14500316</link><description>&lt;p&gt;Очень интересно. Но чего-то не хватает. Может быть, стоит добавить каких-нибудь картинок или фото?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">virabux</dc:creator><pubDate>Wed, 13 May 2009 07:52:10 -0000</pubDate></item><item><title>Re: HOWTO: Using Loaders in AS3</title><link>http://drawlogic.com/2007/09/20/howto-using-loaders-in-as3/#comment-14500315</link><description>&lt;p&gt;Хорошо пишете. Учились где-то или просто с опытом пришло?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">helefyv</dc:creator><pubDate>Wed, 13 May 2009 06:42:09 -0000</pubDate></item><item><title>Re: HOWTO: Using Loaders in AS3</title><link>http://drawlogic.com/2007/09/20/howto-using-loaders-in-as3/#comment-14500314</link><description>&lt;p&gt;Хорошо пишете. Надеюсь, когда-нибудь увижу нечто подобное и на своем блоге…&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dawduefgelf</dc:creator><pubDate>Sun, 10 May 2009 13:32:53 -0000</pubDate></item><item><title>Re: HOWTO: Using Loaders in AS3</title><link>http://drawlogic.com/2007/09/20/howto-using-loaders-in-as3/#comment-14500313</link><description>&lt;p&gt;if the requested URL not found then I want to load my default file&lt;br&gt;Can you please tell me the code for that&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">hr</dc:creator><pubDate>Fri, 27 Feb 2009 10:44:28 -0000</pubDate></item><item><title>Re: HOWTO: Using Loaders in AS3</title><link>http://drawlogic.com/2007/09/20/howto-using-loaders-in-as3/#comment-14500312</link><description>&lt;p&gt;Dominik,&lt;/p&gt;&lt;p&gt;You probably want to write up us use something like &lt;a href="http://code.google.com/p/bulk-loader/" rel="nofollow noopener" target="_blank" title="http://code.google.com/p/bulk-loader/"&gt;http://code.google.com/p/bu...&lt;/a&gt;.  This will help you with large sets of data to load and finding them.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">drawk</dc:creator><pubDate>Mon, 12 Jan 2009 11:35:19 -0000</pubDate></item><item><title>Re: HOWTO: Using Loaders in AS3</title><link>http://drawlogic.com/2007/09/20/howto-using-loaders-in-as3/#comment-14500311</link><description>&lt;p&gt;Hi!&lt;br&gt;Thanks for this! I got one question and would be really happy if you knew the answer.&lt;/p&gt;&lt;p&gt;i'm loading 50 thumbs at once. Listener is set.&lt;br&gt;thumbLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,thumbsLoaded);&lt;/p&gt;&lt;p&gt;i want to know name of just loaded loader&lt;/p&gt;&lt;p&gt;function thumbsLoaded(evt:Event):void&lt;br&gt;{&lt;br&gt;&lt;a href="http://thumbLoader.name" rel="nofollow noopener" target="_blank" title="thumbLoader.name"&gt;thumbLoader.name&lt;/a&gt; ??&lt;br&gt;}&lt;/p&gt;&lt;p&gt;all i figure out so far is i can see file url through contentLoaderInfo like this&lt;br&gt;trace(evt.target.url);&lt;/p&gt;&lt;p&gt;it would be great if there was a chance to set name of that loader and later get it when it's loaded.&lt;/p&gt;&lt;p&gt;any hints ?&lt;/p&gt;&lt;p&gt;cheers &lt;br&gt;Dominik&lt;br&gt;&lt;a href="http://www.delay.pl/" rel="nofollow noopener" target="_blank" title="http://www.delay.pl/"&gt;http://www.delay.pl/&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dominik</dc:creator><pubDate>Sun, 11 Jan 2009 10:37:02 -0000</pubDate></item><item><title>Re: HOWTO: Using Loaders in AS3</title><link>http://drawlogic.com/2007/09/20/howto-using-loaders-in-as3/#comment-14500310</link><description>&lt;p&gt;I very much love summer :) &lt;br&gt;Someone very much loves winter :(&lt;br&gt;I Wish to know whom more :)&lt;br&gt;For what you love winter? &lt;br&gt;For what you love summer? Let's argue :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">wintervssummer</dc:creator><pubDate>Sat, 29 Nov 2008 14:15:35 -0000</pubDate></item><item><title>Re: HOWTO: Using Loaders in AS3</title><link>http://drawlogic.com/2007/09/20/howto-using-loaders-in-as3/#comment-14500309</link><description>&lt;p&gt;Depression Depression Depression aaaaaaaa&lt;br&gt;HEEEEELP :( :( :(&lt;br&gt;I hate winter! I want summer!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DDDDepressionnnn</dc:creator><pubDate>Fri, 21 Nov 2008 01:23:41 -0000</pubDate></item><item><title>Re: HOWTO: Using Loaders in AS3</title><link>http://drawlogic.com/2007/09/20/howto-using-loaders-in-as3/#comment-14500308</link><description>&lt;p&gt;Another correction (the final one it seems) because you need to remove ALL children, in the other example i removed just one:&lt;/p&gt;&lt;p&gt;var mRequest:URLRequest;&lt;br&gt;var loader:Loader= new Loader();&lt;/p&gt;&lt;p&gt;loadOther_btn.addEventListener(MouseEvent.MOUSE_UP, loadOther);&lt;/p&gt;&lt;p&gt;function loadOther(event:MouseEvent):void {&lt;br&gt;	while (numChildren&amp;gt;0)&lt;br&gt;	{&lt;br&gt;		removeChildAt(0);&lt;br&gt;	}&lt;br&gt;	mRequest = new URLRequest("otherMovie.swf");&lt;br&gt;	loader.load(mRequest);&lt;br&gt;	addChild(loader);&lt;br&gt;}&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ks61</dc:creator><pubDate>Mon, 29 Sep 2008 05:50:16 -0000</pubDate></item><item><title>Re: HOWTO: Using Loaders in AS3</title><link>http://drawlogic.com/2007/09/20/howto-using-loaders-in-as3/#comment-14500307</link><description>&lt;p&gt;tried and tried and found it:&lt;/p&gt;&lt;p&gt;var mRequest:URLRequest;&lt;br&gt;var loader:Loader= new Loader();&lt;/p&gt;&lt;p&gt;load400_btn.addEventListener(MouseEvent.MOUSE_UP, loadOther);&lt;/p&gt;&lt;p&gt;function loadOther(event:MouseEvent):void {&lt;br&gt;	removeChildAt(0)&lt;br&gt;	mRequest = new URLRequest("otherMovie.swf");&lt;br&gt;	loader.load(mRequest);&lt;br&gt;	addChild(loader);&lt;br&gt;}&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ks61</dc:creator><pubDate>Fri, 26 Sep 2008 09:45:28 -0000</pubDate></item><item><title>Re: HOWTO: Using Loaders in AS3</title><link>http://drawlogic.com/2007/09/20/howto-using-loaders-in-as3/#comment-14500306</link><description>&lt;p&gt;A solution may be to start with an empty movie that loads another movie in a targetclip. The loaded movie can, with a mouseclick, load another movie in the targetclip. Sounds simple, but does not work as i expect it. Any suggestions?&lt;/p&gt;&lt;p&gt;i tried this:&lt;/p&gt;&lt;p&gt;loadOther_btn.addEventListener(MouseEvent.MOUSE_UP, loadOther);&lt;/p&gt;&lt;p&gt;function loadOther(event:MouseEvent):void {&lt;br&gt;	parent.request = new URLRequest("otherMovie.swf");&lt;br&gt;	parent.loader.load(request);&lt;br&gt;}&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ks61</dc:creator><pubDate>Fri, 26 Sep 2008 08:20:52 -0000</pubDate></item><item><title>Re: HOWTO: Using Loaders in AS3</title><link>http://drawlogic.com/2007/09/20/howto-using-loaders-in-as3/#comment-14500305</link><description>&lt;p&gt;tried and tried ...&lt;/p&gt;&lt;p&gt;with removeChildAt(0) i remove a child in the loaded movie&lt;br&gt;with parent.removeChildAt(0) i expected a small success but instead Flash crashes. (for some of you that maybe very logical, i simply copied it from another forum)&lt;/p&gt;&lt;p&gt;there is no such thing as removeParent()&lt;/p&gt;&lt;p&gt;A solution may be to start with an empty movie that loads another movie in a targetclip. The loaded movie can with a mouseclick load another movie in the targetclip. Sounds simple, but does not work as i expect it. Any suggestions?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ks61</dc:creator><pubDate>Fri, 26 Sep 2008 08:17:01 -0000</pubDate></item><item><title>Re: HOWTO: Using Loaders in AS3</title><link>http://drawlogic.com/2007/09/20/howto-using-loaders-in-as3/#comment-14500304</link><description>&lt;p&gt;Oh man I can't believe I said that.. hehe working on some AS2 with old school removeClip.  Sorry yes it is removeChild() and removeChildAt() they are part of any object that inherits from DisplayObject such as flash.display.MovieClip.  The whole display object tree is based on objects with children.  So it is addChild and removeChild etc.  Sorry for the confusion, late...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">drawk</dc:creator><pubDate>Fri, 26 Sep 2008 04:30:39 -0000</pubDate></item><item><title>Re: HOWTO: Using Loaders in AS3</title><link>http://drawlogic.com/2007/09/20/howto-using-loaders-in-as3/#comment-14500300</link><description>&lt;p&gt;Thanks for yor reaction, but ...&lt;/p&gt;&lt;p&gt;removeClip() and removeClipAt() are not standard Flash actions are they?&lt;br&gt;I cannot find them in the help-function.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ks61</dc:creator><pubDate>Fri, 26 Sep 2008 04:13:11 -0000</pubDate></item><item><title>Re: HOWTO: Using Loaders in AS3</title><link>http://drawlogic.com/2007/09/20/howto-using-loaders-in-as3/#comment-14500299</link><description>&lt;p&gt;Hey ks61,&lt;/p&gt;&lt;p&gt;Yes the new Display Object Tree allows you to load in objects into the display tree with addChild() on amy movie clip or the stage.  If you addChild it will simple append the object.  If you want to clear out the old one you can removeClip() or removeClipAt(index) before loading in the same location.  You can removeClipAt(0) for clips that have no children to remove it from the display tree.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">drawk</dc:creator><pubDate>Fri, 26 Sep 2008 03:34:27 -0000</pubDate></item><item><title>Re: HOWTO: Using Loaders in AS3</title><link>http://drawlogic.com/2007/09/20/howto-using-loaders-in-as3/#comment-14500298</link><description>&lt;p&gt;In actionScript 2.0 i used to load movies at level_0 to replace original. How can i do that with a loader?&lt;br&gt;Must i (can i) unload the parent?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ks61</dc:creator><pubDate>Fri, 26 Sep 2008 03:11:23 -0000</pubDate></item><item><title>Re: HOWTO: Using Loaders in AS3</title><link>http://drawlogic.com/2007/09/20/howto-using-loaders-in-as3/#comment-14500291</link><description>&lt;p&gt;So, what you end up with is an object of type Loader?  And you then use that like a sprite or movie clip?  That's pretty ugly.  Would have been better if the loader mechanism left you with a sprite or something.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sosh</dc:creator><pubDate>Wed, 27 Aug 2008 12:11:14 -0000</pubDate></item><item><title>Re: HOWTO: Using Loaders in AS3</title><link>http://drawlogic.com/2007/09/20/howto-using-loaders-in-as3/#comment-14500289</link><description>&lt;p&gt;Hey Guys, I'm having a huge problem with loading an external .swf  that includes an FLV video file. No matter what I do, myoader.unload(); or myloader.removeChild(); Nothing seems to make the video stop playing. It's dissappears but the audio continues to loop in the background,&lt;/p&gt;&lt;p&gt;I managed to patch this using the flash.media.SoundMixer.stopAll(); methoid but this is ONLY a patch. My memory is getting killed!&lt;/p&gt;&lt;p&gt;It appears adobe knows about this problem but please tell me someone has a solution!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ToryHargro.com</dc:creator><pubDate>Wed, 06 Aug 2008 03:43:06 -0000</pubDate></item><item><title>Re: HOWTO: Using Loaders in AS3</title><link>http://drawlogic.com/2007/09/20/howto-using-loaders-in-as3/#comment-14500290</link><description>&lt;p&gt;hey there, think someone else had this question as well re: using loaders to load images into two different places. but i've tried using sprites, attaching the loader to the sprite, then the sprite to the MC, and it still doesn't work - when i call loader again, the first image disappears. :-) i've got it working with the code below, but i'm sure this can be improved. any suggestions?&lt;/p&gt;&lt;p&gt;// load in images dynamically&lt;br&gt;var leftloader:Loader = new Loader();&lt;br&gt;leftloader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress);&lt;br&gt;leftloader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);&lt;br&gt;var rightloader:Loader = new Loader();&lt;br&gt;rightloader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress);&lt;br&gt;rightloader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);&lt;/p&gt;&lt;p&gt;function loadProgress(event:ProgressEvent):void {&lt;br&gt;	var percentLoaded:Number = event.bytesLoaded/event.bytesTotal;&lt;br&gt;	percentLoaded = Math.round(percentLoaded * 100);&lt;br&gt;	trace("Loading: "+percentLoaded+"%");&lt;br&gt;}&lt;br&gt;function loadComplete(event:Event):void {&lt;br&gt;	trace("Complete");&lt;br&gt;}&lt;/p&gt;&lt;p&gt;var curimg=0;&lt;br&gt;function loadImage(thisframe) {&lt;br&gt;	curimg++;&lt;br&gt;	var request:URLRequest = new URLRequest("images/img"+curimg+".jpg");&lt;br&gt;	if (thisframe=="leftframe") {&lt;br&gt;		leftloader.load(request);&lt;br&gt;		leftframe.holder.addChild(leftloader);&lt;br&gt;		trace ("load left");&lt;br&gt;	} else {&lt;br&gt;		rightloader.load(request);&lt;br&gt;		rightframe.holder.addChild(rightloader);&lt;br&gt;	}&lt;br&gt;}&lt;br&gt;loadImage("leftframe");&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">luke</dc:creator><pubDate>Tue, 22 Jul 2008 19:03:15 -0000</pubDate></item><item><title>Re: HOWTO: Using Loaders in AS3</title><link>http://drawlogic.com/2007/09/20/howto-using-loaders-in-as3/#comment-14500295</link><description>&lt;p&gt;Нифтяк!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Таракан</dc:creator><pubDate>Thu, 17 Jul 2008 01:32:28 -0000</pubDate></item><item><title>Re: HOWTO: Using Loaders in AS3</title><link>http://drawlogic.com/2007/09/20/howto-using-loaders-in-as3/#comment-14500302</link><description>&lt;p&gt;good tutorial, just if addChild() could be in loadComplete -function.&lt;/p&gt;&lt;p&gt;And your pages look WERY PERFECT!!!!! in my taste..&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">coderx</dc:creator><pubDate>Sun, 06 Jul 2008 18:09:18 -0000</pubDate></item></channel></rss>