views:

11

answers:

0

Hi,

I am a Flex developer and I am trying to load an AS2 swf in my AS3 code. The load itself works, but the parameters are not transported for some reason.

This is my code.

var urlrequest:URLRequest = new URLRequest();
urlrequest.url = "Pres.swf?test=test1";
var loader:Loader = new Loader();
loader.load(urlRequest);

In the handler function for the complete event, when I checked for the parameters in contentLoaderInfo, there is just an empty object associated with it(I guess, there are no key- value pairs in it atleast).

I cannot make any changes to the AS2 swf, because I don't have any tools to build it right now.

Thanks in advance.