AS3 - How can I pass vars without using URL string?

Hello,

I have one AS3 swf (loader.swf) that needs to load a second AS3 file (main.swf).

loader.swf has some variables that I would like to pass to main.swf.

I don’t want to append the variables in the URL string, because then main.swf won’t be cached properly.

In AS2 I could use FlashVars, which passes the variables without adding them to the URL string.

How can I do this in AS3?