Jump to content
Search Community

XMLLoader - ApplicationDomain Context

Mr Pablo test
Moderator Tag

Recommended Posts

How can I set the application domain context for SWF assets when I'm using XMLLoader?

 

I need to be able to make SWFs display in their own domain (as I think it is causing issues when trying to play SWFs that have their own libraries loaded in them)

 

Thanks

Link to comment
Share on other sites

You're defining your SWFLoader in the XML, right? There's a note in the XMLLoader docs that addresses this:

http://api.greensock.com/as/com/greensock/loading/XMLLoader.html

 

 

context="child | separate | own" - Only valid for <SWFLoader> loaders. It defines the LoaderContext's ApplicationDomain (see Adobe's LoaderContext docs for details). "child" is the default.

 

So you just add a "context" attribute to the <SWFLoader> and you should be good-to-go. 

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...