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

**URL:** <https://forum.kirupa.com/t/as3-how-can-i-pass-vars-without-using-url-string/251781>\
**Category:** flash\
**Created:** [February 12, 2008, 4:57pm UTC](https://forum.kirupa.com/t/as3-how-can-i-pass-vars-without-using-url-string/251781 "2008-02-12T16:57:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Keith\_Alan](https://avatars.discourse-cdn.com/v4/letter/k/e68b1a/32.png) [@Keith\_Alan](https://forum.kirupa.com/u/Keith_Alan)\
**Post date:** [February 12, 2008, 4:57pm UTC](https://forum.kirupa.com/t/as3-how-can-i-pass-vars-without-using-url-string/251781/1 "2008-02-12T16:57:37Z")

</div>

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?
