Jump to content


loadermax swfloader

Recommended Posts

So here is my problem.  I am using loadermax to load a number of child swfs.  Everything works absolutely fine when the host page of the parent swf is call http (non secure) but if the page is called using https (secure) then the content and functions of the child swfs are not available. I know that this is because of the flash security settings and it is treating the secure host domain as a separate domain from the child swf.


I have a crossdomain.xml policy file in the root of the domain (and yes it is all 1 domain) which is:-


<?xml version="1.0" ?>
<allow-access-from domain="ww.domain.com" secure="true" />
but I have also tried :-
<allow-access-from domain="*" />
In the constructor of the associated class of the child swfs I have :-
and in the invocation code of the parent swf I have :-
<param name="allowScriptAccess" value="always" />
This should allow the secure called parent swf to access the non secure child swf content.....but it doesn't.
Again I re-iterate that the application works just fine if the parent swf is called non secure.
what have I missed?
Link to comment
Share on other sites

Hi and welcome to the GreenSock forums,


It really sounds like you did everything I would try with the crossdomain file and security settings.

Not really sure what else it could be but would suggest the following


1: use browser debug tools to check network requests and see if the crossdomain file is being loaded. In chrome go to dev tools > network and refresh the page.

2: add the following callbacks to your loaders

onSecurityError, onScriptAccessDenied and onError see docs for descriptions: http://greensock.com/asdocs/com/greensock/loading/SWFLoader.html


3: remove LoaderMax from the picture entirely. Make a very simple demo of html page, parent swf, child swf and try to get them working with the basic native AS3 Loader. 


If you can get the native setup to work but not the LoaderMax one, let us know and maybe we will be able to look at your hosted files to see if anything appears amiss

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.