# Passing variables

**URL:** <https://forum.kirupa.com/t/passing-variables/210153>\
**Category:** Uncategorized\
**Created:** [December 15, 2006, 4:04pm UTC](https://forum.kirupa.com/t/passing-variables/210153 "2006-12-15T16:04:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmmdonut](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@mmmdonut](https://forum.kirupa.com/u/mmmdonut)\
**Post date:** [December 15, 2006, 4:04pm UTC](https://forum.kirupa.com/t/passing-variables/210153/1 "2006-12-15T16:04:47Z")

</div>

I need to pass a var between a swf and an .as file. I tried \_global and it didn’t work. So I ended up using sharedObject which worked… but its a lot of extra code. I feel like i’ve passed vars before, but I totally can’t remember how I did it. Anyone got an idea?
