Error in LoaderQueue.as

2 views
Skip to first unread message

Ben McMaster

unread,
Mar 31, 2011, 1:41:05 PM3/31/11
to bumpslide
I am getting this error:

Error: Error #2099: The loading object is not sufficiently loaded to
provide this information.
at flash.display::LoaderInfo/get loader()
at com.bumpslide.net::LoaderQueue/handleLoaderInfoEvent()[/Users/
benmcmaster/Flash/Gaps Crown/Sugarloaf/src/classes/com/bumpslide/net/
LoaderQueue.as:79]

I am using a version of LoaderQueue that is a couple of years old
now... Any one else seen this?

here is the function it is complaining about

private function handleLoaderInfoEvent(event:Event):void {
var loader:Loader = (event.target as LoaderInfo).loader;
finish(loader);
}


it is called from one of these:


loader.contentLoaderInfo.addEventListener(Event.INIT,
handleLoaderInfoEvent, false, 0, true);
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,
handleLoaderInfoEvent, false, 0, true);
loader.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
handleLoaderInfoEvent, false, 0, true);

If it is coming from an IO or Security error... Wouldn't there be a
problem? Is there no LoaderInfo if it errored out?

Thank you!

/Ben

David Knape

unread,
Mar 31, 2011, 2:05:06 PM3/31/11
to bump...@googlegroups.com
yes, I remember fixing that a couple years ago. :)

Try just grabbing the latest version of the lib from github:

You may also need to update related classes in the data and util packages. not sure:

FYI, I don't really use LoaderQueue any more. Try using the RequestQueue with LoaderRequest objects.
LoaderQueue should still be fine, though.

-dk

--
David Knape
Programmer / Consultant



--
--
Bumpslide Mailing List
http://groups.google.com/group/bumpslide

To post to this group, send email to bump...@googlegroups.com
To unsubscribe from this group, send email to
bumpslide+...@googlegroups.com


Reply all
Reply to author
Forward
0 new messages