ApplicationDomain retrieval?

39 views
Skip to first unread message

cho...@gmail.com

unread,
Feb 12, 2008, 11:07:31 PM2/12/08
to BulkLoader users
I'm having issues with externally loaded .swf files from which I need
to extract the ApplicationDomain, and pass it to another class.

Is there any way to retrieve the ApplicationDomain from the BulkLoader
when it completes loading? Or more specifically, with the
LazyXMLLoader, as I am using XML files to tell the BulkLoader what to
queue up and load (if that makes any difference).

Thanks!

cho...@gmail.com

unread,
Feb 12, 2008, 11:11:08 PM2/12/08
to BulkLoader users
Alternatively, as I'm using this for runtime font loading (without
using flex), if anyone knows of another, easier way to embed fonts for
runtime loading, I'd much appreciate that as well!

Arthur Debert

unread,
Feb 13, 2008, 6:37:11 AM2/13/08
to bulkload...@googlegroups.com
Hi Chover.

The usual answer for this is to pass a Context object to the add
method of bulkloader, as explained here:
http://groups.google.com/group/bulkloader-users/msg/04574ec78c4458ba

On the lazy loader class you can use a <context> node such as:
<file>
<url>somefile.swf</url>
<context>sameDomain</context>
</file>


If all you want is to retrieve the ApplicationDomain for a swf you've
already loaded, then it's just the regular player api:
var myMovie : MovieClip = loader.getMoveClip("somemovie.swf");
var appSomain : ApplicationDomain = myMovie.loaderInfo.applicationDomain;

Cheers
Arthur Debert

cho...@gmail.com

unread,
Feb 13, 2008, 12:17:21 PM2/13/08
to BulkLoader users
Right on, thats exactly what I was looking for, I appreciate it
Arthur!

Also, your BulkLoader is absolutely awesome, thanks for sharing it.
Reply all
Reply to author
Forward
0 new messages